规则参考 · 清晰度
过长的句子
触发条件: 超过 40 个词的叙述性句子。
一个长句里往往塞着四五条要求,用“并且”“同时”连在一起。每一条都容易被忽略,也很难看出模型跳过了哪一条。
每个句子或要点只放一条要求。这也让提示词更容易评审和对比差异。
示例提示词以及引擎的消息、解释和修复,按引擎返回的原样以英文显示。
触发它的示例
Review the pull request below and point out any correctness problems, security issues such as injection or missing authorization checks, and places where the code is hard to maintain because of duplication or unclear naming, while ignoring purely stylistic preferences and suggesting a concrete fix for each problem you report.提示 1 sentence over 40 words.
为什么重要。 Long sentences bundle several instructions together; models are more likely to miss one of them.
修复。 Split each requirement into its own sentence or bullet.
质量 84/100 · 55 个 token · 3 个发现
修复后的版本
Review the pull request below.
- Report correctness problems.
- Report security issues, such as injection or missing authorization checks.
- Report maintainability problems, such as duplication or unclear naming.
- Ignore purely stylistic preferences.
- Suggest a concrete fix for each problem.
Return a Markdown list grouped by category.
<diff>
{{diff}}
</diff>质量 100/100(+16)· 70 个 token · 0 个发现
已被修复解决
missing_output_format: No output format is specified.unclear_reference: The prompt refers to something ("this", "the above", "the file") that is not included.long_sentence: 1 sentence over 40 words.
本页的分数、token 数(GPT-4.1 分词器)和发现,都是在构建网站时由引擎计算的。
它如何影响分数
每个发现都会从 100 分中扣除固定的分数:严重 30,警告 10,提示 3。此规则计入清晰度维度。完整公式参见评分模型。