Principle Subtract Before You Add

作者 cursorccb5507cec15无许可证10K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Apply when sequencing an addition, refactor, or rewrite. Remove dead code, redundant validators, and stub references first, then build on the simpler base.

AI 生成的概览

指导在新增、重构或重写时先做减法,先移除死代码与冗余元素。

功能
这是一个仅含说明的技能,描述“先减后加”的系统演进模式。它建议在构建之前移除死代码、冗余校验器、解析器、守卫和占位引用,并把简化视为持续投入。它产出的是指导,而不是文件或代码。
适用场景
适用于安排新增、重构或重写的顺序,或系统已积累复杂度、需要先降低复杂度再开展新工作时。也适用于决定在投入质量之前先删除或简化什么。
运行要求
无需工具、软件包、运行时、凭据或网络访问;仅为说明,不附带脚本。

Subtract Before You Add

When evolving a system, remove complexity first, then build.

Why: Adding to a complex system compounds complexity. Removing first leaves less code, reveals the essential structure, and usually makes the next design obvious. Default to subtraction.

Make simplification a continual investment. Leave the design slightly simpler and more capable behind the same or smaller surface than you found it.

The pattern:

  • Sequence removal before construction
  • Cut before you polish (get to the minimum before investing in quality)
  • Design for observed usage, not speculative edge cases
  • No speculative validators, parsers, or guards beyond what the spec demands
  • Simplify prompts (remove redundant instructions, excessive templates)
  • When a reference has no novel content, delete it rather than leaving a stub

来源与署名

来源:cursor/plugins位于pstack/skills/principle-subtract-before-you-add提交ccb5507

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架