backend-buildinglisted
Install: claude install-skill serejaris/kimi-skills
# Backend Building
**Stack**: tRPC + Drizzle ORM + Hono + MySQL + OAuth 2.0
A backend-only skill that grafts onto an existing `webapp-building` project. It adds `api/`, `contracts/` directories and optionally `db/` — but **never replaces or modifies** existing frontend files.
**Prerequisite**: An existing project created by `webapp-building`.
## Features
Features can be installed incrementally. Base infrastructure (Hono server, tRPC, contracts) is always installed automatically on first run.
| Feature | What it provides | Dependencies |
|---------|-----------------|--------------|
| `db` | Drizzle ORM + MySQL — adds `db/`, `api/queries/connection.ts`, `drizzle.config.ts` | — |
| `auth` | Kimi OAuth + user management — adds `api/kimi/`, Login page, useAuth, AuthLayout | requires `db` (auto-included) |
Default: `init.sh "App"` with no `--features` → defaults to `auth` (= db + auth), preserving backward compat.
## Workflows
**Frontend-first** (recommended when UI is already built):
1. `webapp-building` init → develop UI pages and components
2. `backend-building` graft (this skill) — auto-wires tRPC providers and routes
3. Verify with `npm run check`, then add tRPC routers, database tables, wire frontend to API
**Full-stack from scratch** (recommended when backend is needed immediately):
1. `webapp-building` init → immediately graft `backend-building`
2. Verify with `npm run check`
3. Develop frontend and backend together
**Incremental features** (add capabilities ov