schema-gen
Prerequisite: This skill requires a schema0 template project. Before using, ensure
CLAUDE.mdexists in the project root and read it for project rules and conventions.
Schema Generator
Create database table schemas with Drizzle ORM and drizzle-zod derived schemas.
File Location
Create at: packages/db/src/schema/{entity}.ts
Dependencies
ALWAYS run schema-gen FIRST — it creates the table and all derived schemas that other skills import.
flowchart TD
A[schema-gen] --> B[query-collections]
A --> C[api-router]
A --> D[table-customization]
More from schema0/ai-agent-plugins
manage-secrets
Add and manage application secrets and environment variables. Use when adding API keys, credentials, or updating env.ts.
2rls-setup
Set up database tables with Row-Level Security policies, configure authenticated connections, and implement secure user-scoped data access patterns (Do not apply this skill unless specifically asked by user) (project)
2api-router
Generates ORPC routers with drizzle-zod schemas from db package, bulk operations, and protected procedures (project)
2workflow-builder
>-
2handle-views
Generates route components - List Route and Detail Route (project)
2ai-integration
Generate AI-powered features using AI SDK with oRPC. Use when building chat apps, AI endpoints, or integrating LLMs.
2