Cms M2

loom-builderpromptmarkdown
Path: loom-builder/prompts/cms-m2.mdRelative: prompts/cms-m2.mdSubproject: loom-builderCategory: dispatch-prompts
Lines: 38Bytes: 2,973Imports: 0Exports: 0

Content Preview

  1. # ROLE
  2. Senior TypeScript engineer building the Analytics module for a Hono + Drizzle + D1 Worker CMS. Write ROLE/GOAL/PLAN checkbox list first; maintain it.
  3. # CONTEXT (read first)
  4. - Repo: `/home/mikes/leverage-cms/leverageai-cms-v2/`. IMITATE: `worker/src/lib/db.ts` (withRetry + repo style), `worker/src/routes/sites.ts` (route/error shape), `worker/test/sites.test.ts` (test style with injected fakes), `worker/ui/app.js` ("Replace stub with real UI" wiring pattern).
  5. - Source tables (NO new table