Skip to content

Fast all-in-one JavaScript runtime covering CLI flags, watch and hot modes, env loading, and module resolution.

CCM score
50 of 100
skills.sh installs
438
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers running TypeScript, JSX, and package.json scripts, plus watch versus hot reloading tradeoffs
  • Includes a core CLI flag table (--watch, --hot, --smol, --inspect, --preload, --env-file) and debugger modes
  • Explains env auto-loading from .env, .env.local, and .env.development, and flag placement after bun
  • Designed for developers configuring bunfig.toml, workspaces, and resolving import errors

Install

$ npx -y skills add secondsky/claude-skills --skill bun-runtime -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Bun Runtime

Bun is a fast all-in-one JavaScript runtime built on JavaScriptCore (Safari's engine). It provides 4x faster startup than Node.js on Linux.

Quick Start

# Run a file
bun run index.ts
bun index.ts  # shorthand

# Run with watch mode
bun --watch run index.ts

# Run package.json script
bun run dev

# Run with hot reloading
bun --hot run server.ts

Core CLI Flags

FlagPurpose
--watchRestart on file changes
--hotHot module replacement (preserves state)
--smolReduce memory usage (slower GC)
--inspectEnable debugger
--preloadLoad modules before execution
--env-fileLoad specific .env file
-e, --evalEvaluate code string

Running Files

Bun transpiles TypeScript and JSX on-the-fly:

bun run index.js
bun run index.ts
bun run index.jsx
bun run index.tsx

Important: Put Bun flags immediately after bun:

bun --watch run dev    # Correct
bun run dev --watch    # Wrong - flag passed to script

Package.json Scripts

# Run script
bun run dev
bun dev  # shorthand (if no Bun command conflicts)

# List available scripts
bun run

Details

Repository
github.com/secondsky/claude-skills
Categories
CLI & Terminal, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the bun-runtime skill help with?

The bun-runtime skill covers the Bun JavaScript runtime, including bunfig.toml, watch and hot reload modes, environment variables, CLI flags, and module resolution. It gives the agent guidance for running TypeScript, JSX, and package.json scripts with Bun.

How do I install the bun-runtime skill?

Run npx -y skills add secondsky/claude-skills --skill bun-runtime -y in your project. After installing, the agent can use Bun's watch mode, hot reloading, and .env loading when working on your code.

Where does bun-runtime stand in the CLI & Terminal category?

The bun-runtime skill sits in the CLI & Terminal category on Claude Marketplaces, alongside herdr, gws-shared, opentui, cf-cli, and pnpm. It stands out for focusing on Bun's own flags, config file, and resolution rules.

Does bun-runtime explain the difference between watch and hot reloading?

Yes, the skill explains that --watch restarts the full process on file changes, while --hot replaces modules and preserves state. It also covers when to use each mode for a server.

Does bun-runtime help with debugging Bun scripts?

Yes, the skill covers the --inspect, --inspect-wait, and --inspect-brk flags for starting a debugger. It notes that you can connect through Chrome DevTools or VS Code.

More from secondsky/claude-skills

All 116

Similar to Bun Runtime

More CLI & Terminal