routing
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when implementing conditional control flow in an agent or coding workflow, including intent classification, tool selection, sub-agent selection, escalation, or language/framework-specific dispatch.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- alfredobs97/flutter_agentic_templatetheir own version, first seen Sep 24, 2026
- blyatiful1/ultrawebtheir own version, first seen Sep 2, 2026
- jkaninda/okapi-skillstheir own version, first seen Aug 16, 2026
- flpbalada/fb-skillstheir own version, first seen Aug 3, 2026
- ThomasLangbroek/frugaltheir own version, first seen Jul 9, 2026
- ypollak2/llm-routertheir own version, first seen Apr 13, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- ypollak2/llm-router★ 93same name
- ThomasLangbroek/frugal★ 36same name
- flpbalada/fb-skills★ 8same name
- hajekim/agentic-design-patterns-skills★ 4same name
- jkaninda/okapi-skills★ 3same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- blyatiful1/ultraweb★ 1same name
- hajekim/agentic-design-patterns-extension★ 1same name
- alfredobs97/flutter_agentic_template★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository114 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibility-wcagSkill
- agentic-ux-patternsSkill
- ai-model-governanceSkill
- api-design-and-lifecycleSkill
- apply-laws-of-aiSkill
- bdd-practiceSkill
- browser-testing-with-devtoolsSkill
- business-capability-modelingSkill
- business-information-concept-modelingSkill
- capability-maturity-assessmentSkill
- cdc-and-source-to-stream-ingestionSkill
- ci-cd-and-automationSkill
- cloud-platform-architectureSkill
- code-review-and-qualitySkill
- cognitive-bias-reviewSkill
- conceptual-data-modelingSkill
- context-engineeringSkill
- data-contract-designSkill
- data-governance-and-qualitySkill
- data-integration-and-interoperabilitySkill
- data-lifecycle-and-retention-managementSkill
- data-lineage-and-provenanceSkill
- data-product-dashboard-designSkill
- data-product-designSkill
- data-security-and-privacy-architectureSkill
- ddd-practiceSkill
- deprecation-and-migrationSkill
- design-system-practiceSkill
- documentation-and-adrsSkill
- dora-four-keysSkill
- dry-principleSkill
- eip-integration-validationSkill
- evaluation-and-monitoringSkill
- event-driven-architectureSkill
- event-governance-and-lineageSkill
- event-modelingSkill
- event-streaming-platform-designSkill
- exception-handling-and-recoverySkill
- finops-practiceSkill
- frontend-state-and-interaction-designSkill
- git-workflow-and-versioningSkill
- goal-setting-and-monitoringSkill
- guardrails-safety-patternsSkill
- human-in-the-loopSkill
- idea-refinementSkill
- incident-response-and-postmortemsSkill
- incremental-implementationSkill
- infrastructure-as-codeSkill
- integration-message-constructionSkill
- inter-agent-communication-a2aSkill
- kiss-principleSkill
- knowledge-graph-ragSkill
- knowledge-retrieval-ragSkill
- krag-evaluation-governanceSkill
- krag-ingestion-graph-constructionSkill
- krag-retrieval-answeringSkill
- krag-system-designSkill
- lakehouse-and-medallion-architectureSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when an agent must decide between multiple possible paths based on user intent, repository state, file type, language, …
- Distinctive: line 12
Use deterministic routing first when criteria are explicit.
- Distinctive: line 33
Add a fallback route for ambiguity or insufficient confidence.
- Distinctive: line 35
Add regression tests for ambiguous and boundary cases.
- Distinctive: line 39
Never let an LLM invent route names.
- Distinctive: line 40
Never execute privileged tools from an uncertain route.
- Distinctive: line 42
Keep routing separate from execution so routes are testable.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Routing
When to use
Use this skill when an agent must decide between multiple possible paths based on user intent, repository state, file type, language, confidence, policy or prior tool results.
Use deterministic routing first when criteria are explicit. Use LLM routing only when semantic judgement is genuinely required.
Objective
Select execution paths predictably using constrained route definitions, confidence thresholds, and safe fallbacks.
Routing methods
Choose the lightest reliable router:
- Rule-based router: keywords, file extensions, config flags, explicit metadata.
- Schema-based router: validated structured task type or command object.
- Embedding router: semantic similarity between request and capability descriptions.
- LLM router: nuanced classification with constrained labels.
- Trained classifier: repeated high-volume routing with labelled examples.
Procedure
- Define the allowed routes as an enum.
- Define route descriptions, entry conditions and prohibited cases.
- Make the router return only the route, confidence and rationale.
- Add a fallback route for ambiguity or insufficient confidence.
- Log route decisions and inputs used.
- Add regression tests for ambiguous and boundary cases.
Guardrails
- Never let an LLM invent route names.
- Never execute privileged tools from an uncertain route.
- Escalate or ask for clarification when route confidence is low.
- Keep routing separate from execution so routes are testable.
References
Verification
- Route enum exists.
- Fallback/clarification route exists.
- Route confidence threshold is explicit.
- Unit tests cover each route.
- Logs capture routing decision, confidence and selected handler.
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.

