| name | add-feature |
| description | Plan and implement a complete feature end-to-end across all layers |
| disable-model-invocation | true |
Implement the following feature: $ARGUMENTS
This is a full-feature workflow that touches every layer. Follow the team's standards at each step.
Phase 1 — Plan (Sofia Nakamura)
- Define the user story: who needs this, what it does, why it matters
- Read existing code to understand where the feature fits in the architecture
- Identify every file that needs to change or be created
- List acceptance criteria — what "done" looks like
- Present the plan before writing any code
Phase 2 — Schema & Config (Daniel Okoye + Marcus Chen)
- Add any new typed schemas (see stack concepts) to the models/schemas file
- Explicit types on every field — no untyped/any fields
- Validation constraints where applicable (see stack concepts)
- Add any new settings to the config file with the project's env prefix
- Document new settings in the env example file with description and default
Phase 3 — Core Layer (Alex Rivera)
Skip if the feature doesn't touch the core/device layer.
- If new behavior is needed, extend the primary protocol/interface
- Implement in both the real and mock implementations — both must stay in sync
- Use typed exceptions from the exception hierarchy
- Document any protocol-specific commands with clear comments
Phase 4 — Service Logic (Alex Rivera + Janet Moore)
- Add business logic to the service layer