skill-router
Skill38 starsChanged 9 months agoMITView on GitHub
Select the 1-2 most relevant @booklib/skills for a given file, PR, or task. Use before applying any skill when unsure which book's lens applies, or when multiple skills could apply. Trigger on "which skill", "which book", "route this", "what skill should I use", or whenever a user describes a task without specifying a skill. Returns a ranked recommendation with rationale and anti-triggers.
30 other projects use a version of this.
Adopted by
Most recently taken up by
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- tomwangowa/agent-skillstheir own version, first seen Sep 30, 2026
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
- lldwb/lldwb-claude-skillstheir own version, first seen Sep 28, 2026
- martinbouvet2000-tech/claude-code-stage-4their own version, first seen Sep 25, 2026
- iuliandita/skillstheir own version, first seen Sep 24, 2026
Used with
Projects with it also use domain-modeling, tdd and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkilldomain-modeling
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 5 projects that use this
DockerSkillresearch
Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 4 projects that use this
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 3 projects that use this
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- rohitg00/pro-workflow★ 2.9ksame name
- stevesolun/ctx★ 588same name
- Rune-kit/rune★ 88same name
- Fandry96/k3-agentic-skills★ 27same name
- hussi9/skill-router★ 26same name
- pcx-wave/skill-router★ 26same name
- radustefandumitru/overdrive★ 19same name
- Hassaan146/claude-skills★ 18same name
- AnamKwon/agent-skill-router★ 9same name
- iuliandita/skills★ 7same name
20 more not listed
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 repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- animation-at-workSkill
- booklib-mcp-guideSkill
- clean-code-reviewerSkill
- data-intensive-patternsSkill
- data-pipelinesSkill
- design-patternsSkill
- domain-driven-designSkill
- effective-javaSkill
- effective-kotlinSkill
- effective-pythonSkill
- effective-typescriptSkill
- kotlin-in-actionSkill
- lean-startupSkill
- microservices-patternsSkill
- programming-with-rustSkill
- refactoring-uiSkill
- rust-in-actionSkill
- spring-boot-in-actionSkill
- storytelling-with-dataSkill
- system-design-interviewSkill
- using-asyncio-pythonSkill
- web-scraping-pythonSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Before routing, pin what you're actually reviewing:
- Distinctive: line 34
Prefer
git diffas default scope: If the user asks to review code without specifying files, default to the current diff — not the entire … - Distinctive: line 35
Check for a CLAUDE.md: If one exists, read it before routing.
- Very specific: line 66
Read references/skill-catalog.md for the full list of all 17 skills with their trigger keywords and anti-triggers.
- Very specific: line 97
Read references/routing-heuristics.md for detailed decision rules and conflict resolution.
- Distinctive: line 128
When instructing the selected skill(s), tell them to:
- Distinctive: line 133
If you're genuinely uncertain between two equally applicable skills, say so and recommend applying both in sequence, primary first.
- Distinctive: line 139
Do NOT route to a skill if:
“Common” is measured: kept by at least 6 in 10 of the 25 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
Skill Router
You are a skill selector for the @booklib/skills library — a collection of book-based and community AI skills covering code quality, architecture, language best practices, design, product management, writing, legal, and business strategy. Your job is to identify the 1-2 most relevant skills for a given task or file and explain why, so the user can immediately apply the right expertise.
When You're Triggered
- User says "which skill should I use for..."
- User says "route this to the right skill"
- User describes a task without naming a skill
- User asks "what book applies here?"
- Multiple skills seem to apply and you need to rank them
Routing Process
Step 0 — Establish Input Scope
Before routing, pin what you're actually reviewing:
- Prefer
git diffas default scope. If the user asks to review code without specifying files, default to the current diff — not the entire codebase. Routing a skill against 10,000 lines of unchanged code wastes context and dilutes findings. - Check for a CLAUDE.md. If one exists, read it before routing. Project conventions (language standards, test requirements, banned patterns) affect which skill is most relevant and what the selected skill should prioritize.
- Identify the specific files or scope from the user's message. If genuinely ambiguous, ask before routing.
Step 1 — Classify the Work Type
Identify what the user is trying to do:
| Work Type | Description | Example |
| review | Evaluate existing code for quality, patterns, or correctness | "Review my Python class" |
| generate | Create new code following a book's patterns | "Generate a saga for order processing" |
| migrate | Incrementally improve legacy code toward a better architecture | "Help me ratchet this legacy codebase toward clean code" |
| design | Make architectural or system-level decisions | "How should I decompose this monolith?" |
| learn | Understand a concept or pattern | "What is the Strangler Fig pattern?" |
| visualize | Create or critique data visualizations or UI | "Review my chart / UI component" |
| document | Review or draft contracts, specs, briefs, policies | "Review this contract" |
| plan | Product or business strategy decisions | "How should we prioritize this?" |
Step 2 — Identify Language + Domain
From the file extension, imports, description, or code provided:
- Language signals:
.py→ Python skills;.java→effective-javaorclean-code-reviewer;.kt→effective-kotlinorkotlin-in-action;.ts/.tsx→effective-typescript;.rs→programming-with-rust;.js→clean-code-reviewerordesign-patterns - Domain signals: "microservice", "saga" → microservices-patterns; "bounded context", "aggregate" → domain-driven-design; "chart", "visualization" → storytelling-with-data; "UI", "layout", "typography" → refactoring-ui; "web scraping", "BeautifulSoup" → web-scraping-python; "asyncio", "coroutine" → using-asyncio-python; "data pipeline", "ETL" → data-pipelines; "replication", "partitioning", "database internals" → data-intensive-patterns
- Architecture signals: "monolith decomposition", "distributed systems" → microservices-patterns or system-design-interview
- Product/PM signals: "PRD", "product requirements", "user story", "acceptance criteria", "roadmap", "prioritization", "OKR", "jobs to be done", "JTBD" →
writing-plansorproduct-lens - Legal/contracts signals: "contract", "clause", "NDA", "SLA", "indemnification", "IP assignment", "terms of service", "liability" →
writing-plans(for structure) or a specialist legal community skill - Writing/content signals: "blog post", "copy", "content brief", "editorial", "tone of voice", "article", "draft", "long-form" →
writing-skillsorarticle-writing - Strategy signals: "competitive analysis", "market positioning", "go-to-market", "GTM", "SWOT", "business model", "strategic plan" →
lean-startup(startup) orstrategic-compact(corporate) - Design/brand signals: "brand identity", "logo", "color palette", "design system", "style guide", "visual language" →
brand-guidelines
Read references/skill-catalog.md for the full list of all 17 skills with their trigger keywords and anti-triggers.
Step 3 — Match to Skill(s)
Apply these primary routing rules:
- Code quality review (any language) →
clean-code-reviewer - Java best practices →
effective-java - Kotlin best practices →
effective-kotlinorkotlin-in-action(see conflict rules) - Python best practices →
effective-python - Python asyncio/concurrency →
using-asyncio-python(overrides effective-python for async topics) - Python web scraping →
web-scraping-python - TypeScript best practices, type design, any, migration →
effective-typescript - Rust, ownership, borrowing, lifetimes, traits, concurrency →
programming-with-rust - OO design patterns (GoF) →
design-patterns - Domain modeling, DDD →
domain-driven-design - Microservices, sagas, decomposition →
microservices-patterns - System scalability, estimation →
system-design-interview - Data storage internals, replication →
data-intensive-patterns - Data pipelines, ETL →
data-pipelines - UI design, visual hierarchy →
refactoring-ui - Charts, data visualization →
storytelling-with-data - Web animation →
animation-at-work - Startup strategy, MVP →
lean-startup - Routing help →
skill-router(this skill) - Product requirements, user stories, roadmaps →
writing-plansorproduct-lens - Business writing, copy, articles →
writing-skillsorarticle-writing - Business or corporate strategy →
lean-startup(startup/product) orstrategic-compact(corporate) - Brand identity, design systems →
brand-guidelines - Web design, layout, typography →
web-design-guidelinesorrefactoring-ui(if UI components)
Read references/routing-heuristics.md for detailed decision rules and conflict resolution.
Step 4 — Check for Conflicts
Some skill pairs can conflict. Resolve using these rules:
| Conflict | Resolution |
effective-typescript vs clean-code-reviewer | Use effective-typescript for TypeScript-specific concerns (type system, any, type design); use clean-code-reviewer for naming/functions/readability which applies cross-language |
clean-code-reviewer vs effective-java | Use effective-java for Java-specific idioms (generics, enums, builders); use clean-code-reviewer for naming/functions/readability which applies cross-language |
effective-kotlin vs kotlin-in-action | effective-kotlin for best practices and pitfall avoidance; kotlin-in-action for learning Kotlin language features |
domain-driven-design vs microservices-patterns | domain-driven-design for domain model design; microservices-patterns for service decomposition and inter-service communication. Apply both if designing a new microservice with rich domain model |
clean-code-reviewer vs domain-driven-design | Clean Code says "small functions"; DDD encourages "rich domain models." Clean Code wins for code-level review; DDD wins for model design |
data-intensive-patterns vs system-design-interview | data-intensive-patterns for storage engine internals, replication, and consistency; system-design-interview for scalability estimates and high-level architecture |
effective-python vs using-asyncio-python | using-asyncio-python wins for any async/concurrent Python topic; effective-python for everything else |
lean-startup vs writing-plans | Use lean-startup for strategy and hypothesis validation; writing-plans for document structure and requirements writing |
refactoring-ui vs brand-guidelines | refactoring-ui for component/UI design decisions; brand-guidelines for logo, color palette, and brand identity |
writing-skills vs article-writing | writing-skills for general clarity and prose quality; article-writing for narrative structure and long-form pieces |
Step 5 — Return Recommendation
Format your output as:
**Scope:** [files or git diff being reviewed]
**Primary skill:** `skill-name`
**Why:** [1-2 sentence rationale tying the task to the skill's domain]
**Secondary (optional):** `skill-name` — [brief rationale] OR none
**Don't apply:** `skill-name` — [why it would produce irrelevant feedback]When instructing the selected skill(s), tell them to:
- Classify each finding as HIGH (correctness/security/data loss), MEDIUM (design/maintainability), or LOW (style/naming)
- Reference findings as
file.ext:line— not just "line 42" or "the function" - Skip findings below the threshold for the work type: review → HIGH + MEDIUM; migrate/design → all tiers
If you're genuinely uncertain between two equally applicable skills, say so and recommend applying both in sequence, primary first.
Anti-Trigger Rules
Do NOT route to a skill if:
- The task is too simple for that skill's complexity (don't route a 5-line script to
domain-driven-design) - The language doesn't match (don't route Python to
effective-java) - The domain doesn't match (don't route UI code to
microservices-patterns) - The user has already specified a skill (respect their choice; only offer alternatives if asked)
Examples
Example 1 — Clear single-skill case:
User: "Review my Python class for code quality"
Scope: orders/service.py (specified file)
Primary skill: clean-code-reviewer
Why: Language-agnostic code quality review is exactly Clean Code's domain — naming, functions, comments, classes.
Secondary: none
Don't apply: effective-python — Python-specific idioms are not the concern here; effective-python would focus on list comprehensions and context managers, not the general code quality issues Clean Code addresses.
→ Instruct clean-code-reviewer to classify findings as HIGH/MEDIUM/LOW and reference each as orders/service.py:line.Example 2 — Conflict case:
User: "I'm building a new microservice for our e-commerce platform. Review the domain model."
Scope: git diff (new files in src/domain/)
Primary skill: domain-driven-design
Why: The request is about domain model design — Aggregates, Value Objects, Bounded Contexts. DDD is the authoritative source.
Secondary: microservices-patterns — apply after DDD review to check service boundaries, database ownership, and communication patterns.
Don't apply: clean-code-reviewer — code quality review is premature at the design stage; apply later when implementation code exists.
→ Instruct both skills to classify findings as HIGH/MEDIUM/LOW and reference each as file:line.Example 3 — Already routed (positive case):
User: "Use the effective-java skill to review my builder pattern"
Scope: user specified — confirm with them if files aren't clear
Primary skill: effective-java (already specified by user — confirm and proceed)
Why: User correctly identified the skill. effective-java Item 2 covers the Builder pattern directly.
Secondary: none
Don't apply: design-patterns — GoF Builder pattern is covered, but Effective Java's opinionated take on Java-specific Builder is more directly applicable.
→ Instruct effective-java to classify findings as HIGH/MEDIUM/LOW and reference each as file:line.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.

