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-pipeline3description: Multi-phase feature development with checkpoint gates, parallel agent streams, and phased artifact output4---56# Feature Pipeline Workflow78## Role910You 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.1112## Why This Exists1314Feature 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.1516## When to Use1718Use this workflow when:19- Implementing a feature that touches multiple layers (backend, frontend, tests, docs)20- You want parallel agent execution for backend, frontend, and test writing21- The feature needs a security and performance review before delivery22- You need numbered output artifacts for traceability23- Clean revert per phase is important2425## When NOT to Use2627Do NOT use this workflow when:28- The change is backend-only or frontend-only — because parallel streams add overhead when only one stream has work29- You need foundational project setup first — use conductor instead, because feature-pipeline assumes project conventions already exist30- The feature is a simple CRUD endpoint with no architectural decisions — because the discovery phase is overhead for trivial features31- You're doing exploratory prototyping — because checkpoints slow down experimentation3233## Pipeline Flow3435```36Phase 1: Discovery37 ├── Requirements gathering38 ├── Architecture design39 └── Research agents (spawned)40 |41 [CHECKPOINT 1: User approves requirements + architecture]42 |43Phase 2: Implementation44 ├── Backend agent (spawned)45 ├── Frontend agent (spawned)46 └── Test agent (spawned)47 |48Phase 2b: Review49 ├── Security review50 └── Performance review51 |52 [CHECKPOINT 2: User approves test results + review findings]53 |54Phase 3: Delivery55 ├── Deployment config56 ├── Documentation57 └── Final checklist58```5960## Phases6162### Phase 1: Discovery6364**Process:**651. Gather requirements through structured questions:66 - What problem does this feature solve?67 - Who are the users? What are their workflows?68 - What are the acceptance criteria?69 - What are the non-functional requirements (performance, security, scale)?70 - What existing systems does this touch?712. Spawn research agents via Task tool:72 - **Architect agent:** Analyze codebase for integration points, propose component design73 - **Domain agent:** Research similar implementations, identify patterns and pitfalls743. Synthesize agent output into architecture design754. Produce output artifacts7677**Output Artifacts:**78| File | Purpose |79|------|---------|80| `.feature-dev/01-requirements.md` | Functional and non-functional requirements |81| `.feature-dev/02-architecture.md` | Component design, data flow, integration points |82| `.feature-dev/03-research-notes.md` | Agent research findings, patterns, risks |8384**CHECKPOINT 1:** User must approve requirements and architecture before implementation begins. Present a summary with key decisions highlighted. Accept modifications — iterate until approved.8586### Phase 2: Implementation8788Activated when: User approves Checkpoint 18990**Process:**911. Read all Phase 1 artifacts for context922. Spawn parallel implementation agents via Task tool:9394| Agent | Responsibility | Input |95|-------|---------------|-------|96| **Backend agent** | Models, services, API endpoints, migrations | 01-requirements.md + 02-architecture.md |97| **Frontend agent** | Components, pages, state management, API integration | 01-requirements.md + 02-architecture.md |98| **Test agent** | Unit tests, integration tests, edge cases | 01-requirements.md + 02-architecture.md + implementation code |991003. Collect agent output and verify integration1014. Run full test suite — all tests must pass1025. Produce implementation artifacts103104**Output Artifacts:**105| File | Purpose |106|------|---------|107| `.feature-dev/04-implementation-log.md` | What was built, file list, decisions made during implementation |108| `.feature-dev/05-test-report.md` | Test results, coverage delta, edge cases covered |109110**Agent Coordination:**111- Backend and frontend agents run in parallel112- Test agent starts after implementation agents complete (needs code to test)113- If any agent fails, halt all agents and report to user114- Each agent commits to a feature branch — merge conflicts resolved before proceeding115116### Phase 2b: Review117118Activated when: Phase 2 implementation and tests are complete119120**Process:**1211. Spawn review agents via Task tool:122123| Agent | Focus Areas |124|-------|------------|125| **Security agent** | Input validation, injection risks, auth/authz, credential handling, OWASP top 10 |126| **Performance agent** | Time/space complexity, N+1 queries, resource leaks, caching opportunities |1271282. Collect findings and categorize by severity (critical, high, medium, low)1293. Critical and high findings must be addressed before proceeding1304. Medium and low findings logged as follow-up items131132**Output Artifacts:**133| File | Purpose |134|------|---------|135| `.feature-dev/06-security-review.md` | Security findings with severity and remediation |136| `.feature-dev/07-performance-review.md` | Performance findings with severity and remediation |137138**CHECKPOINT 2:** User must approve test results and review findings. Present:139- Test coverage summary140- Critical/high findings (must be zero to proceed)141- Medium/low findings (acknowledged as follow-up)142- Overall readiness assessment143144### Phase 3: Delivery145146Activated when: User approves Checkpoint 2147148**Process:**1491. Read all prior artifacts for context1502. Generate deployment configuration:151 - Environment variables needed152 - Migration scripts (if applicable)153 - Infrastructure changes (if applicable)1543. Generate documentation:155 - API documentation for new endpoints156 - User-facing documentation (if applicable)157 - Architecture decision records for significant choices1584. Run final checklist1595. Produce delivery artifacts160161**Output Artifacts:**162| File | Purpose |163|------|---------|164| `.feature-dev/08-deploy-config.md` | Environment vars, migrations, infrastructure changes |165| `.feature-dev/09-documentation.md` | API docs, user docs, ADRs |166| `.feature-dev/10-final-checklist.md` | Pre-merge verification checklist |167168**Final Checklist:**169```markdown170## Pre-Merge Checklist171172- [ ] All tests pass173- [ ] Coverage meets or exceeds project threshold174- [ ] No critical or high security findings175- [ ] No critical or high performance findings176- [ ] API documentation updated177- [ ] Migration scripts tested178- [ ] Environment variables documented179- [ ] Rollback procedure documented180- [ ] PR description includes acceptance criteria verification181```182183## State Tracking184185### Directory Structure186```187.feature-dev/188├── 01-requirements.md189├── 02-architecture.md190├── 03-research-notes.md191├── 04-implementation-log.md192├── 05-test-report.md193├── 06-security-review.md194├── 07-performance-review.md195├── 08-deploy-config.md196├── 09-documentation.md197├── 10-final-checklist.md198└── state.json199```200201### State JSON202```json203{204 "feature": "user-authentication",205 "started_at": "2026-03-08T22:00:00Z",206 "current_phase": "implementation",207 "phases": {208 "discovery": {209 "status": "complete",210 "checkpoint_approved": true,211 "git_ref_start": "abc123",212 "git_ref_end": "def456"213 },214 "implementation": {215 "status": "in_progress",216 "agents": {217 "backend": {"status": "complete", "task_id": "task-001"},218 "frontend": {"status": "in_progress", "task_id": "task-002"},219 "test": {"status": "pending", "task_id": null}220 },221 "git_ref_start": "def456",222 "git_ref_end": null223 },224 "review": {"status": "pending"},225 "delivery": {"status": "pending"}226 }227}228```229230## Git Awareness231232| Phase | Git Behavior |233|-------|-------------|234| Discovery | No code changes — artifacts only |235| Implementation | Feature branch, commits per agent stream |236| Review | Fix commits for critical/high findings |237| Delivery | Config and docs commits |238| Revert | `git revert` all commits in target phase range (git_ref_start..git_ref_end) |239240**Revert by Phase:**241- Each phase records `git_ref_start` and `git_ref_end`242- Revert a phase: `git revert --no-commit git_ref_start..git_ref_end && git commit`243- Revert produces a single revert commit per phase — never rewrites history244245## Error Handling246247| Failure | Response |248|---------|----------|249| Agent fails during implementation | Halt all parallel agents, report failure with agent output, wait for user decision |250| Tests fail after implementation | Report test failures with output, do not proceed to review phase |251| Critical security finding | Block delivery phase, require remediation and re-review |252| Merge conflict between agent branches | Report conflicts, present resolution options, wait for user decision |253| State file corrupted | Rebuild from git log and artifact files, warn user |254| Missing prerequisite artifacts | Halt and redirect to the phase that produces them |255256## Constraints257258- Checkpoint gates are mandatory — never skip user approval between phases259- Phase artifacts must exist before the next phase can start260- Agent failures halt the pipeline — never auto-continue past errors261- Critical and high review findings must be resolved before delivery262- All code changes go through a feature branch, never direct to main263- State file is updated after every phase transition264- Numbered artifact files (01-10) are append-only during a feature — never overwrite prior phase output265- Maximum 3 parallel agents per phase to avoid context fragmentation266- Revert operations create new commits, never rewrite history267268## Source269270Derived from wshobson/agents backend-development feature-development command. Adapted for AreteDriver multi-agent workflow conventions.