This gives Claude everything it needs to work with Bun's runtime: CLI flags, watch vs hot reloading, environment variables, and all those globals that come out of the box. The flag positioning matters here (put them before `run`, not after), and you get practical stuff like preload scripts and stdin execution. Useful when you're debugging why imports aren't resolving or setting up a project with bunfig.toml. The watch mode comparison is helpful since hot reloading preserves state while watch does full restarts. Covers the 80% case well, and the reference pointers tell you where to dig deeper for module resolution quirks or complete flag lists.

skills.sh installs
342
GitHub stars
248
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

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

More from secondsky/claude-skills

All 146
1nocobase avatarnocobase-acl-managenocobase/skillsTask-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal entry access, user-role membership, and risk assessmen341skills.sh installs
2bobmatnyc avatarvercel-overviewbobmatnyc/claude-mpm-skillsVercel platform overview for onboarding, projects, CLI, Git integration, environment variables, project configuration, REST API, and webhooks. Use when planning338skills.sh installs
3rstackjs avatarmigrate-to-rsbuildrstackjs/agent-skillsMigrate webpack, Vite, create-react-app (CRA/CRACO), or Vue CLI projects to Rsbuild.336skills.sh installs
4mvanhorn avatarpp-wanderlust-goatmvanhorn/printing-press-libraryWhat a knowledgeable local with great taste would tell you to walk to. Use for ANY place-recommendation query — whether anchored ('near me', 'from here') or cit335skills.sh installs
5dchuk avatarunderstanding-tauri-architecturedchuk/claude-code-tauri-skillsTeaches Claude about Tauri's core architecture, including the Rust backend, webview integration, Core-Shell design pattern, IPC mechanisms, and security model f334skills.sh installs
6tech-leads-club avatarperf-lighthousetech-leads-club/agent-skillsRun Lighthouse audits locally via CLI or Node API, parse and interpret reports, and set performance budgets. Use when measuring site performance, understanding 332skills.sh installs