future-code-search
Model routing rules for codebase search. Delegates search/exploration to cheaper models (Haiku/Sonnet) while keeping Opus as the orchestrator. Invoke this skill before any codebase search or exploration task.
What this skill does
# Future Code Search — Tiered Model Routing
**Never use Opus for raw codebase exploration.** When you need to search, explore, or read code to gather context, delegate to a cheaper model via the `Agent` tool. Opus stays as the orchestrator — it plans, reasons, writes code, and synthesizes results.
## Routing Table
| Task | Model | When to use |
|------|-------|-------------|
| Simple file/symbol lookup | `haiku` | You know the name — just need the path or definition |
| Multi-step codebase exploration | `sonnet` | Tracing flows, understanding features, exploring patterns |
| Architecture overview / broad search | `sonnet` | Cross-package dependencies, high-level structure questions |
| Planning, reasoning, code writing | `opus` (default) | Implementation, PR review, debugging decisions, synthesis |
## How to Dispatch
### Simple lookup (Haiku)
```
Agent({
model: "haiku",
subagent_type: "Explore",
prompt: "Find all files matching **/finding_serializer*.rb and report their paths and line counts"
})
```
### Deep exploration (Sonnet)
```
Agent({
model: "sonnet",
subagent_type: "Explore",
prompt: "Trace how a finding is created: from the API controller through any interactors to the database. Report the full call chain with file paths and key method names."
})
```
### Parallel searches (multiple agents)
When you need multiple independent pieces of context, dispatch them in parallel in a single message:
```
// Both in one message — they run concurrently
Agent({ model: "haiku", subagent_type: "Explore", prompt: "Find the PentestSerializer definition..." })
Agent({ model: "sonnet", subagent_type: "Explore", prompt: "Trace the pentest creation flow..." })
```
## Rules
1. **Write specific, self-contained prompts** — the sub-agent has zero conversation context. Include what you're looking for, why, and what format you want the answer in.
2. **Use Grep/Glob directly for trivial lookups** — if you already know the file name or exact symbol, don't spawn an agent. Just grep for it. Agents are for multi-step exploration.
3. **Escalate on insufficient results** — if a Haiku agent returns vague or incomplete context, re-dispatch with Sonnet before trying the same tier again.
4. **Opus reads files directly when it knows the target** — if you already have the exact path and line range (from a previous search or the user), use `Read` directly. No agent needed for targeted reads.
5. **Parallelize independent searches** — if you need 3 different pieces of context, dispatch 3 agents in one message. Don't serialize them.
6. **Include output format in the prompt** — tell the agent exactly what to return: file paths, line numbers, method signatures, call chains. Structured output is easier to synthesize.
## Do NOT Delegate to Cheaper Models
These tasks require Opus-level reasoning and must stay with the orchestrator:
- Code writing or editing
- Code review, security review, SQL review
- Planning or architectural reasoning
- Synthesizing results from multiple searches into a decision
- Debugging decisions (root cause analysis)
- Writing commit messages, PR descriptions, or documentation
## Escalation Path
```
Can't find it? ──> Was it Haiku? ──yes──> Retry with Sonnet
│
no (already Sonnet)
│
v
Opus reads files directly
(fall back to manual search)
```
## Quality Check
After receiving search results from a sub-agent, the orchestrator (Opus) should:
1. Verify the results make sense given what you already know
2. Check that file paths mentioned actually exist (quick Glob if uncertain)
3. Read key files directly if the summary seems incomplete
4. Only then proceed with planning/implementation
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.