debugging
БесплатноБез исполняемых скриптовНе проверенSystematic debugging that identifies root causes rather than treating symptoms. Use when a bug, failing test, or unexpected behavior has no obvious cause, or…
Об этом скилле
Debugging
Quickstart
- Capture exact repro, scope, and recent changes
- Isolate components/files; trace path to failure
- Research exact error; check official docs
- Compare failing vs working patterns; form a testable hypothesis
- Verify with minimal test; apply minimal fix across all instances; validate
When to Use This Skill
Use debugging when:
- A bug has no obvious cause or has been "fixed" before but returned
- Error messages are unclear or misleading
- Multiple attempted fixes have failed
- The issue might affect multiple locations in the codebase
- Understanding the root cause is critical for proper resolution
Skip this skill for:
- Simple syntax errors with obvious fixes
- Trivial typos or missing imports
- Well-understood, isolated bugs with clear solutions
Core Anti-Patterns to Avoid
Based on documented failures in AI debugging, explicitly avoid:
- Circular Reasoning: Never propose the same fix twice without learning why it failed
- Premature Victory: Always verify fixes were actually implemented and work
- Pattern Amnesia: Maintain awareness of established code patterns throughout the session
- Symptom Chasing: Resist fixing error messages without understanding root causes
- Implementation Before Understanding: Never jump to code changes before examining existing patterns
Tool Decision Tree
- Know exact text/symbol? → Grep
- Need conceptual location or a broad sweep? → Explore agent
- Need full file context? → Read
- Unfamiliar error/behavior? → Context7, then WebSearch / Parallel Search
- Complex multi-hypothesis analysis? → reference/root-cause-framework.md templates
Decision Framework
IF same fix proposed twice → Stop; work through the sequential thinking templates (reference/root-cause-framework.md) IF error is unclear → Research via WebSearch → Parallel Search; verify with docs IF area is unfamiliar → Explore with the Explore agent or Grep; don't guess IF fix seems too easy → Confirm it addresses root cause (not symptom) IF multiple hypotheses exist → Evaluate explicitly (evidence for/against) IF similar code works → Find and diff via Grep and Read IF declaring success → Show changed lines; test fail-before/pass-after IF fix spans multiple files → Search and patch all occurrences IF library behavior assumed → Check Context7 (resolve-library-id → query-docs)
Quality Checks Before Finishing
Before declaring a bug fixed, verify:
- Root cause identified and documented
- Fix addresses cause, not symptom
- All occurrences fixed (searched project-wide)
- Follows existing code patterns
- Original symptom eliminated
- No regressions introduced
- Tests/logs verify under relevant conditions
- Docs/tests updated (comments, docs, regression tests)
References
reference/root-cause-framework.mdreference/antipatterns.md
Установить debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл debugging?
Systematic debugging that identifies root causes rather than treating symptoms. Use when a bug, failing test, or unexpected behavior has no obvious cause, or a first fix attempt didn't hold. Uses structured multi-hypothesis reasoning for complex analysis, web search for research, and structured investigation to avoid circular reasoning and whack-a-mole fixes.
Как установить скилл debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic