Best for
- Use when you have a written implementation plan with mostly independent tasks and want to stay in the current session. For cross-session execution, use executing-plans instead.
GanyuanRan/Aegis/skills/subagent-driven-development/SKILL.md
Use when executing implementation plans with independent tasks in the current session
Decision brief
→ Have an implementation plan with independent tasks? → Fresh subagent per task + two-stage review. 1. Read plan, extract all tasks, create TodoWrite 2. Per task: dispatch implementer → answer questions → implementer completes 3. Review stage 1 (spec compliance) → fix gaps → re-…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/GanyuanRan/Aegis --skill "skills/subagent-driven-development"Inspect the Agent Skill "subagent-driven-development" from https://github.com/GanyuanRan/Aegis/blob/640f943653fdccd1ffd32cd6e3dda889209bb901/skills/subagent-driven-development/SKILL.md at commit 640f943653fdccd1ffd32cd6e3dda889209bb901. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Read plan, extract all tasks with full text, create TodoWrite 2. Per task: dispatch implementer with task text + baseline refs + checkpoint + non-goals 3. Implementer completes → dispatch spec compliance reviewer → fix gaps → re-review until ✅ 4. Dispatch code quality reviewe…
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
Use when you have a written implementation plan with mostly independent tasks and want to stay in the current session. For cross-session execution, use executing-plans instead.
Use the least powerful model per role: mechanical (1-2 files, complete spec) → fast/cheap. Integration (multi-file, pattern matching) → standard. Architecture/design/review → most capable.
Each implementer prompt must include:
Permission review
The documentation asks the agent to read local files, directories, or repositories.
`SubagentContextPacket`. Prefer must-read excerpts, file refs, line/windowThe documentation asks the agent to read local files, directories, or repositories.
Make subagent read plan file (provide full text instead)Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 86/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 927 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
→ Have an implementation plan with independent tasks? → Fresh subagent per task + two-stage review.
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
Why subagents: You delegate tasks to specialized agents with isolated context. By precisely crafting their instructions and context, you ensure they stay focused and succeed at their task. They should never inherit your session's context or history — you construct exactly what they need. This also preserves your own context for coordination work.
Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration
Use when you have a written implementation plan with mostly independent tasks and want to stay in the current session. For cross-session execution, use executing-plans instead.
Before the first repo write, the coordinating agent records
TaskStartSnapshot. Same-task agents share the current workspace. The
coordinator is the only default Git mutation owner for staging, commits,
branches, and worktrees; implementers and reviewers edit/verify/report but do
not mutate Git lifecycle state. Task complexity, TDD, planning, subagents, or a
main/master name does not justify isolation by itself.
Before multi-task plans: load long-task-continuation, create checkpoint, include in every implementer prompt.
Before dispatching an implementer, build a SubagentContextPacket instead of
passing full conversation history. Include:
The packet is a compact handoff, not a substitute for evidence. Give raw excerpts or file refs for facts the subagent must verify.
Do not paste full chat transcripts, full session history, or unbounded logs into
SubagentContextPacket. Prefer must-read excerpts, file refs, line/window
hints, and explicit unsafe assumptions.
Use the least powerful model per role: mechanical (1-2 files, complete spec) → fast/cheap. Integration (multi-file, pattern matching) → standard. Architecture/design/review → most capable.
Each implementer prompt must include:
SubagentContextPacket when goal framing, long-task, or multi-agent work is activeTodoCheckpointDraftResumeStateHintThe implementer may update task-local evidence, but the controller owns the consolidated checkpoint. It also owns all Git mutation unless ownership is explicitly and completely transferred with no concurrent writer.
Implementer subagents report one of four statuses. Handle each appropriately:
DONE: Proceed to spec compliance review.
DONE_WITH_CONCERNS: The implementer completed the work but flagged doubts. Read the concerns before proceeding. If the concerns are about correctness or scope, address them before review. If they're observations (e.g., "this file is getting large"), note them and proceed to review.
NEEDS_CONTEXT: The implementer needs information that wasn't provided. Provide the missing context and re-dispatch.
BLOCKED: The implementer cannot complete the task. Assess the blocker:
Never ignore an escalation or force the same model to retry without changes. If the implementer said it's stuck, something needs to change.
./implementer-prompt.md - Dispatch implementer subagent./spec-reviewer-prompt.md - Dispatch spec compliance reviewer subagent./code-quality-reviewer-prompt.md - Dispatch code quality reviewer subagentNever:
If subagent asks questions:
If reviewer finds issues:
After spec compliance and code quality review pass, update the consolidated checkpoint and run a drift check before moving to the next task.
The coordinator first runs fresh verification, performs one scoped task commit,
and reads back HEAD, the committed file list, and remaining task delta.
If subagent fails task:
Required workflow skills:
Subagents should use:
off, do not auto-load aegis:test-driven-development or force RED / GREEN; use the task's proportional verification. Load it only for TDD Route: strict or an explicit user/project TDD request.Alternative workflow:
Alternatives
obra/superpowers
Use when executing implementation plans with independent tasks in the current session
notque/vexjoy-agent
Fresh-subagent-per-task execution with two-stage review gates.
rpamis/comet
Use when executing implementation plans with independent tasks in the current session
NousResearch/hermes-agent
Execute plans via delegate_task subagents (2-stage review).