Diagnostic and repair workflow that analyzes error logs, traces root causes, implements fixes, and verifies with regression tests. Use when fixing bugs, debugging runtime errors or exceptions, investigating test failures or crashes, or submitting bug-fix pull requests. Activated by commands: /unattended, /assess, /diagnose, /reproduce, /fix, /test, /review, /document, /pr, /feedback, /start.
100
Quality
100%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
/unattended, /diagnose, /fix), read the matching file in commands/{command}.md and follow it.skills/controller.md to load the workflow controller:
/assess phase/start to present available phasesEach phase skill (e.g. skills/diagnose.md) follows this pattern:
# Artifact directory setup and example commands during investigation
mkdir -p .artifacts/bugfix/421
rg "NullPointerException" --type java -l
git log --oneline -10 -- src/auth/AuthService.java
git blame src/auth/AuthService.java | head -100To execute the diagnose phase:
mkdir -p .artifacts/bugfix/421rg "NullPointerException" --type java -lgit blame <file> and git log --oneline -10 -- <file>.artifacts/bugfix/421/root-cause.md using this structure:# Root Cause — Issue #421
## Root Cause Summary
`AuthService.java:87` calls `session.getUserId()` before null-check.
## Evidence
- Stack trace: `AuthService.authenticate():87`
- `git blame` shows null-check removed in commit `a1b2c3d`
## Affected Components
- `AuthService.java:87` — missing null guard
## Impact Assessment
- Severity: High
- Blast radius: All unauthenticated login attempts
## Recommended Fix
Add null-check before `getUserId()` call.
## Confidence: High (95%)See skills/diagnose.md for the full process and additional fields.
User: "Fix issue #421 — NullPointerException on login"
/assess → reads bug report, proposes plan (inline; no artifact)
/reproduce → confirms the failure with a test
→ writes .artifacts/bugfix/421/reproduction.md
/diagnose → traces root cause to AuthService.java:87
→ writes .artifacts/bugfix/421/root-cause.md
/fix → adds null-check, minimal diff
/test → regression test passes ✓
→ if tests fail → return to /fix
/pr → pushes branch, creates draft PRSystematic bug resolution through these phases:
/start) — Present available phases and help choose where to begin/assess) — Read the bug report, explain understanding, propose a plan/reproduce) — Confirm and document the bug/diagnose) — Identify root cause and impact/fix) — Implement the solution/test) — Verify the fix, create regression tests/review) — (Optional) Critically evaluate fix and tests/document) — Release notes and documentation/pr) — Submit a pull request/feedback) — Address PR review commentsEach phase must meet its exit criteria before the next phase begins. If a later phase reveals problems, loop back:
/assess → proceed when the bug report is understood and a plan is proposed/reproduce → proceed when the bug is reliably triggered with documented steps/diagnose → proceed when a root cause is confirmed with supporting evidence (stack trace, git blame, code path)/fix → proceed when the implementation addresses the confirmed root cause/test → proceed when all new and existing tests pass; if tests fail, return to /fix/review → if the fix is inadequate or edge cases are missed, return to /diagnose or /fixFor unattended execution (CI/CD bots, automated systems), use
skills/unattended.md instead of the interactive controller. It chains
diagnose → fix → test → review with self-correction loops and runs to
completion without human input. See /unattended or read the skill directly.
The workflow controller lives at skills/controller.md (interactive) or
skills/unattended.md (unattended).
Phase skills are at skills/{name}.md.
For principles, hard limits, safety, quality, and escalation rules, see guidelines.md.
b213ece
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.