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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。