agentleFS
hnikoloskihnikoloski/imlazy/skills/imlazy-router/SKILL.md

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.

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

    If genuinely ambiguous between two adjacent tiers, ask ONE clarifying multiple-choice question and stop.

    line 12
  2. Very specific:

    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 …

    line 14
  3. Distinctive:

    When the signal is between Quick and Standard: ask "Will this need a new test, or is it a content/config edit only?"

    line 38
  4. Distinctive:

    When the signal is between Standard and Heavy: ask "Are the requirements clear, or do we need to design this together first?"

    line 40
  5. Distinctive:

    Wait for ONE answer. Default to the lighter tier if the answer is still ambiguous.

    line 42
  6. Very specific:

    Before classifying, read up to the last 20 lines of ~/.claude/imlazy/heuristics.log if it exists.

    line 46
  7. Distinctive:

    If a recent misclassification (≤30 days) matches this task's signal pattern, shift the borderline classification toward the tier that …

    line 48
  8. Distinctive:

    If the file does not exist or is empty, classify purely from the heuristics table above.

    line 50
  9. Very specific:

    If verification fails after Quick-tier work, escalate to Standard: invoke Skill(imlazy-tdd) and Skill(imlazy-planning) (light mode) and log …

    line 64

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

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

SignalTier
Single-line content fix (typo, spelling, value, version bump)quick
Single-file edit ≤30 lines, no new dependency addedquick
Factual question, code explanation, lookupquick
Run a command (test, build, format, lint) without modifying codequick
Single rename or import cleanup, no behavior changequick
1-3 file feature or bugfix with clear requirementsstandard
Refactor of a single function or componentstandard
Schema or config migration involving 2-3 filesstandard
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 pointsheavy
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

TierNext action
quickNone — proceed inline; use the Quick-tier completion gate from imlazy-bootstrap, no further skills loaded
stdInvoke Skill(imlazy-planning) in light mode → then Skill(imlazy-tdd) → then Skill(imlazy-code-review)
heavyInvoke Skill(imlazy-brainstorm) first → on spec approval, invoke Skill(imlazy-planning) in full mode
vaultInvoke Skill(imlazy-vault) with task description
learnInvoke 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.

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.