/dev-process-toolkit:debug <failing test, error message, or symptom>from dev-process-toolkit
Structured debugging protocol for failed gate checks, failing tests, unexpected behavior, or reported bugs. Guides root cause analysis, pattern analysis, hypothesis testing, and fix implementation.
Ships in dev-process-toolkit. 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.
Investigate and fix: $ARGUMENTS
Before writing any fixes:
git diff HEAD or git log --oneline -5 to see what changed before this started failing.Output a one-sentence hypothesis: "This fails because X in Y."
Before attempting any fix, ask:
Isolated failure or symptom?
Is the test itself correct?
Is there environment pollution?
Is there a timing dependency?
sleep() or wall-clock time.sleep(N) with condition-based waiting: poll for the condition with a timeout.Once the root cause is confirmed:
When $ARGUMENTS is a bug someone reported (a symptom, a ticket, a bug FR) rather than a red test or gate, the bug is fixed only when a test catches it: RED on the code before the fix, at the assertion that encodes the bug, and GREEN on the fix. A test that passes today proves nothing about the bug.
kind: bug) — Phases 1–3 find the root cause and leave no fix behind: revert Phase 3's edits one by one (git checkout -- <file> only for a file that was clean before Phase 3, never the whole tree) and write the cause under the FR's ### Root cause. The fix itself goes through /implement <FR-id>, whose /tdd writes a test for every bug case and proves it RED before the fix. Do not fix it in Phase 4 first.<dir> is a fresh directory outside the working tree from mktemp -d; run git worktree add --detach <dir> HEAD, and stop if add fails. In <dir>, copy in every path git status --porcelain --untracked-files=all lists that is neither the fix nor the test: the other uncommitted work, deletions and renames applied (a deleted path is deleted there too, and so is the old name of a renamed one), parent directories created. Install or link the dependencies and regenerate whatever those paths feed, then copy the test in and run it: RED at its assertion. Then copy in the fix's paths, regenerate again, and run the test: GREEN. The other uncommitted paths copied in are named in the change description. Whatever the outcome, finish with git worktree remove --force <dir>. In the proof line below, this path's <pre-fix> is HEAD plus the other uncommitted work and its <fix> is the working tree. For a committed fix, <pre-fix> is the commit before the fix: <fix>^ when the fix is one commit, a squash-merged one included, the merge commit's first parent for a merged branch, and git merge-base origin/<base> <fix> only when the whole branch is the fix. Work in a throwaway worktree, git worktree add --detach <dir> <fix>, with the test copied in when <fix> does not hold it: for each non-test path in git diff --name-status --no-renames <pre-fix> <fix>, M or D → git checkout <pre-fix> -- <path>, A → git rm -q <path>; regenerate whatever those paths feed. Run the test: RED at its assertion. git reset --hard HEAD brings the fix back; regenerate again, so no build output still holds the code before the fix, and run the test: GREEN. Then git worktree remove --force <dir>. GREEN on the rolled-back code means the test catches nothing: rewrite it.Put one line per bug case in the change description: regression: <test> red at <assertion> on <pre-fix> → green on <fix>.
If you have attempted 3 different fixes and the test still fails:
Stop. Question the architecture.
Don't try fix #4. Instead:
Continuing past 3 failed fixes without changing your mental model burns time and obscures the root cause.
sleep() durations to fix flaky tests — find the condition and wait for itWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nesquikm/dev-process-toolkit --plugin dev-process-toolkit29 skills in this plugin
/best-practicesManage the project best-practices manifest at `specs/best-practices.yaml`. Add, edit, delete, or list entries cataloguing house best-practices docs with scope globs and topics that feed guidance retrieval into planning and implementation./brainstormSocratic design session for greenfield features with open solution spaces. Clarifies goals one question at a time, proposes 2-3 approaches with tradeoffs, gets design approval, then feeds into /spec-write./deliverFull delivery pipeline orchestrator — takes a feature request from idea through specs to shipped, merged milestones by chaining the toolkit's phase skills end-to-end./depsManage the sibling-package dependency manifest at `specs/deps.yaml`. Add, edit, delete, list, or sync entries that feed topic-aware retrieval into /brainstorm and /spec-write via the deps-researcher fork./deps-researchInternal research fork — invoked exclusively by /brainstorm and /spec-write via context:fork pairing with the deps-researcher subagent. Returns topic-aware sibling-package retrieval as a ≤25-line block. Do not invoke directly./docsGenerate or update project docs (requires user_facing_mode or packages_mode true in the `docs` key of specs/settings.yaml, legacy CLAUDE.md'sOther plugins' skills for the same job