debug
Bug investigation and fix workflow. Triggers: 'debug', 'fix bug', 'investigate issue', 'something is broken', or /debug. Hotfix track for quick fixes…
от lvlup-sw★ 19 звёзд на GitHub
Установить debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Debug Workflow Skill
Overview
Investigation-first workflow for bugs and regressions. It has two tracks: hotfix (fast, minimal ceremony) and thorough (full root cause analysis).
The triage, the investigation, the root cause analysis and the fix design are harness work before the first Remit call. The skill then writes a typed plan whose workflow block records the track and the facts of those phases, and it makes two Remit calls:
remit preparestarts the workflow from the approved plan. Its bootstrap records the triage, investigation and design phases, and the workflow starts at the implement step of the track.remit settlejudges the fix claim, runs the integration suite at the integration tip, judges the critic claim on the thorough track, and walks the workflow tocompletedin one commit.
There is no phase verb. If the investigation ends before a fix (no fix is necessary, or the fix needs a redesign), no workflow starts, so there is nothing to cancel.
Triggers
Activate this skill when:
- User runs
debugcommand - User reports a bug or regression
- User needs to investigate an error
- User says "fix this bug" or similar
Disambiguation: use debug when something is broken (error, crash, wrong behavior). Use refactor when the code works but needs structural improvement.
| Signal | Use debug | Use refactor |
|---|---|---|
| Something is broken or wrong | Yes | No |
| Code works but is messy or complex | No | Yes |
| Users report a bug or regression | Yes | No |
| Performance degradation | Start with debug (investigate) | Escalate to refactor if structural |
| Error in production logs | Yes | No |
Step 1: Triage and select the track
Use references/triage-questions.md to collect the symptom, the reproduction steps, the urgency and the affected area. Then select the track with this rule:
| Urgency | Root cause known | Track |
|---|---|---|
critical or high |
yes | hotfix |
critical or high |
no | thorough |
medium or low |
either | thorough |
The user can force a track with --hotfix or --thorough. --escalate hands the problem to ideate and starts no debug workflow.
Track comparison
| Aspect | Hotfix | Thorough |
|---|---|---|
| Urgency | P0 (production down) | P1 or P2 |
| Investigation | 15 minutes, time-boxed | No time limit |
| RCA document | No | Yes (docs/rca/) |
| Review | Integration suite only | Integration suite and one critic review |
| Synthesis | synthesisPolicy never (direct commit) or always (PR) |
Always a PR (synthesis boundary) |
| Stage path after prepare | hotfix-implement, hotfix-validate, then completed or synthesize |
debug-implement, debug-validate, debug-review, synthesize |
Step 2: Investigate
Use references/investigation-checklist.md.
Hotfix time box. Note the start time of the investigation. Check the elapsed time after each major finding. At 15 minutes, stop and answer the checkpoint questions of the checklist. If the root cause is not clear, tell the user and switch to the thorough track. Keep every finding.
Step 3: Root cause and fix design (thorough track only)
Before you select a fix approach, surface a Constraints section anchored to the invariants that apply to the fix. The selection rules are in @skills/ideate/references/constraint-anchoring.md. Load .remit/invariants.md (the cost-of-load: always-load entries). When no catalog is registered under .remit.yml: invariants.catalogs, surface no Constraints section. The hotfix track skips this step.
- Write the RCA document with
references/rca-template.md. Save it todocs/rca/YYYY-MM-DD-<issue-slug>.md. - Write a short fix design (two or three paragraphs, not a full design document). Save it beside the RCA, for example
docs/rca/YYYY-MM-DD-<issue-slug>-fix.md. - Commit both files on the integration branch.
For the details of each step, see references/thorough-track.md. For the hotfix track, see references/hotfix-track.md.
Step 4: Write the typed plan
Write the design record at docs/specs/YYYY-MM-DD-debug-<issue-slug>.md in the format of @skills/plan/references/spec-template.md, at thin depth. It holds one DR-N requirement (the correct behavior), one fix task, and the workflow block:
| Track | workflow block |
|---|---|
| hotfix | { "track": "hotfix", "symptom": "<symptom>", "synthesisPolicy": "never" } (or "always" for a PR) |
| thorough | { "track": "thorough", "symptom": "<symptom>", "rcaPath": "docs/rca/<rca>.md", "fixDesignPath": "docs/rca/<fix>.md" } |
Prepare refuses a thorough plan with no rcaPath or fixDesignPath, and the synthesis policy on-request. Show the file to the user and ask for approval. Keep the bare lowercase SHA-256 hex digest of the approved bytes.
Step 5: Prepare
Review the exact verification commands and options with the operator. If the pr
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/hotfix-track.md
- references/investigation-checklist.md
- references/rca-template.md
- references/thorough-track.md
- references/triage-questions.md
- references/troubleshooting.md
FAQ
Что делает скилл debug?
Bug investigation and fix workflow. Triggers: 'debug', 'fix bug', 'investigate issue', 'something is broken', or /debug. Hotfix track for quick fixes, thorough track for root cause analysis. The skill selects the track, investigates and writes the typed plan, then makes two Remit calls: remit prepare and remit settle. Do NOT use for feature development or refactoring. Do NOT escalate to /ideate unless the fix requires architectural redesign.
Как установить скилл debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…