/myflow:diagnosing-bugsfrom MyFlow
Use when behavior is broken, failing, flaky, unexpectedly slow, or otherwise differs from its expected result, before proposing a durable fix.
Ships in MyFlow. 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; scripts run unread.
A durable fix needs evidence: establish a feedback loop, find the source, make the smallest root-cause change, and prove the original scenario is fixed.
Use for bugs, test/build/integration failures, flakes, and performance regressions. Use tdd for planned behavior or a test seam still being designed.
During an active incident, a reversible, narrowly scoped containment action (rollback, failover, or feature flag) may precede diagnosis. Record its scope and risk; it is not the fix. Before any durable code or policy change, state Feedback loop: <command>, run it, and capture its result. A new retry, timeout, or policy is not a durable fix without that evidence.
Before theorizing or changing production code, run one agent-runnable command that distinguishes the exact symptom from success: a failing test, asserted client script, replay, minimal harness, or fuzz/differential/bisection loop. For human-only flow, adapt scripts/hitl-loop.template.sh.
Make it fast, deterministic, and symptom-specific. Raise a flake's reproduction rate with repetition, stress, or timing control; measure performance before changing it. Redact sensitive captures.
If no loop exists, stop durable-fix work; state attempts and ask for environment access, a redacted artifact, or temporary instrumentation.
Capture the error, output, or measurement, then minimise inputs, configuration, data, and steps until they are load-bearing. Check the complete stack trace, recent changes, the data flow back to its trigger, and a comparable working path.
For multi-component systems, inspect data and configuration at boundaries until the failing component is known. Prefer a debugger; otherwise use targeted, uniquely tagged temporary logs.
List 3–5 ranked, falsifiable hypotheses; each predicts an observable result. Test one prediction and one variable at a time. A disproved hypothesis returns to evidence gathering.
For a flaky asynchronous test, wait for the observable condition, not a guessed sleep. The wait needs fresh state, a bounded timeout, and a named error; it does not replace root-cause analysis. Fixed delays are only for justified timing behavior.
Red flags: “add a retry then investigate,” “increase the sleep,” or “try one quick change” mean: return to the feedback loop.
Turn the minimised reproducer into a regression test at a seam exercising the real bug pattern. If no such seam exists, document the architectural limitation rather than adding a misleading shallow test.
Apply one minimal change addressing the confirmed source. Run the regression test, original unminimised loop, and relevant broader checks. A failed fix returns to evidence and hypotheses. Repeated failures or a missing test seam warrant an architecture follow-up, not an automatic architectural verdict; use codebase-design for a concrete deepening opportunity.
Record the redacted symptom/repro, cause/evidence, regression coverage or its absence, original-scenario verification, removed diagnostics, and containment rollback or prevention follow-up. Never present a workaround as the completed fix.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub don-smith/myflow --plugin myflow21 skills in this plugin
/closeUse after a passing MyFlow Verify report to make proportionate closeout decisions, preserve continuity, and decide delivery with the developer./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewUse when reviewing a branch, commit range, pull request, or work-in-progress change against its specification and repository standards./commitCreate structured atomic commits. Use when the user asks to commit, or when Implement has completed a plan phase whose automated success criteria are green./designResolve material architectural decisions for a MyFlow workstream and write a standalone design artifact only when Scope or Plan requires structural design. Use after Scope and selected research/specialists, before Plan./discoverExtract feature intent and requirements through grill-me rounds when Scope cannot state the outcome and acceptance criteria clearly enough. Supports light ideation for a fuzzy concept and structured requirements extraction for complex work. Writes a requirements artifact into the workstream and returns to scope.