/dev-workflow:systematic-debuggingfrom dev-workflow
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Ships in dev-workflow. 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.
Core principle: find the root cause before attempting a fix. A fix that addresses the symptom leaves the cause in place to resurface elsewhere.
Complete each phase before moving to the next. The phases matter most under the conditions that make skipping them tempting — time pressure, an obvious-looking one-line fix, or a previous fix that didn't hold. Systematic investigation is faster than guess-and-check thrashing, not slower.
Read the error carefully. Full stack trace, line numbers, file paths, error codes. The exact solution is often already in the message.
Reproduce consistently. What are the exact steps? Does it happen every time? If it isn't reproducible, gather more data rather than guessing.
Check recent changes. Git diff, recent commits, new dependencies, config changes, environment differences.
Gather evidence across component boundaries. When the system has multiple components (CI → build → signing, API → service → database), add diagnostic instrumentation at each boundary before proposing anything: log what enters, log what exits, verify config propagation. Run once to find where it breaks, then investigate that component.
# Layer 1: Workflow
echo "=== Secrets available in workflow: ==="
echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}"
# Layer 2: Build script
echo "=== Env vars in build script: ==="
env | grep IDENTITY || echo "IDENTITY not in environment"
# Layer 3: Signing script
echo "=== Keychain state: ==="
security list-keychains
security find-identity -v
# Layer 4: Actual signing
codesign --sign "$IDENTITY" --verbose=4 "$APP"
This tells you which layer fails (secrets → workflow ✓, workflow → build ✗).
Trace the data flow backward. Where does the bad value originate? What
called this with it? Keep tracing up to the source and fix there. See
root-cause-tracing.md in this directory for the full technique.
Find similar working code in the same codebase and list every difference between it and the broken path, however small — "that can't matter" is where root causes hide. If you are implementing against a reference implementation, read it completely rather than skimming; partial understanding of a pattern reliably produces bugs. Check what the code depends on: other components, settings, environment, and the assumptions it makes about each.
State one hypothesis explicitly: "I think X is the root cause because Y." Test it with the smallest possible change, one variable at a time. If it doesn't hold, form a new hypothesis rather than stacking another fix on top.
When you don't understand something, say so and investigate it. Don't paper over the gap.
dev-workflow:test-driven-development.dev-workflow:verification-before-completion before claiming success.Count your attempts. Under three, return to Phase 1 and re-analyze with what you just learned.
At three or more failed fixes, stop fixing and question the architecture. The signal is that each fix reveals a new problem somewhere else, each fix demands "massive refactoring" to implement, or each fix creates fresh symptoms. That pattern is not a failed hypothesis — it means the design is wrong. Ask whether the pattern is fundamentally sound or is being kept through inertia, and discuss with your human partner before attempting another fix.
These redirections from your human partner mean the approach isn't working — return to Phase 1:
Some issues really are environmental, timing-dependent, or external. Once the investigation is complete: document what you ruled out, implement appropriate handling (retry, timeout, clear error message), and add logging for next time. Most "no root cause" conclusions are incomplete investigations, so reach this one only after Phases 1-3, not instead of them.
root-cause-tracing.md — trace bugs backward through the call stack to the original triggerdefense-in-depth.md — add validation at multiple layers once the root cause is knowncondition-based-waiting.md — replace arbitrary timeouts with condition pollingcondition-based-waiting-example.ts (opens in a new tab)condition-based-waiting.md (opens in a new tab)defense-in-depth.md (opens in a new tab)find-polluter.sh (opens in a new tab)root-cause-tracing.md (opens in a new tab)test-academic.md (opens in a new tab)test-pressure-1.md (opens in a new tab)test-pressure-2.md (opens in a new tab)test-pressure-3.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub usadamasa/agents-marketplace --plugin dev-workflow8 skills in this plugin
/dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/finishing-a-development-branch実装が終わってテストが通り、作業ブランチを PR にするとき、PR のマージを指示されたときに使う。/receiving-code-reviewUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation/requesting-code-reviewUse when completing tasks, implementing major features, or before merging to verify work meets requirements/tautology-free-testsトートロジーテスト (green だが何も確かめていないテスト) を見つけて書かないためのスキル。 テストを書くとき、レビューするとき、検査を足す提案をするときに使う。/test-driven-developmentUse when implementing any feature or bugfix, before writing implementation code