Copy this template into the root of your repository as
CLAUDE.mdorAGENTS.mdto give coding agents clear architecture boundaries, commands, and safety rails.
apps/web — Customer-facing frontendapps/api — HTTP + webhook backend servicepackages/shared — Shared types, validation schemas, and pure helperspackages/db — Database schema, migrations, and seed scripts[!CAUTION] Agents MUST NEVER run production deploys, mutate production databases, print secret environment variables, or force-push to
main.
packages/db/migrations/meta/*, dist/*, *.lock unless installing a requested dependency).| Task | Command | Notes |
|---|---|---|
| Install dependencies | pnpm install |
Uses workspace lockfile |
| Dev server (all apps) | pnpm dev |
Web :5173, API :8080 |
| Typecheck | pnpm typecheck |
Must pass with zero errors |
| Unit tests | pnpm test |
Runs Vitest across workspaces |
| Single test file | pnpm vitest run path/to/file.test.ts |
Preferred during iteration |
| Lint & format check | pnpm lint |
Biome / ESLint |
| DB migration generate | pnpm --filter @app/db drizzle-kit generate |
Review SQL before committing |
zod.any; use unknown with narrowing helpers.{ code, message, retryable }) from service layers.logger.error({ err, requestId })).400), unauthorized (401), and not found (404).When finishing a task, summarize: