Feature Pipeline Workflow
Role
You orchestrate multi-phase feature development from discovery through delivery. You spawn specialist agents for parallel work streams, enforce checkpoint gates between phases, and produce numbered output artifacts that chain into subsequent phases. Every phase is git-aware for clean revert.
Why This Exists
Feature development without structure leads to implementation before requirements are understood, tests written after code, and security reviewed never. Feature Pipeline enforces a discovery-then-implement-then-deliver sequence with mandatory human checkpoints, parallel agent execution for throughput, and artifact chaining so no phase operates without the output of its predecessor.
When to Use
Use this workflow when:
- Implementing a feature that touches multiple layers (backend, frontend, tests, docs)
- You want parallel agent execution for backend, frontend, and test writing
- The feature needs a security and performance review before delivery
- You need numbered output artifacts for traceability
- Clean revert per phase is important
When NOT to Use
Do NOT use this workflow when:
- The change is backend-only or frontend-only — because parallel streams add overhead when only one stream has work
- You need foundational project setup first — use conductor instead, because feature-pipeline assumes project conventions already exist
- The feature is a simple CRUD endpoint with no architectural decisions — because the discovery phase is overhead for trivial features
- You're doing exploratory prototyping — because checkpoints slow down experimentation
Pipeline Flow
Phase 1: Discovery
├── Requirements gathering
├── Architecture design
└── Research agents (spawned)
|
[CHECKPOINT 1: User approves requirements + architecture]
|
Phase 2: Implementation
├── Backend agent (spawned)
├── Frontend agent (spawned)
└── Test agent (spawned)
|
Phase 2b: Review
├── Security review
└── Performance review
|
[CHECKPOINT 2: User approves test results + review findings]
|
Phase 3: Delivery
├── Deployment config
├── Documentation
└── Final checklist
Phases
Phase 1: Discovery
Process:
- Gather requirements through structured questions:
- What problem does this feature solve?
- Who are the users? What are their workflows?
- What are the acceptance criteria?
- What are the non-functional requirements (performance, security, scale)?
- What existing systems does this touch?
- Spawn research agents via Task tool:
- Architect agent: Analyze codebase for integration points, propose component design
- Domain agent: Research similar implementations, identify patterns and pitfalls
- Synthesize agent output into architecture design
- Produce output artifacts
Output Artifacts:
| File |
Purpose |
.feature-dev/01-requirements.md |
Functional and non-functional requirements |
.feature-dev/02-architecture.md |
Component design, data flow, integration points |
.feature-dev/03-research-notes.md |
Agent research findings, patterns, risks |
CHECKPOINT 1: User must approve requirements and architecture before implementation begins. Present a summary with key decisions highlighted. Accept modifications — iterate until approved.
Phase 2: Implementation
Activated when: User approves Checkpoint 1
Process:
- Read all Phase 1 artifacts for context
- Spawn parallel implementation agents via Task tool:
| Agent |
Responsibility |
Input |
| Backend agent |
Models, services, API endpoints, migrations |
01-requirements.md + 02-architecture.md |
| Frontend agent |
Components, pages, state management, API integration |
01-requirements.md + 02-architecture.md |
| Test agent |
Unit tests, integration tests, edge cases |
01-requirements.md + 02-architecture.md + implementation code |
- Collect agent output and verify integration
- Run full test suite — all tests must pass
- Produce implementation artifacts
Output Artifacts:
| File |
Purpose |
.feature-dev/04-implementation-log.md |
What was built, file list, decisions made during implementation |
.feature-dev/05-test-report.md |
Test results, coverage delta, edge cases covered |
Agent Coordination:
- Backend and frontend agents run in parallel
- Test agent starts after implementation agents complete (needs code to test)
- If any agent fails, halt all agents and report to user
- Each agent commits to a feature branch — merge conflicts resolved before proceeding
Phase 2b: Review
Activated when: Phase 2 implementation and tests are complete
Process:
- Spawn review agents via Task tool:
| Agent |
Focus Areas |
| Security agent |
Input validation, injection risks, auth/authz, credential handling, OWASP top 10 |
| Performance agent |
Time/space complexity, N+1 queries, resource leaks, caching opportunities |
- Collect findings and categorize by severity (critical, high, medium, low)
- Critical and high findings must be addressed before proceeding
- Medium and low findings logged as follow-up items
Output Artifacts:
| File |
Purpose |
.feature-dev/06-security-review.md |
Security findings with severity and remediation |
.feature-dev/07-performance-review.md |
Performance findings with severity and remediation |
CHECKPOINT 2: User must approve test results and review findings. Present:
- Test coverage summary
- Critical/high findings (must be zero to proceed)
- Medium/low findings (acknowledged as follow-up)
- Overall readiness assessment
Phase 3: Delivery
Activated when: User approves Checkpoint 2
Process:
- Read all prior artifacts for context
- Generate deployment configuration:
- Environment variables needed
- Migration scripts (if applicable)
- Infrastructure changes (if applicable)
- Generate documentation:
- API documentation for new endpoints
- User-facing documentation (if applicable)
- Architecture decision records for significant choices
- Run final checklist
- Produce delivery artifacts
Output Artifacts:
| File |
Purpose |
.feature-dev/08-deploy-config.md |
Environment vars, migrations, infrastructure changes |
.feature-dev/09-documentation.md |
API docs, user docs, ADRs |
.feature-dev/10-final-checklist.md |
Pre-merge verification checklist |
Final Checklist:
## Pre-Merge Checklist
- [ ] All tests pass
- [ ] Coverage meets or exceeds project threshold
- [ ] No critical or high security findings
- [ ] No critical or high performance findings
- [ ] API documentation updated
- [ ] Migration scripts tested
- [ ] Environment variables documented
- [ ] Rollback procedure documented
- [ ] PR description includes acceptance criteria verification
State Tracking
Directory Structure
.feature-dev/
├── 01-requirements.md
├── 02-architecture.md
├── 03-research-notes.md
├── 04-implementation-log.md
├── 05-test-report.md
├── 06-security-review.md
├── 07-performance-review.md
├── 08-deploy-config.md
├── 09-documentation.md
├── 10-final-checklist.md
└── state.json
State JSON
{
"feature": "user-authentication",
"started_at": "2026-03-08T22:00:00Z",
"current_phase": "implementation",
"phases": {
"discovery": {
"status": "complete",
"checkpoint_approved": true,
"git_ref_start": "abc123",
"git_ref_end": "def456"
},
"implementation": {
"status": "in_progress",
"agents": {
"backend": {"status": "complete", "task_id": "task-001"},
"frontend": {"status": "in_progress", "task_id": "task-002"},
"test": {"status": "pending", "task_id": null}
},
"git_ref_start": "def456",
"git_ref_end": null
},
"review": {"status": "pending"},
"delivery": {"status": "pending"}
}
}
Git Awareness
| Phase |
Git Behavior |
| Discovery |
No code changes — artifacts only |
| Implementation |
Feature branch, commits per agent stream |
| Review |
Fix commits for critical/high findings |
| Delivery |
Config and docs commits |
| Revert |
git revert all commits in target phase range (git_ref_start..git_ref_end) |
Revert by Phase:
- Each phase records
git_ref_start and git_ref_end
- Revert a phase:
git revert --no-commit git_ref_start..git_ref_end && git commit
- Revert produces a single revert commit per phase — never rewrites history
Error Handling
| Failure |
Response |
| Agent fails during implementation |
Halt all parallel agents, report failure with agent output, wait for user decision |
| Tests fail after implementation |
Report test failures with output, do not proceed to review phase |
| Critical security finding |
Block delivery phase, require remediation and re-review |
| Merge conflict between agent branches |
Report conflicts, present resolution options, wait for user decision |
| State file corrupted |
Rebuild from git log and artifact files, warn user |
| Missing prerequisite artifacts |
Halt and redirect to the phase that produces them |
Constraints
- Checkpoint gates are mandatory — never skip user approval between phases
- Phase artifacts must exist before the next phase can start
- Agent failures halt the pipeline — never auto-continue past errors
- Critical and high review findings must be resolved before delivery
- All code changes go through a feature branch, never direct to main
- State file is updated after every phase transition
- Numbered artifact files (01-10) are append-only during a feature — never overwrite prior phase output
- Maximum 3 parallel agents per phase to avoid context fragmentation
- Revert operations create new commits, never rewrite history
Source
Derived from wshobson/agents backend-development feature-development command. Adapted for AreteDriver multi-agent workflow conventions.
1---2name: feature-pipeline3version: "1.0.0"4lifecycle: experimental5description: "Multi-phase feature development with checkpoint gates, parallel agent streams, and phased artifact output"6metadata: {"openclaw": {"emoji": "🚀", "os": ["darwin", "linux", "win32"]}}7type: workflow8category: development9risk_level: medium10---1112# Feature Pipeline Workflow1314## Role1516You orchestrate multi-phase feature development from discovery through delivery. You spawn specialist agents for parallel work streams, enforce checkpoint gates between phases, and produce numbered output artifacts that chain into subsequent phases. Every phase is git-aware for clean revert.1718## Why This Exists1920Feature development without structure leads to implementation before requirements are understood, tests written after code, and security reviewed never. Feature Pipeline enforces a discovery-then-implement-then-deliver sequence with mandatory human checkpoints, parallel agent execution for throughput, and artifact chaining so no phase operates without the output of its predecessor.2122## When to Use2324Use this workflow when:25- Implementing a feature that touches multiple layers (backend, frontend, tests, docs)26- You want parallel agent execution for backend, frontend, and test writing27- The feature needs a security and performance review before delivery28- You need numbered output artifacts for traceability29- Clean revert per phase is important3031## When NOT to Use3233Do NOT use this workflow when:34- The change is backend-only or frontend-only — because parallel streams add overhead when only one stream has work35- You need foundational project setup first — use conductor instead, because feature-pipeline assumes project conventions already exist36- The feature is a simple CRUD endpoint with no architectural decisions — because the discovery phase is overhead for trivial features37- You're doing exploratory prototyping — because checkpoints slow down experimentation3839## Pipeline Flow4041```42Phase 1: Discovery43 ├── Requirements gathering44 ├── Architecture design45 └── Research agents (spawned)46 |47 [CHECKPOINT 1: User approves requirements + architecture]48 |49Phase 2: Implementation50 ├── Backend agent (spawned)51 ├── Frontend agent (spawned)52 └── Test agent (spawned)53 |54Phase 2b: Review55 ├── Security review56 └── Performance review57 |58 [CHECKPOINT 2: User approves test results + review findings]59 |60Phase 3: Delivery61 ├── Deployment config62 ├── Documentation63 └── Final checklist64```6566## Phases6768### Phase 1: Discovery6970**Process:**711. Gather requirements through structured questions:72 - What problem does this feature solve?73 - Who are the users? What are their workflows?74 - What are the acceptance criteria?75 - What are the non-functional requirements (performance, security, scale)?76 - What existing systems does this touch?772. Spawn research agents via Task tool:78 - **Architect agent:** Analyze codebase for integration points, propose component design79 - **Domain agent:** Research similar implementations, identify patterns and pitfalls803. Synthesize agent output into architecture design814. Produce output artifacts8283**Output Artifacts:**84| File | Purpose |85|------|---------|86| `.feature-dev/01-requirements.md` | Functional and non-functional requirements |87| `.feature-dev/02-architecture.md` | Component design, data flow, integration points |88| `.feature-dev/03-research-notes.md` | Agent research findings, patterns, risks |8990**CHECKPOINT 1:** User must approve requirements and architecture before implementation begins. Present a summary with key decisions highlighted. Accept modifications — iterate until approved.9192### Phase 2: Implementation9394Activated when: User approves Checkpoint 19596**Process:**971. Read all Phase 1 artifacts for context982. Spawn parallel implementation agents via Task tool:99100| Agent | Responsibility | Input |101|-------|---------------|-------|102| **Backend agent** | Models, services, API endpoints, migrations | 01-requirements.md + 02-architecture.md |103| **Frontend agent** | Components, pages, state management, API integration | 01-requirements.md + 02-architecture.md |104| **Test agent** | Unit tests, integration tests, edge cases | 01-requirements.md + 02-architecture.md + implementation code |1051063. Collect agent output and verify integration1074. Run full test suite — all tests must pass1085. Produce implementation artifacts109110**Output Artifacts:**111| File | Purpose |112|------|---------|113| `.feature-dev/04-implementation-log.md` | What was built, file list, decisions made during implementation |114| `.feature-dev/05-test-report.md` | Test results, coverage delta, edge cases covered |115116**Agent Coordination:**117- Backend and frontend agents run in parallel118- Test agent starts after implementation agents complete (needs code to test)119- If any agent fails, halt all agents and report to user120- Each agent commits to a feature branch — merge conflicts resolved before proceeding121122### Phase 2b: Review123124Activated when: Phase 2 implementation and tests are complete125126**Process:**1271. Spawn review agents via Task tool:128129| Agent | Focus Areas |130|-------|------------|131| **Security agent** | Input validation, injection risks, auth/authz, credential handling, OWASP top 10 |132| **Performance agent** | Time/space complexity, N+1 queries, resource leaks, caching opportunities |1331342. Collect findings and categorize by severity (critical, high, medium, low)1353. Critical and high findings must be addressed before proceeding1364. Medium and low findings logged as follow-up items137138**Output Artifacts:**139| File | Purpose |140|------|---------|141| `.feature-dev/06-security-review.md` | Security findings with severity and remediation |142| `.feature-dev/07-performance-review.md` | Performance findings with severity and remediation |143144**CHECKPOINT 2:** User must approve test results and review findings. Present:145- Test coverage summary146- Critical/high findings (must be zero to proceed)147- Medium/low findings (acknowledged as follow-up)148- Overall readiness assessment149150### Phase 3: Delivery151152Activated when: User approves Checkpoint 2153154**Process:**1551. Read all prior artifacts for context1562. Generate deployment configuration:157 - Environment variables needed158 - Migration scripts (if applicable)159 - Infrastructure changes (if applicable)1603. Generate documentation:161 - API documentation for new endpoints162 - User-facing documentation (if applicable)163 - Architecture decision records for significant choices1644. Run final checklist1655. Produce delivery artifacts166167**Output Artifacts:**168| File | Purpose |169|------|---------|170| `.feature-dev/08-deploy-config.md` | Environment vars, migrations, infrastructure changes |171| `.feature-dev/09-documentation.md` | API docs, user docs, ADRs |172| `.feature-dev/10-final-checklist.md` | Pre-merge verification checklist |173174**Final Checklist:**175```markdown176## Pre-Merge Checklist177178- [ ] All tests pass179- [ ] Coverage meets or exceeds project threshold180- [ ] No critical or high security findings181- [ ] No critical or high performance findings182- [ ] API documentation updated183- [ ] Migration scripts tested184- [ ] Environment variables documented185- [ ] Rollback procedure documented186- [ ] PR description includes acceptance criteria verification187```188189## State Tracking190191### Directory Structure192```193.feature-dev/194├── 01-requirements.md195├── 02-architecture.md196├── 03-research-notes.md197├── 04-implementation-log.md198├── 05-test-report.md199├── 06-security-review.md200├── 07-performance-review.md201├── 08-deploy-config.md202├── 09-documentation.md203├── 10-final-checklist.md204└── state.json205```206207### State JSON208```json209{210 "feature": "user-authentication",211 "started_at": "2026-03-08T22:00:00Z",212 "current_phase": "implementation",213 "phases": {214 "discovery": {215 "status": "complete",216 "checkpoint_approved": true,217 "git_ref_start": "abc123",218 "git_ref_end": "def456"219 },220 "implementation": {221 "status": "in_progress",222 "agents": {223 "backend": {"status": "complete", "task_id": "task-001"},224 "frontend": {"status": "in_progress", "task_id": "task-002"},225 "test": {"status": "pending", "task_id": null}226 },227 "git_ref_start": "def456",228 "git_ref_end": null229 },230 "review": {"status": "pending"},231 "delivery": {"status": "pending"}232 }233}234```235236## Git Awareness237238| Phase | Git Behavior |239|-------|-------------|240| Discovery | No code changes — artifacts only |241| Implementation | Feature branch, commits per agent stream |242| Review | Fix commits for critical/high findings |243| Delivery | Config and docs commits |244| Revert | `git revert` all commits in target phase range (git_ref_start..git_ref_end) |245246**Revert by Phase:**247- Each phase records `git_ref_start` and `git_ref_end`248- Revert a phase: `git revert --no-commit git_ref_start..git_ref_end && git commit`249- Revert produces a single revert commit per phase — never rewrites history250251## Error Handling252253| Failure | Response |254|---------|----------|255| Agent fails during implementation | Halt all parallel agents, report failure with agent output, wait for user decision |256| Tests fail after implementation | Report test failures with output, do not proceed to review phase |257| Critical security finding | Block delivery phase, require remediation and re-review |258| Merge conflict between agent branches | Report conflicts, present resolution options, wait for user decision |259| State file corrupted | Rebuild from git log and artifact files, warn user |260| Missing prerequisite artifacts | Halt and redirect to the phase that produces them |261262## Constraints263264- Checkpoint gates are mandatory — never skip user approval between phases265- Phase artifacts must exist before the next phase can start266- Agent failures halt the pipeline — never auto-continue past errors267- Critical and high review findings must be resolved before delivery268- All code changes go through a feature branch, never direct to main269- State file is updated after every phase transition270- Numbered artifact files (01-10) are append-only during a feature — never overwrite prior phase output271- Maximum 3 parallel agents per phase to avoid context fragmentation272- Revert operations create new commits, never rewrite history273274## Source275276Derived from wshobson/agents backend-development feature-development command. Adapted for AreteDriver multi-agent workflow conventions.