| name | bo-chaos-backend |
| description | Use when changing bo-chaos NestJS backend APIs, services, auth, uploads, Prisma access, categories, photos, users, kowtow, or backend tests. |
bo-chaos Backend
Use this for apps/backend-nest and Prisma-backed API changes.
Context
Read:
docs/agent/ARCHITECTURE.md
docs/agent/CONVENTIONS.md
docs/agent/QUALITY.md
docs/agent/DATA_MODEL.md when Prisma data is involved
Workflow
- Locate controller/service/module under
apps/backend-nest/src/bofans/.
- Keep controller methods thin and put Prisma logic in services.
- Preserve existing response shapes unless the task explicitly changes the contract.
- Validate user input at API boundaries for new unsafe inputs.
- If Prisma schema changes, update
docs/agent/DATA_MODEL.md.
- Run the narrow backend tests or state why they were not run.
Verification
- Prefer
pnpm -C apps/backend-nest test for backend logic.
- Use
pnpm -C packages/prisma-client build after Prisma schema changes.
- Run
pnpm agent:lint before finishing.