mikkelkrogsholm/dev-skills/bun
Claude Code and agent skill by mikkelkrogsholm/dev-skills
- community
Checking that the SKILL.md file is still in the repository.
Bun — fast all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building with Bun, running TypeScript, managing packages with bun install, writing tests with bun test, or asking about Bun APIs, configuration, or Node.js migration. Fetch live documentation for up-to-date API details.
Install
npx vskill@latest install mikkelkrogsholm/dev-skills/bunSKILL.md
Bun
CRITICAL: Your training data for Bun is unreliable. APIs change between versions and memorized patterns may be wrong or deprecated. Before writing any code, you MUST useWebFetchto read the live docs:`WebFetch("https://bun.sh/llms.txt")`Do not proceed without fetching this URL first. Never assume an API exists — verify against current docs.
Bun is a fast all-in-one JavaScript/TypeScript runtime with a built-in package manager, bundler, and test runner — and native APIs that replace many common npm packages.
Key Capabilities
Bun has native built-ins for things developers commonly add as separate packages. Always prefer these over npm equivalents:
- SQL (SQLite & PostgreSQL): use
Bun.sql()/new Bun.sqlite()— notbetter-sqlite3,pg, ormysql2 - Redis: use
Bun.redis()— notredisorioredis - S3: use
Bun.s3()— not@aws-sdk/client-s3 - Password hashing: use
Bun.password.hash()/Bun.password.verify()— notbcrypt - Shell scripting: use
Bun.$\command\`— notshelljsorexeca` - Testing: use
bun test(Jest-compatible, built-in) — not Jest - File globbing: use
new Bun.Glob()— not theglobpackage - UUID: use
Bun.randomUUID()— not theuuidpackage - TypeScript execution: run
.tsfiles directly — nots-nodeortsxneeded
Best Practices
- `.env` auto-loads — Bun reads
.envautomatically withoutdotenv. Be aware when migrating from Node.js or running in environments with existing.envfiles. - Lockfile is `.lockb` — not compatible with npm/yarn by default. Use
--yarnflag if a yarn-compatible lockfile is required. - Test file naming is strict — files must match
*.test.ts,*.spec.ts, etc. and live in__tests__/ortest/. Wrong naming means tests are silently skipped. - `import.meta.main` replaces entrypoint checks — use
if (import.meta.main)instead of the Node.jsif (require.main === module)pattern.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbun/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 4
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mikkelkrogsholm/dev-skills/bun)