Repository Cleanup
Repository continuity composition
For repository-scoped work, compose maintain-repository-continuity in
Resume mode before selecting work. After an authorized repository change
passes domain validation, compose Refresh and Verify immediately before
presenting the pull request, and include the reconciled root CONTINUITY.md in
the same change. A policy-permitted no-change or exemption result must be
documented instead of fabricating an edit.
- Contribute: Cleanup classification, preserved invariants, changed files, exact checks, and deferred uncertain candidates
- Never claim: That behavior is preserved or a deletion is safe without validation and authorization
Purpose
Perform bounded cleanup that improves consistency and hygiene while preserving
intended behavior, ownership boundaries, and recoverability.
Required Inputs
Resolve as much of the following as possible:
- authorized cleanup scope and behavior-preservation invariants
- repository status, ignore rules, formatters, linters, and generators
- ownership expectations for files, configuration, and generated artifacts
- validation commands needed to confirm no behavioral drift
- uncertain files or changes that require separate authorization
Workflow
state the exact invariant that must remain unchanged
classify candidate changes before editing using:
./references/classification-checklist.md
./templates/CLEANUP_PLAN.template.md
edit only safe mechanical or safe documentation/configuration corrections
keep dependency upgrades, architectural redesign, and uncertain deletions out of routine cleanup scope
validate formatting, links, tests, or configuration behavior proportional to the edits
review the final diff for accidental semantic change, secrets, generated files, and unrelated churn
Constraints
- Do not use cleanup as cover for redesign or feature work.
- Do not delete files when ownership, references, or recovery are uncertain.
- Do not change public behavior silently.
- Do not mix broad dependency updates into hygiene-only work.
- Do not hide uncertain candidates that were intentionally left unchanged.
Completion Criteria
Provenance
This canonical skill is first-party Ego Hygiene content curated from the staged
candidate at .staging/skills/repository-cleanup/SKILL.md.
Source Delta
- Adopted: the staged invariant-first workflow, pre-edit classification, and
emphasis on behavior-preserving hygiene.
- Rewritten: canonical metadata, explicit cleanup planning resources, and
deterministic eval coverage.
- Rejected:
repository-audit as a synonym identity because auditing and
cleanup own different authorization boundaries; audit findings may feed
cleanup work, but the workflows remain distinct.
1---2name: repository-cleanup3description: Performs behavior-preserving repository hygiene, consistency, and low-risk cleanup with explicit classification of safe, unsafe, and uncertain changes. Use when reducing clutter or inconsistency without redesigning the system.4license: MIT5---67# Repository Cleanup89<!-- aether-continuity-disposition: reader-writer -->1011## Repository continuity composition1213For repository-scoped work, compose `maintain-repository-continuity` in14**Resume** mode before selecting work. After an authorized repository change15passes domain validation, compose **Refresh** and **Verify** immediately before16presenting the pull request, and include the reconciled root `CONTINUITY.md` in17the same change. A policy-permitted no-change or exemption result must be18documented instead of fabricating an edit.1920- **Contribute:** Cleanup classification, preserved invariants, changed files, exact checks, and deferred uncertain candidates21- **Never claim:** That behavior is preserved or a deletion is safe without validation and authorization2223## Purpose2425Perform bounded cleanup that improves consistency and hygiene while preserving26intended behavior, ownership boundaries, and recoverability.2728## Required Inputs2930Resolve as much of the following as possible:3132- authorized cleanup scope and behavior-preservation invariants33- repository status, ignore rules, formatters, linters, and generators34- ownership expectations for files, configuration, and generated artifacts35- validation commands needed to confirm no behavioral drift36- uncertain files or changes that require separate authorization3738## Workflow39401. state the exact invariant that must remain unchanged412. classify candidate changes before editing using:4243 - `./references/classification-checklist.md`44 - `./templates/CLEANUP_PLAN.template.md`45463. edit only safe mechanical or safe documentation/configuration corrections474. keep dependency upgrades, architectural redesign, and uncertain deletions out of routine cleanup scope485. validate formatting, links, tests, or configuration behavior proportional to the edits496. review the final diff for accidental semantic change, secrets, generated files, and unrelated churn5051## Constraints5253- Do not use cleanup as cover for redesign or feature work.54- Do not delete files when ownership, references, or recovery are uncertain.55- Do not change public behavior silently.56- Do not mix broad dependency updates into hygiene-only work.57- Do not hide uncertain candidates that were intentionally left unchanged.5859## Completion Criteria6061- [ ] Cleanup scope and preserved behavior are explicit.62- [ ] Each candidate change was classified before editing.63- [ ] Only safe categories were changed.64- [ ] Validation evidence supports behavior preservation.65- [ ] Uncertain or blocked cleanup candidates remain visible.6667## Provenance6869This canonical skill is first-party Ego Hygiene content curated from the staged70candidate at `.staging/skills/repository-cleanup/SKILL.md`.7172## Source Delta7374- Adopted: the staged invariant-first workflow, pre-edit classification, and75 emphasis on behavior-preserving hygiene.76- Rewritten: canonical metadata, explicit cleanup planning resources, and77 deterministic eval coverage.78- Rejected: `repository-audit` as a synonym identity because auditing and79 cleanup own different authorization boundaries; audit findings may feed80 cleanup work, but the workflows remain distinct.