/ceh-coding-conduct:find-root-causefrom ceh-coding-conduct
Load this skill when something is broken and no command has yet shown why, before any fix: reproduce it, kill hypotheses with evidence, name the cause. Trigger on "debug this", "find and fix these bugs", "why is this failing", an unexplained stack trace, or a second fix that did not hold.
Ships in ceh-coding-conduct. 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.
Find why something fails before changing any code to fix it. The task is done when you can name
the cause at a file:line or a condition, show the evidence that links it to the symptom, and
predict one observation you have not made yet that then comes true.
curl, or a CLI call
that shows the reported failure, not a nearby one. Run it and keep its output. Form no theory
before this: a theory formed without a reproduction picks which evidence you go looking for.
If it will not fail on demand, run it in a loop or force the timing, as in
ceh-testing:test-a-bug-fix "When it will not reproduce deterministically"..agents_workspace/product/fix/ (and the older fixes/ beside it) for that file or function, or with no stack trace, for the
one the step 1 command calls. An earlier fix record's Cause becomes one of the hypotheses in
step 3, because a bug that came back often came back the same way. Note the functionality the
bug sits in and its record, if any, found as the format's "Finding the record of a
functionality" says, for step 8.git bisect run the command
from step 1 when the behavior used to work. Mark each hypothesis refuted, standing, or
confirmed, with the output that decided it.fix-record/v3 format in references/fix-record-schema.md: one record per functionality, each
bug one issue in it. When step 2 found an open record of the functionality (status: diagnosed), add the hand-over to its issues with status: diagnosed. Otherwise save a new
record, .agents_workspace/product/fix/<YYYYMMDD-HHMMSS>-<functionality-slug>.yaml with the time
from one date +%Y%m%d-%H%M%S call, a copy of assets/fix-record.template.yaml holding this one
issue, and set previous: to a closed record of the functionality, and plan:, as the format
says. Set the record's status to the one its issues derive. Then run
uv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py render <the record>.yaml,
which writes the .md beside it, and fix the YAML for each error it lists. Never edit the
generated .md. On exit 2 or 3, or without uv, say in the reply that the record went unchecked
and unrendered. The chat ends with the session, and the record is how a later reader learns why
the fix exists. The fix's commit message carries the footer Refs: fix/<stem>, the record's
whole file stem. No fix will land here when the cause is outside this repo or the user declined
the fix: then the issue is declined, with its Cause naming where the fix belongs or why it was
declined. A fix that waits on a user decision is open work, and nothing reports the bug as done.ceh-testing:test-a-bug-fix
before writing it: it turns the step 1 command into a regression test and drives the fix.
Without ceh-testing installed, write the failing test before the fix yourself, then in the
record's YAML set the issue's fix, one tests item per test and its status: fixed, set the
record's derived status, render it again, and commit the fix and the test with the footer
Refs: fix/<stem>.**Symptom:** `<command>` → <the failing output line>
| Hypothesis | Refuted by | Result |
| ---------- | -------------------------------- | --------------------------------------------- |
| <claim> | <observation that would kill it> | refuted / confirmed: <output that decided it> |
**Cause:** <file:line or condition>: <one sentence on the chain from cause to symptom>
**Prediction:** `<command>` → <result predicted and seen>
**Status:** verified (prediction held) or inferred (<what stayed unrun and why>)
status: unreproduced, saved
alone. Do not ship a speculative fix.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
5 skills in this plugin
/agent-coding-contractCore behavioral contract for coding sessions./refactor-repoAudit a whole codebase or one module for accumulated complexity and shrink it: a read-only inventory, a ranked proposal, then, only after approval, refactor/ branches under a behavior-preservation gate. Not for one branch's diff (use shrink-diff)./shrink-diffLoad this skill when a feature branch works and its diff against main should shrink before review: duplication it added, single-caller wrappers, code it made dead. Trigger on "shrink the diff", "consolidate the branch". Not for whole-codebase cleanup (use refactor-repo)./write-less-codeThe write-less-code minimalism standard: the full ladder and what never to simplify away.npx claudepluginhub cheneeheng/ceh-claude-code-library --plugin ceh-coding-conduct