Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add MadAppGang/magus/plugin install bunjsWrote 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/madappgang/magus/production)<a href="https://agentmods.dev/skills/madappgang/magus/production"><img src="https://agentmods.dev/badge/skills/madappgang/magus/production/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/madappgang/magus/production"><img src="https://agentmods.dev/badge/skills/madappgang/magus/production.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.00048 | $0.02163 |
| Opus 5 | $0.00024 | $0.01081 |
| Sonnet 5 | $0.00010 | $0.00433 |
| Haiku 4.5 | $0.00005 | $0.00216 |
Grade A, and why
production scanned grade A with 1 finding 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 9d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
bun run dist/index.js & PID=$!; sleep 1; curl -s localhost:3000/slow & sleep 0.1 How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Going to production
The gap between "it runs" and "it runs unattended" is a short list of specific behaviours. Most of them are invisible until a deploy drops requests or a restart loop starts at 2am.
29 tests ship with this code and pass (bun test, tsc --noEmit clean, Bun 1.3.10).
SKILL="${CLAUDE_PLUGIN_ROOT:+$CLAUDE_PLUGIN_ROOT/skills/production}"; SKILL="${SKILL:-PASTE_THE_DIR_THIS_SKILL_MD_WAS_READ_FROM}" # that var is UNSET in a Bash tool (MEASURED) — so paste it. `:?` would ABORT the block and copy nothing
mkdir -p src; if [ -d "$SKILL/assets" ]; then cp -r "$SKILL/assets/production" src/runtime # logger + shutdown + tests + Dockerfile + dockerignore.example
else echo "SKILL is still the placeholder — paste the real dir above and re-run"; fi
The Dockerfile and dockerignore.example are copied alongside the code — move them to the repo
root (.dockerignore) rather than leaving them under src/.
Shutdown: the ordering is the whole thing
When an orchestrator removes a pod it does two things roughly at once — sends SIGTERM, and tells
the load balancer to stop routing. Those propagate at different speeds, so for a second or two
after SIGTERM traffic is still arriving. Stopping the listener first (the obvious implementation)
drops exactly those requests, which is why deploys "occasionally" 502.
1. flip readiness to NOT ready → the LB removes us on its next probe
2. wait drainDelayMs (default 5s) → let in-flight routing decisions land
3. server.stop() → stop accepting; MEASURED to wait for in-flight requests
4. close resources (DB, queues) → only now, when nothing can still need them
5. exit 0
MEASURED (Bun 1.3.10): server.stop() with no argument resolves only after in-flight requests
finish — a 300 ms request signalled at t+80 ms drained in 226 ms. stop(true) force-closes and is
the deadline fallback. A shipped test asserts the sequence order and that stop is called without
force on the happy path.
What ships with it
10 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.
- assets/production/Dockerfile 2.5 KB
- assets/production/dockerignore.example 506 B
- assets/production/logger.ts 6.5 KB runs code
- assets/production/production.test.ts 12 KB runs code
- assets/production/shutdown.ts 5.2 KB runs code
- bun.lock 1.1 KB
- package.json 355 B
- references/deployment.md 5.5 KB
- references/observability.md 5.5 KB
- tsconfig.json 324 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.
- 9d ago First seen · 164 lines · 48 tokens per session scan A f97ab6a8f0e0
production is a skill published in the GitHub repository MadAppGang/magus (9 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 2,163 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
deploy
Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.
bunjs-production
Use when deploying Bun.js to production, containerizing with Docker, setting up AWS ECS/Fargate, implementing Redis caching, hardening security, or configuring CI/CD pipelines. See bunjs for basics, bunjs-architecture for patterns.
data-processing
Process JSON with jq and YAML/TOML with yq. Filter, transform, query structured data efficiently. Triggers on: parse JSON, extract from YAML, query config, Docker Compose, K8s manifests, GitHub Actions workflows, package.json, filter data.
nestjs-monorepo-scaffold
Turborepo + NestJS + Drizzle + BullMQ monorepo scaffolding — project structure, shared types, workspace config, Docker, CI/CD, and new feature bootstrapping.
saas-microservice
Build a TYPESCRIPT SaaS microservice with DDD, using the studio/stacks/saas foundation (identity, RBAC, tenancy, audit, outbox). Orchestrates domain modeling, API implementation, testing, security review, and deployment. Routing: for a PYTHON API → /fastapi-api (standalone) or /fastapi-service (monorepo).
fastapi-service
Scaffold a single FastAPI microservice within an EXISTING monorepo. Use when adding a Python service alongside existing ones. Generates domain layer, API endpoints, infrastructure wiring, Dockerfile, and CI/CD. Routing: for a STANDALONE Python API from scratch → /fastapi-api. For a TypeScript SaaS service with DDD →…