subagent-driven-development-2Execute implementation plans by dispatching a fresh subagent per task with two-stage review (spec compliance then code quality). Use when you have an implementation plan with mostly independent tasks and want high-quality, fast iteration within a single session.
Install via ClawdBot CLI:
clawdbot install wpank/subagent-driven-development-2Execute a plan by dispatching a fresh subagent per task, with two-stage review after each β spec compliance first, then code quality.
Core principle: Fresh subagent per task + two-stage review = no context pollution, high quality, fast iteration.
npx clawhub@latest install subagent-driven-development
| Condition | This Skill | Alternative |
| ----------------------------- | -------------- | ----------------------------------- |
| Have a plan, same session | Yes | β |
| Have a plan, parallel session | No | executing-plans |
| No plan yet | No | Write a plan first |
| Tasks tightly coupled | No | Manual execution or decompose more |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Read plan, extract ALL tasks with full text β
β 2. Note shared context (arch, deps, conventions) β
β 3. Create TodoWrite with all tasks β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
βΌ
βββββββ Per Task βββββββ
β β
β Dispatch Implementer (references/implementer-prompt.md)
β β β
β βΌ β
β Questions?ββyesβββΊ Answer, re-dispatchβ
β βno β
β βΌ β
β Implement + test + commit + self-reviewβ
β β β
β βΌ β
β Dispatch Spec Reviewer (references/spec-reviewer-prompt.md)
β β β
β βΌ β
β Compliant?ββnoβββΊ Implementer fixesβββ
β βyes then re-review
β βΌ
β Dispatch Code Reviewer (references/code-quality-reviewer-prompt.md)
β β
β βΌ
β Approved?ββnoβββΊ Implementer fixes, re-review
β βyes
β βΌ
β Mark task complete
βββββββββ¬βββββββββββββββ
βΌ
More tasks? ββyesβββΊ next task
βno
βΌ
Final cross-task code review
βΌ
Finish development branch
Three reference prompts are provided for the subagent roles:
| Role | File | Purpose |
| ------------------ | ------------------------------------------- | -------------------------------------- |
| Implementer | references/implementer-prompt.md | Implement, test, commit, self-review |
| Spec reviewer | references/spec-reviewer-prompt.md | Verify code matches spec exactly |
| Code reviewer | references/code-quality-reviewer-prompt.md| Verify code is clean and maintainable |
Controller: Reading plan β 5 tasks extracted, TodoWrite created.
βββ Task 1: Hook installation script βββ
[Dispatch implementer with full task text + context]
Implementer: "Should the hook be installed at user or system level?"
Controller: "User level (~/.config/hooks/)"
Implementer: β
Implemented install-hook command
- Added tests (5/5 passing)
- Self-review: missed --force flag, added it
- Committed
[Dispatch spec reviewer]
Spec reviewer: β
Spec compliant β all requirements met
[Dispatch code reviewer with git SHAs]
Code reviewer: β
Approved β clean, good coverage
[Mark Task 1 complete]
βββ Task 2: Recovery modes βββ
[Dispatch implementer]
Implementer: β
Added verify/repair modes (8/8 tests passing)
[Dispatch spec reviewer]
Spec reviewer: β Issues:
- Missing: progress reporting ("report every 100 items")
- Extra: added --json flag (not in spec)
[Implementer fixes: remove --json, add progress reporting]
Spec reviewer: β
Spec compliant
[Dispatch code reviewer]
Code reviewer: Important β magic number 100, extract constant
[Implementer fixes: extract PROGRESS_INTERVAL]
Code reviewer: β
Approved
[Mark Task 2 complete]
... (tasks 3-5) ...
[Final cross-task code review]
Final reviewer: β
All requirements met, ready to merge
The controller (you) orchestrates the flow. Key duties:
| Responsibility | Detail |
| --------------------------------- | --------------------------------------------------------- |
| Extract tasks upfront | Read plan once, extract all task text β subagents never read the plan file |
| Provide full context | Give each subagent the complete task text + architectural context |
| Answer questions | Respond clearly and completely before letting subagent proceed |
| Enforce review order | Spec compliance first, code quality second β never reversed |
| Track progress | Update TodoWrite after each task completes |
| Dispatch sequentially | One implementation subagent at a time to avoid conflicts |
Each task passes through three quality checks:
| Gate | Who | What |
| ------------------ | --------------- | ------------------------------------------------- |
| Self-review | Implementer | Completeness, naming, YAGNI, test quality |
| Spec review | Spec reviewer | Matches requirements exactly β nothing more, less |
| Code review | Code reviewer | Clean code, maintainability, test coverage |
vs. manual execution:
vs. parallel-session plans:
Cost trade-off: More subagent invocations (implementer + 2 reviewers per task), but catches issues early β cheaper than debugging later.
| Situation | Response |
| ---------------------------- | ----------------------------------------------------- |
| Subagent asks questions | Answer clearly, provide additional context if needed |
| Reviewer finds issues | Same implementer subagent fixes, reviewer re-reviews |
| Subagent fails task entirely | Dispatch a new fix subagent with specific instructions |
| Task blocked by dependency | Reorder remaining tasks or resolve dependency first |
Generated Mar 1, 2026
A development team needs to add new API endpoints, database migrations, and logging across multiple loosely coupled microservices. This skill allows parallel subagents to handle each service's tasks with consistent reviews, ensuring spec alignment and code quality without cross-service context pollution.
An e-commerce company is building independent plugins for payment gateways, inventory sync, and analytics dashboards. Using this skill, each plugin is developed by a dedicated subagent with two-stage review, speeding up iteration while maintaining high standards for compliance and maintainability.
A data engineering team has a plan to create separate components for data ingestion, transformation, and export in a pipeline. This skill dispatches subagents for each component, reviewing spec adherence first (e.g., data formats) then code quality, enabling fast, reliable development within a session.
A mobile app development team is implementing discrete features like user authentication, push notifications, and in-app purchases. This skill assigns each module to a fresh subagent with sequential reviews, ensuring each feature meets exact specifications and follows clean code practices efficiently.
A DevOps team needs to write scripts for deployment, monitoring, and backup automation as part of a larger plan. This skill uses subagents per script task, with spec reviews for functional requirements and code reviews for reliability, streamlining development in a single session.
Agencies building custom software for clients can use this skill to handle multiple client projects concurrently. It accelerates delivery by assigning subagents to independent tasks like UI components or API integrations, with reviews ensuring client specs are met and code is maintainable for long-term support.
Maintainers of open-source projects can leverage this skill to implement new features or fixes from community plans. Subagents handle tasks like bug patches or documentation updates, with reviews ensuring contributions align with project standards and quality, fostering faster releases.
Large organizations developing internal tools (e.g., HR systems or inventory trackers) can apply this skill to execute departmental plans. Subagents work on modular tasks like reporting dashboards or data connectors, with reviews enforcing corporate compliance and code quality for scalable solutions.
π¬ Integration Tip
Ensure tasks are well-defined and independent before starting; use the provided prompt templates to maintain consistency across subagents and reviews.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection