addiplus/claude-skill-pack/bun-toolkit
Claude Code and agent skill by addiplus/claude-skill-pack
- community
Checking that the SKILL.md file is still in the repository.
Execute JavaScript/TypeScript with Bun runtime. Use when user needs fast JS execution, package management, or cross-platform shell scripting. Keywords: bun, javascript, typescript, runtime, fast, npm alternative, package manager, shell script.
Install
npx vskill@latest install addiplus/claude-skill-pack/bun-toolkitSKILL.md
The same SKILL.md was published earlier as addiplus/claude-skill-pack/bun-toolkit.
Bun Toolkit
Bun is an all-in-one JavaScript runtime and toolkit designed for speed. This skill enables fast script execution, package management, and cross-platform shell scripting.
Variables
- BUN_INSTALL_SCRIPT_WINDOWS:
powershell -c "irm bun.sh/install.ps1|iex" - BUN_INSTALL_SCRIPT_UNIX:
curl -fsSL https://bun.sh/install | bash - BUN_PATH_WINDOWS:
$env:USERPROFILE\.bun\bin - BUN_PATH_UNIX:
~/.bun/bin
Prerequisites
Check Installation
Install Bun
Windows (PowerShell):
macOS/Linux:
Via npm (cross-platform):
Core Capabilities
1. Run Scripts (Fastest JS Runtime)
2. Package Management (25x faster than npm)
3. Shell Scripting (Cross-platform)
4. HTTP Server
5. File I/O
6. SQLite (Built-in)
Quick Commands Reference
| Task | Command | |
|---|---|---|
| Run script | bun run script.ts | |
| Install deps | bun install | |
| Add package | bun add <pkg> | |
| Dev server | bun --hot run server.ts | |
| Run tests | bun test | |
| Bundle | bun build ./src/index.ts --outdir ./dist | |
| Create executable | bun build --compile ./app.ts --outfile app | |
| Init project | bun init | |
| Create from template | bun create react-app my-app |
Cookbook
Extended documentation for specific features.
| Feature | When to Read | Documentation | |
|---|---|---|---|
| Installation | Setting up Bun on any platform | cookbook/installation.md | |
| Runtime APIs | Using Bun-specific APIs | cookbook/runtime-apis.md | |
| Package Management | Advanced package operations | cookbook/package-management.md | |
| Shell Scripting | Cross-platform automation | cookbook/shell-scripting.md |
Examples
Example 1: Run TypeScript Directly
Example 2: Quick HTTP Server
Example 3: Process JSON Files
Workflow
Starting a New Project
- Initialize project:
``bash mkdir my-project && cd my-project bun init ``
- Add dependencies:
``bash bun add express zod bun add -d typescript @types/node ``
- Create entry point:
``typescript // index.ts console.log("Hello, Bun!"); ``
- Run:
``bash bun run index.ts ``
Converting npm Project to Bun
- Delete node_modules and lockfile:
``bash rm -rf node_modules package-lock.json yarn.lock pnpm-lock.yaml ``
- Install with Bun:
``bash bun install ``
- Run scripts:
``bash bun run dev bun run build ``
Node.js Compatibility
Bun is designed for Node.js compatibility:
- Fully Supported: fs, path, crypto, http, https, net, url, stream, buffer, events
- Mostly Supported: child_process, worker_threads, cluster
- Not Supported: vm (use Workers), domain (deprecated)
Troubleshooting
"bun: command not found"
- Windows: Add
$env:USERPROFILE\.bun\binto PATH - Unix: Run
source ~/.bashrcor restart terminal
Package installation fails:
TypeScript errors:
- Bun uses its own TS transpiler - no
tscneeded - For type-checking:
bun x tsc --noEmit
Hot reload not working:
- Use
bun --hot runnotbun run --hot - Ensure no syntax errors in code
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bun-toolkit/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/addiplus/claude-skill-pack/bun-toolkit)