add-table
Installation
SKILL.md
Add a new entity to the platform by working bottom-up through all six layers.
Entity name: $0
Process
- Layer 1 — Schema: Add the table definition to
src/lib/database/schema.tsfollowing existing patterns. Includeorganization_idfor multi-tenant scoping. Use appropriate column types matching existing conventions. - Layer 2 — Zod: Run
pnpm generate:schemasthenpnpm contracts:check - Layer 3 — Services: Run
pnpm generate:servicesthenpnpm services:check - Layer 4 — Routes: Run
pnpm generate:routesthenpnpm routes:check - Layer 5 — Hooks: Run
pnpm generate:hooksthenpnpm hooks:check - Layer 6 — UI: Run
pnpm generate:uithenpnpm ui:check