Agent Skills
› wibus-wee/see
› principle-subtract-before-you-add
principle-subtract-before-you-add
GitHub一种架构设计原则,指导在添加功能或重构前优先移除冗余代码和过时路径,以简化系统。适用于代码审查、重构及优化场景,旨在通过减法提升系统可维护性。
Trigger Scenarios
代码重构前
添加新功能前
系统结构优化
Install
npx skills add wibus-wee/see --skill principle-subtract-before-you-add -g -y
SKILL.md
Frontmatter
{
"name": "principle-subtract-before-you-add",
"description": "Remove dead weight and obsolete paths first; build on the simpler remaining system. Use when before an addition, rewrite, or structural refactor."
}
Subtract Before You Add
Trigger
Before an addition, rewrite, or structural refactor.
Rule
Remove dead weight and obsolete paths first; build on the simpler remaining system.
Application
- Name the concrete decision this principle changes.
- Apply the rule to that decision, not as a decorative citation.
- Prefer evidence from the current repository/runtime over generic preference.
- If the principle conflicts with an explicit user constraint, keep the constraint and state the tradeoff.
Version History
- b47adae Current 2026-11-26 00:11


