with one click
code-review
约束 Agent 从正确性、安全性、性能和可维护性四个维度进行系统化的结构性代码审查。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
约束 Agent 从正确性、安全性、性能和可维护性四个维度进行系统化的结构性代码审查。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
约束 Agent 必须遵循结构化的 Bug 修复流程:定位 → 根因分析 → 实施修复 → 回归测试验证。
约束 Agent 必须遵循结构化的功能特性开发流程:理解需求 → 技术设想 → 编写代码 → 自验自测。
约束 Agent 遵循标准流程生成结构化、高质量且要素齐全的产品需求文档。
约束 Agent 必须遵循安全的重构流程:在保证原有业务逻辑和功能完全等价的前提下,提升代码质量。
Constrains the Agent to generate structured Product Requirements Documents (PRDs) with quality and completeness guarantees.
Constrains the Agent to follow a structured bug fix process — locate → root cause → fix → regression verify.
| name | 代码审查 (Code Review) |
| description | 约束 Agent 从正确性、安全性、性能和可维护性四个维度进行系统化的结构性代码审查。 |
| assets | {"checklist":"assets/checklist.yaml","template":"assets/template.yaml"} |
| references | {"guidelines":"references/guidelines.yaml","security":"references/security.yaml"} |
约束 Agent 必须按照标准流程进行结构化的代码审查,审查范围必须强制覆盖四大维度:正确性、安全性、性能和可维护性。
在开始审查之前,你必须逐条检查 assets/checklist.yaml 中的项目。
你的输出必须严格符合 assets/template.yaml 中定义的格式框架。
你必须覆盖全四大维度:正确性、安全性、性能和可维护性。
任何一个板块都不允许跳过或遗漏。
如果你打算在终端里执行这段代码以验证问题,你必须先查阅 references/security.yaml。
任何命中黑名单的命令(比如 rm -rf, sudo)必须被立即阻断拒绝。
在生成审查报告后,拿着 references/guidelines.yaml 里的标准对报告做一次自我审核。
如果在自审中发现违反了任何一条标准(例如:没有指出具体的行号,或者没有给出修复代码),立刻退回重写。
最多重试 3 次。如果重试 3 次依然不违规,则如实向用户报告是哪一条审查规则失败了。