AI agent playbooks (CepatEdge)
This folder is written for automated coding agents (and humans using them). It summarizes how this repo is structured, how to change it safely, and where to look before editing. It does not duplicate every ADR; it points to them.
Read order
git.md— How to review changes, align commit messages with project style, and ship coherent commits.patterns.md— Monorepo layout, domain separation, type safety, and common boundaries (web vs workers).locales.md— i18n translation workflow, preserve policy, typed keys, lazy locale loading, and AI-assisted locale polishing prompt guidance.- Deeper docs live under
../frontend/(SPA, domains, i18n, API) and../architecture/(ADRs, systems). - System admin & analytics (repo root):
SYSTEM.mddefines/system/*observability (logs, audit, monitor, settings).DASHBOARD.mddefines dashboard analytics and cache/settings wiring—read afterSYSTEM.mdwhen changing those areas.
Recent i18n doc + tooling changes
docs/frontend/i18n/examples.mdnow reflects the updated CLI flow:pnpm locales:validate, thenpnpm locales:validate:quality, thenpnpm locales:cleanup; usepnpm locales:ciin CI.apps/web/scripts/locales/manage/cleanup.tswas expanded to detect key drift (unused keys inen.json+ extra keys in other locales) using static heuristics.docs/frontend/i18n/cleanup.md,docs/frontend/i18n/delete.md, anddocs/frontend/i18n/examples.mdwere added/updated to guide agent-safe locale workflows.
Operating principles
- Prefer existing patterns over inventing new ones. If a feature fits “shared page + role route,” follow
../frontend/features/shared-vs-role-pages.md. - Types are leverage: workers expose typed services and route handlers; the web app consumes typed API shapes where they exist. Extend
apps/*/src/types/rather than scatteringany. - Domain separation: UI and routes live under
apps/web/src/domains/<role-or-shared>/; API logic lives inapps/worker/src/. Do not move business rules into React components when they belong in workers. - Small, reviewable commits with messages that match
git.md. Large “kitchen sink” commits make rollback and blame harder.
When you are unsure
- Search the codebase for an existing analogue (e.g. another maintenance route, another dashboard card).
- Read the nearest ADR under
docs/architecture/decisions/. - Prefer asking for a missing product rule over guessing security or permission behavior.
Related
- Root
README.mdfor repo bootstrap. ../README.mdfor the documentation index.SYSTEM.mdandDASHBOARD.mdfor/system/*and admin metrics work.