Feature Implementation Workflow
PROSE constraints: Orchestrated Composition (chains phases into a complete workflow) + Safety Boundaries (validation gates between phases).
Phase 1: Context Loading
- •If
$ARGUMENTSpoints to a spec file, read it - •Review existing codebase patterns in the affected area
- •Check relevant
.claude/rules/for applicable standards - •Identify affected components, routes, types, and tests
Phase 2: Planning
Before writing any code, produce a brief implementation plan:
markdown
## Implementation Plan ### Files to Create - [path] — [purpose] ### Files to Modify - [path] — [what changes] ### Approach [Brief description of the implementation strategy]
Validation Gate
STOP: Present the plan and wait for user confirmation before proceeding.
Phase 3: Implementation
- •Create or modify files following the plan
- •Follow all applicable rules from
.claude/rules/ - •Maintain type safety across boundaries (
shared/types/) - •Handle errors at system boundaries
Phase 4: Testing
- •Write unit tests for new functions/components
- •Write integration tests for new API endpoints
- •Run the test suite:
npm test - •Run the linter:
npm run lint - •Run type checking:
npm run typecheck
Phase 5: Validation Checklist
- • All planned files created/modified
- • Types exported and consistent across frontend/backend
- • Tests pass
- • Linter passes
- • No
anytypes introduced - • Error handling at all system boundaries
- • No hardcoded secrets or credentials