Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问许可证需确认审计通过

fix-bug修复错误

Agent Skill

fix-bug 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

190

周安装

8

GitHub Stars

2

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fix-bug(修复错误)
来源仓库:https://github.com/alvesrafa/dev-routine
仓库路径:skills/fix-bug
安装命令:
npx skills add https://github.com/alvesrafa/dev-routine --skill fix-bug
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alvesrafa/dev-routine --skill fix-bug

简介

fix-bug 针对特定异常行为提供根因分析与修复方案,强调最小化修改原则。

  • 适用于线上故障排查、回归错误定位或性能退化问题解决等调试密集型任务。
  • 触发时需提供清晰的行为描述,否则 Agent 会主动询问补充上下文信息。
  • 修复前必须验证已知问题文档(known-issues.md),避免重复处理已记录缺陷。
  • 所有修改需通过单元测试与集成测试双重验证,禁止绕过 CI/CD 流水线直接提交。

SKILL.md

Skill: /fix-bug

Trigger

/fix-bug "description of unexpected behavior"

The description is critical for investigation quality. Without it, ask before continuing.

Response guidelines

Be comprehensive but concise. Omit obvious explanations, avoid repetition, get straight to the point. Save tokens without losing technical precision.

Reading project context

Read if they exist:

  • .claude/project.md — stack, environments, modules
  • .claude/known-issues.mdpriority read
  • .claude/architecture.md — flows and dependencies
  • .claude/conventions.md — team standards

Stage 0: Clarification

Before investigating, check if the description is actionable.

Ask up to 3 targeted questions if any of the following are true:

  • No description was provided
  • Expected vs. current behavior cannot be distinguished from the description
  • The environment (local / staging / prod) is not determinable and matters for the hypotheses
  • An error message or stack trace exists but was not shared

Only ask for facts that directly narrow the hypothesis space. No style or preference questions.

After asking, wait for the user's reply before proceeding to Stage 1. If the user says "skip questions" or "just investigate", proceed with available context.

Stage execution

By default, all stages run sequentially in one response.

The user can say "do only Stage 1 and 2", "stop after Stage 3", "skip to Stage 5". Respect this literally.

If a mid-stage ambiguity requires input, emit the completed portion of the current stage, then write:

Paused at Stage N. [Question]. Reply to continue.

Stage 1: Known issues check

Check .claude/known-issues.md first.

  • If it matches something recorded: show the solution and ask if context changed
  • If not: proceed to Stage 2

Output: *"Checking known-issues..."* followed by result.

Stage 2: Bug understanding

Expected: what should happen Current: what is happening Environment: infer from context (local / staging / prod) Frequency: always / sometimes / specific condition

If after rephrasing the bug you identify a fundamental ambiguity that makes Stages 3–5 unreliable, pause here and ask the user to confirm before continuing.

Stage 3: Root cause hypotheses

List ordered from most to least likely:

### Hypothesis N — [title]
Probability: High / Medium / Low
Cause: why this would explain the behavior
Verify: command or code snippet to confirm

If two hypotheses have equal probability and the distinction requires information only the user has (e.g., recent deploys, infra changes), pause after listing them and ask one targeted question before Stage 4.

Stage 4: Diagnostic plan

Concrete steps in order of increasing cost:

  1. Logs, database, queue (no code)
  2. Code and flow
  3. Reproduction in controlled environment
Prefer commands executable in pod terminal for K8s environments.

Stage 5: Fix plan

Only produce Stage 5 if either:

  • At least one hypothesis from Stage 3 has High probability, OR
  • The user has explicitly confirmed which hypothesis is correct.

If neither is true, output: "Stage 5 on hold — complete Stage 4 steps and share results to proceed."

  • Where: file(s) and function(s)
  • What: necessary change
  • Side effects: what else might be affected
  • Test: how to confirm the fix

Stage 6: Register in known-issues

If new bug with recurring potential, add to .claude/known-issues.md:

## [Category — title]

Description: behavior and root cause.
Context: where it tends to appear.
Solution: how to fix.
Detected in: [fix-bug]

Inform: *"⚠️ Recorded in known-issues: [title]"*

Output format

## Stage 1 — Known Issues
[Found with solution / Not found]

## Stage 2 — Bug Understanding
Expected: ...
Current: ...
Environment: ...
Frequency: ...

## Stage 3 — Hypotheses
[ordered list]

## Stage 4 — Diagnostic Plan
[numbered steps]

## Stage 5 — Fix Plan
[after diagnosis or high-confidence hypothesis / "On hold — see Stage 4"]

## Stage 6 — Known Issues Registration
[new record / "No registration needed"]

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.23%
按下载量换算23

Claude

29.64%
按下载量换算20

Cursor

18.22%
按下载量换算12

Gemini CLI

8.32%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/alvesrafa/dev-routine --skill fix-bug 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills