This file is appended as a system prompt via just claude-orchestrate (or just claude-unsafe-prompt PROMPT_FILE=prompts/WORKFLOW.md).
It complements the global SuperClaude framework (FLAGS, PRINCIPLES, MODE_Orchestration, MODE_Token_Efficiency, RTK)
with project-specific model routing, agent patterns, and skill selection.
| Task | Model | Why |
|---|---|---|
| File search, grep, tree exploration | haiku |
Fast, cheap, no reasoning needed |
| Simple edits, boilerplate, test stubs | haiku |
Mechanical work |
| Standard feature impl, bug fixes | sonnet (default) |
Balanced |
| Code review, test writing, adapters | sonnet |
Moderate reasoning |
| Architecture decisions, complex refactors, multi-file design | opus |
Max reasoning |
| Security audit, critical API design | opus |
High-stakes |
Default to Sonnet. Step up to Opus only when the problem requires sustained multi-step reasoning. Step down to Haiku for pure exploration or mechanical tasks.
Model IDs:
- Haiku:
claude-haiku-4-5-20251001 - Sonnet:
claude-sonnet-4-6 - Opus:
claude-opus-4-6
Send a single message with multiple Task tool calls to run agents concurrently:
[Explore agent: find affected files] ←─ parallel ─→ [Explore agent: search for patterns]
↓
[Plan agent: design approach]
↓
[Implement in main context]
↓
[Bash: rtk just test] ←─ parallel ─→ [Bash: rtk just lint]
Common parallel launches:
- Two
Exploreagents scanning different parts of the codebase simultaneously Planagent + background test run while planning- Lint + type-check + tests as independent Bash calls
Explore(Haiku) → understand scopePlan(Sonnet/Opus) → design- Implement in main (Sonnet)
- Verify with RTK commands
Use run_in_background=true for:
- Long test runs while continuing implementation
- CI status polling while writing fixes
- Documentation generation while coding
| Need | Agent type | Model hint |
|---|---|---|
| Find files / search code | Explore |
haiku |
| Design / architecture | Plan |
opus |
| Multi-step implementation | general-purpose |
sonnet |
| Run commands / git | Bash |
haiku |
| Answer questions about Claude Code | claude-code-guide |
haiku |
Every terminal command goes through rtk. No exceptions. This project generates verbose output from pytest, ruff, and git that RTK collapses dramatically.
# Tests (90-99% savings)
rtk just test
rtk just test-core
rtk just test-adapters
rtk pytest tests/test_component.py -v
# Lint/format (70-84% savings)
rtk just lint
rtk just check
rtk ruff check .
# Git (59-80% savings)
rtk git diff
rtk git log --oneline -10
rtk git status
# CI (79-87% savings)
rtk gh pr checks
rtk gh run list
rtk gh run view <id>
# Type checking
rtk ty check src/If rtk is unavailable, pipe to head -50 as fallback.
Match task to skill before writing free-form responses:
| Scenario | Skill | Model |
|---|---|---|
| Implement new component/adapter | /sc:implement |
sonnet |
| Analyze code quality / architecture | /sc:analyze |
sonnet |
| Full code review | /code-review |
sonnet |
| Run and interpret test results | /sc:test |
haiku |
| Debug failing test or runtime error | /sc:troubleshoot |
sonnet |
| Refactor existing code | /refractor |
sonnet |
| Security review of auth/CSRF/XSS | /audit |
opus |
| Generate docs/docstrings | /sc:document |
haiku |
| Git commit + PR workflow | /sc:git |
haiku |
| Complex multi-step project planning | /sc:pm |
opus |
| Brainstorm API design options | /sc:brainstorm |
sonnet |
| Deep web research | /sc:research |
sonnet |
- Start with Explore agents — protect main context from large file reads
- Read only what you'll edit — don't load files for reference only; ask Explore instead
- RTK all output — never let raw pytest/ruff/git output fill context
- Use
head_limiton Grep/Glob when you only need to confirm existence - Summarize before switching tasks — drop intermediate results once conclusions are drawn
- CLAUDE.md is already loaded — don't re-read project context files
1. Explore (haiku, parallel):
- "Find all files in src/ that relate to <feature area>"
- "Search tests/ for existing coverage of <area>"
2. Plan (sonnet or opus depending on complexity):
- Design the implementation following core-first principle:
core/ → adapters/ → examples/ → tests/ → docs/
3. Implement (sonnet, main context):
- Edit files, following ruff style (100 char lines, type hints on public APIs)
4. Verify (parallel Bash agents):
- rtk just test
- rtk just lint
1. rtk just test-core (or test-adapters, or specific file)
2. Read only the failing test + the source it tests
3. /sc:troubleshoot — diagnose root cause
4. Fix → rtk just check
1. rtk git diff master...HEAD
2. /code-review skill
3. rtk gh pr checks (if PR exists)
Follow the adapter pattern in src/component_framework/adapters/:
- Renderer subclass → views/endpoints → optional WebSocket → template tags
- Mirror the existing FastAPI ↔ Django symmetry
rtk ty check src/
# Fix any warnings — ty is strict; use ClassVar, type: ignore[...] sparingly
- Never use Opus for search, grep, or file reads — waste of budget
- Never use Haiku for architectural decisions — false economy, costs more in rework
- Parallelize aggressively — wall-clock time matters more than per-token cost when tasks are independent
- Background long tasks — don't block the main context on pytest runs
- Scope agents tightly — an Explore agent with a specific question returns faster and cheaper than an open-ended one
- Reuse agent context — resume agents with
resumeparameter when doing follow-up work on the same topic