complexity-router
Skill0 starsChanged 5 months agoMITView on GitHub
Use before starting any coding task, to decide whether it needs the full design→plan→TDD→review pipeline or just a minimal change under the L0 constitution. Use when a build, feature, fix, or refactor request arrives and it is not obvious whether to plan it or just do it.
In this repository20 other files it gives its agents.
- ponytailSkill
- domain-modelingSkill
- grillingSkill
- to-issuesSkill
- to-prdSkill
- writing-plansSkill
- subagent-driven-developmentSkill
- tddSkill
- using-git-worktreesSkill
- debuggingSkill
- finishing-a-development-branchSkill
- reviewSkill
- verification-before-completionSkill
- drift-evalSkill
- find-skillsSkill
- improve-loopSkill
- skill-evalSkill
- skill-validatorSkill
- writing-skillsSkill
- using-architectSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 26
If the request admits more than one reasonable interpretation, or hinges on a key decision the user didn't state, surface the …
- Distinctive: line 50
If the logic is non-trivial, leave the ONE runnable check (ponytail's rule).
- Very specific: line 51
Run verification-before-completion before claiming it works.
- Distinctive: line 72
When it sits on the fence, take the trivial path but flag the escalation in one line (ponytail style): ship the minimal version and say …
- Distinctive: line 79
Never stall waiting for the user to classify it.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Complexity router — L1
The gate that keeps the heavy pipeline off trivial work and on real features. Misfiring either way is the framework's single biggest risk: too eager and a one-liner drowns in ceremony; too lax and a migration ships with no design. So the threshold is explicit and checkable, not a vibe.
First: is the request ambiguous? (intent, not complexity)
Ambiguity and complexity are different axes — check intent before scoring complexity.
If the request admits more than one reasonable interpretation, or hinges on a key
decision the user didn't state, surface the interpretations — don't silently pick
one. Name them, recommend one with a one-line why, then either proceed on the
recommendation (stating the assumption) or ask first when guessing wrong is costly or
hard to undo. Trivial-in-size is not the same as clear-in-intent: a one-line change to
the wrong interpretation is still the wrong change, and this is the cheapest correctness
gate there is. (A deep, branch-by-branch interview is grilling's job on the escalate
path; this is just the always-on reflex not to assume.)
Decide: trivial or escalate
Score the task. Any one escalate-signal wins — escalate.
| Trivial path (do it now) | Escalate (engage the pipeline) | |
| Reversibility | Easy to undo (rename, config tweak, doc edit, one-liner) | Hard/irreversible: schema migration, data deletion, public API change, security boundary |
| Blast radius | ≤ 1–2 files, one module | Multi-file or cross-module |
| Logic | Single obvious path, no new branching | New branching, shared state, concurrency, a parser |
| Surface | No new public interface, no new dependency | New feature/capability, new public interface, or new dependency |
| Ask | "just fix/change X" | User explicitly asked for a plan, spec, or issues |
Trivial path
- Apply L0
ponytail— climb the ladder, shortest working diff. - If the logic is non-trivial, leave the ONE runnable check (ponytail's rule).
- Run
verification-before-completionbefore claiming it works. - Done. No grilling, no PRD, no subagent fan-out.
Escalate path
Name the chain and let the user start each orchestrator (they are
user-invoked — see using-architect). Do not auto-run them.
- L1
grilling— pin intent and edge cases; updateCONTEXT.mdvocabulary. - L2 —
to-issues(default, tracer-bullet slices) orwriting-plans(heavyweight, multi-session). - L3
subagent-driven-development+ mergedtdd(rigor dialed up) + worktree isolation. - L4
review(three lenses: correctness · over-engineering · security) +verification-before-completion.
L0 ponytail still governs the size of every diff inside the pipeline — the
router escalates process, never solution size.
Mid cases — default light, name the door
When it sits on the fence, take the trivial path but flag the escalation in one line (ponytail style): ship the minimal version and say what would cross the threshold —
"Did the minimal change. This is one branch away from touching the auth boundary — want the full pipeline (
/grilling) before we go further?"
Never stall waiting for the user to classify it. Default to motion, surface the door.
Self-check
This router's threshold is the thing most likely to be miscalibrated. When the L5 eval loop exists, it gets its own eval set (trivial tasks that must NOT escalate; risky tasks that MUST). Until then, prefer the light path and lean on the mid-case flag rather than silent escalation.
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
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.

