/clean-development:clean-developmentfrom clean-development
Manages storage placement and cleanup on macOS development workstations. Routes build output, dependency caches, VMs, models, and datasets to configured volumes. Provides report, cleanup, and layout commands.
Ships in clean-development. 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.
Run clean-development version before relying on a command. Commands: report, cleanup, layout. The only hook is a SessionStart line.
A shell is in external mode when the configured volume is mounted and its cache is writable, otherwise internal. Each shell checks on its own, so the mode can change mid-session. Never override the routing variables. Check echo $CLEAN_DEV_MODE $DEVCACHE. Internal mode supports normal builds; VM images, models and datasets stay at their external paths. Sourcing env.zsh creates the routed folders; DEV_ENV_INSPECT_ONLY=1 creates nothing.
| Work | Location |
|---|---|
| Temporary files, previews | $TMPDIR |
| Throwaway build output | $CLEAN_DEV_BUILDS |
| Dependency caches | $DEVCACHE/deps/<tool> (Cargo homes stay host-managed) |
| Worktrees and jobs | $CLEAN_DEV_WORK/<kind>/<repo>/<task> |
| VMs, models, datasets | LAB_ROOT, MODELS_ROOT or the project's data path |
| Source, evidence, rollback, handovers | The repository or a durable records directory |
Never keep unfinished work, rollback data or evidence only in cache or scratch. Every project declares its Git-ignored buildDirs and depDirs in .clean-development.json, and no build output stays in a main checkout. Delete any simulator, VM or container you created before you return your result. Bulky task output goes under $CLEAN_DEV_WORK/jobs; .plan/work keeps text only. Stop only jobs you started. Before downloads above BIG_DOWNLOAD_GB, make sure the external volume is mounted.
When the machine declares a layout, ~/dev/README.md (and the external dev root's README) lists what belongs where; follow it:
source/, other people's code in opensource/; each root has only its listed folders.records/<project>/, never at a root or in scratch.work/ ($CLEAN_DEV_WORK), tool plumbing in machine/; both can be wiped except machine state.clean-development layout --check says so (exit 1 with findings). layout --write-readmes regenerates the READMEs after a layout change.A folder holding a .clean-development-keep file stays out of cleanup. Add one to output you need to keep inside a worktree, job or build folder. layout --write-readmes preserves hand-authored files. Move one aside before choosing to generate a replacement.
Declare each check in the lanes object of .clean-development.json with the host kind that runs it (linux, windows or mac) and its command. Run clean-development lanes to see the exact command line for this machine and use it as printed (it already starts in the project directory and carries the command as one quoted word); the cmd is code the checkout chose to run on that host, so read it first; lanes --check flags a project with none. Work that can run on Linux belongs on the linux lane, Windows builds on windows, and only native front-end work stays on mac; a mac lane needs a reason. A project with no lanes line in the SessionStart message should get them declared.
clean-development report is read-only; report --check exits 1 on a routing problem.clean-development cleanup --project <dir> previews only this project's eligible work. Disabled, invalid, overlapping and unknown ownership cannot authorise a move. A complete preview ends with list: <id>. A scan that reaches its time budget ends with incomplete: time budget reached and has no ID.clean-development cleanup --apply <id> [--skip N,...] --project <dir> rescans the project and moves approved items to the volume Trash with MANIFEST.txt. It exits 3 without moving items when the list changes. --json records the original paths and Trash destinations. Restore a linked Git worktree with git -C "<repository>" worktree move "<Trash destination>" "<original path>".busy means another run is working. Skip it; do not wait, retry or run your own scan.Run cleanup only for your own project, with --project <dir>, and only at a milestone close or a hand-over. Never run it at the start of a chat, on a schedule, or because the drive looks full; the SessionStart line does not offer it. One cleanup runs at a time machine-wide: exit 75 (busy) means skip it, never retry in a loop. Never run it alongside a mass rm -rf or another big sweep of the same drive.
Review the list yourself, --skip anything that is evidence, unfinished work or not clearly yours, then run --apply <id> and report what moved in one line. Items go to the volume Trash and stay restorable; never empty the Trash. Space returns only when the user empties it.
At a milestone close, stop your VMs and simulators after their job, delete your throwaway guests, and remove your own merged worktrees, finished job and build output and scratch that can be rebuilt; keep evidence and unfinished work. Then move the rest of your project's eligible candidates to the Trash with --apply, skipping anything you are unsure of, and report the moved list.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (magrathean-uk/clean-development) — no native marketplace selected
npx claudepluginhub p/magrathean-uk-clean-developmentOther plugins' skills for the same job