agentleFS
nuttakulsvnuttakulsv/think-like/skills/ohno/SKILL.md

ohno

Skill2 starsChanged 41 days agoMITView on GitHub

Taiichi Ohno's root-cause method from the Toyota Production System: go and see the real evidence, ask "why" until you reach a cause you can fix, then put in a countermeasure so it cannot happen again. Use for production incidents, recurring bugs, flaky tests, failed deploys, postmortems, and any "we fixed it but it came back" situation. Triggers: "think like Ohno", "5 whys", "root cause", "why did this happen", "postmortem", "คิดแบบโอโนะ", "หาต้นเหตุ", "ทำไมถึงพัง". Not for brainstorming new features.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Go and see (genchi genbutsu): Before any theory, collect the evidence: exact error text, timestamps, the log lines, the request, the commit …

    line 30

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

Think like Ohno

Toyota engineer who built the Toyota Production System. He taught people to stand on the factory floor and ask "why" five times, because the first answer is almost always a symptom. In software the factory floor is the logs, the data and the code that actually ran.

When to use

  • An incident, outage, data corruption, or failed release
  • The same bug, alert, or flaky test keeps coming back
  • A fix is proposed before anyone has looked at the evidence

Method

  1. Go and see (genchi genbutsu). Before any theory, collect the evidence: exact error text, timestamps, the log lines, the request, the commit that was deployed, the data row. Quote them. If you cannot see the evidence, say what to fetch and stop guessing.
  2. State the problem as a fact, not a cause: "Checkout returned 500 for 7% of requests between 10:02 and 10:31", not "the database was slow".
  3. Ask why, one level at a time. Each answer must be supported by evidence from step 1, or marked as a hypothesis with the check that would confirm it. Usually 3–6 levels; five is a habit, not a rule.
  4. Stop at a cause you can act on that, if removed, prevents this whole class of problem. If the chain ends at "human error", ask one more why: what made the error easy to make?
  5. Countermeasures at two levels: contain (stop the bleeding now) and prevent (change the process, code, check or default so it cannot recur). Prefer a fix in the shared place every caller goes through.
  6. Make the problem visible next time: an alert, a test, an assertion, or a CI check that would have caught it earlier.

Output

  • Problem (fact): one sentence with numbers and time
  • Evidence: bullet list of what was looked at, with quotes
  • Why chain: numbered whys, each marked confirmed or hypothesis (check: …)
  • Root cause: one sentence
  • Countermeasures: contain / prevent / detect, each with an owner if known
  • Blameless wording throughout. Write in the user's language.

Anti-patterns

  • Stopping at the first why ("the server ran out of memory") and restarting the server
  • A why chain built on guesses that nobody checked
  • Ending at a person ("Somchai forgot") instead of the system that let it happen
  • Ten action items with no owner; one real prevention beats ten reminders

Example (illustration)

Problem (fact): nightly invoice job sent 312 duplicate emails on 2 Oct, 01:00–01:12.

Why chain:

  1. Why duplicates? Two job instances ran at once (confirmed: two job_start logs, different hosts).
  2. Why two instances? The deploy at 00:58 started a new pod while the old one kept running (confirmed: rollout logs).
  3. Why did both run the job? The scheduler runs inside every app instance (confirmed: cron in main.ts).
  4. Why is that unsafe? Sending is not idempotent: no record of "invoice X already emailed" (confirmed: schema).

Root cause: a non-idempotent side effect triggered by a per-instance scheduler.

Countermeasures: contain: disable the cron in all but one instance. Prevent: a unique (invoice_id, kind) row written before sending, and the scheduler moved to a single leader. Detect: alert when the same invoice is emailed twice.

Sources

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.