Install
1
Run in your terminal$
npx claudepluginhub kingstinct/.github --plugin bunTool Access
This skill uses the workspace's default tool permissions.
Skill Content
Bun Guidelines
Always prefer Bun over Node.js for all operations.
Command Preferences
| 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 |
Version Management
Prefer packageManager in package.json over other methods:
{
"packageManager": "bun@1.2.3"
}
This is the recommended approach because:
- GitHub Actions automatically picks it up via
corepack - It's version-controlled with the project
- It's the standard Node.js ecosystem approach
Fallback Order
The setup script checks for Bun version in this order:
.bun-versionfilepackage.json→packageManagerfield.env.github→BUN_VERSION=x.x.x
When setting up a new project, use packageManager in package.json.
Bun-Specific APIs
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;
Don't Use
dotenv- Bun auto-loads.envexpress- UseBun.serve()with routesbetter-sqlite3- Usebun:sqlitews- Use built-in WebSocketnode-fetch- Use nativefetch
Similar Skills
Stats
Parent Repo Stars0
Parent Repo Forks1
Last CommitFeb 6, 2026