跳到正文
Skillpedia
通用编程15k · #10973

principle-attack-the-premise

它能做什么

为智能体提供一种跳出重复失败循环的方法。适合那些修复总是因同一原因失败的工程师。

适用场景

  • ✓当两个或更多共享同一假设的修复都未通过同一检查的时候。
  • ✓当你即将基于同一种判断再写一个修复的时候。
  • ✓当反复修复仍然失败、而原因并不清楚的时候。

技能链接

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-attack-the-premise/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“三次修复都没通过同一个测试。在尝试下一个之前,请检查我们的基本假设是否错了。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会把共同假设写下来,运行一个如果假设不成立结果就会不同的测试,并依据证据行事。它会去掉底层的成因,而不是添加补偿性的代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Attack the Premise

When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes.

Why: Each failed fix is evidence against the belief it assumed. A third fix on the same premise spends effort where the evidence already says the cause is not.

Pattern:

  • Write the premise down. The premise is the one sentence that every failed fix assumed.
  • Test the premise before the next fix. Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are. Make the check rerunnable per Build the Lever.
  • Follow the evidence. If it contradicts the premise, the cause is elsewhere. Look for what the failures have in common that the premise did not predict. If it confirms the premise, ask the next "why" per Fix Root Causes. The earlier fixes may have treated a consequence instead of the cause.
  • Remove the condition instead of compensating for it, per the Laziness Protocol. If the evidence shows that one part always lands on the losing side, change what puts it there. A mechanism that cleans up after it leaves the cause in place and adds work on every run.

Stop: Do not start the next fix before the premise is written down and tested.

This principle is distinct from Redesign from First Principles, which rebuilds a design around a new requirement. It questions a fact the current design assumes.

常见问题

为什么不直接再试一个修复?

每次失败的修复都是在反对共同的判断,在它之上再做一个修复,只会把精力花在证据已经指向相反方向的地方。

如果假设是正确的呢?

那么智能体会再次追问原因,以找出真正的根源,因为之前的修复可能只处理了表面症状。

它要避免什么?

避免那些绕过成因、却让成因原封不动留在那里的清理层。

详情

作者的原始描述

Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10973
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能