artifact-retention
Installation
SKILL.md
artifact-retention — keep what runs and one rollback, measure what you freed
Build machines fill up from copies that already did their job: agent work trees, old
DerivedData, Gradle outputs, image tags, browser profiles. A full disk breaks the next
build, other people's builds, and even command output. Cleaning is part of "released".
What to keep
| Kind | Keep | Delete |
|---|---|---|
Web build output (dist/, .next/, out/, .vercel/output) |
current release | older release outputs |
Mobile artifacts (.ipa, .aab, .apk, .xcarchive) |
the shipped one + one previous | older archives |
Mobile caches (DerivedData/<project>-*, android/app/build, .gradle project dir) |
— (rebuildable) | after delivery |
Container images <app>:<tag> |
the image a container uses (running or stopped) + the rollback tag | older tags of that app |
Release dirs *-<sha> |
active + one previous | older |
| Hosted deployments (Vercel, Pages, Workers versions) | live + previous | leave to the host's retention unless asked |