Debug
Reproduce and fix (or diagnose at file:line, no edits) an observed failure (wrong/broken/throwing, slowness, flaky/intermittent in UI, logs, production…
от melodic-software★ 34 звезды на GitHub
Установить Debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Debug
Arguments. [diagnose] [--unattended] [bug description or observation]. e.g., /debugging:debug photo uploads over 20 MB fail with a 502, or /debugging:debug diagnose photo uploads over 20 MB fail with a 502
Variables
Arguments: $ARGUMENTS
--unattended, anywhere in the arguments, is not part of the observation: it is the caller declaring that nobody is
present, which governs the /debug offer under "Routing", the access requests of the Phase 1 surface pass, and the
tracker drafts of Phase 6, which are reported and never filed. Take it out before reading the rest. It is the one flag: any other -- token is part of the observation, such as a CLI option
that fails.
| Action | Selected by | What runs |
|---|---|---|
debug (bare) |
no action word | All six phases: the full loop ends in a fix with its regression test |
diagnose |
diagnose as the first word, or a request in plain words for the cause only ("diagnose this", "just tell me why", "don't fix it") |
See Action: diagnose |
Any first word other than diagnose is part of the observation.
Action: diagnose
A diagnosis detects and isolates the fault; it does not correct it. Run Phases 1 to 4, then stop once one Phase 3 row is confirmed. The report gives the cause at file:line, the loop command, and the loop output that confirms the row. Before reporting, remove every Phase 4 probe (the first group of Phase 6, "Remove what the run added") and change no other code: no fix, no regression test. Phase 5 and the rest of Phase 6 do not run, except that the report carries any lessons about driving the app (Phase 6, "Leave a record"). The loop command stays in the report so the fix that follows can reuse it: a loop file this run wrote is kept only in a directory named as scratch and the report names its path, so no test is left in the project's test tree.
Purpose
This skill turns a reported failure into a command that answers one question, "is the bug still here?", and then uses that command as the judge for every later step. The six phases below each end in a gate. How well Phase 1 goes decides most of the outcome: with a quick, repeatable check that an agent can run unattended, Phases 3 to 5 become routine work; without one, every hypothesis is a guess. The usual way a debugging session goes wrong is starting on causes before any such check exists. Phase 1 and Phase 6 (the check, and the cleanup that removes what the run added) carry the weight; the three phases between them follow from the check.
Scope boundary: this skill starts from an observed failure: UI behaving wrong, a log line that should not appear, a performance regression, a screenshot of a bug, a production symptom. Its first job is to construct a reproduction loop. If the symptom is already a failing test with no reproduction gap, you do not need this skill. Cycle that test directly (reproduce → fix → retest → regression). What /debugging:debug adds over a bare fix loop is a critical edge case: if no correct test seam exists, that absence is the finding, filed as an architectural recommendation, not a forced test in the wrong place.
Running example. The phases below follow one case: a photo larger than 20 MB uploaded through the mobile API gets a 502 from the media service, while smaller photos upload normally.
Adapting to your environment (graceful degrade)
This skill is self-contained. Where a phase below names an adjacent capability, such as a test-investigation routine, a TDD helper, a headless-browser driver, an architecture-audit agent, an issue tracker, or an outcome-verifier, treat it as optional: if your environment provides that capability (a skill, plugin, agent, or tool), invoke it; otherwise proceed with the inline guidance given here, which stands on its own. Never block a phase because an adjacent tool is absent. Consumer-specific conventions (naming, module layout, banned APIs, work-notes location) come from your own project's CLAUDE.md and tool config. Read them; this skill does not assume them.
Secrets stay out of what you show
Anything this skill puts in a reply, a work note or a commit is a place a secret can leak. The rule for each kind of text:
| Text | Rule |
|---|---|
| A loop script or harness you commit | It reads tokens and passwords from environment variables, so the file names the variable and never holds the value. |
| A command line you show | Same: the variable name appears, the value does not. |
| A capture (HAR file, log dump, replayed trace) | Assume it holds auth headers and session tokens. Show an excerpt of the lines where the failure appears, never the whole file. |
| Any secret still left in what you show | Replace it with <REDACTED> before the text leaves your hands. |
If the redacted excerpt is too thin to diagnose from, ask the user how to proceed; do not widen the excerpt on your own.
Emit checklist
For any diagnostic run (Phases 1-6), track phase com
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- context/when-the-loop-stalls.md
- reference/native-debug.md
- scripts/hitl-loop.template.sh
- templates/checklist.md
- templates/post-mortem-view.html
FAQ
Что делает скилл Debug?
Reproduce and fix (or diagnose at file:line, no edits) an observed failure (wrong/broken/throwing, slowness, flaky/intermittent in UI, logs, production, screenshot). Use when 'debug this', 'why is X broken', 'diagnose this'. Not for failing tests (/testing:fix-failing) or captured profile/trace/snapshot with no repro (/debugging:analyze-profile).
Как установить скилл Debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Debug запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…