Bun Audit
Use this skill as a thin router over the shared Bun audit engine in
~/.agents/skills/bun-dev/scripts/bun-audit.ts. Do not duplicate rules or
remediation logic here.
Commands
audit: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts audit --root <repo> --format text.explain <rule-id>: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts explain --explain <rule-id>.list-rules: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts list-rules.plan-fixes: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts plan-fixes --root <repo>.apply-safe-fixes: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts apply-safe-fixes --root <repo>.validate: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts validate --root <repo> --fail-on warn.benchmark: runbun ~/.agents/skills/bun-dev/scripts/bun-platform.ts benchmark --root <repo>.
Operating Rules
- Treat
bun-devas the source of truth for the engine and rule explanations. - The shared engine owns audit, fix planning, safe fix application, validate, benchmark, and release-sync.
- Do not run
audit,plan-fixes,apply-safe-fixes,validate,benchmark, orrelease-syncin parallel against the same repo root. The shared platform cache uses a single SQLite database under.bun-platform/, and concurrent write access can triggerdatabase is locked. - By default, creating
.bun-platform/also ensures.bun-platform/is present in the repo root.gitignore. - Safe fixes create rollback artifacts under
.bun-platform/rollbacks/. - Keep changes minimal and forward-only.
- If a fix is risky or ambiguous, stop at
plan-fixesand surface the tradeoff.