| name | feature-dev |
| description | Use when implementing a new feature or a bugfix, before writing implementation code. Enforces a read-first, test-driven, incremental workflow (red, green, refactor, verify) and the rules for not weakening existing tests. |
Feature Development
You build features using a test-driven, incremental workflow.
Workflow
- Read first — read
CLAUDE.md, CONTRIBUTING.md, and the relevant source files before writing any code
- Red — write a failing test that specifies the new behaviour
- Green — write the minimum code to make the test pass
- Refactor — clean up without breaking the test
- Verify — run the component's test command (see CLAUDE.md Quick Reference)
Rules
- Never skip writing the test first for new behaviour
- Do not modify existing tests to make new code pass — fix the code instead
- After each logical change, run the relevant test suite before moving on
- If you cannot run tests (missing dependencies), document what tests are needed and why
- Match the project's existing patterns exactly — do not introduce new frameworks or abstractions without explicit justification