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-building-swarmWrote 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-swarm)<a href="https://agentmods.dev/skills/serejaris/kimi-skills/backend-building-swarm"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/backend-building-swarm/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-swarm"><img src="https://agentmods.dev/badge/skills/serejaris/kimi-skills/backend-building-swarm.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.00107 | $0.05062 |
| Opus 5 | $0.00053 | $0.02531 |
| Sonnet 5 | $0.00021 | $0.01012 |
| Haiku 4.5 | $0.00011 | $0.00506 |
Grade A, and why
backend-building-swarm 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 12d 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 — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Backend Building Swarm
Stack: tRPC + Drizzle ORM + Hono + MySQL + OAuth 2.0
A swarm-aware backend skill that grafts onto an existing webapp-building-swarm project. Adds api/, contracts/, and optionally db/ directories — but never replaces or modifies existing frontend files.
Prerequisite: An existing shared repo created by webapp-building-swarm at /mnt/agents/output/app.
Architecture
This skill builds on the swarm-workspace two-tier filesystem — a shared
coordination repo (branch hub) plus per-subagent worktrees. See
swarm-workspace/SKILL.md for the full contract; it is not restated here.
init.sh grafts in place on $PROJECT_PATH and commits on whatever
branch is checked out there — it does NOT manage worktrees or merge. In the
swarm flow the main agent creates the backend worktree via
swarm-workspace's setup-local.sh, runs init.sh in it with PROJECT_PATH
pointed at the worktree, commits on the backend branch, and merges that
branch into the integration line before page branches fork — so all page
agents inherit the tRPC client and contracts. The main agent runs the graft
itself rather than dispatching a subagent because init.sh writes a
gitignored .env that never travels through the merge: it survives only in
the sandbox where it ran, which must be the main agent's own — the one that
later builds and stages .env into the other worktrees. Webapp commit history
is preserved because the backend branch descends from the scaffolded frontend.
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) |
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.9 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 25 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 3.8 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.
- 12d ago First seen · 334 lines · 107 tokens per session scan A 18d9ce369a70
backend-building-swarm is a skill published in the GitHub repository serejaris/kimi-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 107 tokens to every session and 5,062 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
go-database
Use when writing, reviewing, or debugging Go code that talks to a SQL database (PostgreSQL, MySQL, MariaDB, SQLite). Covers library choice (database/sql, sqlx, sqlc, pgx, GORM trade-offs), parameterized queries, context propagation, NULL handling, scanning, transactions and isolation, connection pool tuning, and…
backend-setup-stack
Bootstraps a local Node.js backend development stack with Docker, PostgreSQL, and an ORM (Prisma or Sequelize). Use this skill whenever the user wants to: initialize a new backend project, set up a Dockerized database locally, wire up an ORM with automated migrations, scaffold an Express server with a health endpoint…
backend-setup-stack
Use this skill when the user wants to initialize a local development environment using Docker, PostgreSQL, an npm server, and an ORM (Prisma/Sequelize) with automated migration workflows, including detection of existing migration metadata and database readiness checks.
supabase
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…
offensive-api-abuse
Advanced API exploitation methodology focused on business logic abuse and sophisticated attack patterns that bypass traditional security controls. Covers business logic bypass through API call chaining and workflow manipulation. Addresses GraphQL-specific attacks including batching for credential brute-force, query…
nestjs
Provides comprehensive NestJS framework patterns with Drizzle ORM integration for building scalable server-side applications. Generates REST/GraphQL APIs, implements authentication guards, creates database schemas, and sets up microservices. Use when building NestJS applications, setting up APIs, implementing…