workflow-router
Routes ambiguous or multi-domain engineering requests to the smallest ordered skill set. Do not use for clear single-skill work or same-task follow-ups.
Files4
View on GitHubSKILL.mdskills/workflow-router/SKILL.md
GitHubWorkflow Router
Use this router only when the request is genuinely ambiguous, spans multiple engineering domains, or needs an ordered handoff between workflows. A directly requested leaf skill takes precedence.
Fast Path
- Clear single-domain request: choose the narrowest leaf skill directly and do not use this router.
- Same-task follow-up: reuse the active route. Do not reread an unchanged
SKILL.mdalready available in the conversation. - Changed domain, risk class, external system, or requested workflow: route only the changed portion.
Workflow
- Classify the request by concrete deliverable and mutation risk.
- Select one primary skill and at most one supporting skill by default.
- Add another skill only when it contributes a distinct required procedure or evidence type.
- Read only selected skills whose instructions are not already available.
- Order mixed work by dependency, usually evidence or design before mutation, then validation.
- If the common routes below are insufficient, read
references/routes.mdfor the exhaustive route table.
Author-Maintained Providers
Keep owner rules and route policy separate from the author's workflow. For a
catalog intent, be skills route INTENT --json resolves the reviewed provider
and its local dependency state without installation or an author update check.
Use an explicitly named, current-session skill first. Otherwise load the actual
compatible upstream instructions only when exposed by the host; files alone
mean exposure is unverified. Report missing providers, setup, or a pending reload.
Install missing reviewed dependencies through the selected profile's lifecycle; reuse compatible native providers. Updates use a separate, explicitly selected reviewed pin. Preserve the complete author tree and dependencies; never replace it with a summary or silently bypass conflicting steps. Keep personal policy separate, same-task routes stable and avoid per-turn lifecycle probes.
Common Routes
- Bug or failure investigation:
superpowers.systematic-debuggingplus the relevant ecosystem skill. - Behavior implementation: relevant ecosystem skill; add
superpowers.test-driven-developmentwhen behavior coverage is required. - Explicit review:
superpowers.requesting-code-review; usesecurity-routerorui-routerwhen that domain is central. - Refactor without behavior change:
refactoringplus the ecosystem skill. - Performance investigation:
performanceplus the ecosystem skill. - Migration, architecture, multi-agent, external pack, durable memory, or runtime-capability selection: use the matching specialist route in the reference table.
debugging, testing-tdd and code-review are compatibility aliases that load
these original providers. They contain no author procedure.
Output
Do not emit a routing preamble for an obvious route. Briefly state the route only when the choice is ambiguous, the request needs multiple stages, or a limitation changes the result.
Healthcheck
When asked to verify installed routing, run:
bash ~/.codex/skills/workflow-router/scripts/validate-routing.sh