agentleFS
blauwtjeblauwtje/exo/skills/find-cause/SKILL.md

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.

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
  1. Very specific:

    Reproduce: Read an existing log, profile or .exo/ report first.

    line 15

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

  1. 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> from node "${CLAUDE_SKILL_DIR}/../../lib/scratch-path.mjs" debug; read with tail -n 40.
    • Steps 1-5 → read references/loop.md first.
  2. Instrument.
  3. Isolate.
  4. Predict, then fix.
  5. Prove.
  6. Retain project knowledge. Per the table.
  7. Fresh eyes. With no PR review, read Step 7 of references/loop.md, which sets code-review for when it prints changed files above 2 or dependency-added yes, or the fix crosses a public signature, persisted format or security boundary, then ends on ship.
    • Invoked by a stage or workflow: ask nothing, return to caller.

References

FileRead it when
references/handoff.mdb, c
../build/references/workspace.mdc
investigator-prompt.mdb
fixer-prompt.mdc
../build/references/performance.mdSpeed
references/loop.md1-5, 7
references/profiling.mdTrace
../build/references/critique.mdNo review
../build/references/security.mdWhen its first line applies.
../build/references/data-migration.mdWhen its first line applies.
../build/references/test-design.mdWhen its first line applies.
../build/references/project-knowledge.md6
../../lib/references/closing.mdBefore 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.