/project-onboard:diagnosing-bugsfrom project-onboard
Diagnosis loop for hard bugs and performance regressions. Use when a wayfinder ticket is typed as 'bug', or the user says 'diagnose'/'debug this', or reports something broken/throwing/failing/slow.
Ships in project-onboard. 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.
A discipline for hard bugs. Skip phases only when explicitly justified.
This is the skill. If you have a tight pass/fail signal that goes red on the bug, you will find the cause. Without one, no amount of staring at code helps.
Spend disproportionate effort here. Be aggressive. Be creative. Refuse to give up.
Ways to construct a feedback loop (roughly in order of preference):
git bisect run)Then tighten the loop: make it faster, make the signal sharper (assert the specific symptom), make it more deterministic.
For non-deterministic bugs: raise the reproduction rate (loop 100x, parallelise, add stress). A 50%-flake is debuggable; 1% is not.
Completion criterion: one command that is red-capable, deterministic, fast (seconds), and agent-runnable. You must have already run it at least once and pasted the output.
If you catch yourself reading code to build a theory before this command exists, STOP.
Run the loop, confirm it produces the user's exact failure mode. Then shrink the repro to the smallest scenario that still goes red — cut inputs, callers, config, steps one at a time, re-running after each cut.
Done when every remaining element is load-bearing.
Generate 3–5 ranked hypotheses before testing any. Each must be falsifiable: "If [X] is the cause, then [action] will make the bug disappear / worse."
Show the ranked list to the user before testing. This is the HITL pause point in the wayfinder flow — the user confirms which hypotheses to test first, or adds their own.
Each probe maps to a specific prediction from Phase 3. Change one variable at a time.
Tool preference:
Tag every debug log with a unique prefix: [DEBUG-a4f2]. This makes
cleanup in Phase 6 trivial.
For performance regressions: measure first (baseline timing / profiler / query plan), then bisect.
If no correct seam exists for a regression test, that itself is the finding — flag it for architecture improvement (Phase 6).
Required:
[DEBUG-...] instrumentation removed (grep the prefix)Then ask: "What would have prevented this bug?"
If the answer is architectural (no good seam, coupling, shallow module),
create a new wayfinder ticket pointing to
improve-codebase-architecture for a deepening review.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lynchypin/project-onboard --plugin project-onboardOther plugins' skills for the same job
20 skills in this plugin
/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-reviewTwo-axis code review that checks both standards conformance and spec fidelity. Runs as parallel sub-agents to prevent context pollution. Includes a smell baseline from Fowler's Refactoring. Use after implementation is complete, before committing./document-directoryCreate or update a subdirectory's own CLAUDE.md file after substantial work in that module. Only for app or system documentation tier projects.