bunjs-production

bunjs-production is a skill for Claude Code from MadAppGang/magus. It costs 39 tokens per session (6,283 once invoked), scanned A, a copy of bunjs-production, MIT.

A guide to preparing Bun.js and TypeScript backend services for production, including containers, AWS deployment, caching, security, logging, and automated delivery.

In plain words
What is it for?
Use it when packaging a Bun.js service with Docker, deploying it to AWS ECS or Fargate, adding Redis caching, tightening security, or setting up CI/CD.
Why use it?
It helps address the operational work needed to run a service reliably outside local development.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev plugin — 18 skills, 14 commands, 13 agents shipped together

Good fit Use it when packaging a Bun.js service with Docker, deploying it to AWS ECS or Fargate, adding Redis caching, tightening security, or setting up CI/CD.

Compare 6 skills from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 18 skills, 14 commands, 13 agents.

Wrote 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.

agentmods badge for bunjs-production

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/magus/bunjs-production/github.svg)](https://agentmods.dev/skills/madappgang/magus/bunjs-production)
Your own site
<a href="https://agentmods.dev/skills/madappgang/magus/bunjs-production"><img src="https://agentmods.dev/badge/skills/madappgang/magus/bunjs-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.

agentmods 80×15 button for bunjs-production

Your own site · 80×15
<a href="https://agentmods.dev/skills/madappgang/magus/bunjs-production"><img src="https://agentmods.dev/badge/skills/madappgang/magus/bunjs-production.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.06283
Opus 5 $0.00019 $0.03141
Sonnet 5 $0.00008 $0.01257
Haiku 4.5 $0.00004 $0.00628

Measured 3d ago against content hash 1ce2adae794a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

bunjs-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 3d 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.

CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
Origin

This is a copy

88% identical to bunjs-production — 26 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/dev/skills/backend/bunjs-production/SKILL.md · 990 lines

How it starts

The opening of the file, as written. The whole thing — 990 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bun.js Production Deployment Patterns

Overview

This skill covers production deployment patterns for Bun.js TypeScript backend applications, including Docker containerization, AWS ECS deployment, Redis caching, security hardening, structured logging, CI/CD pipelines, and production readiness checklists.

When to use this skill:

  • Containerizing applications with Docker
  • Deploying to AWS ECS/Fargate
  • Implementing Redis caching strategies
  • Hardening security (headers, CORS, rate limiting)
  • Setting up CI/CD pipelines
  • Preparing for production deployment

See also:

  • ${CLAUDE_PLUGIN_ROOT}/knowledge/backend/bunjs.md - Core Bun patterns, HTTP servers, database access
  • ${CLAUDE_PLUGIN_ROOT}/skills/backend/bunjs-architecture/SKILL.md - Layered architecture, camelCase conventions
  • ${CLAUDE_PLUGIN_ROOT}/knowledge/backend/bunjs-apidog.md - OpenAPI specifications and Apidog integration

Docker Multi-Stage Build

Production Dockerfile

# Stage 1: Base
FROM oven/bun:1-alpine AS base
WORKDIR /app

# Stage 2: Dependencies
FROM base AS deps
COPY package.json bun.lockb ./
COPY prisma ./prisma/
RUN bun install --frozen-lockfile --production

# Stage 3: Build
FROM base AS build
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN bunx prisma generate
RUN bun run build  # Optional: if you have a build step

# Stage 4: Runner
FROM base AS runner
WORKDIR /app
ENV NODE_ENV=production

# Create non-root user
RUN addgroup -g 1001 bungroup && \
    adduser -D -u 1001 -G bungroup bunuser

# Copy dependencies and source
COPY --from=deps /app/node_modules ./node_modules
COPY --from=build /app/src ./src
COPY --from=build /app/prisma ./prisma
COPY --from=build /app/node_modules/.prisma ./node_modules/.prisma
COPY package.json bun.lockb ./

# Set ownership
RUN chown -R bunuser:bungroup /app

USER bunuser
EXPOSE 3000

# Health check
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
  CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1

CMD ["bun", "src/server.ts"]

Read the full file on GitHub · 990 lines

Changes

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.

  1. 3d ago Changed 1ce2adae794a
  2. 7d ago First seen · 990 lines · 39 tokens per session scan A 46b13048dbf3

Subscribe to this mod's changes

bunjs-production is a skill published in the GitHub repository MadAppGang/magus (9 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 6,283 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 88% identical to bunjs-production, differing in 26 lines, and is treated as a copy.

Related

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.

oliver-kriska/claude-elixir-phoenix · 46 tokens

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.

MadAppGang/claude-code · 52 tokens

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.

NeverSight/learn-skills.dev · 58 tokens

nestjs-monorepo-scaffold

Turborepo + NestJS + Drizzle + BullMQ monorepo scaffolding — project structure, shared types, workspace config, Docker, CI/CD, and new feature bootstrapping.

me-cedric/agent-compass · 46 tokens

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).

hamzaPixl/pixl-ai · 83 tokens

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 →…

hamzaPixl/pixl-ai · 83 tokens