Dynamic Skill MCP Router
This skill routes a task to the best available skill or MCP based on what is actually installed on the current machine.
Use This Skill When
- The user asks which skill should be used for a task
- The user asks which MCP should be used for a task
- The user wants a recommendation based on the current environment
- The user does not want to maintain or read a static trigger-template note
- The user wants a copy-paste trigger phrase for the next turn
Discovery Workflow
- Run
scripts/discover.py --jsonto discover installed skills and configured MCP servers. - Use discovered skill names and descriptions as the primary signal for what each skill does.
- Use the current session's MCP tool definitions as the primary signal for what each MCP can do.
- If MCP tool definitions are not available in the current session, fall back to the MCP server name plus local config and clearly state that capability inference is limited.
- Recommend only tools that were actually discovered.
Routing Workflow
- Decide whether the task benefits from a specialized skill or MCP at all.
- If yes, choose one primary recommendation.
- If there is a reasonable alternative, provide one fallback.
- Return one exact trigger phrase the user can copy next time.
- If the user wants to continue immediately, proceed with the chosen skill or MCP.
Output Format
Use this compact structure:
Best fit:the single best discovered skill or MCPWhy:one short reason tied to the taskTrigger:one sentence the user can copy next timeFallback:only when there is a reasonable second choice
If no specialized tool is clearly beneficial, say:
Best fit: noneWhy:normal Codex behavior is enough for this task
Trigger Construction Rules
- For skills, prefer:
Use <skill-name> ... - For MCP tools, prefer:
Prefer <mcp-name> ...orUse <mcp-name> ... - If the best fit is
codegraphand the project does not have.codegraph/, tell the user to initialize it withcodegraph init -i. - If the recommendation depends on assumptions because MCP capability data is incomplete, state that explicitly.
Important Constraints
- Do not invent skills or MCPs that were not discovered.
- Do not dump the entire inventory unless the user asks for a list.
- Do not rely on a static local note as the source of truth.
- Treat the current machine's environment as the source of truth.