/spwf:debug-recoveryfrom spwf
Phase 3/4 atomic — Diagnose a failing test or broken build, identify the root cause, apply a minimal fix, re-run to confirm recovery. Reports clearly if unable to resolve. Use after run-tests or build reports a failure. Called as a step by /spwf:build (on test failure), which is why Claude may invoke it. Do not start it unprompted: run it standalone only when the user asks.
Ships in spwf. 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.
None: SKILL.md is the whole skill.
Diagnose the failure, fix the root cause with a minimal change, and confirm recovery. If unable to resolve, report clearly and stop.
Read the failure output. If it was produced by run-tests or build, the error should be in the conversation. If not:
{test command} 2>&1 | head -100
Capture:
Read:
Classify the failure:
| Type | Symptom | Fix target |
|---|---|---|
| Implementation bug | Code does wrong thing | Implementation file |
| Test bug | Test has wrong expectation | Test file |
| Missing dependency | Import or config missing | Setup/config |
| Environment issue | Works locally, fails in CI | Build/config |
| Type or schema mismatch | Wrong data shape | Either |
State the root cause explicitly before making any change.
Fix only what is broken. Do not:
If the fix requires changing more than 10 lines, pause and ask the user — a large fix may indicate a deeper design issue.
{test command}
If the failure is resolved:
✓ Recovery confirmed
Root cause: {one-sentence description}
Fix applied: {brief description of change}
Files changed: {list}
Tests now passing.
If a new failure appears, repeat from Step 1 for the new failure.
If after two attempts the failure is not resolved:
✗ Unable to resolve
Root cause identified: {description}
Attempted fixes:
1. {fix 1} — {outcome}
2. {fix 2} — {outcome}
Blocked on: {specific blocker}
Options:
1. {suggested path forward}
2. {alternative}
Stop and wait for guidance.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub simon-potter/spwf --plugin spwf38 skills in this plugin
/address-reviewPhase 6.5 — Address Review. Turn review feedback into action. Sources feedback from either a local report file (e.g. {branch}-review.md from /spwf:pr-review or {branch}-self-review.md from /spwf:simplify) or fetched human comments on an open PR/MR. For each item runs READ → VERIFY → EVALUATE → implement-or-push-back, in priority order (blocking → important → nit). Forbids performative agreement ("you're absolutely right"). Use after pr-review, or whenever a reviewer leaves comments./agent-optimiseCross-cutting — Audit both the project .claude/ and personal ~/.claude/ for quality issues. Covers CLAUDE.md scope and length, agent descriptions, skill frontmatter, and settings.json conflicts. Always audits both scopes. Produces a prioritised P1/P2/P3 fix list./approve-planPhase 2 — Approve plan. Reviews the task list from spec for quality (atomicity, testability, clarity), then applies four adversarial lenses (Skeptic, Architect, Minimalist, Security) as advisory input for the human reviewer. Quality issues are blocking; adversarial findings are advisory. Security lens identifies tasks touching auth, billing, user input, or secrets so the builder has explicit awareness before writing those tasks. Presents everything for explicit human go/no-go before building starts./branch-rescueRecovery skill — moves commits that landed on the base branch onto a proper feature branch and resets local base, without touching origin. Resolves the active OpenSpec change, detects the pre-spec base commit (subject-line grep with manual-confirm fallback), performs three local-only safe git operations, and surfaces the force-push command for the user to run manually. Run standalone; pr-create's rescue offer runs the same procedure inline (_shared/branch-management.md §4), because this skill is user-only./briefPhase 1.5 — Explain a planned change before it is built. Runs between spec and approve-plan, so a mismatch costs a conversation rather than a change. Five sections, expanding then summarising — what will be built, why this way, the choices you didn't make, what it touches, and a short summary. Never blocks: it prints, offers one skippable prompt, and returns. Calibrated via .spwf/learner.md. Companion to recap and understand, which teach after the fact; this teaches before. Runs on changes, not bug fixes./buildPhase 3 orchestrator — Full Red-Green-Refactor cycle. For each pending task: invokes write-tests (Red: write failing tests), then opsx:apply (Green: implement via OpenSpec), then run-tests (Verify: confirm green before moving on). Loops until all tasks complete. After all tasks complete, runs opsx:verify (spec sign-off), then recommends simplify (Refactor).