agentleFS
MicrosoftKnown publishermicrosoft/AutoSaddler/src/autosaddler/v2/prompting/methodology/skills/causal-diagnosis/SKILL.md

causal-diagnosis

Skill236 starsChanged 3 months agoMITView on GitHub

Use before proposing a mutation to diagnose measured failures from evaluator outcomes, traces, history, and the controlling candidate surfaces.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill before proposing any mutation.

    line 10
  2. Distinctive:

    Read the evaluator outcome and complete available training trace across all repetitions.

    line 19
  3. Distinctive:

    Follow the relevant prompt, description, schema, configuration, implementation, hook, or loop path end to end.

    line 26
  4. Distinctive:

    distinct: does not repeat a failed prior explanation without new evidence.

    line 54
  5. Distinctive:

    If any item is unsupported, state the uncertainty.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Causal Diagnosis (Core)

Purpose (Core)

Use this skill before proposing any mutation. Diagnosis identifies why the current candidate produced a measured failure and which candidate surface most directly controls it. A symptom summary or evaluator paraphrase is not a diagnosis.

Procedure (Core)

For every target failure:

  1. Read the evaluator outcome and complete available training trace across all repetitions.
  2. State required behavior and observed behavior separately.
  3. Locate the first decision, action, output, or runtime boundary where they diverge.
  4. Identify exactly what the agent or system could observe and do at that point.
  5. Follow the relevant prompt, description, schema, configuration, implementation, hook, or loop path end to end.
  6. Explain the causal chain from visible input to decision, runtime effect, and evaluator result.
  7. Compare repetitions and note consistent or conflicting observations.
  8. Cross-check prior attempts and lessons for the same case, failure pattern, and changed unit.
  9. Classify the cause as behavior or description, missing capability, implementation, configuration, or infrastructure.

Intervention Test (Core)

List the plausible mutation surfaces allowed by the plugin. Choose the approach that most robustly repairs the causal boundary and generalizes beyond the sampled case. The diagnosis must explain:

  • why this intervention can change the observed behavior;
  • which passing behavior, callers, or companion surfaces could be affected;
  • how the proposed effect can be checked before evaluation.

Quality Checklist (Core)

A useful diagnosis is:

  • specific: identifies the exact divergence and controlling surface;
  • causal: explains why the candidate produced the outcome;
  • evidence-cited: relies only on staged training evidence and code;
  • actionable: implies a permitted, testable intervention;
  • distinct: does not repeat a failed prior explanation without new evidence;
  • generalizable: targets a reusable mechanism rather than a case answer.

If any item is unsupported, state the uncertainty.

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.