agentleFS
stealth-factorystealth-factory/opscope/.agents/skills/principle-fix-root-causes/SKILL.md

principle-fix-root-causes

Skill40 starsChanged 15 days agoAGPL-3.0View on GitHub

Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate.

70 other projects use a version of this, 55 of them edited; 32 of 55 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 1 the 4 before.

How people change it

32 of 55 edited versions changed its rules, and some changes recur.

Of the 55 edited versions we compared: 6 keep every rule, 17 are an older text, 32 made changes of their own.

Not in older versions

  1. When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.missing from 17 of 17
  2. Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.missing from 17 of 17
  3. When stuck, instrument. Read the actual error and the actual state. Do not guess.missing from 17 of 17
  4. When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.missing from 17 of 17
  5. Check for the pattern, not just the instance. Find every place with the same fault and fix them all.missing from 17 of 17
  6. If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.missing from 17 of 17

Rules people drop

  1. When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.dropped by 31 of 32
  2. Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.dropped by 31 of 32
  3. When stuck, instrument. Read the actual error and the actual state. Do not guess.dropped by 31 of 32
  4. When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.dropped by 31 of 32
  5. Check for the pattern, not just the instance. Find every place with the same fault and fix them all.dropped by 30 of 32
  6. If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.dropped by 27 of 32
  7. If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.dropped by 1 of 32

Rules people add

  1. Ask "why" until you hit the root causeadded by 29 of 32
  2. Check for the pattern, not just the instance (grep for the same pattern, fix all instances)added by 29 of 32
  3. When stuck, instrument. Don't guess (add logging, read the actual error)added by 29 of 32
  4. When debugging, do not fix symptoms. Trace every problem to its root cause and fix it there.added by 27 of 32
  5. Do not add guards (adding a nil check to silence a crash is a symptom fix)added by 17 of 32
  6. When something "fails after restart," suspect stale persistent state first: config files, caches, lock files, serialized state. If clearing a state file restores behavior, prioritize state validation as the fix.added by 17 of 32

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 1 new projectWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

Used with

Projects with it also use setup-pstack, make-bot-ui and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 33 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 23 projects that use this

  • shiwenbin1617Skill

    ketchup-video

    Catch the user up like /ketchup, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video.

    Also in 18 projects that use this

  • The-Utopia-StudioSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 3 projects that use this

  • ElyzeSolutionsSkill

    control-cli

    Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.

    Also in 5 projects that use this

  • shiwenbin1617Skill

    statechart

    Check a TLA+ model of a system that moves between states, such as a product flow, a protocol, or a service, and draw it as a Mermaid statechart. The report gives the shortest path to each state that breaks a rule. Use for /statechart, or to show a bug as a path through states.

    Also in 20 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 1

    Common

    Most of the 57 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

Licensed with conditions — read it at the source. We count its rules but don't quote them. Read them on GitHub.

“Common” is measured: kept by at least 6 in 10 of the 57 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.

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.