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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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
Comments
- …
More skills from this repository
advisor
15kLets your agent consult a stronger second model at key checkpoints, such as before a big decision or when stuck on an error, if you turn it on.
check-agent-compatibility
15kRuns a full check of whether AI coding agents can start, verify and document a repository, and returns one compatibility score with the main issues.
cli-for-agents
15kTeaches your agent to design or review command-line tools so AI agents can run them without prompts, with clear help text and examples.
continual-learning
15kKeeps your AGENTS.md notes up to date by handing the work of reviewing past chats to a dedicated memory updater.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.