spec-debug
诊断 bug、报错、回归和失败测试:复现、给出有证据的因果链、最小修复与回归验证。
ASCII 链路图
text
Codebase -> Spec -> Plan -> Tasks -> Code -> Review -> Knowledge
|
v
spec-debug
entry: spec-debug
type: workflow command链路图表示该技能在研发阶段上的位置;阶段之间不是必经顺序,按当前任务直接进入最匹配的入口即可。
基本信息
| 字段 | 内容 |
|---|---|
| Skill | spec-debug |
| 类型 | workflow command |
| 研发链路位置 | Code |
| 当前入口 | spec-debug |
| 兼容别名 | /spec:debug、$spec-debug |
| 宿主投递 | Claude Code: command · Codex: skill · Cursor: skill · Kiro: skill · Qoder: command · OpenCode: command · ZCode: skill · Pi: skill |
| Source | skills/spec-debug/SKILL.md |
源码描述(原文)
Diagnose bugs, errors, regressions, and failing tests. Use when asked to debug or fix failing or slow behavior, including a stalled investigation. For settled plans or feature implementation, use spec-work.
Source 契约摘要
以下各条摘自上游 SKILL.md 的契约摘要小节(Workflow Contract Summary 或 Contract Summary),过长时截断。
- 输入 — reproducible failures, errors, regressions, stack traces, issues, or clearly abnormal behavior.
- 输出 — an evidence-backed causal chain, minimal repair, regression verification, and structured handoff; diagnosis only when repair is unauthorized.
- 硬出口 — no confirmed root-cause or fix claim without reproduction or replacement evidence, a complete causal chain, resolved target repo/source owner/dirty overlap, and passing required verification.
- 权威 — runtime reproduction, source, tests, and logs provide facts; the LLM judges causal sufficiency. Diagnosis, local mutation, commit, and landing have separate authorization.
- 消费者 — the user,
spec-work,spec-code-review, issue/PR owners, and subsequent knowledge capture. - 说明 — <bug_description> #<invocation arguments supplied by the current host> </bug_description>
何时使用
- 有 stack trace、测试失败、异常行为或 bug report。
- 调查卡住,或已有修复尝试失败。
- 需要通过复现和验证证明修复。
边界
- 没有复现或替代证据、完整因果链和通过的验证,不能声称已定位或已修复。
- 只要求诊断时不修改代码。
源码校准
本页由脚本从上游
skills/spec-debug/SKILL.md生成;入口、兼容别名与宿主投递以src/cli/contracts/dual-host-governance/skills-governance.json为准。
