Instruction Routing
Determines the correct location for new project instructions, conventions, or automation within the project's knowledge base.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Offers clear criteria and examples for each instruction location.
- Defines a structured process for adding new rules, patterns, or automation.
- Differentiates between project conventions (CLAUDE.md), multi-step workflows (skills), and one-shot tasks (commands).
- Includes guidelines on when and how to refactor knowledge from CLAUDE.md into skills.
- Provides a quick decision tree for categorizing new instructions.
Use cases
- Deciding where to document a new project-specific coding standard.
- Determining whether to implement a new automated process as a multi-step skill or a single-use command.
- Organizing and refactoring an existing CLAUDE.md file to improve clarity and maintainability.
FAQ
What does the Instruction Routing skill do?
This skill acts as a guide to help you determine the correct location for new project instructions, coding conventions, or automation. It provides a clear decision tree to choose between the central `CLAUDE.md` file, a multi-step skill, or a single-use command.
How does this skill improve my AI coding workflow?
By organizing project knowledge logically, it ensures Claude has the right context at the right time. This leads to more accurate task execution, reduces ambiguity, and makes the project's knowledge base for Claude more scalable and maintainable.
When should I use this skill?
Use this skill whenever you need to add a new rule, pattern, or workflow to your project for Claude. It helps you decide if the new instruction is a core convention (`CLAUDE.md`), a complex process (`skill`), or a repeatable task (`command`).
What capabilities does the Instruction Routing skill provide?
It provides a quick decision tree, clear criteria differentiating project knowledge locations, examples for each type, and guidelines on when to refactor information from `CLAUDE.md` into dedicated skills to keep your project's AI context clean and effective.
What are the three main locations for instructions this skill defines?
The three locations are: 1) `CLAUDE.md` for project-wide conventions and static rules, 2) `.claude/skills/` for multi-step workflows with potential logic, and 3) `.claude/commands/` for repeatable, one-shot tasks invoked by the user.