Feature Development Workflow
Execute a complete feature development lifecycle with quality gates at each phase.
Workflow Phases
Execute these phases in sequence, waiting for user confirmation at checkpoints:
Phase 1: Planning
- Analyze the feature request:
$ARGUMENTS - Identify affected files and components using Glob and Grep
- Design the implementation approach
- List dependencies and potential risks
- OUTPUT: Present plan summary and ask for confirmation
Phase 2: Implementation
After user confirms the plan:
- Implement the feature following the approved plan
- Write clean, well-structured code
- Add inline comments for complex logic only
- OUTPUT: Summary of changes made
Phase 3: Testing
- Write unit tests for new functionality
- Write integration tests for component interactions
- Run existing test suite to check for regressions
- OUTPUT: Test results and coverage summary
Phase 4: Edge Case Validation
- Identify edge cases and boundary conditions
- Add tests for edge cases
- Handle error scenarios gracefully
- Validate input boundaries
- OUTPUT: Edge cases covered and any issues found
Phase 5–6: Quality Gate, Simplification + Review
/pipeline-quality
Steps 10–11 are the reasoning passes: simplification (behavior-preserving — reuse, efficiency, altitude, naming; tests must still pass) and a severity-rated review delegated to the code-reviewer agent. Any 🔴 Critical or 🟠 High finding blocks the phase; the zero-debt gate at step 12 blocks on the rest unless a deferral is recorded in PLAN.md.
OUTPUT: Simplification changes applied + Quality Gate Report.
Phase 7: Documentation
- Update code comments where needed
- Update README if API changes
- Add changelog entry
- Document any configuration changes
- OUTPUT: Documentation updates made
Checkpoint Protocol
At each phase completion, output:
## Phase [N] Complete: [Phase Name]
### Summary
[What was accomplished]
### Artifacts
[Files created/modified]
### Next Phase
[What Phase N+1 will do]
---
**Proceed to Phase [N+1]?** (yes/no/modify)
Wait for user confirmation before proceeding.
Quality Gates
Each phase must pass before proceeding:
- Planning: User approval required
- Implementation: Code compiles/parses without errors
- Testing: All tests pass
- Edge Cases: No unhandled scenarios
- Simplification: Functionality preserved (tests still pass)
- Review: No critical issues
- Documentation: All changes documented
Rollback Protocol
If any phase fails:
- Report the failure clearly
- Suggest remediation options
- Wait for user decision: fix, skip, or abort