# Bun First

> Use Bun as the primary JavaScript runtime and tooling choice

- Skill: `majiayu000/bun-first-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/bun-first-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/bun-first-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/bun-first-2

---


# Bun-First Development Guidelines

Bun is the primary JavaScript runtime and tooling choice for this project.

## Key Preferences

- **PREFER** Bun over Node.js, npm, pnpm, or yarn
- **PREFER** Bun's built-in features over third-party tools when available

## Package Management

Use Bun's package commands:
- `bun install` - Install dependencies
- `bun add` - Add packages
- `bun remove` - Remove packages

## Tool Selection

- **PREFER** Vitest over Bun's test runner
- **PREFER** Vite over Bun's build tool

## Runtime Approach

- Leverage Bun's native APIs (fetch, fs, path, env handling)
- Write code assuming modern Web APIs are available
- Use Node-specific APIs only when necessary

## Philosophy

Prioritize simplicity and directness. Avoid unnecessary abstractions and complex toolchains in favor of straightforward, explicit solutions.

