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

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

可直接粘贴的消息

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

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

常见问题

这是否意味着一次性重写全部内容?

不是。重新设计是整体考虑的,然后再逐步交付。

主要的问题是什么?

如果这项需求从一开始就是基础假设,那么会构建什么?

改动需要体现在哪里?

在每一处引用中,例如类型、文档、示例和设计理由部分。

详情

作者的原始描述

Apply when integrating a new requirement into an existing design.

repo: cursor/plugins

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能