joabgonzalez/ai-agents-skills/bun
Claude Code and agent skill by joabgonzalez/ai-agents-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Fast JavaScript/TypeScript runtime with bundling and testing. Trigger: When using Bun for server apps, scripts, or tooling.
Install
npx vskill@latest install joabgonzalez/ai-agents-skills/bunSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as joabgonzalez/ai-agents-skills/bun.
Bun
Fast JS/TS runtime with native bundling, testing, package management.
When to Use
- Running JS/TS apps that benefit from fast startup and native TS support
- Using Bun's built-in bundler, test runner, or package manager
- Writing HTTP servers, scripts, or CLI tools
- Don't use for: full Node.js API compat, native C++ addons, LTS stability
Critical Patterns
✅ REQUIRED: Bun.serve() for HTTP Servers
Built-in HTTP with streaming, no framework needed.
✅ REQUIRED: Bun.file() for File I/O
Native file API with lazy BunFile for fast I/O.
✅ REQUIRED: bun:test for Testing
Jest-compatible test runner, no install/config.
✅ REQUIRED: bunx for Package Execution
Run npm binaries without install (like npx, faster).
✅ REQUIRED: Workspace Configuration
Monorepo support via npm-style workspaces in package.json.
✅ REQUIRED: Bun.spawn() for Shell Commands
Spawn child processes with native API -- faster than Node's child_process.
✅ REQUIRED: Plugin System for Custom Loaders
Extend Bun's bundler with plugins for custom file types.
✅ REQUIRED: WebSockets with Bun.serve()
Native WebSocket support in HTTP server with zero dependencies.
Decision Tree
Example
Edge Cases
- Node.js API gaps: Some built-ins (
vm,worker_threads) partial. Check compat docs.
- Native modules: C++ addons may not load. Use
bun:ffior WASM.
- Watch modes:
--watchrestarts process,--hotenables HMR (experimental).
- Environment vars:
Bun.env.VAR_NAMEorprocess.env..envauto-loads.
- Large files:
Bun.file()is lazy. Stream withnew Response(file).
- TS transpilation: On-the-fly, no type-check. Use
bunx tsc --noEmitin CI.
- Package resolution: Aggressive caching. Try
bun install --forceif issues.
- Port conflicts: Bun crashes if port in use. Handle with try/catch.
- Test isolation: Same process by default. Use
--preloador--bail.
- Build targets:
--target=bun(Bun only),--target=node(Node),--target=browser(client).
Checklist
- [ ] Use
Bun.serve()for simple HTTP services instead of frameworks - [ ] Use
Bun.file()/Bun.write()instead offs - [ ] Tests use
bun:testwith no external runner - [ ] Scripts use
bun runinstead ofnpm run - [ ] Production builds use
bun buildwith correct--target - [ ] Node API compatibility verified for imported modules
Resources
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 repositoryCheckingskills/bun/SKILL.md
Popularity
- Repository stars
- 9
- 7-day trend score
- 12
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
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/joabgonzalez/ai-agents-skills/bun)