/great-cto:artifact-retentionfrom great-cto
Cleans build artifacts after delivery, keeping only the running version and one rollback. Reports freed space via df. Covers web builds, mobile caches, container images, and release directories with a protected never-delete list.
Ships in great-cto. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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".
| 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 |
pg_wal, data files — even when a tool calls them "reclaimable".~/.gradle/caches, node_modules, installed browsers (ms-playwright), the user's
Chrome profile and /Applications.lsof +D <dir> empty, no running
build (pgrep -fl 'xcodebuild|gradle|docker build|buildx'), work tree merged and clean
(git merge-base --is-ancestor <head> origin/<main> and no tracked changes).docker system prune, never docker image prune -a.df -k / (and on APFS diskutil apfs list | grep -E 'Capacity (Consumed|In Use)').df -k / again. Report the df difference. du counts APFS clones and
shared image layers as full copies — a "67 GB" folder freed 2 GB. Never promise a du
number.Chrome copies itself to $(getconf DARWIN_USER_TEMP_DIR)/../X/com.google.Chrome.code_sign_clone/
on launch; Playwright leaves playwright* profiles in the temp dir. Each copy is stale
when lsof +D <that dir> is empty and no running Chrome uses it as --user-data-dir.
Remove one directory at a time, after asking. If copies keep appearing, find the launcher
(ps -axo pid,ppid,lstart,command) instead of cleaning again.
cleanup: removed <n> items (<list>), df freed <X> GB, kept <current> + <rollback>
What SKILL.md sets; muted values are Claude Code's defaults
Apply when: - a release or deploy finished and was verified - free disk is below 30 GB on a build machine or below 15 % on a server, before building - disk space drops fast with no build running Do NOT apply to: - data: volumes, databases, backups, logs with their own retention - another session's build or work tree that is still in progress
lowThree short reads, in order
38 skills in this plugin
/aesthetic-instrumentgreat_cto's own committed aesthetic — the instrument panel. Dark five-step surface ladder, exactly one accent, two faces divided by MEANING (Geist speaks, Geist Mono is machine-truth), tabular numerals, and a dash that is not a nought. Twelve checkable rules measured from packages/board and greatcto.systems, not designed for this file. Use when building or extending any great_cto surface — the board, the site, a report, a share page./anti-patternsCatalogue of known SDLC anti-patterns that great_cto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident)./anydesignAnalyze images, websites, and Figma files to extract their design and generate a `design.md` with token system, component inventory, and reconstruction notes. Use this skill whenever the user wants to understand, document, replicate, or audit the design of something visual: a screenshot, a URL, a Figma link, a Pinterest reference, a mockup, a competitor's site, a component, a dashboard, a landing page. Also when they ask 'extract the design system from X', 'document the style of Y', 'analyze this visually', 'convert this image into tokens', 'help me replicate this design', 'what palette does this site use', 'how is this built'. Also for single elements: 'copy this navbar', 'recreate this illustration', 'give me a prompt to regenerate this graphic' — element mode outputs a focused element.md, with token-grounded image-model prompts when the element is visual art. If the user brings any visual source and wants to understand it at a design level — this skill should activate./archetype-review-baseShared review framework that every domain reviewer (pci, oracle, gov, edtech, healthcare, mlops, etc.) MUST follow. Defines the output artifact (TM-{slug}.md), mandatory sections, severity scale, verdict format, the workflow scaffold (when-invoked, Step-0 read-inputs, HANDOFF), and the "domain heuristic vs generic check" boundary. Eliminates duplication across the ~30 reviewer prompts./brainstormingStructured idea generation + multi-LLM debate for the product-owner stage. Diverge (generate genuinely different bets), debate (a 4-persona panel on 4 models argues over 2 rounds), converge (synthesize a recommendation). Used by product-owner before architect; available to architect for design-space exploration./build-speedMake a slow CI pipeline or build faster by measuring it first — per-step durations, the slowest step, a target — then one change at a time, re-measured the same way. Speed never comes from removing, skipping or weakening a check. Use when a build or CI is slow ("CI долго", "ускорь сборку", "гейт идёт 40 минут", "build takes forever"). Loaded by devops, ci-resolver.npx claudepluginhub avelikiy/great_cto --plugin great_ctoOther plugins' skills for the same job