with one click
cost-routing-discipline
// Use when starting any new task to select the right GSD mode (fast/quick/plan-phase) and the right model tier (Haiku/Sonnet/Opus) for subagents — prevents 5-10× cost overpay on routine work
// Use when starting any new task to select the right GSD mode (fast/quick/plan-phase) and the right model tier (Haiku/Sonnet/Opus) for subagents — prevents 5-10× cost overpay on routine work
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | cost-routing-discipline |
| description | Use when starting any new task to select the right GSD mode (fast/quick/plan-phase) and the right model tier (Haiku/Sonnet/Opus) for subagents — prevents 5-10× cost overpay on routine work |
Default Anthropic UI sends everything to Opus 4.7 + max effort. This is correct for architecture but 5-10× overpay for grep, file-search, and routine coding. Without discipline, monthly cost is $300-500 for a solo dev. With discipline, same work costs $50-100.
/gsd-* commands — match mode to task riskTask Mode
─────────────────────────────────────────────────────────────
Trivial (typo, 1 line, doc update) → /gsd-fast
Small feature (<100 LOC, single concern) → /gsd-quick
Big feature (auth, payments, public API) → /gsd-plan-phase
Breaking change / migration → /gsd-plan-phase + /council
| Keyword | Auto-route to |
|---|---|
| "опечатка", "typo", "одна строчка" | /gsd-fast |
| "обновить доку", "doc update" | /gsd-fast |
| "добавить тест", "add test" | /gsd-quick |
| "новый endpoint", "new endpoint" | /gsd-quick (small) or /gsd-plan-phase (with auth) |
| "auth", "payments", "schema migration" | /gsd-plan-phase + /council (always) |
When dispatching subagents (via better-model installed):
Task type Model Effort
──────────────────────────────────────────────────────────────────
Search / grep / pattern match → Haiku 4.5 low
Implementation / coding (1-2 files) → Sonnet 4.6 medium
Test writing → Sonnet 4.6 medium
Single-file debug → Sonnet 4.6 medium
Multi-file refactor (3+) → Opus 4.7 xhigh
Cross-file debug → Opus 4.7 xhigh
Architecture design → Opus 4.7 max
Security audit → Opus 4.7 max
Code review → Opus 4.7 xhigh (max overthinks)
Novel algorithm → Opus 4.7 max
If Serena MCP installed (look for mcp__serena__* tools):
replace_symbol_body,
insert_before_symbol, insert_after_symbol, rename_symbol) for
refactoring — local LSP, no network round-trips, dramatically fewer
tokens than full-file rewritesMorph Fast Apply was removed in v6.1 (no public source repo for the SDK, paid SaaS with no privacy guarantee). There is no plug-and-play equivalent — native Edit covers ~95% of cases honestly.
"find function/symbol/all callers of foo" → Serena (mcp__serena__*)
"find code that does X" semantically → claude-context MCP (>100k LOC)
exact-string search → ripgrep
small project (<10k LOC) → ripgrep + Read
big project (>100k LOC) + frequent queries → claude-context MCP
Track via Anthropic Console → Usage:
≤ $100/mo → use any mode freely
$100-300/mo → default to /gsd-quick for ~70% of work
$300-500/mo → force /gsd-fast for trivial; /gsd-quick mid-tier
> $500/mo → STOP. Audit last week's transcripts. Likely retrying same task multiple times.
/gsd-plan-phase for typo fixes (waste $4 per typo)/gsd-plan-phase on auth/payments to save money (wrong place to cheap out)Pay full price for:
Cost discipline ≠ cheaping out on high-stakes work.
components/cost-discipline.md — full cost layer breakdowncomponents/external-tools-recommended.md — Morph + better-model installrules/cost-discipline.md — auto-load trigger keywordsscripts/setup-cost-routing.sh (PR 5) — better-model installer