agentleFS
Yco-0314Yco-0314/strata/skills/l1-alignment/complexity-router/SKILL.md

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.

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
  1. Distinctive:

    If the request admits more than one reasonable interpretation, or hinges on a key decision the user didn't state, surface the …

    line 26
  2. Distinctive:

    If the logic is non-trivial, leave the ONE runnable check (ponytail's rule).

    line 50
  3. Very specific:

    Run verification-before-completion before claiming it works.

    line 51
  4. Distinctive:

    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 …

    line 72
  5. Distinctive:

    Never stall waiting for the user to classify it.

    line 79

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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)
ReversibilityEasy 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 moduleMulti-file or cross-module
LogicSingle obvious path, no new branchingNew branching, shared state, concurrency, a parser
SurfaceNo new public interface, no new dependencyNew feature/capability, new public interface, or new dependency
Ask"just fix/change X"User explicitly asked for a plan, spec, or issues

Trivial path

  1. Apply L0 ponytail — climb the ladder, shortest working diff.
  2. If the logic is non-trivial, leave the ONE runnable check (ponytail's rule).
  3. Run verification-before-completion before claiming it works.
  4. 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.

  1. L1 grilling — pin intent and edge cases; update CONTEXT.md vocabulary.
  2. L2 — to-issues (default, tracer-bullet slices) or writing-plans (heavyweight, multi-session).
  3. L3 subagent-driven-development + merged tdd (rigor dialed up) + worktree isolation.
  4. 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.

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.