unused-code-cleanup

Community

Shrink TS/React code by removing unused bits.

Authorphamhung075
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Systematically identify and remove unused imports, variables, and dead code in TypeScript/React projects to improve build health and runtime performance.

Core Features & Use Cases

  • Detection: use TypeScript's --noUnusedLocals/ --noUnusedParameters to surface unused code.
  • Patterns: remove unused imports, props, parameters, and debug snapshots.
  • Workflow: prioritize high-impact files, verify by building/tests, and track progress.

Quick Start

Detect unused code with npx tsc --noEmit --noUnusedLocals --noUnusedParameters 2>&1 | grep "error TS6133", then remove unused items and verify with a build.

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: unused-code-cleanup
Download link: https://github.com/phamhung075/4genthub-hooks/archive/main.zip#unused-code-cleanup

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