agentleFS
Cyvid7-Darus10Cyvid7-Darus10/claude-code-config/skills/systematic-reasoning/SKILL.md

systematic-reasoning

Skill2 starsChanged 8 months agoMITView on GitHub

Use when the task is non-trivial, ambiguous, or spans multiple files/systems. Forces an explicit mental model before proposing changes. Invoke before debugging, architecture decisions, cross-file refactors, or any change where "I think I know what's happening" is tempting.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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:

    Stop. Before you edit, build the model.

    line 8
  2. Distinctive:

    If you find yourself thinking "I'll just try X and see if it works," invoke this skill first.

    line 20
  3. Distinctive:

    Write the problem statement from scratch.

    line 28
  4. Distinctive:

    Read the code top-to-bottom, not keyword-search.

    line 37
  5. Distinctive:

    Only now propose code. The proposal must answer:

    line 66
  6. Distinctive:

    Do not use this skill for: one-line typo fixes, rename operations, documentation edits, adding a single log line, or other changes where …

    line 85

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

Systematic Reasoning

Stop. Before you edit, build the model.

The cheapest mistake is one you make before writing code — when you jump to a fix that matches a shallow pattern instead of the actual behavior. This skill is the forcing function that prevents it.

When to invoke

  • Any bug that isn't a one-line typo.
  • Any change touching more than one file or crossing a module boundary.
  • Any refactor, migration, or schema change.
  • Any performance/correctness question where the answer starts with "probably".
  • Any ambiguous user request. Ask instead of guessing.

If you find yourself thinking "I'll just try X and see if it works," invoke this skill first.

The four passes

Walk every pass. Do not skip. State your findings out loud in the response.

Pass 1 — Restate the problem in your own words

Write the problem statement from scratch. Not a copy-paste of the user's request. If you cannot write it cleanly, you do not understand it yet — ask a clarifying question.

Required artifacts:

  • Goal: what success looks like, in one sentence.
  • Constraints: explicit (deadlines, deps) and implicit (no breaking changes, maintain API, etc.).
  • Out of scope: what you will NOT touch.

Pass 2 — Build the mental model

Read the code top-to-bottom, not keyword-search. Aim for first principles, not pattern recognition.

For every file touched or called:

  • What is its single responsibility?
  • What does it assume about its inputs?
  • What does it guarantee about its outputs?
  • Who calls it? Who does it call?

For any data flow crossing functions:

  • Trace the variable from source to sink. Every transformation. Every boundary crossing (HTTP, DB, queue, file).
  • Note every point where the type, shape, or invariant could change silently.

For any error path:

  • What happens on failure? Is it retried? Logged? Propagated? Swallowed?
  • Is there a partial-failure state the caller doesn't know about?

Output: a short "model" paragraph the user can read to confirm your understanding is correct.

Pass 3 — Enumerate hypotheses (for debugging only)

List every plausible cause, even ones you think are unlikely. Rank by probability. For each:

  • What evidence would confirm this?
  • What evidence would rule it out?
  • What's the cheapest check?

Then check in order of cheapest-ruleout-first. Never commit to a fix before you've ruled out the top 3.

Pass 4 — Design the change

Only now propose code. The proposal must answer:

  • Blast radius: what else could this affect? List the call sites you checked.
  • Reversibility: is this easy to roll back? If no, flag it.
  • Test: what test proves this works? What test proves it doesn't regress?
  • Counterfactual: "if my model is wrong, how would I know?" Add a log, an assertion, or a test that would reveal the wrong model fast.

Red flags — if you catch yourself thinking these, STOP and restart

ThoughtWhat it really means
"This looks like X, so it's probably Y"You're pattern-matching, not reasoning. Read the actual code.
"I'll just try it and see"You don't have a model. Build one first.
"The fix is obviously Z"Obvious fixes are often the wrong-layer fix. Pass 2 first.
"It's probably just a race condition""Probably" ≠ evidence. Enumerate hypotheses.
"I'll add defensive checks to be safe"Shotgun code. Find the real invariant first.
"This is too complex to fully model"Then scope-narrow the change until it isn't. Don't ship guessing.

Anti-scope

Do not use this skill for: one-line typo fixes, rename operations, documentation edits, adding a single log line, or other changes where the whole blast radius fits on one screen.

Pairs well with

  • systematic-debugging for stack-trace-driven investigation.
  • writing-plans for multi-step features.
  • verification-before-completion after the change lands.

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.