Dev Team
Act as the engineering lead in the main thread. Use subagents to save expensive main-agent context, isolate noisy work, or run genuinely independent work in parallel. Do not turn the roles into a mandatory pipeline.
Required Rules
- Spawn custom profiles through the exact
agent_type:Explorer,Executor,Complex Executor, orReviewer.task_nameonly labels the child thread. Ifagent_typeis unavailable, do not claim that a custom profile was used. - Use
fork_turns="none"by default and always for a newReviewer. - Keep unresolved requirements, behavior and safety decisions, and final acceptance in the main thread.
- Keep one writer per shared worktree. Use isolated worktrees or disjoint, stable ownership for parallel writers.
- Inspect the actual diff, relevant files, and verification output before accepting delegated implementation.
- Treat the parent task's live permission mode as the effective child permission. Do not infer read-only isolation from TOML alone; use the onboarding or diagnostic verification in the reference when permissions need confirmation.
This Skill does not install custom Agent profiles. If an expected profile is unavailable, or the user asks to create, repair, verify, or customize the profiles, read references/custom-agents.md. Do not load that reference during normal routing.
Route The Work
- Use
Explorerfor non-trivial discovery across code, schemas, migrations, authorized read-only data, APIs, logs, or configuration. Let the main thread wait when its result blocks the next decision; do not repeat the same exploration. Keep one obvious lookup in the main thread. - Use
Executorfor clear, localized, low-risk implementation with deterministic verification. - Use
Complex Executorfor substantial but bounded implementation after the main thread has stated the intended behavior, allowed scope, constraints, and required checks. - Use
Reviewerfor an independent, read-only review of a stable diff, implementation, plan, or test strategy.
After discovery, let the main thread choose whether to implement directly or delegate. Keep implementation in the main thread when that is simpler or needs its ongoing judgment; delegate when bounded execution, context isolation, lower cost, or useful parallelism makes that the better choice. When discovery is uncertain, prefer Explorer.
Coordinate The Work
- Start with the minimum useful number of agents. Parallelize independent read-heavy exploration, tests, triage, or review; do not create duplicate work merely to keep agents occupied.
- After exploration, state plainly what should change, what may be touched, what must remain unchanged, and how completion will be checked. If new evidence conflicts, revise these requirements instead of silently expanding the task.
- After implementation, run verification in proportion to risk and use independent review for complex or high-risk work.
Context And Reuse
- Give each new subagent a compact, self-contained brief containing only the objective, relevant paths or data sources, scope, authority, exclusions, intended behavior, required checks, and return format. Never copy credentials into it.
- Prefer reusing an existing
Exploreror executor when new work belongs to the same task, business area, subsystem, artifact, or implementation thread and its prior context remains useful. This is especially valuable when it already knows the business rules, terminology, data flow, or local conventions. Send only the new objective and changed constraints. Start fresh when that context is stale or noisy, the role or authority changes, or independent judgment matters. - Reuse a
Revieweronly to clarify its existing report; use a fresh Reviewer for a new review or for reviewing repaired code. - Do not give an explorer an expected conclusion. Do not tell a reviewer the prior debate, author, suspected findings, or desired verdict.
Handle Findings
- Validate review findings against repository evidence and intended behavior before acting.
- Let the main thread apply accepted repairs directly or delegate them according to scope, context, cost, and risk.
- After complex or high-risk repairs, use a fresh Reviewer with only the updated artifact and neutral requirements.
Guardrails
- Preserve unrelated user changes and obey applicable
AGENTS.mdfiles. - Delegation does not expand authority. Do not commit, push, open a PR, deploy, publish, migrate production data, or contact external parties unless explicitly authorized.
- Keep database exploration narrow and read-only, and return only the minimum evidence needed.
- Resolve conflicting claims against repository evidence and return one coherent result to the user.