📄 SKILL.md

← Vault

name: subagent-driven-development

description: Use when executing implementation plans with independent tasks. Dispatches fresh delegate_task per task with two-stage review (spec compliance then code quality).

version: 1.1.0

author: Hermes Agent (adapted from obra/superpowers)

license: MIT

metadata:

hermes:

tags: [delegation, subagent, implementation, workflow, parallel]

related_skills: [writing-plans, requesting-code-review, test-driven-development]


Subagent-Driven Development

Overview

Execute implementation plans by dispatching fresh subagents per task with systematic two-stage review.

Core principle: Fresh subagent per task + two-stage review (spec then quality) = high quality, fast iteration.

When to Use

Use this skill when:

Integration with Other Skills

With writing-plans

This skill EXECUTES plans created by the writing-plans skill:

1. User requirements → writing-plans → implementation plan

2. Implementation plan → subagent-driven-development → working code

With test-driven-development

Implementer subagents should follow TDD:

1. Write failing test first

2. Implement minimal code

3. Verify test passes

4. Commit

Include TDD instructions in every implementer context.

With requesting-code-review

The two-stage review process IS the code review. For final integration review, use the requesting-code-review skill's review dimensions.

With systematic-debugging

If a subagent encounters bugs during implementation:

1. Follow systematic-debugging process

2. Find root cause before fixing

3. Write regression test

4. Resume implementation

Example Workflow

`

[Read plan: docs/plans/auth-feature.md]

[Create todo list with 5 tasks]

--- Task 1: Create User model ---

[Dispatch implementer subagent]

Implementer: "Should email be unique?"

You: "Yes, email must be unique"

Implementer: Implemented, 3/3 tests passing, committed.

[Dispatch spec reviewer]

Spec reviewer: ✅ PASS — all requirements met

[Dispatch quality reviewer]

Quality reviewer: ✅ APPROVED — clean code, good tests

[Mark Task 1 complete]

--- Task 2: Password hashing ---

[Dispatch implementer subagent]

Implementer: No questions, implemented, 5/5 tests passing.

[Dispatch spec reviewer]

Spec reviewer: ❌ Missing: password strength validation (spec says "min 8 chars")

[Implementer fixes]

Implementer: Added validation, 7/7 tests passing.

[Dispatch spec reviewer again]

Spec reviewer: ✅ PASS

[Dispatch quality reviewer]

Quality reviewer: Important: Magic number 8, extract to constant

Implementer: Extracted MIN_PASSWORD_LENGTH constant

Quality reviewer: ✅ APPROVED

[Mark Task 2 complete]

... (continue for all tasks)

[After all tasks: dispatch final integration reviewer]

[Run full test suite: all passing]

[Done!]

`

Remember

`

Fresh subagent per task

Two-stage review every time

Spec compliance FIRST

Code quality SECOND

Never skip reviews

Catch issues early

`

Quality is not an accident. It's the result of systematic process.