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 從公開儲存庫中收錄這些內容。

檢舉或申請下架