principle-redesign-from-first-principles
它能做什么
为智能体提供一条把新需求整合进现有设计的规则。适合希望改动与整个系统干净契合的工程师。
适用场景
- ✓当必须为现有设计添加新需求的时候。
- ✓当某项功能很想直接打补丁到旧结构上的时候。
- ✓当改动需要贯穿类型、文档和示例的时候。
技能链接
https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-redesign-from-first-principles/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们需要为这个同步设计加入离线支持。请把它当作原始方案就包含离线功能那样重新思考。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会阅读受影响的文件,思考如果有了这项新需求、从零开始会构建什么,然后把改动贯穿到类型、文档和示例中,并分步交付。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Redesign From First Principles
When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been a foundational assumption from the start.
- Read all affected files and understand the current design
- Ask: "if we were writing this from scratch with this new requirement, what would we build?"
- Propagate the change through every reference: types, docs, examples, rationale sections
- Think about the whole redesign, then deliver it incrementally
This is the method for preserving option value when integrating changes into an existing design.
常见问题
这是否意味着一次性重写全部内容?
不是。重新设计是整体考虑的,然后再逐步交付。
主要的问题是什么?
如果这项需求从一开始就是基础假设,那么会构建什么?
改动需要体现在哪里?
在每一处引用中,例如类型、文档、示例和设计理由部分。
详情
热度
- GitHub 星标
- 15k
- 排名
- #10986
- 许可证
- —
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。