schema0-api-router

Installation
SKILL.md

API Router

STOP before writing any router.

  1. New routers MUST use createDb() against a Drizzle table.
  2. users.ts and files.ts are NOT templates. They call platform endpoints purpose-built for the users and files platform features — there is no Drizzle table behind them. Your application's entities are application data and go through your own tables; do not copy users.ts / files.ts for any new entity.
  3. If your entity has no Drizzle table yet, invoke schema0-db-schema first to define one.

File Location

packages/api/src/
├── index.ts           # Base procedures (publicProcedure, protectedProcedure)
├── context.ts         # Request context type
└── routers/
    ├── index.ts       # App router (register all routers here)
    └── [entity].ts    # Entity-specific CRUD routers
Related skills
Installs
17
Repository
schema0/skills
First Seen
Apr 16, 2026