/adev:debugfrom adev
Performs context-aware systematic debugging by checking ADRs, specs, and architecture before investigating bugs, test failures, or unexpected behavior. Follows a six-phase process requiring reproduction before root cause analysis.
Ships in adev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Systematic debugging grounded in project context. Forked from Superpowers' systematic-debugging with context-awareness additions from the Agentic Development Framework.
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill debug
If the output is not __NONE__, incorporate it as additional standing instructions that apply to this skill's entire execution. Frame it as: "The following skill extension instructions apply to this invocation (source: installed domain extensions and/or project-level overrides)." If the output is __NONE__, continue normally.
--error <message>: the error message or symptom description--spec <path>: scope debugging to a specific spec's domain--issue <id>: the board issue tracking this bug — claimed in Phase 1.6 so a second agent cannot fix it in parallel--auto: non-interactive mode. No step in Phase 1 or Phase 6 blocks waiting for user input — every decision point that would otherwise prompt falls back to a deterministic default (see Phase 1's bounded reproduction limit and Phase 6 step 3 below). Intended for /adev:bugfix-loop's unattended invocations.--apply: apply the fix after diagnosis (prompts for confirmation)--no-infra: skip infrastructure preflight checks (user-only — the agent must never set this flag)NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you have not completed Phase 1 and Phase 2, you cannot propose fixes. Symptom fixes are failure.
Use for ANY technical issue:
Use this ESPECIALLY when:
Six phases. Complete each before proceeding to the next.
Establishes a deterministic reproduction before any fix is attempted.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-1-reproduce.mdfor the full instructions. Do not act on this section from the summary above.
Runs only when the failing area declares infra_requirements.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-1.5-infra-preflight.mdfor the full instructions. Do not act on this section from the summary above.
Claims the issue so concurrent sessions do not duplicate the fix.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-1.6-ownership-claim.mdfor the full instructions. Do not act on this section from the summary above.
Context-aware investigation across ADRs, specs, and orientation.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-2-investigate.mdfor the full instructions. Do not act on this section from the summary above.
Forms a falsifiable hypothesis from the investigation.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-3-hypothesize.mdfor the full instructions. Do not act on this section from the summary above.
Confirms or refutes the hypothesis before changing code.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-4-verify.mdfor the full instructions. Do not act on this section from the summary above.
Applies the minimal fix that the verified hypothesis implies.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-5-fix.mdfor the full instructions. Do not act on this section from the summary above.
Runs the gates and records the fix against its spec.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-6-validate-and-record.mdfor the full instructions. Do not act on this section from the summary above.
/goal-friendly)After Phase 6's confidence gate resolves, the final line of your chat output for this run MUST be the completion token — emit it verbatim:
ADEV-DEBUG: FIXEDADEV-DEBUG: PARKED--auto without reproducing the symptom (see Phase 1) → ADEV-DEBUG: UNREPRODUCIBLERules: emit it exactly once, as plain text (no code fence, no backticks, no trailing prose after it), regardless of the active persona or verbosity level. This is a transcript-provable marker so Claude Code's /goal evaluator and the sibling /adev:bugfix-loop skill can read completion from the transcript's last line (see .context-index/specs/cross-cutting/completion-tokens/). Subagents dispatched by this skill MUST NOT emit a completion-token-grammar line — only this top-level skill does.
Updates specs/ADRs whose assumptions the fix invalidated.
Conditional loading: Read
<ADEV_ROOT>/skills/debug/references/phases/phase-7-documentation-impact.mdfor the full instructions. Do not act on this section from the summary above.
If you catch yourself thinking any of these, STOP and return to Phase 1:
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write test after confirming fix works" | Untested fixes do not stick. Test first proves it. |
| "Multiple fixes at once saves time" | Cannot isolate what worked. Causes new bugs. |
| "I see the problem, let me fix it" | Seeing symptoms is not understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures means architectural problem. Question the pattern. |
| Phase | Key Activities | Success Criteria |
|---|---|---|
| 1. Reproduce | Read errors, reproduce consistently, check recent changes | Problem is confirmed and repeatable |
| 2. Investigate | Load ADRs, specs, orientation, constitution, repo map, playbooks | Affected area is understood in context |
| 3. Hypothesize | Find working examples, compare, form single hypothesis | Specific, evidence-grounded theory |
| 4. Verify | Test minimally, one variable at a time | Hypothesis confirmed or new one formed |
| 5. Fix | Create failing test, implement single fix, verify | Root cause resolved, tests pass |
| 6. Validate | Run quality gates, check spec compliance, consider ADR | Fix is complete, insight captured |
| 7. Doc Impact | Check if fix changes spec/charter/ADR assumptions | Documentation updated or confirmed unchanged |
Lifecycle event log:
currentState(projectRoot, specPath) from <ADEV_ROOT>/lib/lifecycle-state.mjs — read the projection (state.steps.review, state.steps.validate, state.interventions). Replaces filesystem inspection of .review.md / .validate.md artifacts.reportIntervention(projectRoot, specPath, { kind: "debug", note }) from <ADEV_ROOT>/lib/lifecycle-state.mjs — emits a debug_intervention event in Phase 5 step 4. Severity is stamped at write time.Issue board (Phase 6 step 4 update):
getIssueManager(manifest) from <ADEV_ROOT>/lib/issues/registry.mjs — returns the active adapter.IssueManagerInterface — init, create, update, close, list, get, listEpics, createEpic, updateEpic, addDependency, walkTree.Reality check (confidence scoring before closing):
formatConfidenceNote and verifyIssueCompleted from <ADEV_ROOT>/lib/reality-check.mjs.Manifest:
loadManifest(projectRoot) from <ADEV_ROOT>/lib/manifest.mjs — parses .context-index/manifest.yaml.references/phases/phase-1-reproduce.md (opens in a new tab)references/phases/phase-1.5-infra-preflight.md (opens in a new tab)references/phases/phase-1.6-ownership-claim.md (opens in a new tab)references/phases/phase-2-investigate.md (opens in a new tab)references/phases/phase-3-hypothesize.md (opens in a new tab)references/phases/phase-4-verify.md (opens in a new tab)references/phases/phase-5-fix.md (opens in a new tab)references/phases/phase-6-validate-and-record.md (opens in a new tab)references/phases/phase-7-documentation-impact.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
debugging, bug-fixing, root-cause-analysis, systematic-debug
npx claudepluginhub agentic-development/adev-plugin --plugin adev31 skills in this plugin
/assessadev:assessAssess codebase readiness for agentic development. Scans the codebase using static file inspection and outputs maturity scores across 8 structural dimensions (raw mode) or 11 dimensions (adev mode). Use when you want to evaluate how well-suited a codebase is for AI-assisted development, identify improvement areas, or track progress over time./brainstormadev:brainstormExplore a feature idea interactively and produce a Feature Charter. Validates against constitution and existing charters. Use before building any new feature or module, when the user mentions a new capability, or says 'let us build X'./bugfix-loopadev:bugfix-loopSelf-re-invoking, one-bug-per-turn loop that drains eligible P2/P3 bugs from the issue board unattended, using /adev:debug --auto for each attempt./buildadev:buildEnd-to-end build orchestrator. Chains review, plan, route, implement, and validate for one or more specs through a full lifecycle pipeline. Use when the user says 'build', 'end to end', 'full pipeline', 'build the spec', 'build the milestone', 'run the whole pipeline', or wants to execute multiple lifecycle steps in sequence without manual handoffs./codehealthadev:codehealthProactively scan source code for dead exports, orphan files, unused dependencies, stale code, and duplicate logic. Produces severity-tiered reports from repomap artifacts. Use when the user says 'check code health', 'find dead code', 'unused exports', 'stale files', 'orphan files', 'unused dependencies', or wants to identify cleanup opportunities before refactoring./deployadev:deployRun a deployment pipeline defined in .context-index/deploy.yaml. Executes shell, manual, verify, gate, and ci-trigger steps in order with failure recovery and rollback guidance. Use when the user says 'deploy', 'run deploy', 'push to production', 'publish', or wants to execute a structured deployment.Other plugins' skills for the same job