# bun

Configures the assistant to use the Bun runtime instead of Node.js and npm. Replaces heavy npm packages with built-in APIs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 2800 installs · ★ 379
- Author: brianlovin
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/brianlovin/agent-config/tree/HEAD/skills/bun/SKILL.md
- Updated: 2026-03-25
- HTML: https://affpapa.org/en/nevibecode/skills/bun

## What it does

This skill redirects your coding agent to Bun conventions across the board. Instead of proposing `npm run` or `ts-node`, the model generates direct file execution via `bun run`, `bun build`, and `bun test`. It also stops installing dotenv, as Bun reads `.env` files natively.

Inside codebases, the agent picks native APIs over familiar Node packages. It swaps Express for `Bun.serve()`, replaces postgres clients with `Bun.sql`, and picks `bun:sqlite` instead of better-sqlite3. For frontend work with React, it configures HTML imports on `Bun.serve()` with `--hot` reload rather than Vite.

If your stack relies on packages without Bun equivalents, the agent push toward native APIs causes friction. For interface details, the skill points directly to `node_modules/bun-types/docs/**.md`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill bun -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/bun/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/bun/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill bun -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/bun/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill bun -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/bun/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install brianlovin/agent-config bun
```

2. **Manually: put the files in place**
- File: `.github/skills/bun/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill bun -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/brianlovin/agent-config --path skills/bun
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/bun/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add brianlovin/agent-config --skill bun -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/brianlovin/agent-config/tree/HEAD/skills/bun/SKILL.md

## When to use it
- migrate project commands from npm and Jest to Bun
- spin up HTTP and WebSocket endpoints using Bun.serve without Express
- query SQLite or PostgreSQL using built-in Bun drivers
- serve React frontends via HTML imports instead of Vite

## Example prompts
- Write unit tests for the auth service using bun:test.
- Set up a Bun.serve HTTP server that handles API routes and serves index.html with hot reload.
- Run a shell command and read a local file using native Bun methods.

## Similar
- [bun-runtime](https://affpapa.org/en/nevibecode/skills/bun-runtime.md) — skill · 4700 installs
- [bun-development](https://affpapa.org/en/nevibecode/skills/bun-development.md) — skill · 2800 installs
- [bun-react-ssr](https://affpapa.org/en/nevibecode/skills/bun-react-ssr.md) — skill · 395 installs
- [bun-sqlite](https://affpapa.org/en/nevibecode/skills/bun-sqlite.md) — skill · 495 installs
- [guide](https://affpapa.org/en/nevibecode/skills/guide.md) — skill · 516 installs
- [vitest-skill](https://affpapa.org/en/nevibecode/skills/vitest-skill.md) — skill · 448 installs

From the same set: [brianlovin/agent-config](https://affpapa.org/en/nevibecode/by/brianlovin/agent-config.md) — 15 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
