From claude-apd
Use when encountering any bug, test failure, build failure, or unexpected behavior during APD pipeline. MANDATORY before re-dispatching builder after verifier failure or critical review finding.
npx claudepluginhub zstevovich/claude-apd --plugin claude-apdThis skill is limited to using the following tools:
```
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
If you have not completed Phase 1, you CANNOT propose fixes. Guessing is not debugging. Violating the letter IS violating the spirit.
Use when:
Skip when:
digraph debug {
P1 [label="Phase 1\nRoot Cause Investigation" style=filled fillcolor="#ffcccc"];
P2 [label="Phase 2\nPattern Analysis"];
P3 [label="Phase 3\nHypothesis & Test"];
P4 [label="Phase 4\nFix with TDD"];
ESCALATE [label="ESCALATE\n3+ failed fixes\nAsk orchestrator/user" style=filled fillcolor="#ffffcc"];
P1 -> P2;
P2 -> P3;
P3 -> P4 [label="hypothesis confirmed"];
P3 -> P3 [label="hypothesis wrong\nnew hypothesis"];
P3 -> ESCALATE [label="3+ failures"];
P4 -> P1 [label="fix doesn't work"];
}
BEFORE attempting ANY fix:
git diff, recent commits/apd-tdd)| Excuse | Reality |
|---|---|
| "Quick fix for now, investigate later" | Later never comes. The quick fix masks the real bug. |
| "It's probably X, let me fix that" | "Probably" is a guess. Verify before fixing. |
| "Just try changing X and see" | Changing random things is not debugging. Trace the data flow. |
| "I don't fully understand but this might work" | If you don't understand, your fix is random. Phase 1 first. |
| "The error message is misleading" | Maybe. But read it fully before deciding it lies. |
| "It works on my test, ship it" | Did you reproduce the ORIGINAL failure? Run the ORIGINAL failing test. |
| Phase | Do | Don't |
|---|---|---|
| 1. Root Cause | Read errors, reproduce, trace | Guess, skip traces |
| 2. Pattern | Find working code, compare | Assume differences don't matter |
| 3. Hypothesis | One change, verify | Multiple changes at once |
| 4. Fix | Failing test first, single fix | Fix without test, bundle changes |
You're done when:
apd-tdd