Skip to main content

prune-dead-code

Find code that nothing uses any more and remove it safely in a reviewable PR: unused exports and symbols, orphan files that no entry point imports, dead feature flags, unreachable routes, stale assets, unused i18n keys, and commented-out blocks. Detects the stack and runs its own tooling first (knip, ts-prune, ESLint no-unused-vars, vulture, deadcode, cargo udeps, go mod tidy -diff, ruff F401, rubocop, depcruise), falls back to a bundled conservative heuristic plus static reading, proves every candidate is not referenced dynamically, and removes it in small reviewable commits with the build and test suite green in between. Use whenever the user asks to remove dead code, clean up unused functions or files, find orphan modules, drop stale assets or commented-out code, or shrink a codebase's surface area. Also triggers on /prune-dead-code with an optional scope.

Source facts

marc-aurele-besner

Repository marc-aurele-besner/skillable

Last source activity
November 6, 2026 at 12:30
Detected SKILL.md language
English
Stars
1
Forks
1

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
3 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
nameprune-dead-code
descriptionFind code that nothing uses any more and remove it safely in a reviewable PR: unused exports and symbols, orphan files that no entry point imports, dead feature flags, unreachable routes, stale assets, unused i18n keys, and commented-out blocks. Detects the stack and runs its own tooling first (knip, ts-prune, ESLint no-unused-vars, vulture, deadcode, cargo udeps, go mod tidy -diff, ruff F401, rubocop, depcruise), falls back to a bundled conservative heuristic plus static reading, proves every candidate is not referenced dynamically, and removes it in small reviewable commits with the build and test suite green in between. Use whenever the user asks to remove dead code, clean up unused functions or files, find orphan modules, drop stale assets or commented-out code, or shrink a codebase's surface area. Also triggers on /prune-dead-code with an optional scope.