Command Palette

Search for a command to run...

Назад к скиллам
скилл № 27351

debug

Bug investigation and fix workflow. Triggers: 'debug', 'fix bug', 'investigate issue', 'something is broken', or /debug. Hotfix track for quick fixes…

БесплатноБез исполняемых скриптов
lvlup-swот 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:

  1. remit prepare starts 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.
  2. remit settle judges the fix claim, runs the integration suite at the integration tip, judges the critic claim on the thorough track, and walks the workflow to completed in 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 debug command
  • 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.

  1. Write the RCA document with references/rca-template.md. Save it to docs/rca/YYYY-MM-DD-<issue-slug>.md.
  2. 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.
  3. 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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить debug с