dead-code-intolerance

Remove dead code, unused imports, and stale comments across repositories.

28|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/oborchers/fractional-cto --skill dead-code-intolerance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dead-code-intolerance
Source: https://github.com/oborchers/fractional-cto/tree/main/pedantic-coder/skills/dead-code-intolerance
Command: npx skills add https://github.com/oborchers/fractional-cto --skill dead-code-intolerance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill tackles the accumulation of dead code, which clutters the codebase, confuses developers, and hinders productivity. It enforces a strict policy of removing commented-out code, unused imports, unreachable branches, stale TODOs, and obsolete feature flags.

Core Features & Use Cases

  • Codebase Hygiene: Ensures only active, necessary code remains, improving readability and maintainability.
  • Developer Efficiency: Reduces time spent deciphering or refactoring obsolete code.
  • Use Case: When reviewing a pull request, this Skill can identify and flag commented-out code blocks or unused library imports that should be deleted, ensuring the codebase remains lean and focused.

Quick Start

Use the dead-code-intolerance skill to review the current codebase for any instances of commented-out code.

Frequently Asked Questions about dead-code-intolerance

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

FAQPage Schema
How do I find and remove commented-out code blocks during a code review?

To remove commented-out code blocks during a review, apply a strict deletion policy that flags non-executing code for elimination. This approach ensures only active, necessary code remains, improving overall readability and maintainability.

What is dead code and how does it affect codebase maintainability?

Dead code includes unused imports, unreachable branches, and commented-out blocks that clutter the codebase. It hinders developer productivity by confusing readers and should be eliminated to maintain a clean, maintainable codebase.

How do I clean up unused imports and stale TODO comments in my repository?

Clean up unused imports and stale TODO comments by enforcing strict deletion policies for non-executing code elements. Leveraging version control history allows safe removal, ensuring the repository remains lean and focused.

Does dead code removal work across all programming languages in a repository?

Yes, dead code elimination applies to all programming languages within the repository. It targets obsolete feature flags, unreachable branches, and unused imports universally to promote a clean codebase.

Why should I delete obsolete feature flags instead of leaving them in the code?

You should delete obsolete feature flags because leaving them creates technical debt and clutters the codebase. Strict removal of these non-executing elements reduces time spent deciphering obsolete code and improves developer efficiency.

What is the best way to eliminate unreachable branches without losing historical context?

The best way to eliminate unreachable branches while preserving context is leveraging version control history. This ensures deleted code can be retrieved if needed, allowing strict deletion policies to maintain a clean codebase safely.