skills/workflow-debug/SKILL.md
Systematic error debugging with analysis, solution discovery, and verification
npx skillsauth add devattom/.claude debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
<quick_start> Debug an error (interactive):
/debug login page crashes on submit
Auto mode (fully automatic, use recommended solutions):
/debug -a API returning 500 on POST
What it does:
Key principle: Tests passing ≠ fix working. Always execute the actual code path.
Log Technique: When the error can't be reproduced, strategic debug logs are added. The user runs the app and shares the console output for analysis. </quick_start>
<methodology> <core_principles> **Battle-Tested Principles:**<verification_pyramid> Verification Pyramid:
┌─────────────┐
│ Manual │ ← User confirms
└──────┬──────┘
┌─────────┴─────────┐
│ Runtime Execution │ ← CRITICAL: Real execution
└─────────┬─────────┘
┌───────────┴───────────┐
│ Automated Checks │ ← Build, Types, Lint, Tests
└───────────┬───────────┘
┌─────────────┴─────────────┐
│ Static Analysis │ ← Syntax, Imports
└───────────────────────────┘
Key Insight: Tests passing ≠ fix working. ALWAYS execute the actual code path. </verification_pyramid> </methodology>
<parameters> **Flags:**| Flag | Name | Description |
|------|------|-------------|
| -a, --auto | Auto mode | Full automatic mode - don't ask the user, use recommended solutions |
Arguments:
{error_context} - Description of the error or context about what's failing
</parameters>
<state_variables> Persist throughout all steps:
| Variable | Type | Description |
|----------|------|-------------|
| {error_context} | string | User's description of the error |
| {auto_mode} | boolean | Skip confirmations, use recommended options |
| {error_analysis} | object | Detailed analysis from step 1 |
| {debug_logs} | list | Debug logs added for cleanup (file, line, prefix) |
| {solutions} | list | Potential solutions found in step 2 |
| {selected_solution} | object | User's chosen solution from step 3 |
| {files_modified} | list | Files changed during the fix |
| {verification_result} | object | Results from verification step |
</state_variables>
<entry_point>
Load steps/step-00-init.md
</entry_point>
<step_files>
| Step | File | Description |
|------|------|-------------|
| 0 | step-00-init.md | Parse flags, setup state |
| 1 | step-01-analyze.md | Reproduce error, form hypotheses, identify root cause |
| 1b | step-01b-log-instrumentation.md | Optional: Add debug logs, user runs & shares output |
| 2 | step-02-find-solutions.md | Research 2-3+ solutions with pros/cons |
| 3 | step-03-propose.md | Present solutions for user selection |
| 4 | step-04-fix.md | Implement with strategic logging |
| 5 | step-05-verify.md | Multi-layer verification (Static → Build → Runtime → User) |
</step_files>
<success_criteria>
development
Use when you want to audit a project wiki for quality issues — stale version claims, contradictions between pages, orphan pages, broken wiki links, missing cross-references, or misalignment between wiki content and the actual codebase state.
development
Structured adversarial debate between AI councillors using Agent Teams to evaluate ideas, plans, or decisions. ALWAYS use when the user says "council", "debate this", "evaluate this idea", "challenge my plan", "stress-test", "devil's advocate", "multiple perspectives", "évaluer cette idée", "débattre", "challenger mon plan", "tester cette décision", or when the user wants rigorous multi-perspective analysis of a proposal, architecture decision, or strategic choice. Each councillor (visionary, critic, pragmatist, innovator, ethicist, domain expert) represents a distinct perspective and they challenge each other through cross-examination and peer exchange, producing a nuanced verdict (PROCEED / PROCEED WITH CONDITIONS / RECONSIDER / DO NOT PROCEED). Do NOT use for divergent brainstorming or idea generation — use workflow-brainstorm instead.
testing
Automated CI/CD pipeline fixer - watches CI, fixes errors locally, commits, and loops until green. Use when CI is failing and you want to automatically fix and verify changes.
development
Architectural refactoring - analyze codebase structure, detect architectural smells (god modules, circular deps, coupling), propose restructuring plan, safely move/rename files with git history, update imports, simplify architecture. Use when asked to "restructure", "reorganize", "simplify architecture", "move files", "split module", "fix structure", "reduce coupling", "reorganize folders", "clean up architecture", "refactor structure", "restructurer", "reorganiser", "simplifier".