/claude-resources:dev-clean-mac [--keep-node-modules]from claude-resources
Reclaims disk space on a Mac dev machine by deleting regenerable caches (Cargo build output, node_modules, pnpm/npm caches, OS/app caches) and thinning APFS local snapshots. Manual-only — invoke with /dev-clean-mac when low on disk.
Ships in claude-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Frees disk on a Mac dev machine by deleting caches and build artifacts that
regenerate on demand. Tuned for this layout — $HOME/repos (with myoss/zfb),
a shared Cargo target dir, pnpm/npm caches — but every step is existence-guarded,
so it runs safely on any Mac with a similar structure (e.g. a second machine).
Why a script and not ad-hoc rm: on APFS, deleting files frees nothing while
local Time Machine snapshots still reference the data — df keeps showing the old
number. The script ends by thinning those snapshots (tmutil thinlocalsnapshots),
which is what makes the reclaimed space materialize. Skipping that step is the #1
reason a cleanup "does nothing."
The script lives at scripts/clean-mac.sh in this skill directory.
Dry run first — show the user what will be freed, delete nothing:
bash "$HOME/.claude/skills/dev-clean-mac/scripts/clean-mac.sh" --dry-run
Relay the per-path sizes and the measured total to the user.
Confirm node_modules. By default the script deletes all node_modules
under $HOME/repos (reinstallable via pnpm/npm install). If the user is
mid-work on a project, pass --keep-node-modules to preserve them.
Run for real:
bash "$HOME/.claude/skills/dev-clean-mac/scripts/clean-mac.sh" --run
# or, to keep node_modules:
bash "$HOME/.claude/skills/dev-clean-mac/scripts/clean-mac.sh" --run --keep-node-modules
The deletions can take a few minutes (millions of small files); it may
auto-background. Report the BEFORE/AFTER df lines it prints.
Cargo: the shared target-dir from $HOME/.cargo/config.toml (defaults to
$HOME/.cargo-target, dominated by zfb), $HOME/.cargo/registry, and every
per-project target/ under $HOME/repos (detected by cargo's CACHEDIR.TAG).
zfb: checked-in release tarballs (zfb-*.tar.gz) and all .zfb-build/ dirs.
node_modules: every one under $HOME/repos (unless --keep-node-modules).
JS caches: pnpm store prune, npm cache clean, $HOME/Library/Caches/pnpm.
OS/app caches: ms-playwright, electron, copilot, $HOME/.cache/codex-runtimes,
Homebrew cache, Adobe/CreativeCloud logs, unavailable iOS simulators.
Downloads: *.dmg / *.pkg installers (re-downloadable).
APFS local snapshots: thinned at the end to release everything above.
Any matched dir that contains git-tracked files (printed as kept (git-tracked)
— e.g. zfb's checked-in tests/fixtures/**/node_modules), source trees, image/data stashes (e.g. zmod-image-stash), browser profiles,
and app data (Claude/Chrome/Slack containers) — only regenerable caches and
artifacts. Every path is verified to be under $HOME before removal; missing
paths are skipped silently, which is what makes it portable across machines.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub takazudo/claude-resources --plugin claude-resources84 skills in this plugin
/bambu-3mfCreate/edit Bambu Studio 3MF projects from a saved printer template. Use for Bambu/H2D printable parts, plate arrangement, 3MF revisions, or print settings, even when the input is STL/STEP./big-planPlan work as one epic plus child GitHub issues, with review and verification. Use for /big-plan, implementation planning/decomposition, UI brainstorming that should end in a plan (-pr), or issue sweeps (-is/-isask)./cclogsLoad recent prototypes, plans, logs and artifacts from the repo-scoped cclogs dir to continue earlier work. Use for /cclogs, or whenever the user refers to a prior session's prototype/plan/report as if it exists./claudemd-refactorRefactor CLAUDE.md files: analyze the setup and split a large root CLAUDE.md into directory-scoped files. Use for 'refactor/split/organize CLAUDE.md' or when the root CLAUDE.md is too large./claude-resources-sharePublish ~/.claude resources (skills, commands, hooks, scripts, CLAUDE.md) to the public claude-resources mirror. Use for 'share claude resource', 'sync settings', or 'export to claude-resources'./cleanup-resourcesEnd-of-workflow audit of touched GitHub issues, PRs and branches (close/keep/delete) plus a sweep of stale build temp dirs. Use after /big-plan, /x-as-pr, /x-wt-teams, or for 'cleanup resources' / 'clean disk'.Other plugins' skills for the same job