Cleanup after initial plan
This commit is contained in:
parent
d2a7e652b3
commit
245520fb50
53 changed files with 6733 additions and 621 deletions
|
|
@ -48,9 +48,14 @@ docker compose -f docker/docker-compose.yml down # Stop all services
|
|||
|
||||
## Implementation Workflow
|
||||
|
||||
Every feature or phase implementation must follow this "Vertical Slice" approach:
|
||||
Every feature or phase implementation MUST start with a rigorous planning and design phase:
|
||||
|
||||
1. **Shared Layer**: Define types, enums, and Zod v4 schemas in `packages/shared`. Add unit tests.
|
||||
0. **Mandatory Planning (Grilling)**: Before starting any feature or bug fix, you MUST invoke the `grill-with-docs` skill.
|
||||
- Run the skill using: `view_file` on `.agents/skills/grill-with-docs/SKILL.md` and follow its instructions.
|
||||
- This session will stress-test your plan against the existing domain model, terminology, and documentation (`CONTEXT.md`, ADRs).
|
||||
- Decisions must be crystallized and documentation (glossary/ADRs) updated before moving to implementation.
|
||||
|
||||
1. **Vertical Slice Implementation**: Follow this approach for the actual build:
|
||||
2. **Database Layer**: Create the Mongoose schema and Repository in `packages/api`. All reads must use `.lean().exec()`.
|
||||
3. **Service Layer**: Implement business logic in the Service class, using Awilix for constructor injection. Add unit tests.
|
||||
4. **Route Layer**: Create the Fastify route plugin and register it. Add route tests (using `app.inject`).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue