Agent Skills
› NeverSight/learn-skills.dev
› bun-first
bun-first
GitHub指导开发者优先使用 Bun 作为运行时、包管理器和任务运行器。涵盖偏好 Bun API、使用 bun install/run 命令、避免 npm/yarn,并指定使用 Vitest 和 Vite 进行测试与构建,以提升性能和开发体验。
Trigger Scenarios
涉及 JavaScript/TypeScript 运行时配置
需要安装或管理项目依赖
编写或优化构建脚本
选择测试或打包工具
Install
npx skills add NeverSight/learn-skills.dev --skill bun-first -g -y
SKILL.md
Frontmatter
{
"name": "bun-first",
"description": "Describes efficient usage of Bun and Bun APIs instead of Node.js (and its APIs)"
}
Bun-First Development
We default to Bun as our JavaScript runtime, package manager, and task runner. Assume Bun is available unless explicitly stated otherwise.
General Principles
- PREFER Bun over Node.js, npm, pnpm, or yarn
- PREFER Bun’s built-in features over third-party tools when available
- PRFER Bun's native APIs (eg for file access, SQL, S3 etc) over Node.js APIs
Package Management
- USE
bun install,bun add,bun remove - AVOID
npm,yarn,pnpm - Prefer Bun-native lockfiles and resolution behavior
- Keep dependencies minimal and intentional
Scripts & Tooling
- PREFER
bun runfor scripts - AVOID Bun’s built-in test runner (
bun test) => We'll useVitestfor testing - AVOID Bun’s build tool (
bun build) => We'll use Vite - Avoid introducing extra task runners unless required
Runtime & APIs
- PREFER Bun’s native APIs (fetch, fs, path, env handling)
- Write code assuming modern Web APIs are available in the runtime
- Avoid Node-specific APIs unless explicitly required
Performance & DX
- Prefer simple, explicit scripts over complex toolchains
- AVOID unnecessary abstractions
Version History
- e0220ca Current 2026-07-05 22:49


