Development Workflow Skill
This skill outlines the standard workflow for implementing new features or modifying existing ones.
Standard Development Steps
- •
Schema Update (if needed):
- •See
db-schema-changesskill.
- •See
- •
Define Domain Unit Tests.
- •Write tests for your entities and value objects.
- •Ensure validation logic is covered.
- •
Implement Domain Logic.
- •Create or update entities in
app/domain. - •Implement factory methods and validation.
- •Create or update entities in
- •
Write Controller Integration Tests.
- •Define the expected API behavior.
- •These tests should fail initially.
- •
Define Service and Dependency Interfaces.
- •Define repository interfaces in the service layer.
- •Define any 3rd-party provider interfaces.
- •
Implement External Dependencies.
- •Implement the repository interfaces in
app/external. - •Map Prisma types to Domain types.
- •Implement the repository interfaces in
- •
Implement Service Logic.
- •Implement the business logic in
app/services. - •Use
TaskEitherandfp-tspatterns.
- •Implement the business logic in
- •
Implement Controller Logic.
- •Implement the HTTP endpoints in
app/controllers. - •Map requests/responses (OpenAPI <-> Service).
- •Implement the HTTP endpoints in
- •
Code Review
- •Use the
code-reviewskill to review the code.
- •Use the
Validation
Use test-runner skill to run tests.
Ensure correctness and prevent regressions before proceeding.
Constraints
- •No Direct Git Actions: Do not use
git commit,git stash, orgit pushdirectly unless instructed. - •Package Manager: Use
yarn, notnpmornpx.