| name | skill-router | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| description | Find and activate skills using npm workspaces. | ||||||||
| metadata |
|
||||||||
| license | MIT |
Before executing any task, you must strictly follow this self-reflection protocol to ensure you fully understand the user's request.
Question: Are you confident with the user's intents?
- NO / UNSURE: Activate
intent-inferenceskill.# Analyze intent bun scripts/run_skill.js intent-inference - YES: Can you articulate them? Write them down.
Question: Can you articulate the problems that you need to address?
- NO / UNSURE: Activate
problem-statementskill.# Define problem using 5 Whys bun scripts/run_skill.js problem-statement - YES: Write down the root problem.
Question: Can you list 3 items in-scope and 3 items out-of-scope?
- NO / UNSURE: Activate
scopingskill.# Define scope bun scripts/run_skill.js scoping - YES: Write them down.
Ensure all your findings (Intent, Problem, Scope) are recorded in debug/context.json.
mkdir -p debug
# Append or write findings to debug/context.jsonOnce you have clarity on the intent, problem, and scope, proceed to find and activate the appropriate skills to solve the task.
# Search by keyword (instant, no install needed)
bun scripts/search_skills.js <keyword>
# Or with node (fallback)
node scripts/search_skills.js <keyword>
# List all skills (if installed)
npm ls --depth=0
# Query installed skills (if installed)
npm query "[keywords~=<keyword>]"// 1. Search
const result = terminal.execute("bun scripts/search_skills.js brainstorming");
const skill_name = parse_first_result(result);
// 2. Read instructions
const skill_path = `skills/${skill_name}/SKILL.md`; // OR skills/<skill_name>/skill.json
const instructions = filesystem.read(skill_path);
// 3. Execute
follow(instructions);If no skills match: report "No skill found for "