Complete feature development workflow from specification to tested, reviewed code ready for commit.
Executes a complete feature development workflow from specification to commit-ready code. Use this for implementing user stories or significant new functionality with guided steps for planning, building, testing, and review.
/plugin marketplace add az9713/claude-code-agentic-framework/plugin install az9713-codebase-singularity@az9713/claude-code-agentic-frameworkImplement a complete feature from start to finish, including research, planning, implementation, testing, review, and preparation for commit. This is a high-level workflow command that coordinates multiple agents.
/feature [feature description]
/feature --with-docs [feature] # Include documentation
/feature --with-security [feature] # Include security audit
When this command is invoked:
/prime if neededDelegate to: doc-fetcher agent
Questions to answer:
- What libraries/patterns are needed?
- Are there existing implementations to reference?
- What are the best practices?
Skip if: Feature is well-understood
Output: ai_docs/[feature]-research.md
Create or confirm feature specification:
# Feature: [Name]
## User Story
As a [user type], I want [action] so that [benefit].
## Acceptance Criteria
- [ ] [Criterion 1]
- [ ] [Criterion 2]
- [ ] [Criterion 3]
## Technical Requirements
- [Requirement 1]
- [Requirement 2]
## Out of Scope
- [Exclusion 1]
Gate: User confirms specification
Delegate to: planner agent
Create detailed implementation plan covering:
Output: specs/[feature]-plan.md
Gate: User approves plan
Delegate to: builder agent
Follow the plan to:
Output: Working code
Delegate to: test-writer agent
Create comprehensive tests:
Output: Test files
Delegate to: reviewer agent
Perform quality review:
Output: specs/reviews/[date]-[feature]-review.md
Delegate to: fixer agent
If review score < 7:
Loop until: Score ≥ 7
Delegate to: security-auditor agent
Security audit:
Output: Security report
Update documentation:
Prepare for commit:
# Feature Complete: [Name]
## Summary
[Brief description of what was implemented]
## Files Changed
### New Files
- `path/file.js` - [Description]
### Modified Files
- `path/file.js` - [Changes]
## Tests
- X new tests added
- All tests passing
## Quality Scores
| Area | Score |
|------|-------|
| Code Quality | X/10 |
| Security | X/10 |
| Coverage | X% |
## Commit Suggestion
```bash
git add .
git commit -m "feat: [feature description]"
Please verify:
## Feature Workflow Diagram
┌─────────┐ ┌──────────┐ ┌────────┐ │Research │──►│ Specify │──►│ Plan │ └─────────┘ └──────────┘ └───┬────┘ │ ▼ ┌──────────────────────────────────┐ │ IMPLEMENT │ │ builder → test-writer → review │ └────────────────┬─────────────────┘ │ ┌──────────┴──────────┐ ▼ ▼ ┌──────────┐ ┌──────────┐ │ Security │ │ Docs │ │ (opt) │ │ (opt) │ └────┬─────┘ └────┬─────┘ │ │ └──────────┬──────────┘ ▼ ┌──────────┐ │ Finalize │ └──────────┘
## Example Execution
User: /feature --with-docs Add password reset functionality
Starting Feature: Password Reset
[doc-fetcher agent] Fetched: Password reset best practices Fetched: JWT token patterns for reset links Research saved to: ai_docs/password-reset-research.md
Created specification:
Does this match your requirements? (y/n)
User: y
[planner agent] Plan created: specs/password-reset-plan.md
Approve plan? (y/n)
User: y
[builder agent] Created: app/routes/resetRoutes.js Created: app/services/resetService.js Created: app/email/resetEmail.js Modified: app/models/User.js
[test-writer agent] Created: tests/unit/resetService.test.js Created: tests/integration/reset.test.js Tests: 12 written, 12 passing
[reviewer agent] Score: 8/10 Minor issues: 2 (both Low severity)
Updated: README.md (API endpoints) Created: docs/password-reset.md
Feature: Password Reset ✓ Files: 4 new, 2 modified Tests: 12 passing Score: 8/10
Ready to commit: git commit -m "feat: add password reset functionality"
## Notes
- Feature command provides guided, comprehensive workflow
- Each step is explicit and can be reviewed
- Optional steps (security, docs) add thoroughness
- Consider for medium-to-large features
- For simple changes, use `/cycle` instead