Bun Dev
Rule-first Bun guidance plus a shared audit/remediation engine.
Use bun-dev for operating-model decisions, rule lookup, release sync, and
platform routing. Use bun-audit when the task is specifically about scanning a
repo, planning safe fixes, applying deterministic remediations, or validating
changes against Bun policy.
Start with rules/_index.md for discovery, then route by the Priority Table below.
Navigation (How To Use This Skill)
- If changing package manager/runtime, open P1 rules first:
pm-*,runtime-*,vercel-*. - If working in a monorepo, open:
scripts-bun-run-parallel-sequential,scripts-bun-filter-and-workspaces. - If deploying to Vercel, open:
vercel-bun-runtime-enable,vercel-bun-runtime-limitations. - For repo-wide enforcement, use the shared CLI:
bun-platform audit,plan-fixes,apply-safe-fixes,validate. - For “what changed recently?” (Bun v1.3.10), refresh references and open:
references/ref-bun-release-notes-bun-v1.3.10.md.
Quick Start (Audit -> Fix -> Verify)
Audit (report-only):
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts audit --root . --format text
Plan safe fixes:
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts plan-fixes --root .
Apply safe fixes:
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts apply-safe-fixes --root .
Validate after remediation:
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts validate --root . --fail-on warn
Priority Table (Route To The Right Rules)
| Priority | Category | Impact | Prefix |
| --- | --- | --- | --- |
| 1 | Package manager + lockfiles | CRITICAL | pm- |
| 1 | Runtime selection + “one runtime where possible” | CRITICAL | runtime- |
| 1 | Vercel Bun runtime | CRITICAL | vercel- |
| 2 | Scripts + monorepo orchestration | HIGH | scripts- |
| 2 | TypeScript + tooling | HIGH | tsconfig- |
| 3 | Testing | MEDIUM | test- |
| 3 | Bundling + build | MEDIUM | build- |
| 4 | Performance | MEDIUM | perf- |
| 5 | Migration + troubleshooting | LOW/MED | migrate-, troubleshooting- |
Quick Reference (Start Here)
1) Package Manager + Lockfiles (CRITICAL)
pm-bun-add-remove-updatepm-no-mixed-lockfilespm-commit-bun-lockbpm-bun-install-ci-frozen-lockfilepm-package-manager-fieldpm-bunx-vs-npx
2) Runtime Selection (CRITICAL)
runtime-bun-vs-node-chooseruntime-bun-run-bun-flagruntime-ts-direct-executionruntime-watch-and-hot-reloadruntime-env-files
3) Vercel Bun Runtime (CRITICAL)
vercel-bun-install-detectionvercel-bun-runtime-enablevercel-bun-runtime-limitationsvercel-nextjs-bun-runtime-scriptsvercel-bun-function-fetch-handler
4) Scripts + Monorepos (HIGH)
scripts-bun-run-parallel-sequentialscripts-bun-filter-and-workspacesscripts-no-npm-in-bun-repos
5) TypeScript (HIGH)
tsconfig-bun-recommendedtsconfig-bun-typestsconfig-module-resolution-bundler
6) Testing + Build (MEDIUM)
test-bun-test-runnertest-bun-retrytest-mocking-and-spyingbuild-bun-build-bundlerbuild-compile-executablesbuild-bun-compile-browser
7) Performance (MEDIUM)
perf-prefer-bun-native-apisperf-avoid-node-fs-promises-hot-paths
8) Migration + Troubleshooting (LOW/MED)
migrate-node-to-bun-checklisttroubleshooting-esm-cjs-and-exportstroubleshooting-types-bun
References (Vendor Docs Snapshots)
Start with references/index.md.
Shared Platform Commands
audit: report Bun findings intext,md, orjsonlist-rules: print all rule idsexplain <rule-id>: print the matching rule fileplan-fixes: print deterministic safe fix candidatesapply-safe-fixes: apply safe file rewrites onlyvalidate: rerun the audit and fail on a severity thresholdbenchmark: emit audit/fix-planning timingsrelease-sync: refresh Bun/Vercel references and rebuild rule indexes
Platform state:
.bun-platform/cache.sqlite: shared scan cache.bun-platform/rollbacks/: safe-fix rollback artifactsreferences/release-sync-report.json: local generated release intelligence summary (ignored; not committed)
Config file:
bun-platform.config.jsondisabledRulesseverityOverridesadaptersincludePathsexcludeDirsbaselinemaxFilesmaxBytesvalidationCommandsmanageGitignore
- Example template:
assets/templates/bun-platform.config.example.json
Reference Map
| Topic | Reference | Start with rules |
| --- | --- | --- |
| Bun v1.3.10 release notes | references/ref-bun-release-notes-bun-v1.3.10.md | scripts-bun-run-parallel-sequential, build-bun-compile-browser, test-bun-retry, test-bun-test-runner |
| Vercel Bun runtime | references/ref-vercel-bun-runtime.md | vercel-bun-runtime-enable, vercel-bun-runtime-limitations |
Refresh reference snapshots:
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts release-sync
Automation
Shared CLI:
bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts audit --root .
Compatibility wrapper:
bun ~/.agents/skills/bun-dev/scripts/bun-audit.ts audit --root .
Skill integrity check (rule ids, indexes, flat references):
bun ~/.agents/skills/bun-dev/scripts/check-skill-integrity.ts