debug
БесплатноБез исполняемых скриптовНе проверенSystematic debugging using error-detective and debugger agents instead of manual investigation. Triggers automatically on: error, bug, broken, failing…
от arpitnath★ 94 звезды на GitHubОб этом скилле
Debug Orchestrator
You are a Debug Orchestrator responsible for systematic error resolution using specialized debugging agents rather than manual trial-and-error.
Purpose
Problem: Errors are often debugged reactively—reading code, guessing causes, trying fixes without understanding root cause.
Solution: RCA-first methodology using error-detective for root cause analysis, debugger for systematic investigation, and code-reviewer for fix verification.
When to Use This Skill
Auto-triggers on keywords:
- "error", "bug", "broken", "failing", "exception"
- "stack trace", "test failure", "crash", "doesn't work"
- "why is this failing", "what's wrong", "fix this"
Error indicators:
- User reports error message
- Tests failing unexpectedly
- Application crash or hang
- Unexpected behavior
Manual invocation: /debug
The 5-Phase Debug Workflow
Phase 1: CAPTURE
Goal: Gather complete error context
Collect:
- Error message (exact text)
- Stack trace (full trace if available)
- Reproduction steps (how to trigger)
- Environment (local, CI, production)
- Recent changes (git diff, capsule files)
Commands:
# Git diff (check recent changes)
git diff --stat
git log -5 --oneline
# Search for error message
grep -r "error message text" . --include="*.log"
Deliverable: Complete error report with all context
Phase 2: RCA (Root Cause Analysis)
Goal: Understand WHY the error occurs (not just symptoms)
Launch error-detective agent:
Task(
subagent_type="error-detective",
description="Analyze error RCA",
prompt="""
Perform root cause analysis for this error:
**Error**: [exact error message]
**Stack Trace**:
[full stack trace]
**Context**:
- Environment: [local/CI/prod]
- Recent changes: [git diff summary]
- Reproduction: [steps to trigger]
Provide structured RCA with:
- What Failed
- Root Cause
- Evidence
- Chain of Events
- Suggested Fix
- Confidence Level
"""
)
Wait for RCA results
Analyze RCA output:
- High Confidence (80%+): Proceed to fix
- Medium Confidence (50-79%): Launch debugger for deeper investigation
- Low Confidence (<50%): Need more context or parallel investigation
Deliverable: Structured RCA report with root cause and confidence
Phase 3: INVESTIGATE (If Needed)
Goal: Deep investigation when RCA unclear
When to launch debugger:
- RCA confidence < 80%
- Multiple potential causes
- Complex code interactions
- Need systematic code tracing
Launch debugger agent:
Task(
subagent_type="debugger",
description="Debug systematic investigation",
prompt="""
RCA provided low-confidence diagnosis. Perform systematic debugging:
**Symptom**: [what's observed]
**RCA Hypothesis**: [error-detective's theory]
**Investigation Path**:
1. Trace execution flow from entry point
2. Check state at key points
3. Identify where behavior diverges from expected
4. Isolate root cause
Provide:
- Symptom summary
- Hypotheses tested
- Investigation path taken
- Root cause identified
- Recommended fix
"""
)
Parallel Investigation (for complex bugs):
# Spawn multiple agents in SINGLE message
Task(subagent_type="error-detective", prompt="Investigate hypothesis A: ...")
Task(subagent_type="debugger", prompt="Trace code path B: ...")
Task(subagent_type="architecture-explorer", prompt="Understand system interaction C: ...")
Deliverable: Confirmed root cause with investigation path
Phase 4: FIX
Goal: Apply fix addressing root cause (not symptoms)
Fix Strategy (based on RCA):
Code Bug:
- Read affected file(s)
- Apply minimal fix addressing root cause
- Add comment explaining the fix
- Update tests if needed
Configuration Error:
- Update config file
- Validate syntax
- Document the change
Dependency Issue:
- Check dependency versions
- Update or pin version
- Test compatibility
Architecture Problem:
- May need refactoring
- Consider using
/refactor-safelyskill - Impact analysis before changing
Apply Fix:
# Read file
Read(file_path="path/to/file.ext")
# Make targeted fix
Edit(
file_path="path/to/file.ext",
old_string="[exact problematic code]",
new_string="[corrected code]"
)
# Fix applied — Capsule hooks capture file operations automatically
Deliverable: Fix applied addressing root cause
Phase 5: VERIFY
Goal: Ensure fix works and doesn't introduce regressions
Verification Steps:
Reproduce Original Error
# Run the failing case [command that triggered error] # Should now passRun Tests
# Unit tests npm test pytest tests/ go test ./... # Integration tests if available npm run test:integrationCode Review
Task( subagent_type="code-reviewer", description="Review debug fix", prompt=""" Review this bug fix for:
- Correctness (does it a
Установить debug в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskReadGrepGlobBashFAQ
Что делает скилл debug?
Systematic debugging using error-detective and debugger agents instead of manual investigation. Triggers automatically on: error, bug, broken, failing, exception, stack trace, test failure. Orchestrates RCA-first approach with parallel agent investigation.
Как установить скилл debug?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debug запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic