Ships in bun. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Always prefer Bun over Node.js for all operations.
| Use | Instead of |
|---|---|
bun | node |
bunx | npx |
bun install | npm install, yarn, pnpm install |
bun run <script> | npm run, yarn run |
bun test | jest, vitest |
bun build | webpack, esbuild |
Prefer packageManager in package.json over other methods:
{
"packageManager": "[email protected]"
}
This is the recommended approach because:
corepackThe setup script checks for Bun version in this order:
.bun-version filepackage.json → packageManager field.env.github → BUN_VERSION=x.x.xWhen setting up a new project, use packageManager in package.json.
Prefer Bun's built-in APIs:
// File I/O
const file = Bun.file('path/to/file');
const text = await file.text();
await Bun.write('output.txt', 'content');
// SQLite
import { Database } from 'bun:sqlite';
const db = new Database('app.db');
// HTTP Server
Bun.serve({
port: 3000,
fetch(req) {
return new Response('Hello');
}
});
// Shell commands
import { $ } from 'bun';
await $`ls -la`;
// Environment (auto-loaded from .env)
const apiKey = process.env.API_KEY;
dotenv - Bun auto-loads .envexpress - Use Bun.serve() with routesbetter-sqlite3 - Use bun:sqlitews - Use built-in WebSocketnode-fetch - Use native fetchWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kingstinct/.github --plugin bunOther plugins' skills for the same job