code-cleanup

Remove dead code and unused files from Java/Spring Boot and Angular/TypeScript projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/LawrenceWebon/eins --skill code-cleanup-lawrencewebon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-cleanup
Source: https://github.com/LawrenceWebon/eins/tree/main/ph-gov-platform/.agent/skills/code-cleanup
Command: npx skills add https://github.com/LawrenceWebon/eins --skill code-cleanup-lawrencewebon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dead code and unused files accumulate over time, slowing builds and complicating maintenance.

Core Features & Use Cases

  • Detect and remove dead code, unused imports, and empty methods across Java/Spring Boot and Angular/TypeScript projects.
  • Identify and safely delete unused dependencies and orphaned files using a vetted workflow.
  • Provide a pre-commit cleanup checklist and best-practice guidelines to preserve public APIs and runtime configurations.

Quick Start

Initiate a code cleanup pass on your repository to automatically identify and remove dead code, unused imports, and orphaned files.

Frequently Asked Questions about code-cleanup

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

FAQPage Schema
How do I remove dead code and unused files from a Java Spring Boot project?

To safely remove dead code from a Java Spring Boot project, initiate a cleanup pass to detect unused imports, empty methods, and orphaned files for deletion. The workflow enforces safety checks to preserve public APIs and runtime configurations during refactoring.

What is the best way to identify unused dependencies in Angular and TypeScript applications?

The best way to identify unused dependencies in Angular and TypeScript applications is using an automated static analysis cleanup workflow. It detects orphaned files and unused dependencies, applying safety guidelines to ensure minimal and maintainable code without accidental deletions.

Can I use static analysis for pre-commit cleanup without accidentally deleting needed code?

Yes, you can use static analysis for pre-commit cleanup without accidental deletions by following a vetted workflow with safety checks. The process provides a pre-commit checklist and best-practice guidelines specifically designed to preserve public APIs and runtime configurations.

When should I perform dead code removal during a refactoring process?

You should perform dead code removal during refactoring, pre-commit cleanup, and code review phases. Identifying and removing unused files and dead code at these stages reduces maintenance burden and ensures your Java and Angular projects remain minimal and maintainable.

Does dead code cleanup work on both Java and TypeScript codebases?

Yes, dead code cleanup works on both Java and TypeScript codebases. It specifically targets Java Spring Boot and Angular TypeScript projects to detect and remove unused imports, empty methods, and orphaned files while preserving essential APIs and configurations.