Bun
Overview
Use this skill to operate Bun projects and choose the correct Bun command for installs, scripts, and tests. Keep guidance consistent with the project's existing scripts and configuration.
Workflow
- Check for Bun indicators:
bun.lockb,bunfig.toml, orpackage.jsonscripts that mention Bun. - Prefer project scripts over ad-hoc commands; use
bun run <script>fordev,build, ortestwhen defined. - Use Bun's native tools only when the repo expects them (for example,
bun testwith Bun's test runner). - Avoid editing lockfiles by hand; update dependencies via Bun commands.
Command Reference
- Read
references/bun.mdwhen you need concrete command lines, testing guidance, or dependency workflows.
Notes
- Keep commands explicit and predictable; avoid clever flags unless the project already uses them.
- If the repo uses another tool (pnpm, yarn, npm), follow that tool instead of forcing Bun.