What problem does it solve?
This Skill identifies and reports on various forms of code rot within a codebase, such as dead code, unused exports, orphaned files, stale manifest entries, and unused dependencies, helping to maintain code health and reduce technical debt.
Core Features & Use Cases
- Dead Code Identification: Pinpoints functions or variables that are exported but never imported.
- Orphaned File Detection: Finds files that are not reachable from any entry point in the project.
- Dependency Auditing: Lists dependencies in
package.json that are not imported in the codebase.
- Manifest Verification: Checks for entries in
manifest.json files that point to non-existent files.
- Use Case: Before a major refactor, run this skill to get a clear picture of all the code and dependencies that can be safely removed, streamlining the refactoring process.
Quick Start
Run the cleanup-audit skill to find all unused exports and orphaned files in the current project.