Bun Runtime
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
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 afterbun - Designed for developers configuring
bunfig.toml, workspaces, and resolving import errors
Install
$ npx -y skills add secondsky/claude-skills --skill bun-runtime -yInstalls 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
| Flag | Purpose |
|---|---|
--watch | Restart on file changes |
--hot | Hot module replacement (preserves state) |
--smol | Reduce memory usage (slower GC) |
--inspect | Enable debugger |
--preload | Load modules before execution |
--env-file | Load specific .env file |
-e, --eval | Evaluate 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- Nuxt Production435
- Ultracite435
- Bun Docker434
- Bun Tanstack Start434
- Nuxt Ui V4432
- Oauth Implementation432
- Api Gateway Configuration431
- Health Check Endpoints431
- Bun Test Mocking430
- Mobile Offline Support428
- Bun Test Coverage427
- Api Changelog Versioning426
- Dependency Upgrade426
- Idempotency Handling426
- Nuxt Server426
- Bun Cloudflare Workers425
- Bun Workers425
- Bun Http Server424
- Bun Bundler423
- Turborepo423
- Api Versioning Strategy421
- Recommendation System421
- Logging Best Practices419
- Bun Hot Reloading418
Similar to Bun Runtime
More CLI & Terminalbun-bundlerSkillsecondsky/claude-skills423 installsBun's esbuild-compatible JavaScript and TypeScript bundler, covering CLI and Bun.build usage for production builds.
bunPluginsecondsky/claude-skills254 starsComprehensive Bun runtime toolkit covering runtime, package manager, bundler, testing, HTTP servers, WebSockets, databases, framework integrations (Hono, Next.j
bun-developmentSkilldavila7/claude-code-templates369 installsModern Bun runtime guide covering package management, built-in APIs, testing, and Node.js migration for JS/TS projects.
Devtools DebuggerMCP serverscriptedalchemy351 starsNode.js debugging over Chrome DevTools Protocol: breakpoints, stepping, variable inspection, and evaluation.
deno-guidanceSkilldenoland/skills381 installsDeno-based toolchain that manages dependencies, permissions, and configuration without requiring a rewrite of existing Node or npm code.