This project uses Bun as the JavaScript/TypeScript runtime, package manager, bundler, and test runner.
Install
mkdir -p .claude/skills/bun && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13400" && unzip -o skill.zip -d .claude/skills/bun && rm skill.zipInstalls to .claude/skills/bun
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
This project uses Bun as the JavaScript/TypeScript runtime, package manager, bundler, and test runner.102 chars · catalog descriptionno explicit “when” trigger
About this skill
SKILL: Bun Development
Description
This project uses Bun as the JavaScript/TypeScript runtime, package manager, bundler, and test runner.
Key Commands
# Package management
bun install # Install deps from package.json
bun add <pkg> # Add dependency
bun add -d <pkg> # Add dev dependency
bun remove <pkg> # Remove dependency
bun update # Update dependencies
# Running code
bun run <script> # Run package.json script
bun <file.ts> # Run TypeScript directly
bun --watch <file.ts> # Run with auto-reload
# Testing
bun test # Run tests
bun test --watch # Watch mode
bun test --coverage # With coverage
# Building
bun build ./src/index.ts --outdir=./dist
Server Pattern
Bun.serve({
port: 3000,
fetch(req) {
return new Response("Hello!");
},
websocket: {
open(ws) { /* ... */ },
message(ws, message) { /* ... */ },
close(ws) { /* ... */ },
},
});
Testing Pattern
import { describe, it, expect } from "bun:test";
describe("feature", () => {
it("should work", () => {
expect(1 + 1).toBe(2);
});
});
Environment Variables
Bun auto-loads .env files. Access via:
process.env.VAR_NAMEBun.env.VAR_NAME