principle-explain-the-number
它能做什么
为智能体提供一条信任性能和评估数字的规则。适合测量速度、吞吐量或模型结果,并需要安全地报告这些数字的人。
适用场景
- ✓当你测量提速、退步、延迟或吞吐量的时候。
- ✓当你即将报告一项评估结果的时候。
- ✓当某个数字好得或差得出乎意料、需要检查的时候。
技能链接
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-explain-the-number/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的新版本在基准测试中快了一倍。在我报告之前,请检查这个数字是否真的说明了我们以为的事情。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会事先确定哪种结果才有意义,找出限制该数字的资源,排除其他解释,例如错误或被跳过的工作,并把运行次数和离散程度与结果一起保存。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Explain the Number
- Write the decision before you run. Name the result that would change a decision, and the noise floor. Stop when the run-to-run spread is larger than the effect.
- Ask "why not double?" Name the resource or code path that bounds the result, such as a core, a lock, the disk, the network, or the load generator itself. Get it from a profile or from system counters taken during a run, then map it to source. A guess from reading the code is not a limiter. If you cannot say why the number is not twice as good, you do not know what you measured.
- List what else the number could be measuring, and rule out each one with evidence. The usual suspects are errors, skipped or cached work, code that never ran, an untuned side (one left on default settings), noise, and a piece too small to matter end to end.
- Keep the evidence with the number. Put the run count, the spread, and the limiter in the notes or a linked artifact.
For a performance number, run the full procedure with the benchmark-checklist skill. For an eval result, ask the same of the trials: did every run do the task, does the gap hold across trials and models, and does the scenario matter.
You skipped this when a run started without the result that would change a decision, when the evidence behind a number has no run count, no spread, or no named limiter, or when the time saved is larger than the time the changed piece took.
Distinct from Prove It Works, which checks that an output is real.
常见问题
什么是限制因素?
限制结果的资源或代码路径,例如某个核心、一把锁、磁盘或负载生成器。
仅凭阅读代码的猜测够吗?
不够。限制因素必须来自运行期间获得的性能分析或系统计数器。
数字应该附带什么?
运行次数、离散程度和指明的限制因素,方便他人判断。
详情
作者的原始描述
Apply before you measure, and before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.
repo: cursor/plugins
热度
- GitHub 星标
- 15k
- 排名
- #10977
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。