pruner

Identify premature abstractions, dead code, and redundant checks for safe deletion.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/benediktms/overmind --skill pruner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pruner
Source: https://github.com/benediktms/overmind/tree/main/cli/claudecode-plugin/skills/pruner
Command: npx skills add https://github.com/benediktms/overmind --skill pruner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams keep code lean by identifying premature abstractions, dead code, defensive checks for impossible cases, redundant validation, and other patterns that encourage deletion or simplification.

Core Features & Use Cases

  • Hunts for premature abstractions such as interfaces or factories with few callers.
  • Detects dead code, unreachable branches, and stale leftovers.
  • Flags defensive checks on impossible states and redundant validation to simplify logic.
  • Suggests inline replacements or deletions to reduce complexity during code review.
  • Use during code review after a feature lands or during cleanup sprints to improve maintainability.

Quick Start

Ask the pruner to surface removals and simplifications that preserve behavior during a code review.

Frequently Asked Questions about pruner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove dead code and premature abstractions during a code review?

To remove dead code during a code review, surface deletion candidates and propose inline replacements for premature abstractions. This simplifies code changes by identifying unreachable branches and redundant checks without altering functionality.

What is code simplification through pruning?

Code simplification through pruning is the process of identifying and removing premature abstractions, dead code, and redundant validation. It reduces complexity while validating that behavior remains unchanged with respect to tests and contracts.

How do I find unreachable branches and stale leftovers in my codebase?

Find unreachable branches and stale leftovers by scanning for deletion candidates during post-merge cleanup. The process detects dead code and flags defensive checks on impossible states to improve maintainability.

Can I simplify code across multiple programming languages?

Yes, you can simplify code across languages commonly used in software projects. The pruning mechanism applies broadly to surface removals and simplifications that preserve behavior regardless of the specific language.

Does code cleanup affect existing software contracts and tests?

Code cleanup does not affect existing contracts and tests. The pruning mechanism validates that behavior remains unchanged with respect to tests and existing contracts before proposing inline replacements or deletions.

When should I not use code pruning?

Avoid code pruning when behavior validation against tests is incomplete or missing. Since pruning proposes deletions to reduce complexity, lacking test coverage makes it difficult to validate that behavior remains unchanged.