cleanup-legacy
Installation
SKILL.md
Find code marked deprecated/legacy/old/v1 and verify it's truly unused before deletion. Also find unreachable fallback branches (e.g., feature flag defaults that have flipped, version checks for unsupported runtimes).
Preflight
- Language detect — applies to all.
- Git state: refuse on dirty tree.
- Report dir: ensure exists.
- Read deprecation markers the project uses. Common ones:
@deprecatedJSDoc/TSDoc# deprecatedPython comments,warnings.warn(DeprecationWarning)// Deprecated:Go convention#[deprecated]Rust attribute- File/dir naming:
legacy/,old/,v1/,_old.ts
- Read feature flag config if present — flags that are 100% on with no opposite tests can have their
elsebranches deleted.