imlazy-router
Skill3 starsChanged 4 months agoMITView on GitHub
Classify the task into Quick/Standard/Heavy/Vault/Learn tier and route to the right workflow. Adaptively consults heuristics.log to refine borderline classifications.
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- imlazySkill
- imlazy-api-designSkill
- imlazy-backendSkill
- imlazy-bootstrapSkill
- brainstormingSkill
- code-reviewSkill
- debuggingSkill
- imlazy-evalSkill
- imlazy-finish-branchSkill
- imlazy-frontendSkill
- learnSkill
- parallel-agentsSkill
- imlazy-planningSkill
- imlazy-receive-reviewSkill
- imlazy-request-reviewSkill
- imlazy-securitySkill
- imlazy-standardsSkill
- imlazy-strategic-saveSkill
- imlazy-subagentsSkill
- tddSkill
- imlazy-verifySkill
- imlazy-wordpressSkill
- worktreesSkill
- imlazy-write-plansSkill
- imlazy-write-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
If genuinely ambiguous between two adjacent tiers, ask ONE clarifying multiple-choice question and stop.
- Very specific: line 14
If the message has no actionable verb (e.g., the user said "i am lazy" with no ask), output tier=none and respond conversationally without …
- Distinctive: line 38
When the signal is between Quick and Standard: ask "Will this need a new test, or is it a content/config edit only?"
- Distinctive: line 40
When the signal is between Standard and Heavy: ask "Are the requirements clear, or do we need to design this together first?"
- Distinctive: line 42
Wait for ONE answer. Default to the lighter tier if the answer is still ambiguous.
- Very specific: line 46
Before classifying, read up to the last 20 lines of ~/.claude/imlazy/heuristics.log if it exists.
- Distinctive: line 48
If a recent misclassification (≤30 days) matches this task's signal pattern, shift the borderline classification toward the tier that …
- Distinctive: line 50
If the file does not exist or is empty, classify purely from the heuristics table above.
- Very specific: line 64
If verification fails after Quick-tier work, escalate to Standard: invoke Skill(imlazy-tdd) and Skill(imlazy-planning) (light mode) and log …
≈ “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
imlazy-router
Output contract
Output tier=<quick|std|heavy|vault|learn> and the name of the next skill to invoke.
If genuinely ambiguous between two adjacent tiers, ask ONE clarifying multiple-choice question and stop. Never multi-turn.
If the message has no actionable verb (e.g., the user said "i am lazy" with no ask), output tier=none and respond conversationally without loading any skills.
Classification heuristics
| Signal | Tier |
| Single-line content fix (typo, spelling, value, version bump) | quick |
| Single-file edit ≤30 lines, no new dependency added | quick |
| Factual question, code explanation, lookup | quick |
| Run a command (test, build, format, lint) without modifying code | quick |
| Single rename or import cleanup, no behavior change | quick |
| 1-3 file feature or bugfix with clear requirements | standard |
| Refactor of a single function or component | standard |
| Schema or config migration involving 2-3 files | standard |
| Single-concern enhancement (caching, validation, error handling, tracing) | standard |
| "create vault", "save knowledge", "vault init", "vault search" | vault |
| New subsystem (auth, billing, replay, notifications, collaboration) | heavy |
| User explicitly says "design", "plan", "architecture", or "let's build" | heavy |
| Multi-component feature with unclear integration points | heavy |
| Cross-cutting migration (e.g., REST to GraphQL across the whole API) | heavy |
| Router misclassification feedback from Skill(imlazy-learn) | learn |
Disambiguation
When the signal is between Quick and Standard: ask "Will this need a new test, or is it a content/config edit only?"
When the signal is between Standard and Heavy: ask "Are the requirements clear, or do we need to design this together first?"
Wait for ONE answer. Default to the lighter tier if the answer is still ambiguous.
Adaptive lookup
Before classifying, read up to the last 20 lines of ~/.claude/imlazy/heuristics.log if it exists.
If a recent misclassification (≤30 days) matches this task's signal pattern, shift the borderline classification toward the tier that turned out correct in similar past cases.
If the file does not exist or is empty, classify purely from the heuristics table above.
Routing
| Tier | Next action |
| quick | None — proceed inline; use the Quick-tier completion gate from imlazy-bootstrap, no further skills loaded |
| std | Invoke Skill(imlazy-planning) in light mode → then Skill(imlazy-tdd) → then Skill(imlazy-code-review) |
| heavy | Invoke Skill(imlazy-brainstorm) first → on spec approval, invoke Skill(imlazy-planning) in full mode |
| vault | Invoke Skill(imlazy-vault) with task description |
| learn | Invoke Skill(imlazy-learn) to log misclassification |
Escalation rule
If verification fails after Quick-tier work, escalate to Standard: invoke Skill(imlazy-tdd) and Skill(imlazy-planning) (light mode) and log the misclassification via Skill(imlazy-learn) with predicted=quick, actual=standard.
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.

