Skip to main content
prompt GP ChatGPT

15-production-bundle — Claude Code prompt: what it does

15-production-bundle is a Claude Code prompt for configuring production bundling and packaging of CLI tools for Node.js 20+ and Bun 1.1+.

no license ★ 3,444 updated 2026-10-14

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/15-production-bundle.md
Open on GitHub

What 15-production-bundle does

This prompt guides Claude Code through refining the production pipeline in scripts/build-bundle.ts. It enforces tree shaking to drop internal branches, sets build-time replacements via define, turns on minification, and attaches external source maps. Target runtimes are specifically locked to Bun 1.1+ and Node.js 20+.

The workflow details how to emit an executable dist/cli.mjs, create packaging helpers for npm, build an Alpine Docker image, and run end-to-end checks. Target bundle size stays under 10 MB, aiming below 5 MB. If Bun or Node.js are missing from your environment, verification commands will fail.

What it helps with

  • configure esbuild for CLI minification and dead code removal
  • package distribution assets for npm registries
  • assemble a minimal multi-stage Alpine Dockerfile
  • automate build verification checks inside a CI shell script

Example prompts for the agent

  • Execute the production packaging steps from 15-production-bundle.md
  • Configure esbuild replacements and minification following 15-production-bundle
  • Generate the Dockerfile and CI test script outlined in 15-production-bundle

How to install 15-production-bundle

Manually: put the files in place

.claude/commands/15-production-bundle.md

Questions about 15-production-bundle

How to install 15-production-bundle in Claude Code?

Place the file into your repository under .claude/commands/15-production-bundle.md.

What does 15-production-bundle do?

It provides Claude Code with explicit tasks for build optimization, single-file bundling, packaging, and CI testing.

What dependencies does this build setup require?

The configuration targets Node.js 20+ and Bun 1.1+, using esbuild under the hood.

Similar prompts

All prompts for DevOps and infrastructure →

From the same set17

The whole set →
04-fix-mcp-server 04-fix-mcp-server — a Claude prompt that runs the TypeScript build in mcp-server/, repairs compiler errors in server.ts and index.ts, then checks the server starts. GP ChatGPT ★ 3,444repo stars 08-command-system 08-command-system is a Claude Code prompt that audits and restores slash commands in a codebase. It addresses command registry repairs and broken imports. GP ChatGPT ★ 3,444repo stars 13-bridge-ide 13-bridge-ide is a Claude Code prompt for examining the Bridge connection to IDEs and checking CLI behavior with the feature disabled. It also covers activation notes and Chrome modes. GP ChatGPT ★ 3,444repo stars 16-testing The 16-testing prompt wires up Vitest in the claude-code project and writes tests for shims, tools, commands and context. It fires when the leaked-and-rebuilt source has no test suite at all. GP ChatGPT ★ 3,444repo stars 11-mcp-integration The 11-mcp-integration prompt guides an investigation of Claude Code’s MCP client and server mode. Use it to inspect configuration and outline a client-to-server test. GP ChatGPT ★ 3,444repo stars 10-context-and-prompts 10-context-and-prompts takes the agent through the CLI prompt layer: reads the builder, repairs context collection on Linux, connects memory from CLAUDE.md. The last step is a script that prints the finished prompt. GP ChatGPT ★ 3,444repo stars 05-env-and-auth 05-env-and-auth sets up environment variables and tests API connectivity in claude-code workspaces. Creates a documented .env.example and builds a test script for Bun. GP ChatGPT ★ 3,444repo stars 07-tool-system 07-tool-system is a Claude Code prompt for auditing the CLI tool interface, registry, and imports. It also asks for a smoke test that loads the available tools. GP ChatGPT ★ 3,444repo stars

Project sponsors

Companies that keep this analytics open