بنقرة واحدة
subagent-driven-development
Use when executing implementation plans with independent tasks in the current session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when executing implementation plans with independent tasks in the current session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when you have a spec or requirements for a multi-step task, before touching code
Fast, MVP-focused grilling session for plans, prototypes, designs, or feature ideas. Use when the user wants to stress-test direction, clarify assumptions, reduce scope, or get challenged without a long decision-tree interview.
Execute and orchestrate multiple AI agent CLIs (agy, Codex, Cursor, Claude Code, Pi) for getting alternative opinions, comparing approaches, or leveraging different AI models' strengths. Use when the user explicitly mentions agent names like "ask agy", "ask cursor", "ask codex", "ask pi", "use composer", "use pi", "try grok", or when needing diverse perspectives on complex problems, alternative implementation approaches, or multi-agent collaboration.
Summarize a video (URL or local path) by pulling captions first, falling back to audio-only transcription, and optionally extracting frames for visual summaries. Use when the user pastes a YouTube/Vimeo/X/etc URL, points at a local video file, or asks to summarize, watch, or extract takeaways from a video. Triggers on "summarize this video", "what's in this video", "watch this", URLs ending in /watch, /shorts, common video extensions (.mp4/.mov/.mkv/.webm).
Multi-provider web search fanout across Exa, Tavily, Brave, LangSearch, and Marginalia with parallel dispatch, dedupe, and AI summary. Use ONLY on explicit user intent for a named provider (Exa, Tavily, Brave, LangSearch, Marginalia), cross-provider fanout, semantic code/paper search, indie small-web search, or when native web search returned weak results. Do NOT auto-pick on generic search queries; native WebSearch is preferred for those.
| name | subagent-driven-development |
| description | Use when executing implementation plans with independent tasks in the current session |
Execute plan by dispatching fresh subagent per task, with two-stage review after each: spec compliance review first, then code quality review.
Why subagents: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration. Isolated context per task; subagents never inherit session history, controller constructs exactly what they need and coordinates only, preserving its context for orchestration.
Continuous execution: Do not pause to check in with your human partner between tasks. Execute all tasks from the plan without stopping. The only reasons to stop are: BLOCKED status you cannot resolve, ambiguity that genuinely prevents progress, or all tasks complete. "Should I continue?" prompts and progress summaries waste their time — they asked you to execute the plan, so execute it.
Before implementation, inspect the current branch.
If on main or master, ask which path to use:
.worktrees/<branch-name>/ in the current working
directorymain or masterRecommend a feature branch for simple work. Recommend a worktree for risky work, parallel work, or changes that need stronger isolation.
Continuing on main or master requires explicit user consent.
When creating a worktree, ensure .worktrees/ is listed in the target repo
.gitignore. Add it first if missing.
If the plan file uses checkboxes, ask before editing it to track progress.
If approved, preserve all original content except checkbox state. Update each
task checkbox from - [ ] to - [x] immediately after the task is implemented,
verified, and approved by both reviewers. Do not batch checkbox updates at the
end.
If not approved, track progress with TodoWrite and chat status only.
Read the plan for its commit policy.
If the plan has no commit policy, ask before implementation:
How should commits be handled for this plan?
**A**. One commit per task **B**. One commit at the end **C**. No commits
Follow the selected policy. Never commit when the policy is No commits.
flowchart TD
P{Have implementation plan?} -->|yes| I{Tasks mostly independent?}
P -->|no| M[Manual execution or brainstorm first]
I -->|yes| S[subagent-driven-development]
I -->|"no - tightly coupled"| M
flowchart TD
Start[Read plan, run safety gates, note plan_path + task ids + scene-setting context, create TodoWrite] --> Disp
subgraph PerTask[Per Task]
Disp[Dispatch implementer subagent ./implementer-prompt.md] --> Q{Implementer asks questions?}
Q -->|yes| Ans[Answer questions, provide context] --> Disp
Q -->|no| Impl[Implementer implements, tests, maybe commits, self-reviews]
Impl --> Spec[Dispatch spec reviewer ./spec-reviewer-prompt.md]
Spec --> SpecOk{Code matches spec?}
SpecOk -->|no| SpecFix[Implementer fixes spec gaps] -->|re-review| Spec
SpecOk -->|yes| CQ[Dispatch code quality reviewer ./code-quality-reviewer-prompt.md]
CQ --> CQOk{Approved?}
CQOk -->|no| CQFix[Implementer fixes quality issues] -->|re-review| CQ
CQOk -->|yes| Done[Mark task complete in TodoWrite]
end
Done --> More{More tasks remain?}
More -->|yes| Disp
More -->|no| Final[Dispatch final code reviewer for entire implementation]
Final --> Verify[Use verification-before-completion and report final status]
Before dispatching subagents:
plan_path was not provided OR the file
does not exist OR is empty. Ask the user for a valid plan file before
proceeding. Skills load at the step that needs them (see step annotations
**Skills (load if not already loaded):** in the plan) - implementer
subagents handle that themselves. Do NOT pre-load skills upfrontplan_path, task ids, and scene-setting context per task. Do NOT
extract task text verbatim - subagents read the plan themselves via pointersTell implementer subagents the selected commit policy:
One commit per task: commit after that task is implemented and verifiedOne commit at the end: do not commit during individual tasksNo commits: do not commitbase_ref discoveryCapture two values:
git merge-base HEAD <default-branch> where
default-branch is main or master (detect with
git symbolic-ref refs/remotes/origin/HEAD)git rev-parse HEAD at task start,
before dispatching the implementer. Per-task base_ref = that SHA. Task 1's
base equals the plan-level merge-base only on a clean branch with no prior
commits; otherwise it's whatever HEAD is at task startOne commit per task, per-task base shifts after each commit; recapture
at the start of each taskPreconditions before dispatching:
changed_files captured at task end, BEFORE any per-task commit. After
git commit, git status --porcelain returns empty; derive from
git diff --name-only <task_base_ref>...HEAD instead. For renames, use the
destination pathUse the least powerful model that handles each role.
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.
3 rounds per reviewer (spec, code-quality, AND final reviewer). One round = one dispatch + one implementer fix attempt. Round 4: STOP. Escalate with the reviewer's latest issues and the implementer's latest attempt.
Repeated rejection often signals a plan defect, not a fix defect. Escalation gives the user a chance to update the plan.
Do NOT read or open the template files yourself — each subagent reads its template. Reading them into your own context defeats the offload. Pass the absolute template path + the values it needs.
Conventions:
<skill_dir> resolves to the directory of THIS SKILL.md (e.g.
/Users/me/.claude/skills/subagent-driven-development). Substitute the real
absolute path before sendingchanged_files is a SPACE-separated list of paths suitable for use after --
in git commands (e.g. src/a.ts src/b.ts). No JSON, no commas, no bracketsMUST read instructions at ... line plus values; never paste the
template body into the promptImplementer:
MUST read instructions at <skill_dir>/implementer-prompt.md FIRST. Do not
act until you have read it. Then apply:
task_summary = <one-line summary of the task>
plan_path = <abs path>
task_id = <task number / heading>
working_dir = <abs path>
commit_policy = <One commit per task | One commit at the end | No commits>
context = <scene-setting only: where this task fits, prior task
outputs, dependencies, architectural notes not in the plan>
Spec compliance reviewer:
MUST read instructions at <skill_dir>/spec-reviewer-prompt.md FIRST. Do not
act until you have read it. Then apply:
task_summary = <one-line summary of the task>
plan_path = <abs path>
task_id = <task number / heading>
base_ref = <SHA at task start, or merge-base for final review>
changed_files = <space-separated paths>
Code quality reviewer:
MUST read instructions at <skill_dir>/code-quality-reviewer-prompt.md FIRST.
Do not act until you have read it. Then apply:
description = <one-line task summary>
plan_or_requirements = "Task <task_id> from <plan_path>"
base_ref = <SHA>
changed_files = <space-separated paths>
Never:
plan_path + task_id only)Related workflow skills:
requesting-code-review)