Bun Stack Skill
Default guidance
Apply the rule files in this folder as the source of truth for Bun and PostgreSQL usage.
Workflow (use this order)
- Clarify scope: service/API/script/task runner.
- Prefer Bun-native tooling (
bun install,bun run,bun test,bun build). - Use Bun-native APIs (
Bun.serve,Bun.file, SQLite/Redis) where applicable. - Design module boundaries and error handling early.
- Add tests with
bun testand include coverage for edge cases. - Validate deployment target and build output.
Review Checklist
- Bun-native tooling used; no unnecessary Node tooling.
- Modern JS/TS patterns (ESM, async/await, private fields) applied.
- Error handling is centralized and user-facing errors are clear.
- IO paths use Bun APIs for performance.
- Tests present and runnable with
bun test.
Local Resources
bun.mdcfor Bun runtime, tooling, and modern JS/TS backend best practices.postgresql.mdcfor PostgreSQL SQL conventions, performance, and anti-patterns.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.