Skills Explorer Add Skills

principle-subtract-before-you-add

An agent skill by cursor, from cursor/plugins. Tags: cleanup, code-quality, development, optimization, refactoring.

What it does

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

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add cursor/plugins --skill principle-subtract-before-you-add

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/cursor/plugins
cp -r plugins/pstack/skills/principle-subtract-before-you-add ~/.claude/skills/principle-subtract-before-you-add

Safety box score

Grade A, minimal risk: 0 of 100 risk points, rated 2026-10-16. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This is a documentation-only refactoring skill: it does not ship scripts, fetch remote content, or touch the machine directly. Its main effect is to steer an agent toward deleting code and simplifying prompts before adding new behavior, so the only real risk is over-aggressive removal in the target project.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution0 (none)`SKILL.md` contains guidance only; there are no shell commands, scripts, or code evaluation paths.
Network access0 (none)No downloads, API calls, or remote fetches are present in the skill file.
Filesystem reach0 (none)The skill does not name any paths to read, write, or delete outside the project, only general refactoring advice.
Secrets & credentials0 (none)It does not request tokens, keys, `.env` files, logins, or other credentials.
Privilege & persistence0 (none)There is no sudo, global install, service registration, or OS/git setting change in the skill.
Instruction hijack surface0 (none)The text is ordinary design guidance; it does not tell the agent to ignore instructions, hide actions, or follow untrusted remote content.
Irreversible actions0 (none)The skill does not trigger deployments, posts, payments, deletions, or other external actions on its own.
Transparency0 (none)There are no binaries, encoded blobs, installers, or generated runtime code; the file is fully readable Markdown.

Before installing

Rated 2026-10-16 by an automated review of 1 file from the skill's repository.

Source

Repository
cursor/plugins (all skills from this repository)
Path
pstack/skills/principle-subtract-before-you-add/SKILL.md
Branch
main
Collection
cursor
Updated
2026-09-23