用途:bun-audit 是一个轻量路由器,把审计与修复请求转交给原生 codex-dev bun 引擎,用于对仓库进行 Bun 优先的正确性审计、解释发现、查看规则、规划安全修复、应用修复并运行验证。规则文本与参考快照由 bun-dev 维护,本技能不重复规则或修复逻辑。
主要能力与用法:命令包括 audit(审计仓库)、rules list(列出规则)、rules show <rule-id>(查看某条规则)、fixes plan(规划修复)、fixes apply(应用修复)、validate plan、validate run、benchmark。示例:codex-dev --json bun audit --root <repo>;codex-dev --json bun rules list;codex-dev --json bun rules show <rule-id>;codex-dev --json bun fixes plan --root <repo>;codex-dev --json bun fixes apply --root <repo>;codex-dev --json bun validate plan --root <repo>;codex-dev --json bun validate run --root <repo> --fail-on warn;codex-dev --json bun benchmark --root <repo>。
操作规则:以 bun-dev 作为规则与参考快照的事实来源;优先使用 codex-dev bun ... 而非临时的 bun-platform 兼容层;不要对同一仓库或技能根目录并行执行 fixes apply、validate run 或 references sync;审计缓存写入需显式使用 --write-cache 开启;安全修复会在外部 dev-skills 状态目录下写入回滚产物;若修复有风险或含义不明,应停在 fixes plan 并说明权衡。
适用场景:需要审计 Bun 相关正确性、生成可解释的修复计划或执行可回滚修复的仓库。限制:规则与参考内容不在本技能中提供,具体规则、平台支持与运行环境要求暂未提供。