# Principle Subtract Before You Add

Remove dead code and unnecessary complexity before adding or rewriting new features. Focus on simplification and leaving the system slightly more capable with the same or smaller API.

**Canonical URL:** https://skillshunter.net/skills/discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c

**Markdown URL:** https://skillshunter.net/skills/discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c/download

**Category:** Software & Development

**Source URL:** https://github.com/jueyi6/empstack/blob/74181e31d2f00313f8683ba157966efcabbe109e/skills/principle-subtract-before-you-add/SKILL.md

**Source commit:** 74181e31d2f00313f8683ba157966efcabbe109e

**Listing approved at:** 2026-12-02

**Created at:** 2026-11-30T08:56:32.000000Z

**Updated at:** 2026-12-02T09:15:14.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before applying this principle, ensure that the system's current state is fully understood, and that any removals do not impact existing functionality. Start by identifying and removing unused or redundant code.

### When to use it

- Refactoring legacy codebases to remove dead code
- Simplifying complex APIs before adding new endpoints
- Reducing redundant instructions in prompts or templates
- Streamlining software architecture by eliminating unused components

## Skill instructions

---
name: principle-subtract-before-you-add
description: Before adding or rewriting, remove dead code first.
disable-model-invocation: true
---

# 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 API 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

