agentleFS
niksavisniksavis/basicly/.agents/skills/root-cause/SKILL.md

root-cause

Skill0 starsChanged 56 days agoMITView on GitHub

Finds why a failure happened, with evidence for each why, and names the control that refuses it. Use after a failure, before a fix or a gate.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Ask why until the answer stops changing.

    line 36
  2. Distinctive:

    Per cause: would the removal of this cause block this path?: If the failure still reaches the same end, the cause is a condition you …

    line 42

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

Root Cause

Find why a failure happened by asking why until the answer stops changing. Then name the control that would have refused it.

Rules

  • Analyse a signal, not one occurrence. A change made in response to normal variation increases the variation.
  • Every link cites an observation. A link that you reasoned to is where the chain becomes a story.
  • Stop at a cause you control. A vendor decision or "the model was wrong" gives you nothing to build a control against.
  • Never stop on a person. "Someone forgot" means the chain stopped early. Ask what let the mistake reach a commit.
  • Record the branch you did not take. Two analysts reach different causes from the same incident.
  • Deliver a control, not advice. "Be careful" and "add a note" prevent nothing.

1. Check that it is a signal

A signal is a point beyond three standard deviations, or a run or a trend inside the limits. The cheaper test is this question: has this shape happened before? Query the ledger before you analyse:

jq -r 'select(.kind=="created")|.payload.title // empty' .basicly/ledger/events-*.jsonl \
  | rg -i '<the shape>'
rg -c '<the marker>' .basicly/usage/run-records.json

A record title is only on its created event. A query over every event returns nothing, and nothing reads as "no prior". Confirm that the first stage of the pipeline prints titles before you believe a zero.

One occurrence with no prior: record it and stop.

2. Ask why

Ask why until the answer stops changing. Each link cites a file:line, a command and its output, a ledger row or a recorded verdict. When the next why leaves this repository, go back one link and build the control there.

At each link where a second answer was available, name it and say why you took the other one.

3. Test the chain

  • Per cause: would the removal of this cause block this path? If the failure still reaches the same end, the cause is a condition you noticed. Continue the chain.
  • For the set: would the removal of all retained causes block the observed failure? If a route stays open, a link is missing. That link is the one that needs the control.

A second person can run these two tests against your chain without a new derivation.

4. Output

FieldContent
ControlA check, a gate, a schema field or a refusal that would have refused this defect
Tiercontrol (fails a gate), warning (reports and continues) or documentation (a person must read it). Record a documentation tier as a downgrade, with the reason that no stronger control was available
CoversThe whole class of defects, not this one instance. A control for one incident is a patch
Branch not takenOne line

Deliver the control as a diff against catalog YAML: a fragment, a skill, a hook or a schema field. A person approves it before it lands. basicly catalog lint and the projection checks limit what they approve.

Example

Signal      3 of 5 lanes failed to land on one shared anchor, twice in one pass
Why 1       the rebase conflicted            (the merge result names the conflict)
Why 2       two lanes appended at one anchor (both scope globs name basicly.toml)
Why 3       decompose grouped the work by scope-glob overlap, which is file adjacency
Why 4       scope globs are the only structure the decomposer can see
STOP        we control that

Branch not taken: "generate the anchors". Real, but it fixes three files, not the
slicing rule that keeps producing collisions.

Control     a plan-gate refusal when two children declare an overlapping anchor
Tier        control
Covers      every decomposition that slices by file adjacency

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.