{"data":{"slug":"discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c","title":"Principle Subtract Before You Add","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/discovered-236277d8f26a3e94f911b855615f6e3b71b9d35463d3cf9c\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: principle-subtract-before-you-add\ndescription: Before adding or rewriting, remove dead code first.\ndisable-model-invocation: true\n---\n\n# Subtract Before You Add\n\nWhen evolving a system, remove complexity first, then build. Default to subtraction.\n\nMake simplification a continual investment. Leave the design slightly simpler and more capable behind the same or smaller API than you found it.\n\n- Sequence removal before construction\n- Cut before you polish (get to the minimum before investing in quality)\n- Design for observed usage, not speculative edge cases\n- No speculative validators, parsers, or guards beyond what the spec demands\n- Simplify prompts (remove redundant instructions, excessive templates)\n- When a reference has no novel content, delete it rather than leaving a stub\n","use_cases":["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"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/jueyi6\/empstack\/blob\/74181e31d2f00313f8683ba157966efcabbe109e\/skills\/principle-subtract-before-you-add\/SKILL.md","source_commit":"74181e31d2f00313f8683ba157966efcabbe109e","license":null,"version":null,"listing_approved_at":"2026-12-02","created_at":"2026-11-30T08:56:32.000000Z","updated_at":"2026-12-02T09:15:14.000000Z","seo_title":"Principle: Subtract Before You Add - Simplify Before Enhancing","seo_description":"A principle for software development that emphasizes removing unnecessary complexity before adding new features, leading to simpler and more maintainable systems.","seo_keywords":["software development principle","code refactoring","simplify before adding","remove dead code","software architecture simplification"]}}