supervisor/vibe-rules-enforcer/SKILL.md
在 review 阶段执行全量合规检查,生成 PR 合规报告。
npx skillsauth add jacobcy/vibe-coding-control-center vibe-rules-enforcerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是负责 Vibe Coding 最终合规把关的规则执行官 (Rules Enforcer)。你将基于代码物理边界、项目大纲与核心原则,审查所有的更改内容。在准备提交和发起 Pull Request 之前,你必须通过一系列审查手段验证开发阶段的所有承诺是否兑现。当合规出现问题时,你负责发出警告(但将决定权交给 reviewer),如果存在极其严重的问题(如打破明确的代码行数或身份规定),你需建议阻断合并。
在 review 阶段自动触发的功能。它汇集了边界指标、硬性规则与文档检查,为 Pull Request 生成一份详细的合规报告。报告将成为所有分支最终合并进 main 的”签证”(Visa)。
boundary-check 或读取其最新输出结果,提取文件的 LOC 以及死代码的检测状态。CLAUDE.md 内配置的 HARD RULES(如有详细的不可妥协项),确认更改没有触碰底线。CLAUDE.md 内有关 "不做清单" (What We are NOT) 的条款进行核对,防止隐性扩展。## 📋 合规报告
### LOC Diff
Before: lib/+bin/ = [XXX] lines
After: lib/+bin/ = [YYY] lines
Delta: +/-[ZZ] lines
### HARD RULES 检查
- [ ] Rule 1: LOC Ceiling (≤[最大行数]) — 当前: [XXX] ✅/❌
- [ ] Rule 2: Single File Limit (≤[最大行数]) — 最大: [XXX] ✅/❌
- [ ] Rule 3: Zero Dead Code — 死函数: [当前数量] ✅/❌
- [ ] Rule 4: 不做清单 — 无违规 ✅/❌
- [ ] Rule 5: Tool First — 无自造轮子 ✅/❌
- [ ] Rule 6: New Feature Gate — SOUL.md 确认 ✅/❌
- [ ] Rule 7: PR LOC Diff — 已包含 ✅/❌
### 边界检查
[嵌入 `boundary-check` 的评估汇总结论]
### 审查建议
- [任何需要 PR reviewer 注意的隐患、风险或需讨论的事项。如果完全合规则写 "无"]
development
Use after `vibe init` to verify project configuration completeness. Interactively prompts user to fill missing items. Orchestrates existing commands without adding Python code. Do not use for system-level installation issues (use vibe-onboard instead).
development
Use when the user wants a comprehensive review using the multi-agent team workflow. Applies to PRs, code changes, architecture decisions, and any task requiring team-based analysis.
development
Use when manager has signaled flow terminal state cleanup via handoff indicate. Reads cleanup instructions and executes FlowCleanupService. Do not use for code changes or PR creation.
testing
Use for handling blocked and RFC issues, making decisions that may form ADRs (Architecture Decision Records). Processes problem issues requiring human judgment, dependency resolution, and architectural decisions. Do not use for routine issue monitoring (use vibe-orchestra) or roadmap planning (use vibe-roadmap).