返回 Skill 列表
extension
分类: 开发与工程无需 API Key

bun-audit

共享的Bun审计/修复路由器。在对存储库进行Bun优先正确性审计、解释Bun审计结果、列出Bun审计规则、规划安全的Bun修复方案、应用低风险修复措施或验证与Bun相关的更改时使用。此技能委托给bun-dev/scripts中的共享引擎。

person作者: jakexiaohubgithub

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: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts audit --root <repo> --format text.
  • explain <rule-id>: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts explain --explain <rule-id>.
  • list-rules: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts list-rules.
  • plan-fixes: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts plan-fixes --root <repo>.
  • apply-safe-fixes: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts apply-safe-fixes --root <repo>.
  • validate: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts validate --root <repo> --fail-on warn.
  • benchmark: run bun ~/.agents/skills/bun-dev/scripts/bun-platform.ts benchmark --root <repo>.

Operating Rules

  • Treat bun-dev as 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, or release-sync in parallel against the same repo root. The shared platform cache uses a single SQLite database under .bun-platform/, and concurrent write access can trigger database 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-fixes and surface the tradeoff.