clean-codebase
Installation
SKILL.md
Clean Codebase
Run a repository-wide cleanup with eight specialized subagents. Preserve behavior unless the user explicitly requests a product or API change. Prefer deletion and direct code over new abstraction, but do not force uniformity where concepts only look similar.
Read references/workstreams.md before creating subagents. Use its lane briefs verbatim enough that every agent receives the evidence standards and output contract.
Establish the Baseline
- Read repository instructions, manifests, workspace configuration, and the current Git status.
- Identify generated, vendored, migration, fixture, snapshot, FFI, and compatibility surfaces that require special handling.
- Record the repository's existing validation commands and run the cheapest useful baseline checks. Distinguish pre-existing failures from regressions.
- Preserve unrelated dirty work. Never reset, overwrite, stage, commit, or reformat changes outside this cleanup.
- Treat the whole repository as in scope only when the user did. Respect any narrower path, package, language, or validation boundary.
Create Exactly Eight Subagents
Create one named subagent for each numbered workstream: