prune-unused-code

Community

Auto-delete dead code, keep your repo clean.

Authorfoolishimp
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually removing unused imports, dead code, and commented-out blocks is tedious, risky, and often deferred, leading to a bloated codebase. This skill automates the cleanup safely.

Core Features & Use Cases

  • Automated Deletion: Safely removes unused imports, dead functions, and commented-out code identified by detect-unused-code.
  • Safety Checks: Runs all tests before and after pruning, with automatic rollback on failure, ensuring no regressions are introduced.
  • Git Integration: Cleans up the codebase, preparing it for a clean, lean commit that enforces "No Legacy Baggage."
  • Use Case: After detect-unused-code identifies 5 unused imports and 2 dead functions, invoke this skill to automatically remove them, run tests to confirm no regressions, and prepare a commit.

Quick Start

Prune unused code from 'auth_service.py' based on the latest tech debt report, ensuring all tests pass afterwards.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prune-unused-code
Download link: https://github.com/foolishimp/ai_sdlc_method/archive/main.zip#prune-unused-code

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.