返回提示词库Back to prompts
语言当前显示中英对照
开发编程coding
可执行的代码审查
从正确性、安全性、维护成本和用户影响出发,给出带位置和优先级的代码审查意见。
Review code for correctness, security, maintenance cost, and user impact with prioritized, located findings.
CodexClaude CodeCursor
0 次复制copies·小黑丸整理Curated by XHW
提示词正文Prompt text
请审查下面的代码或改动,目标是找出真正值得修复的问题,而不是为了显得严格而挑格式。 代码 / diff: 【粘贴代码】 上下文: - 功能目标:【功能目标】 - 运行环境:【语言、框架、版本】 - 已知约束:【性能、兼容性、上线时间】 请按严重程度输出: - P0:会造成数据损坏、安全事故或主流程不可用 - P1:高概率影响用户或后续维护 - P2:可以改进,但不阻断上线 每条问题必须包含:文件或代码位置、触发条件、影响、为什么当前实现不够、最小修复建议。 最后补充: 1. 这次改动做得好的地方 2. 需要补的测试用例 3. 如果没有实质问题,直接说“没有发现需要阻断上线的问题”。
Review the code or diff below. Find issues worth fixing, not style nits added to look strict. Code / diff: [Paste code] Context: - Goal: [feature goal] - Environment: [language, framework, version] - Constraints: [performance, compatibility, launch date] Group findings by severity: - P0: data loss, security incident, or unusable core flow - P1: likely user impact or costly maintenance - P2: improvement that does not block launch Every finding must include the file or code location, trigger, impact, why the current code is insufficient, and the smallest useful fix. Also include: 1. What the change does well 2. Missing test cases 3. If there are no material issues, say so plainly.
使用场景Best used for
适合合并代码前复查、上线前检查和让 AI 帮你读懂陌生项目。
Useful before merging code, before launch, or when asking AI to understand an unfamiliar project.
使用提醒Usage note
一定要贴运行环境和改动目标;只贴一小段代码,模型很容易把局部问题当成全局结论。
Always include the environment and change goal. A tiny code fragment can lead to overly broad conclusions.