cleanup-health-inline

Detects and removes dead code with automated pnpm build and type-check validation.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/RussianLioN/moltinger --skill cleanup-health-inline-russianlion
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-health-inline
Source: https://github.com/RussianLioN/moltinger/tree/main/.claude/skills/cleanup-health-inline
Command: npx skills add https://github.com/RussianLioN/moltinger --skill cleanup-health-inline-russianlion

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the detection, removal, and verification of dead code within a codebase, ensuring code health and reducing technical debt.

Core Features & Use Cases

  • Dead Code Detection: Identifies unused imports, commented-out code, unreachable code, and more.
  • Prioritized Removal: Removes dead code based on predefined priority levels (critical, high, medium, low).
  • Automated Verification: Re-scans the codebase after cleanup to ensure effectiveness and detect regressions.
  • Beads Integration: Leverages Beads for issue tracking and workflow orchestration.
  • Use Case: A developer can initiate this Skill to automatically clean up a project, freeing up time for feature development and improving code quality.

Quick Start

Run the cleanup-health-inline skill to detect and remove dead code.

Frequently Asked Questions about cleanup-health-inline

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

FAQPage Schema
How do I automate dead code cleanup in my project?

Automate dead code cleanup by running a workflow that detects unused imports and unreachable code, removes them by priority, and verifies changes using pnpm build and type-check validation.

What types of dead code can be automatically detected and removed?

Dead code detection identifies unused imports, commented-out code, and unreachable code, then removes these issues based on predefined priority levels like critical, high, medium, and low.

Does automated refactoring work with Beads for issue tracking?

Automated refactoring integrates directly with Beads for issue tracking and workflow orchestration, managing status updates while coordinating specialized sub-agents for code removal.

Can I verify code health after removing dead code?

Verify code health after dead code removal through automated re-scanning that checks for effectiveness and regressions, performing inline validation via pnpm build and type-check across multiple iterations.

What is the best way to manage technical debt from unused code?

Manage technical debt from unused code by orchestrating an end-to-end detection and removal workflow that performs comprehensive cleanup iterations and provides detailed summary reports.

Are there limitations to automated dead code removal?

Automated dead code removal may require multiple iterations for comprehensive cleanup and depends on inline validation checks like pnpm build and type-check to prevent regressions during the refactoring process.