agentleFS
kuya-eggkuya-egg/Monozukuri/monozukuri-router/SKILL.md

monozukuri-router

Skill11 starsChanged 2 months agoMITView on GitHub

Step 0 of consequential software work under Monozukuri, run by monozukuri-core. Classify the task, assess its risk tier, choose execute or sensei mode, and compose the sequence of Monozukuri skills and the Definition of Done for it. Skip for trivial one-line edits, pure questions, and throwaway scripts.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 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.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Low-risk fast-path: If the tier is low and no modifier applies (documentation work is nearly always this): emit fast-path: apply …

    line 40
  2. Very specific:

    Compose: Look up the playbook in monozukuri-core/references/playbooks.md.

    line 44
  3. Very specific:

    Decide execution mode per step: Default every step to inline.

    line 50
  4. Very specific:

    Plan checkpoints: When the work splits into more than one unit, size each unit and order them smallest first within dependency order, each …

    line 56
  5. Very specific:

    After the header, proceed through the composed sequence using each named skill in order.

    line 105
  6. Distinctive:

    If a referenced skill is not installed, apply its named lens inline instead of trying to invoke it.

    line 109

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

Monozukuri router

The router does no engineering work itself. It decides which Monozukuri practices apply to the task in front of it and in what order, emits a plan header, and hands off to the composed sequence.

Use this skill when

  • any feature, bugfix, refactor, incident, migration, release, or investigation that is more than a one-line change;
  • the user asks to be guided or taught;
  • the user asks for a review of their own approach; or
  • the user asks to set up Monozukuri for a project.

Do not use when

  • the change is a trivial one-liner;
  • the request is a pure question with no change to the system; or
  • the code is a throwaway script.

Procedure

  1. Choose interaction mode. execute (default) or sensei. Route to sensei when the user asks to be guided / taught / reviewed / set up. Incident or "production is down" language forces execute. Detail in monozukuri-core/references/sensei.md.
  2. Classify the task. Pick one type: feature, bugfix, refactor, incident, migration, release, investigation, docs, greenfield (a new project, or a new standalone subsystem, built from scratch). Set context flags: security, performance, production, data, auth.
  3. Assess risk. Tier low|medium|high|critical per monozukuri-core/references/constitution.md. When signals disagree, take the higher tier.
  4. Low-risk fast-path. If the tier is low and no modifier applies (documentation work is nearly always this): emit fast-path: apply genchi-genbutsu + kanso + kodawari inline and stop. Never inflate a small task.
  5. Compose. Look up the playbook in monozukuri-core/references/playbooks.md; apply the security / performance modifiers matching the context flags; scale verification depth by risk tier. For greenfield, the sequence begins nemawashi → monozukuri-blueprint; the four blueprint stages are gated on user approval, and phases execute one at a time after stage 4.
  6. Decide execution mode per step. Default every step to inline. Mark a step for delegation only when it matches a row in the inline-vs-delegated table in monozukuri-core/references/orchestration.md — an independent investigation, an independently verifiable implementation step, parallel disjoint work, or independent review on high/critical risk. Never delegate integration or the final call.
  7. Plan checkpoints. When the work splits into more than one unit, size each unit and order them smallest first within dependency order, each ending at a verified checkpoint, per monozukuri-core/references/checkpoints.md. Skip for single-unit work.
  8. Emit the plan header (see Output).

Output

Task: <one line>
Mode: <execute|sensei>
Context: <type> [+security] [+performance]      Risk: <tier> → <human gate>
Monozukuri sequence:
  <skill> → <skill> → [<injected step>] → <skill [subagent: role]> ...
DoD: <n> items (<playbook> [+modifiers], <tier>) — see monozukuri-core/references/definition-of-done.md
Change budget: declare expected file scope before CHANGE (see change-budget.md)
Checkpoints: <n> units, smallest first (multi-unit work only — see checkpoints.md)

[subagent: role] marks a step delegated per monozukuri-core/references/orchestration.md; an unmarked step runs inline.

Worked example:

Task: add OAuth login
Mode: execute
Context: feature +security      Risk: high → architecture-approval gate
Monozukuri sequence:
  nemawashi → genchi-genbutsu → kanso → [threat-model]
  → poka-yoke (+security test cases) → kata [subagent: implementer]
  → kodawari (+security review) [subagent: reviewer] → andon (+security observability)
  → shukka (+security verification) → hansei
DoD: 11 items (feature + security, high) — see monozukuri-core/references/definition-of-done.md
Change budget: declare expected file scope before CHANGE (see change-budget.md)
Task: build a new invoicing service from scratch
Mode: execute
Context: greenfield      Risk: high → architecture-approval gate
Monozukuri sequence:
  nemawashi → monozukuri-blueprint (4 gated stages)
  → per phase: kanso → kata → poka-yoke → kodawari → andon → shukka → hansei
DoD: 8 items (greenfield, high) — see monozukuri-core/references/definition-of-done.md

Handoff

After the header, proceed through the composed sequence using each named skill in order. monozukuri-core remains the umbrella contract (DISCOVER/CHANGE/PROVE) that governs the whole task.

If a referenced skill is not installed, apply its named lens inline instead of trying to invoke it.

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.