跳到正文
Skillpedia
测试15k · #10977

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-explain-the-number/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能