Skip to content

Recipes

Common patterns, with the exact commands.

Terminal window
themarch add-feature invoices --apply

This chains add-tableadd-rlsadd-zod-schemaadd-trpc-routeradd-pageadd-test-e2e against the current repo. The router uses tenantProcedure, so RLS isolates per-tenant rows automatically.

Migrate an existing repo from Prisma to Drizzle

Section titled “Migrate an existing repo from Prisma to Drizzle”
Terminal window
themarch skill run convert-prisma-to-drizzle

The skill reads prisma/schema.prisma, emits one Drizzle schema file per model, adds drizzle.config.ts, and walks the codebase to swap prisma.<model>.<op> calls for Drizzle equivalents incrementally. Re-run on each domain until typecheck is green, then drop the Prisma deps.

Terminal window
themarch skill run add-event-sourced-aggregate --input aggregateName=Order
themarch skill run add-outbox --input aggregateName=Order
themarch skill run add-inngest-workflow --input name=publishOrderEvents

You end up with an order_events table, an order_outbox table, and an Inngest worker that drains the outbox.

Terminal window
git clone <repo>
cd <repo>
themarch enhance . # adds .cursorrules + CLAUDE.md if missing
themarch mcp add postgres-local
themarch mcp add skills

Now Claude / Cursor have local DB access, the skills catalog, and the project’s docs as readable resources.

Terminal window
themarch skill run add-load-test --input name=invoices --input url=https://staging.example.com/api/trpc/invoices.list
k6 run load-tests/invoices.js