skill-router

Routes tasks to the most relevant @booklib/skills library skill based on task descriptions, filenames, and language hints.

35|10|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/booklib-ai/skills --skill skill-router-booklib-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-router
Source: https://github.com/booklib-ai/skills/tree/main/skills/skill-router
Command: npx skills add https://github.com/booklib-ai/skills --skill skill-router-booklib-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Skill Router automatically selects the most relevant skills from the library to apply to a task, reducing guesswork and ensuring the right lens is used.

Core Features & Use Cases

  • Identify the 1-2 best-matching skills for a given file, prompt, or task.
  • Show domain context and potential conflicts, so you can choose the right combination.
  • Integrate as a CLI or within higher-level automation to route tasks before applying any skill.

Quick Start

Describe your task or provide a file path to route to the best skill.

Frequently Asked Questions about skill-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically select the best skill for a coding task?

Automatically select the best skill by analyzing task descriptions, filenames, and language hints to match the 1-2 most applicable skills for code quality, design patterns, or domain modeling. The router returns primary and secondary skills with domain context.

How does skill routing handle conflict resolution when multiple skills match?

Skill routing handles conflict resolution by evaluating task descriptions and domain mappings to select the top two skills, then returning a note explaining potential conflicts or routing decisions to help you choose the right combination.

Can I use language detection to route tasks to specific domain modeling skills?

Yes, you can use language detection to route tasks. The router analyzes language hints and filenames to identify the most applicable domain modeling or design pattern skills for your specific code files.

What is the best way to find relevant skills for code quality and design patterns?

The best way to find relevant skills is to provide a task description or file path to the router. It analyzes the input to select 1-2 applicable skills for code quality and design patterns, reducing guesswork in your workflow.

Does the skill router work with CLI for automated task selection?

Yes, the skill router works with CLI. You can integrate it within higher-level automation or use it as a command-line tool to route tasks before applying any specific skill from the library.

Why does the router return primary and secondary skills instead of just one?

The router returns primary and secondary skills to provide domain context and show potential conflicts. Returning 1-2 applicable skills ensures you have the right combination of lenses for complex tasks like domain modeling and code quality.