Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/serejaris/kimi-skillsnpx agentmods add skills/serejaris/kimi-skills/backend-buildingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/serejaris/kimi-skills/backend-building)<a href="https://agentmods.dev/skills/serejaris/kimi-skills/backend-building"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/backend-building/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/serejaris/kimi-skills/backend-building"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/backend-building.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.03360 |
| Opus 5.5 | $0.00028 | $0.01344 |
| Sonnet 5.5 | $0.00014 | $0.00672 |
| Haiku 4.5 | $0.00007 | $0.00336 |
Grade A, and why
backend-building scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 275 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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):
webapp-buildinginit → develop UI pages and componentsbackend-buildinggraft (this skill) — auto-wires tRPC providers and routes- 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):
webapp-buildinginit → immediately graftbackend-building- Verify with
npm run check - Develop frontend and backend together
Incremental features (add capabilities over time):
- Start with
--features dbfor database only - Later add auth:
init.sh "App" --features auth
Quick Start
1. Initialize Frontend First (webapp-building)
bash /app/.agents/skills/webapp-building/scripts/init-webapp.sh "My App"
cd /mnt/agents/output/app
2. Graft Backend
# Full stack with auth (default, same as before):
bash /app/.agents/skills/backend-building/scripts/init.sh "My App"
# Database only (no auth):
bash /app/.agents/skills/backend-building/scripts/init.sh "My App" --features db
# Add auth later:
bash /app/.agents/skills/backend-building/scripts/init.sh "My App" --features auth
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .gitignore 66 B
- docs/Authentication.md 6.7 KB
- docs/Database.md 11 KB
- docs/Development-Guide.md 6.7 KB
- docs/Post-Init-Wiring.md 1.1 KB
- docs/Project-Structure.md 6.8 KB
- docs/tRPC.md 5.0 KB
- scripts/.prepare-template.sh 217 B runs code
- scripts/init.sh 23 KB runs code
- scripts/lib/merge-package-json.mjs 1.1 KB runs code
- scripts/lib/merge-schema.mjs 3.2 KB runs code
- scripts/lib/merge-tsconfig.mjs 2.2 KB runs code
- scripts/lib/patch-boot-auth.mjs 1.5 KB runs code
- scripts/lib/patch-env-ts.mjs 1.2 KB runs code
- scripts/lib/patch-router-auth.mjs 1.4 KB runs code
- scripts/lib/patch-vite-config.mjs 2.9 KB runs code
- scripts/lib/wire-app-tsx.mjs 1.6 KB runs code
- scripts/lib/wire-main-tsx.mjs 1.9 KB runs code
- scripts/template/auth/.env.example 816 B
- scripts/template/auth/api/auth-router.ts 725 B runs code
- scripts/template/auth/api/context.ts 572 B runs code
- scripts/template/auth/api/kimi/auth.ts 3.8 KB runs code
- scripts/template/auth/api/kimi/platform.ts 712 B runs code
- scripts/template/auth/api/kimi/session.ts 1.1 KB runs code
- scripts/template/auth/api/kimi/types.ts 307 B runs code
- scripts/template/auth/api/lib/cookies.ts 462 B runs code
- scripts/template/auth/api/middleware.ts 1.1 KB runs code
- scripts/template/auth/api/queries/users.ts 858 B runs code
- scripts/template/auth/client-patches/components/AuthLayout.tsx 8.8 KB
- scripts/template/auth/client-patches/components/AuthLayoutSkeleton.tsx 1.6 KB
- scripts/template/auth/client-patches/const.ts 36 B runs code
- scripts/template/auth/client-patches/hooks/useAuth.ts 1.4 KB runs code
- scripts/template/auth/client-patches/pages/Login.tsx 1.2 KB
- scripts/template/auth/client-patches/pages/NotFound.tsx 724 B
- scripts/template/auth/configs/package.json.feat 213 B
- scripts/template/auth/contracts/constants.ts 335 B runs code
- scripts/template/auth/contracts/types.ts 61 B runs code
- scripts/template/auth/db/schema.users.ts 771 B runs code
- scripts/template/base/.env.example 290 B
- scripts/template/base/api/boot.ts 1001 B runs code
- scripts/template/base/api/context.ts 311 B runs code
- scripts/template/base/api/lib/env.ts 404 B runs code
- scripts/template/base/api/lib/http.ts 1.9 KB runs code
- scripts/template/base/api/lib/vite.ts 742 B runs code
- scripts/template/base/api/middleware.ts 283 B runs code
- scripts/template/base/api/router.ts 340 B runs code
- scripts/template/base/client-patches/providers/trpc.tsx 954 B
- scripts/template/base/configs/.dockerignore 35 B
- scripts/template/base/configs/.gitignore 227 B
- scripts/template/base/configs/.prettierignore 310 B
- scripts/template/base/configs/.prettierrc 310 B
- scripts/template/base/configs/package.json.feat 853 B
- scripts/template/base/configs/tsconfig.server.json 616 B
- scripts/template/base/configs/vitest.config.ts 489 B runs code
- scripts/template/base/contracts/errors.ts 501 B runs code
- scripts/template/base/contracts/types.ts 26 B runs code
- scripts/template/db/.env.example 257 B
- scripts/template/db/api/queries/connection.ts 447 B runs code
- scripts/template/db/configs/drizzle.config.ts 378 B runs code
- scripts/template/db/configs/package.json.feat 277 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 275 lines · 71 tokens per session scan A 0b50635dbd5f
backend-building is a skill published in the GitHub repository serejaris/kimi-skills (11 stars, last pushed 3mo ago), licensed MIT. It adds 71 tokens to every session and 3,360 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
backend-building compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-buildingserejaris/kimi-skills | Skill | 11 | 3mo ago | MIT | A | 71 | Claude Code, Codex |
| go-databasemuratmirgun/gophers | Skill | 9 | 2mo ago | MIT | A | 98 | Claude Code |
| backend-setup-stackWESTsyre21/setup-backend-stack | Skill | 4 | 4mo ago | MIT | A | 155 | Claude Code, Codex |
| backend-setup-stackWESTsyre21/setup-backend-stack | Skill | 4 | 4mo ago | MIT | A | 54 | Claude Code, Codex |
| supabasesupabase/agent-skills | Skill | 3.0k | yesterday | MIT | A | 185 | Claude Code, Codex |
| offensive-api-abuseSnailSploit/Claude-Red | Skill | 10k | 25d ago | MIT | B | 184 | Claude Code, Codex |
| 511-frameworks-micronaut-jdbcjabrena/plinth | Skill | 460 | yesterday | Apache-2.0 | A | 118 | Claude Code, Codex |