skill-router-execution-planner
Route development tasks to the right Codex skill or skill sequence before execution. Use when the user gives a development-related task without explicitly naming a specific skill, asks which skill sho
Files2
View on GitHubSKILL.mdskills/skill-router-execution-planner/SKILL.md
GitHubSkill Router And Execution Planner
Use this skill as a routing layer before development work when the user did not already name a specific skill or when a task clearly needs multiple skills.
Core Rule
Review the available skill inventory before selecting a route. Choose one primary skill, add only useful supporting skills, order them safely, and then execute according to the primary skill while obeying all system, developer, and explicit user instructions. For obvious simple tasks, route internally and proceed without ceremony.
Workflow
- Respect explicit routing first:
- if the user names a skill, use that skill directly unless a safety-related supporting skill is clearly required
- Review the available skill inventory:
- start with the skill metadata already visible in the session
- scan local skill folders only when the inventory may have changed, the user asks to refresh it, or no visible skill fits
- read full skill bodies only for selected or ambiguous skills
- Build a working inventory:
- skill name, purpose, trigger scenarios, output contract, risk level, related skills, and whether it is a normal skill or meta skill
- Understand the user prompt:
- desired outcome, implementation/review/debug/planning/documentation/deployment/cleanup mode, code-change expectation, risk level, and scope
- Classify the task:
- feature, bug, API, frontend, form, database, migration, auth, authorization, test, review, refactor, performance, security, error handling, logging, deployment, CI/CD, documentation, legacy, technical debt, or PR preparation
- Identify affected layers:
- frontend UI, frontend state, API client, backend route, service, database, migration, auth, authorization, tests, docs, deployment, CI/CD, security, performance, and observability
- Select one primary skill:
- choose the most specific skill that matches the user's main goal
- Select supporting skills only when needed:
- add safety, testing, contract, documentation, deployment, or review skills only when they materially improve the work
- Exclude unnecessary skills:
- do not use every skill by default; mention exclusions only when useful for medium or complex tasks
- Detect high-risk areas:
- authentication, authorization, payments, production data, migrations, uploads, deployment, secrets, admin permissions, tenant/shop/customer data, external integrations, and CI/CD deploy automation
- Add safety skills for high-risk work:
- security audit, migration safety review, authorization review, test creation, code review, logging/observability, or documentation when relevant
- Decide execution order:
- understand before editing, design before implementing, review migrations before applying, align backend contract before frontend integration, protect permissions before exposing data, test before claiming completion, review before PR
- Execute the task:
- follow the selected primary skill's workflow and use supporting skills only at the relevant points
- Produce the final output:
- use the primary skill's expected format unless the user asks for a routing decision only
- expose formal routing only when the task is medium, complex, high-risk, ambiguous, or the user asks how the route was chosen
- Update the working inventory when new skills are discovered.
Read references/routing-checklist.md for inventory scan targets, routing examples, safety rules, and output formats.
Non-Negotiable Rules
- Do not override explicit user skill selection unless a safety-related supporting skill is clearly needed.
- Do not ignore system or developer instructions.
- Do not choose a skill from memory alone when the inventory may have changed.
- Do not bulk-load every full skill body when metadata is enough.
- Do not use every skill by default.
- Do not skip safety skills for high-risk work.
- Do not perform destructive actions without explicit approval.
- Do not invent files, commands, architecture, test results, or skill definitions.
- Do not execute before understanding the user request, affected layers, and risk.
- Keep routing quiet for obvious simple tasks and more explicit for complex or high-risk tasks.
Output Contract
For obvious simple tasks, route internally and proceed. Mention the selected skill in one short line only when useful.
When the user asks for routing or the choice is not obvious, provide:
- Selected primary skill.
- Brief reason.
- Action being taken.
For medium, complex, or high-risk tasks, provide:
- Skill inventory review summary.
- Prompt understanding.
- Task classification.
- Affected layers.
- Primary skill and supporting skills.
- Skills considered but not selected when useful.
- Safe execution order.
- Execution result in the primary skill's format.