Required Resources
Always load before dispatching:
- •
references/triage_matrix.md - •
references/dispatch_contract.md
Workflow
- •Parse input context: ticket key, request text, changed files, and optional feature slug.
- •Classify lane using
references/triage_matrix.md. - •Announce route in one short statement:
- •
This looks like a <lane> because <reason>.
- •
- •Execute the selected playbook:
- •Bug lane (
fixbug_tddvia$fixbug): run TDD-first regression-safe fix workflow. - •Enhancement lane: run
$spec_enhancementplaybook (mini spec + design/develop + validation). - •New feature lane: run
$spec_analyzeplaybook (create new docs/features/<slug>, create/update PRD with hard validation gate).
- •Bug lane (
- •If nested skill invocation is not available, execute the exact target lane workflow inline in the same run.
- •Do not switch lanes mid-run unless new evidence clearly invalidates the original classification; if switched, record why.
Routing Rules
- •Route to bug lane (
fixbug_tdd/$fixbug) when there is regression language, expected-vs-actual mismatch, error/stacktrace, or explicit bug-fix request. - •Route to enhancement lane when scope is ticket-sized behavior tweak/refactor and does not require full feature discovery.
- •Route to new feature lane when work is net-new capability or requirements are ambiguous enough to require PRD-first clarification.
- •Tie-breaker default: enhancement lane unless risk/ambiguity indicates new-feature lane.
Output Contract
- •Always report:
- •Selected lane.
- •One-sentence reason.
- •Key artifacts created/updated.
- •Validation/test status from the chosen playbook.