find-cause
Skill1 starsChanged 53 days agoMITView on GitHub
Use when reported wrong behavior (bug, error, crash, regression, slowdown) has no one-command repro, or its proof stays red after one plain fix attempt. Not for a feature complaint.
In this repository10 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- buildSkill
- configureSkill
- edit-skillsSkill
- gateSkill
- save-sessionSkill
- shipSkill
- specSkill
- watchSkill
- write-docsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Reproduce: Read an existing log, profile or .exo/ report first.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Find cause
a. Locate. Until the cause is proven this skill outranks spec and build; a read-only planning turn writes the plan per ../spec/references/task-list.md, reproduction test as Task 1. Worked before and one command reproduces it: run the bisect in investigator-prompt.md, then run node "${CLAUDE_SKILL_DIR}/../../lib/scratch-exclude.mjs" (with no symbol, exo:research-worker with Sources: repo).
b. Investigate. Proven needs a causal line plus a mechanism predicting it or holding in source: write Status: proven. Otherwise dispatch exo:build-task with exo-kind: hardest from investigator-prompt.md.
c. Fix. Settle where it commits per ../build/references/workspace.md, else copy the handoff to .exo/debug/. Dispatch general-purpose from fixer-prompt.md, the prompt opening with exo-kind: build and a Reads: line, resume failed via SendMessage, else dispatch a fresh agent with the prior result path.
d. Report. Read only status lines and Report fields. After compaction, re-run Repro.
- Reproduce. Read an existing log, profile or
.exo/report first. One command reproduces it, else evidence, no fix.- Send long output to
<scratch>/debug-repro.log,<scratch>fromnode "${CLAUDE_SKILL_DIR}/../../lib/scratch-path.mjs" debug; read withtail -n 40. - Steps 1-5 → read
references/loop.mdfirst.
- Send long output to
- Instrument.
- Isolate.
- Predict, then fix.
- Prove.
- Retain project knowledge. Per the table.
- Fresh eyes. With no PR review, read Step 7 of
references/loop.md, which setscode-reviewfor when it printschanged filesabove 2 ordependency-added yes, or the fix crosses a public signature, persisted format or security boundary, then ends onship.- Invoked by a stage or workflow: ask nothing, return to caller.
References
| File | Read it when |
references/handoff.md | b, c |
../build/references/workspace.md | c |
investigator-prompt.md | b |
fixer-prompt.md | c |
../build/references/performance.md | Speed |
references/loop.md | 1-5, 7 |
references/profiling.md | Trace |
../build/references/critique.md | No review |
../build/references/security.md | When its first line applies. |
../build/references/data-migration.md | When its first line applies. |
../build/references/test-design.md | When its first line applies. |
../build/references/project-knowledge.md | 6 |
../../lib/references/closing.md | Before the final message. |
Report: the report rule in ../../lib/references/closing.md with the debug log path as the pointer; mechanism, proof lines and SHAs go to the log; unproven: Repro, Expected, Actual, Hypotheses.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

