Skip to content
Back to skills

Clean Development

ASecurity

Storage placement and cleanup guidance for configured macOS development workstations. Use before builds with chosen output paths, VM, container or simulator work, copies between volumes, cleanup offers, large downloads or model pulls, or questions about disk space and file placement.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 20, 2026
toolsgoshellgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add magrathean-uk/clean-development --skill clean-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clean Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clean Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/magrathean-uk-clean-development-clean-development/badge)](https://www.skillsdirectory.com/skills/magrathean-uk-clean-development-clean-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clean-development
description: Storage placement and cleanup guidance for configured macOS development workstations. Use before builds with chosen output paths, VM, container or simulator work, copies between volumes, cleanup offers, large downloads or model pulls, or questions about disk space and file placement.
---

# Clean Development 0.8.0

Run `clean-development version` before relying on a command. Commands: `report`, `cleanup`. The only hook is a SessionStart line.

## Modes

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.

## Placement

| 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. List a project's Git-ignored `buildDirs` and `depDirs` in `.clean-development.json`. Stop only jobs you started. Before downloads above `BIG_DOWNLOAD_GB`, make sure the external volume is mounted.

## Report and cleanup

- `clean-development report` is read-only; `report --check` exits 1 on a routing problem.
- `clean-development cleanup [--project <dir>]` lists candidates, changes nothing and ends with `list: <id>`.
- `clean-development cleanup --apply <id> [--skip N,...] [--project <dir>]` moves approved items to the volume Trash with a `MANIFEST.txt`; exit 3 and nothing moved if the list changed.

## When to offer cleanup

Offer a review at a hand-over to another chat, a plan reset, a milestone close, or when the SessionStart line says `cleanup available` (a filling drive). Run `cleanup --project <dir>`, show the list and ask. Run `--apply <id>` only after the user's yes, with `--skip` for anything declined. Space returns only when the user empties the Trash.

Tidy at each milestone close and at the first turn after six hours of work: stop your VMs and simulators after their job, delete your throwaway guests, and remove your merged worktrees, finished job and build output and scratch that can be rebuilt; keep evidence and unfinished work. Run `clean-development cleanup` and offer the rest, moving it to the Trash with `--apply` only after the user's yes.

Files in this skill

  • SKILL.md3.1 KB
  • agents/openai.yaml252 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.