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.
معلومات المصدر
marc-aurele-besner
المستودع marc-aurele-besner/skillable
- آخر نشاط في المصدر
- ٦ نوفمبر ٢٠٢٦ في ١٢:٣٠
- لغة SKILL.md المكتشفة
- الإنجليزية
- النجوم
- ١
- التفرعات
- ١
خيارات التثبيت
يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.
مراجعة ملفات المصدر
اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.
عرض SKILL.md
| name | prune-dead-code |
|---|---|
| description | 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. |