Skip to content
Skillpedia
General coding15k · #10989

principle-subtract-before-you-add

What it does

Gives the assistant a rule to simplify before adding new features. It is for teams whose codebases have grown heavy over time.

When to use it

  • ✓When you are about to add a feature to a messy or bloated part of the code.
  • ✓When a refactor or rewrite is planned.
  • ✓When there are dead code paths, redundant validators or empty references.

Skill link

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-subtract-before-you-add/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-subtract-before-you-add/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Before we add the new export feature, clean out the dead code and unneeded checks in that module.”

5 new skills a week. 1 minute to read.

How it works

The assistant removes dead code, redundant validators and stub references first, then builds the new work on the simpler base. It designs for real usage rather than speculative edge cases.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Subtract Before You Add

When evolving a system, remove complexity first, then build. 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.

  • 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
FAQ

Does it mean deleting everything?

No. It removes what is dead or unneeded, and designs for observed use rather than guesses.

Should quality come first?

The skill says to cut to the minimum before investing in polish.

What about stub references?

When a reference has no new content, the skill says to delete it instead of keeping a stub.

Details

Original description by the author

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

repo: cursor/plugins

Popularity

GitHub stars
15k
Ranking position
#10989
License
—
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills