Subagent-Driven Development for Openclaw

A robust framework for executing complex implementation plans by dispatching fresh AI subagents for every task with a mandatory two-stage review process.

wpank
v0.1.0
Feb 10, 2026
0
1.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install subagent-driven-development-2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install subagent-driven-development-2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Subagent-Driven Development?

Subagent-Driven Development is a sophisticated workflow designed for Openclaw Skills that prioritizes code integrity and architectural consistency. By isolating each task within a fresh subagent, the system eliminates context pollution and prevents the technical debt often associated with long-running AI sessions. This skill is particularly effective for developers who have a pre-defined implementation plan and need a reliable way to transform that plan into production-grade code without constant human intervention.

The core philosophy centers on specialized roles: an Implementer to write the code, a Spec Reviewer to ensure functional compliance, and a Code Reviewer to enforce maintainability. This multi-layered approach ensures that every change within Openclaw Skills environments is vetted for both compliance and quality before being integrated into the development branch.

Subagent-Driven Development Use Cases

  • Executing multi-task implementation plans within a single session without manual handoffs.
  • Scaling development through autonomous subagents while maintaining strict architectural standards.
  • Implementing features that require Test-Driven Development (TDD) and rigorous code reviews.
  • Managing complex refactoring tasks where context isolation is critical to avoid regression.

How Subagent-Driven Development Works

  1. The controller reads the implementation plan and extracts all tasks into a centralized TodoWrite manifest.
  2. A fresh Implementer subagent is dispatched for the current task, receiving full architectural context and specific task requirements.
  3. After implementation and self-review, a Spec Reviewer subagent verifies that the code matches the original specifications exactly.
  4. Once spec-compliant, a Code Reviewer subagent analyzes the git SHAs to ensure clean code, maintainability, and high test coverage.
  5. Upon final approval from both reviewers, the task is marked complete, and the controller moves to the next item in the plan.

Subagent-Driven Development Setup

To integrate this skill into your environment, use the following command:

npx clawhub@latest install subagent-driven-development

Ensure you have an implementation plan ready so the Openclaw Skills controller can accurately extract tasks and shared architectural context.

Subagent-Driven Development Data Schema & Taxonomy

The skill manages its workflow through a structured metadata taxonomy and task tracking:

Component Description
TodoWrite A centralized file or state object tracking the status of all extracted tasks.
Task Context A payload containing specific requirements, architectural dependencies, and coding conventions.
Review Logs Documentation of spec compliance and code quality approvals per task.
Git SHAs Reference points for reviewers to analyze changes between implementation and review phases.

Subagent-Driven Development Advanced Features

  • Fresh Context Isolation: Automatically resets subagent memory per task to prevent context drift and hallucinations within the Openclaw Skills ecosystem.
  • Two-Stage Quality Gates: Mandatory separation of functional verification (spec) and structural verification (quality).
  • Automated Re-review Loops: Triggers recursive implementation fixes and reviews until all quality bars are met.
  • Cross-Task Analysis: Performs a final holistic review of the entire development branch to ensure inter-task consistency.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*