[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AWH0PMCJ48TF5PEJAV9NZS":3,"skill-same:01M7AWH0PMCJ48TF5PEJAV9NZS":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":51},"01M7AWH0PMCJ48TF5PEJAV9NZS","mo-clean",null,"Deep-clean and optimize this Mac with Mole (`mo`) — clean caches, purge project build artifacts (mo purge, often 40GB+), inventory unused apps by pref-mtime, sweep leftover browser junk (debug-Chrome clones, Kuri, orphaned Chromium) WITHOUT ever touching the real Chrome profiles, and clear dangling brew casks\u002FEOL leaves. Always dry-runs first, shows a tiered findings report, and gets confirmation before deleting anything. Use when the user says \"mo clean\", \"clean up my computer\u002FMac\", \"optimize my computer\", \"free up disk space\", \"clear caches\", \"what can I remove\", \"old programs I don't use\", \"purge build artifacts\", \"remove leftover chrome\u002Fkuri\u002Fdebug browser stuff\", \"mole\", \"\u002Fmo-clean\".","barkleesanders\u002Fclaude-code-starter","barkleesanders","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F30680901?v=4","01M7AW019CGBYWDA8MFJEN1JXC","Barklee Sanders","01M7AW01A5H994ASJ2QZPW67AV",4,"MIT","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fmo-clean\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mo-clean\nuser-invocable: true\ndescription: Deep-clean and optimize this Mac with Mole (`mo`) — clean caches, purge project build artifacts (mo purge, often 40GB+), inventory unused apps by pref-mtime, sweep leftover browser junk (debug-Chrome clones, Kuri, orphaned Chromium) WITHOUT ever touching the real Chrome profiles, and clear dangling brew casks\u002FEOL leaves. Always dry-runs first, shows a tiered findings report, and gets confirmation before deleting anything. Use when the user says \"mo clean\", \"clean up my computer\u002FMac\", \"optimize my computer\", \"free up disk space\", \"clear caches\", \"what can I remove\", \"old programs I don't use\", \"purge build artifacts\", \"remove leftover chrome\u002Fkuri\u002Fdebug browser stuff\", \"mole\", \"\u002Fmo-clean\".\nallowed-tools:\n  - Bash\n  - AskUserQuestion\n  - Read\n  - Write\n---\n\n# mo-clean — deep clean + optimize this Mac (Mole) with a confirm gate\n\n`mo` = **Mole** (https:\u002F\u002Fmole.fit), a Mac deep-cleaner installed at `\u002Fusr\u002Flocal\u002Fbin\u002Fmo` → `\u002Fusr\u002Flocal\u002Fbin\u002Fmole`.\nThis skill runs Mole safely and also sweeps leftover **browser junk** the user keeps asking about\n(debug-Chrome clones, Kuri, orphaned Chromium) — while never touching the **real** Chrome profiles.\n\n**Golden rule (user's explicit instruction): confirm every risky\u002Fdestructive action before doing it.**\nDry-run → show the preview → confirm → execute approved items only. Deletions go to **Trash**, never a hard `rm`.\n\n## Mole subcommands (all support `--dry-run`)\n\n| cmd | does |\n|---|---|\n| `mo clean` | free disk: caches, logs, temp files, leftovers of already-uninstalled apps |\n| `mo optimize` | 22 system fixes: DNS\u002FmDNS, LaunchServices, Dock, Spotlight, quarantine db, login-item health |\n| `mo uninstall \u003CApp>` | remove an app **completely** (app + all leftovers) |\n| `mo analyze [path]` · `mo status` · `mo purge` (build artifacts) · `mo installer` · `mo history` | analysis \u002F extras |\n\nMole protects a lot automatically — it **skips running servers** (Codex, Chrome DevTools MCP, Xcode\u002FCoreSimulator),\n**preserves credentials**, protects Spotify offline music and whitelisted paths, and only **flags** (never auto-removes)\niOS backups, orphan dotfiles, broken login items, and project build artifacts.\n\n## 🛡️ MANDATORY step 0: `~\u002Ftools\u002Fmole-protect\u002Fensure-mole-protections.sh` (2026-08-13)\n\n**Run it BEFORE any `mo purge` \u002F `mo clean` and after any `mo update`.** Upstream mole (≤1.50.0) has a hole:\n`mo purge` deletes via `safe_remove`, which honors `is_path_whitelisted` — but **only `bin\u002Fclean.sh` ever loads\n`~\u002F.config\u002Fmole\u002Fwhitelist`; `bin\u002Fpurge.sh` never does**, so during purge the whitelist protects NOTHING. On\n2026-08-13 purge deleted `~\u002Fprojects\u002Fdiy-fax-worker\u002Fnode_modules` (broke the FAX-policy send path) and\n`~\u002Fclaude-hud\u002Fdist` (broke the statusline). The script maintains three layers idempotently: whitelist entries\nfor the protected set, `~\u002Fclaude-hud` removed from purge scan roots (line removals stick — rediscovery only\nfires on an EMPTY purge_paths), and a marker-tagged patch making purge.sh load the whitelist. **`mo update`\nreverts the patch** — the script detects and re-applies; it exits nonzero with a FAIL line if any layer is\nmissing. Verified end-to-end 2026-08-13: sandboxed real purge deleted an unprotected canary and skipped the\nwhitelisted one (`Items: 1`). Add new protected paths in the script's `PROTECT` array.\n\n## ⚠️ Three non-obvious traps (this is why a naive `mo clean` call hangs \u002F surprises)\n\n1. **Mole needs a real TTY.** It gates its interactive UI on `[[ -t 0 ]]`. The Bash tool has no TTY, so a bare\n   `mo clean` sits forever at a prompt. **Run real (non-dry) Mole commands inside a detached `tmux` session** and drive the keys.\n2. **Its prompts are keypress-based, not `y\u002FN`:**\n   - `➤ System caches need sudo. Enter continue, Space skip:` → **send `Space`** to skip. The sudo path needs a\n     password\u002FTouch ID you can't supply autonomously — pressing Enter will hang. (If the user is present and *wants*\n     system caches cleaned, tell them to run `mo clean` themselves in a terminal so they can authenticate.)\n   - `➤ Press Enter to confirm, ESC to cancel:` → **send `Enter`**.\n3. **`mo clean` MAY empty the user Trash — but do NOT rely on it either way.**\n   ⚠️ **MEASURED EXCEPTION 2026-08-27 (Mole 1.52.0):** a full `mo clean` run driven by the tmux driver\n   below, answering `Space` at the sudo\u002Fsystem-caches prompt, **did NOT empty the Trash.** Trash went\n   10 -> 7 items; every Keyboard Maestro item survived, and the log tail never printed the\n   `✓ Trash · emptied` line. Emptying appears gated behind the sudo path that `Space` skips.\n   **Consequence: verify the Trash yourself after the run — never report it as emptied, and never\n   report it as preserved, without looking.** Both directions have bitten:\n   - assuming emptied -> you tell the user something is permanently gone when it is recoverable\n   - assuming preserved -> you leave items the user asked to be fully removed\n   🛑 **And when verifying \"is X gone everywhere\", remember `~\u002F.Trash` is NOT under `~\u002FLibrary`.**\n   A `find ~\u002FLibrary \u002FLibrary \u002FApplications` returns 0 while the item sits in Trash — that exact\n   scope bug produced a false \"FULLY REMOVED (Trash included)\" on 2026-08-27. Search `~\u002F.Trash`\n   explicitly, and positive-control the search against an app you know is installed.\n\n3b. **(original note, still true when the sudo path runs)** `mo clean` EMPTIES the user Trash (verified: its log prints `✓ Trash · emptied, N items`). This is\n   *permanent* deletion. Consequences you must respect:\n   - **Tell the user `mo clean` will empty their Trash** as part of the confirm — anything sitting in Trash is gone.\n   - **Never trash something and then run `mo clean` in the same pass** expecting it to be recoverable — `mo clean`\n     will permanently delete it. Either (a) do the browser-sweep trashing and let the user inspect\u002FPut-Back **before**\n     running `mo clean`, or (b) state plainly that the trashed items will be permanently removed by this run.\n\n## Workflow\n\n### 1. Recon (read-only, safe) — always start here\n```bash\nmo clean --dry-run     | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -70   # what would be freed + total GB\nmo optimize --dry-run  | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -30\nmo purge --dry-run     | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -10   # build artifacts — often the BIGGEST win (47GB on 2026-07-14)\nmo installer --dry-run | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -10\n```\nAlso scan for browser leftovers (see §Browser sweep). Present a compact findings table to the user.\n\n### 2. Confirm the risky stuff (AskUserQuestion)\nAsk before: the real `mo clean`, the real `mo optimize`, `mo purge`, removing any browser leftover, uninstalling any real app.\nDefault the *safe* option first. Never empty Trash yourself (that's permanent — `mo clean` will do it as part of an approved run, see trap #3).\n\n### 2.5 Execution ORDER for a multi-part cleanup (learned 2026-07-14)\nWhen one approved pass includes trash-removals + brew + purge + clean, run in THIS order so nothing is lost early:\n1. `trash` the small approved leftovers (dotfiles, stubs) — still recoverable at this point\n2. `brew uninstall` items (no Trash involvement)\n3. `mo purge` (interactive, tmux driver below) — deletes directly, biggest space win\n4. **`mo clean` LAST** — clears caches AND empties the Trash, making step 1 permanent. Say so in the report.\n5. `trash-empty 30` (trash-cli, `~\u002F.local\u002Fbin`) — mole doesn't know trash-cli's separate\n   `~\u002F.local\u002Fshare\u002FTrash` (upstream #1423), so empty its >30-day entries here. Recent\n   entries stay recoverable via `trash-restore`. Skip silently if trash-cli is absent.\n\n### 3. Run Mole in a tmux TTY and auto-answer prompts\nReusable driver — handles both prompt types and stops on completion:\n```bash\nrun_mo () {  # usage: run_mo clean   |   run_mo optimize\n  local sub=\"\\$1\" S=\"mo_\\$1\" LOG=\"\u002Ftmp\u002Fmo_\\$1.$$.log\"; : > \"$LOG\"\n  tmux kill-session -t \"$S\" 2>\u002Fdev\u002Fnull\n  tmux new-session -d -s \"$S\" -x 200 -y 50\n  tmux send-keys -t \"$S\" \"mo $sub 2>&1 | tee '$LOG'; echo __EXIT_\\$? >> '$LOG'\" Enter\n  for i in $(seq 1 150); do\n    sleep 2\n    grep -q \"__EXIT_\" \"$LOG\" 2>\u002Fdev\u002Fnull && break\n    last=$(tmux capture-pane -t \"$S\" -p 2>\u002Fdev\u002Fnull | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | grep -vE '^\\s*$' | tail -1)\n    case \"$last\" in\n      *\"Enter continue, Space skip\"*) tmux send-keys -t \"$S\" Space ;;   # skip sudo\u002Fsystem-caches\n      *\"to confirm\"*)                 tmux send-keys -t \"$S\" Enter ;;    # confirm the run\n    esac\n  done\n  sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' \"$LOG\" | grep -vE '^\\s*$' | tail -50\n  tmux kill-session -t \"$S\" 2>\u002Fdev\u002Fnull\n}\n```\n`mo clean` can take a few minutes (deleting thousands of small files) — use a generous Bash `timeout` (≥300000 ms)\nand, if it still runs long, re-check with `tmux capture-pane -t mo_clean -p` and `grep __EXIT_` on the log rather than assuming a hang.\nReport Mole's own summary line (`Tracked cleanup: N GB | Items: … | Free space: … (+N GB)`).\nA second `mo clean` in the same week yields little (skips things \"cleaned Nd ago\") — don't promise a repeat of the first pass's number.\n\n## mo purge — the interactive build-artifact purge (usually the BIGGEST win)\n\n`mo purge` has NO auto-confirm flag; drive its TUI in tmux. Keys: `↑↓` move · `Space` toggle · `Enter` confirm · `A` all · `I` invert · `Q` quit.\n```bash\ntmux new-session -d -s mopurge -x 220 -y 50\ntmux send-keys -t mopurge \"mo purge\" Enter\n# scan takes 1-3 min; poll capture-pane until \"Select Categories to Clean\" appears, then REVIEW the list, then:\ntmux send-keys -t mopurge Enter      # accept selection; watch for \"Purge complete\"\n```\nWhat tonight (2026-07-14, 47.34GB freed) taught about the selection screen:\n- **Mole pre-selects by recency**: `●` stale projects, `○` anything touched in the last few days. Its defaults are good —\n  review, don't rebuild. Spot-check that active projects (recent `○` rows) stayed unselected before pressing Enter.\n- **Estimates are inflated by case-duplicate rows**: APFS is case-insensitive, so `~\u002FCode\u002Fx` and `~\u002Fcode\u002Fx` list twice.\n  Expect the real freed number to be 10-20% below the dry-run estimate. Not an error.\n- Everything it targets is **regenerable** (node_modules \u002F .venv \u002F target \u002F dist \u002F caches) — the cost of a wrong pick is\n  one `npm install` \u002F `cargo build`, not data loss. Rust `target\u002F` deletion does NOT touch installed binaries in `~\u002F.cargo\u002Fbin`.\n- ⚠️ **\"Regenerable\" ≠ safe when a launchd service depends on it at RUNTIME.** Purging `node_modules` from a project that\n  backs a `KeepAlive` LaunchAgent doesn't cost \"one `npm install`\" — it puts that agent into a silent infinite crash-loop\n  that respawns forever and can write a multi-GB log before anyone notices. **Real case (found 2026-07-26):**\n  `~\u002Fquick\u002Fservices\u002Fnode_modules` was gone, so `com.quick.services` crash-looped on `Cannot find package 'hono'`\n  **3,343,284 times → 71 MB log**. Nothing surfaced it; the service was simply dead.\n  **Before confirming a purge, cross-check the selection against active agents:**\n  ```bash\n  # any LaunchAgent whose program\u002Fargs point into a project you're about to purge?\n  grep -lE \"$(ls ~\u002FLibrary\u002FLaunchAgents\u002F*.plist >\u002Fdev\u002Fnull 2>&1 && echo .)\" \u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull\n  for p in ~\u002FLibrary\u002FLaunchAgents\u002F*.plist; do\n    \u002Fusr\u002Flibexec\u002FPlistBuddy -c 'Print :ProgramArguments' \"$p\" 2>\u002Fdev\u002Fnull | grep -qE '\u002F(Users|opt)\u002F' \\\n      && echo \"$(basename \"$p\"): $(\u002Fusr\u002Flibexec\u002FPlistBuddy -c 'Print :ProgramArguments:0' \"$p\" 2>\u002Fdev\u002Fnull)\"\n  done\n  # then: deselect any project dir that appears above, or reinstall deps + kickstart the agent right after purging.\n  ```\n  After any purge that hit a service-backed project: `launchctl list | awk '\\$2!=0 && \\$2!=\"-\"'` to catch new failures.\n- Big single wins to expect: multi-GB tool\u002Fdata caches (e.g. a genomics GWAS cache), Rust `target\u002F` dirs, old clones' node_modules.\n\n## Cleanup-candidate inventory (the \"what else can go?\" dry-run)\n\nTiered read-only sweep; output an HTML report to `~\u002FClaude-Reports\u002F` per the HTML-default rule.\n- **Tier 1 (big, near-zero risk):** `mo purge --dry-run` total · old iOS backups (`~\u002FLibrary\u002FApplication Support\u002FMobileSync\u002FBackup\u002F*` —\n  date via `Info.plist :Date` or dir mtime; a missing Info.plist = incomplete\u002Ftool-made backup; flag EMPTY device dirs too) ·\n  stale `~\u002FLibrary\u002FCloudStorage\u002F\u003CProvider> (M-D-YY …)` relink folders (see trap below).\n- **Tier 2 (unused apps — user decides):** rank `\u002FApplications\u002F*.app` by **preference-plist mtime**, NOT Spotlight:\n  ```bash\n  for app in \u002FApplications\u002F*.app; do bid=$(defaults read \"$app\u002FContents\u002FInfo\" CFBundleIdentifier 2>\u002Fdev\u002Fnull)\n    p=\"$HOME\u002FLibrary\u002FPreferences\u002F$bid.plist\"; ts=$([ -f \"$p\" ] && stat -f '%m' \"$p\")\n    echo \"${ts:+$(date -r $ts '+%Y-%m-%d')}${ts:-0000-no-pref}|$(du -sh \"$app\"|cut -f1)|$(basename \"$app\")\"; done | sort | head -35\n  ```\n  (Prefs are written when an app runs → old\u002Fabsent pref ≈ unused. Spotlight `kMDItemLastUsedDate` reads (null) for\n  everything mid-rebuild — unusable then.) Corroborate big candidates: a VM app with an empty `Virtual Machines.localized`\n  (40K) has zero VMs; an SDK app pairs with its data dir (`Android Studio` + `~\u002FLibrary\u002FAndroid`).\n  NEVER auto-remove Tier 2 — present the list; plausibly-active tools stay off it.\n- **Tier 3 (hygiene):** `brew leaves` (flag EOL runtimes like `node@18`) · dangling casks · orphan dotfiles mole flags\n  (`~\u002F.EasyOCR`-class) · `mo installer --dry-run`.\n\n### CloudStorage traps (both bit us 2026-07-14)\n- **`du` on `\u003CProvider> (date)` relink folders is APFS-clone-inflated** — the \"36GB\" folder freed ~0 real bytes when it\n  went away (blocks were clone-shared). Never promise a relink folder's `du` number as reclaimable space.\n- **macOS cleans these itself**: fileproviderd\u002FDriveFS garbage-collected all four dated relink folders mid-session.\n  Re-`ls` targets right before acting — they may already be gone.\n- **0-byte provider stubs (e.g. `ExpanDrive`) are TCC-protected**: `trash` fails (\"volume doesn't have one\"), `rm -rf`\n  gets permission-denied\u002Fblocked. They're harmless — LEAVE them, note it, move on.\n\n### Downloads triage (part of every full cleanup — user expects it)\nRead-only inventory first: `ls -lahtT ~\u002FDownloads` newest-first + per-folder `du`. Then:\n- **Only delete what you can PROVE dead**: byte-identical dupes (`md5 -q a b` — same-size+name-\"(1)\" is NOT proof, hash it;\n  2026-07-14: `form` vs `form.pdf` looked like dupes, md5s differed), zips whose extract dir exists with content, `.DS_Store`.\n- **Age-map to active work**: files ≤2 weeks old that match active cases\u002Fprojects are WORKING files — list them grouped\n  by case as *move* candidates, never delete. If a file set feeds an active goal (`goal list`), hold even the moves.\n- **Check for `.tmp.driveupload`** — its presence means something Drive-syncs the folder; moving files out changes what's\n  backed up. Note it before proposing moves.\n- Deletions → `trash` (recoverable until the next `mo clean` empties it — sequence per §2.5).\n\n### Dangling-cask cleanup (after any app was removed outside brew)\n`brew list --cask` reads Caskroom **directories**, so a manually-deleted app still \"lists\". If `brew uninstall --cask X`\nsays \"not installed\" yet X still lists: `brew uninstall --cask --force X` clears stale version dirs, and a renamed cask\n(e.g. `eloston-chromium → ungoogled-chromium`) leaves a **symlink** that even `--force` skips — `unlink` it directly.\n\n## Per-app uninstall — `~\u002Ftools\u002Fapp-uninstall` (use this, NOT `mo uninstall`)\n\n`mo uninstall \u003CApp>` exists, but for removing ONE app use **`~\u002Ftools\u002Fapp-uninstall`**. It carries\nAppCleaner 3.6.8's own 66 search paths (extracted from its binary 2026-08-27, saved verbatim at\n`~\u002Ftools\u002Fappcleaner-search-paths.txt`) applied under BOTH `~\u002FLibrary` and `\u002FLibrary`, **plus the\nfour things AppCleaner structurally cannot see**:\n\n| Gap | Why it matters |\n|---|---|\n| **`~\u002F.Trash`** | AppCleaner calls `trashItemAtURL:` to DELETE but never SEARCHES the Trash. Residue from an earlier partial\u002Fmanual removal is invisible to it — this is the exact blind spot that produced a false \"FULLY REMOVED\" on 2026-08-27. |\n| **`$TMPDIR`** | per-user `\u002Fprivate\u002Fvar\u002Ffolders\u002F...` caches are in no AppCleaner path. |\n| **TCC grants** | orphaned Accessibility\u002FScreenCapture rows survive the uninstall. Reported only — `TCC.db` is SIP-protected, never hand-edit it. |\n| **Confidence tiers** | AppCleaner matches by fuzzy `containsStringIgnoringCase:` on 4 keys with no tiering, so a short app name substring-matches unrelated files. Ours tiers HIGH (bundle-id) vs med (name\u002Fdisplay\u002Fexec) and refuses bare substring on keys \u003C5 chars. |\n\n```bash\n~\u002Ftools\u002Fapp-uninstall --self-test                 # negative control: proves the search is live\n~\u002Ftools\u002Fapp-uninstall \u003CAppName|bundle-id|\u002Fpath\u002FApp.app>          # DRY RUN (default)\n~\u002Ftools\u002Fapp-uninstall \u003CApp> --apply               # after reviewing the list\n```\n\n**EXIT CODES (stable contract — `\u002Fmo-clean` relies on these for the verification pass):**\n\n| code | meaning |\n|---|---|\n| `0` | CLEAN — searched with >=1 usable key, found nothing |\n| `10` | ARTIFACTS FOUND (or, with `--apply`, items still remain) |\n| `2` | usage error |\n| `3` | **COULD NOT MEASURE** — no usable match key, so NOTHING was searched. This is NOT clean. |\n\nThree outcomes, never two. `3` fires when the app is not installed (no bundle-id readable) and the\nname is under 5 chars, so every match key gets dropped — previously that printed `(none)` and\nreturned 0, which reads as \"no leftovers\" but means \"I searched for nothing\".\n\n```bash\n~\u002Ftools\u002Fapp-uninstall \"$APP\"; case $? in\n  0)  echo \"clean\" ;;\n  10) echo \"leftovers remain\" ;;\n  3)  echo \"UNMEASURED — pass the bundle-id or the .app path\" ;;\nesac\n```\n\n**ORDERING (critical, ties into trap #3):** run `app-uninstall` and move items to Trash\n**BEFORE** any `mo clean`, and tell the user those items become permanent when the Trash is\nemptied. Then re-run `app-uninstall \u003CApp>` afterwards as the verification pass — it is the only\nstep in this skill that looks inside `~\u002F.Trash`, so it is what proves the removal is complete.\n\n## Browser sweep — remove leftover browser junk, protect the real one\n\nThe old `:9222` debug-Chrome clone subsystem was retired 2026-07-14 (fcdp\u002Fccb replaced it). Residue to check for\nand, with confirmation, send to **Trash**:\n```bash\nfor d in \"$HOME\u002F.claude\u002Fchrome-debug-profile\" \"$HOME\u002F.kuri\" \"$HOME\u002F.kuri\u002Fchrome-profile\" \\\n         \"$HOME\u002Ftools\u002Fchrome-debug-on.sh\" \"$HOME\u002Ftools\u002Fchromectl\"; do\n  [ -e \"$d\" ] && printf \"leftover %s  %s\\n\" \"$(du -sh \"$d\" 2>\u002Fdev\u002Fnull|cut -f1)\" \"$d\"\ndone\n```\nRemoval — `trash` (Apple's `\u002Fusr\u002Fbin\u002Ftrash`, macOS 14+) moves to `~\u002F.Trash`, recoverable via Finder **Put Back**:\n```bash\ntrash \"$HOME\u002F.kuri\"        # only if no Kuri.app is installed (check: ls -d \u002FApplications\u002FKuri.app)\n```\n> ⚠️ **Sequencing:** `mo clean` empties the Trash (trap #3). So \"recoverable\" only holds **until** a `mo clean` runs.\n> If you're doing both in one session, do the browser-sweep trashing **first** and let the user Put-Back anything\n> they want **before** you run `mo clean` — otherwise the trashed leftovers are permanently deleted by the clean.\n\n**Separate installed browsers** (e.g. `Chromium.app`) are NOT debug clones — confirm explicitly, then:\n```bash\npgrep -x Chromium >\u002Fdev\u002Fnull && echo \"quit it first\"\ntrash \"\u002FApplications\u002FChromium.app\" \"$HOME\u002FLibrary\u002FApplication Support\u002FChromium\"\n# (or: run_mo \"uninstall Chromium\" for a full leftover sweep — needs the tmux driver)\n```\n\n### 🚫 NEVER touch these — real Chrome, real logins\n`~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002F{Default, Profile 1, Profile 2, Profile 4, Profile 5, Guest Profile, System Profile}`.\nThese hold live logged-in sessions (one holds the primary login). \"Clean up chrome besides the default one\" means the\n**debug\u002Fclone\u002Fleftover** browsers above — it does **not** mean deleting real Chrome profiles. If the user truly wants a\nspecific real profile removed, confirm that exact profile by name first.\n\n## Manual follow-ups Mole surfaces (report, don't auto-do)\n- **Broken login items** (e.g. \"Cloudflare WARP · app not found\") → System Settings → General → Login Items.\n- **Database optimization skipped** because an app is open (e.g. Messages) → note it; user can close + re-run.\n- **iOS\u002FiPhone backups** (often 10 GB+), **orphan dotfiles**, **build artifacts** (`mo purge`) → offer, never auto-delete.\n\n## Do \u002F Don't\n- ✅ Dry-run first; show totals; confirm before deleting; Trash not `rm`. Tell the user `mo clean` empties the Trash.\n- ✅ Multi-part pass ORDER: trash small stuff → brew → `mo purge` → `mo clean` LAST (§2.5).\n- ✅ `Space` to skip the sudo\u002Fsystem-caches step (can't authenticate headless).\n- ✅ Re-verify targets exist right before acting (macOS may have self-cleaned CloudStorage relink folders).\n- ❌ Don't run bare `mo clean`\u002F`mo optimize`\u002F`mo purge` outside tmux (they hang on keypress prompts).\n- ❌ Don't delete real Chrome profiles, manually empty Trash, or type a sudo password.\n- ❌ Don't quote a relink folder's `du` as reclaimable GB (APFS clones), don't fight TCC-protected 0-byte provider stubs,\n  and don't auto-remove any Tier-2 app without the user picking it by name.\n","# mo-clean — deep clean + optimize this Mac (Mole) with a confirm gate\n\n`mo` = **Mole** (https:\u002F\u002Fmole.fit), a Mac deep-cleaner installed at `\u002Fusr\u002Flocal\u002Fbin\u002Fmo` → `\u002Fusr\u002Flocal\u002Fbin\u002Fmole`.\nThis skill runs Mole safely and also sweeps leftover **browser junk** the user keeps asking about\n(debug-Chrome clones, Kuri, orphaned Chromium) — while never touching the **real** Chrome profiles.\n\n**Golden rule (user's explicit instruction): confirm every risky\u002Fdestructive action before doing it.**\nDry-run → show the preview → confirm → execute approved items only. Deletions go to **Trash**, never a hard `rm`.\n\n## Mole subcommands (all support `--dry-run`)\n\n| cmd | does |\n|---|---|\n| `mo clean` | free disk: caches, logs, temp files, leftovers of already-uninstalled apps |\n| `mo optimize` | 22 system fixes: DNS\u002FmDNS, LaunchServices, Dock, Spotlight, quarantine db, login-item health |\n| `mo uninstall \u003CApp>` | remove an app **completely** (app + all leftovers) |\n| `mo analyze [path]` · `mo status` · `mo purge` (build artifacts) · `mo installer` · `mo history` | analysis \u002F extras |\n\nMole protects a lot automatically — it **skips running servers** (Codex, Chrome DevTools MCP, Xcode\u002FCoreSimulator),\n**preserves credentials**, protects Spotify offline music and whitelisted paths, and only **flags** (never auto-removes)\niOS backups, orphan dotfiles, broken login items, and project build artifacts.\n\n## 🛡️ MANDATORY step 0: `~\u002Ftools\u002Fmole-protect\u002Fensure-mole-protections.sh` (2026-08-13)\n\n**Run it BEFORE any `mo purge` \u002F `mo clean` and after any `mo update`.** Upstream mole (≤1.50.0) has a hole:\n`mo purge` deletes via `safe_remove`, which honors `is_path_whitelisted` — but **only `bin\u002Fclean.sh` ever loads\n`~\u002F.config\u002Fmole\u002Fwhitelist`; `bin\u002Fpurge.sh` never does**, so during purge the whitelist protects NOTHING. On\n2026-08-13 purge deleted `~\u002Fprojects\u002Fdiy-fax-worker\u002Fnode_modules` (broke the FAX-policy send path) and\n`~\u002Fclaude-hud\u002Fdist` (broke the statusline). The script maintains three layers idempotently: whitelist entries\nfor the protected set, `~\u002Fclaude-hud` removed from purge scan roots (line removals stick — rediscovery only\nfires on an EMPTY purge_paths), and a marker-tagged patch making purge.sh load the whitelist. **`mo update`\nreverts the patch** — the script detects and re-applies; it exits nonzero with a FAIL line if any layer is\nmissing. Verified end-to-end 2026-08-13: sandboxed real purge deleted an unprotected canary and skipped the\nwhitelisted one (`Items: 1`). Add new protected paths in the script's `PROTECT` array.\n\n## ⚠️ Three non-obvious traps (this is why a naive `mo clean` call hangs \u002F surprises)\n\n1. **Mole needs a real TTY.** It gates its interactive UI on `[[ -t 0 ]]`. The Bash tool has no TTY, so a bare\n   `mo clean` sits forever at a prompt. **Run real (non-dry) Mole commands inside a detached `tmux` session** and drive the keys.\n2. **Its prompts are keypress-based, not `y\u002FN`:**\n   - `➤ System caches need sudo. Enter continue, Space skip:` → **send `Space`** to skip. The sudo path needs a\n     password\u002FTouch ID you can't supply autonomously — pressing Enter will hang. (If the user is present and *wants*\n     system caches cleaned, tell them to run `mo clean` themselves in a terminal so they can authenticate.)\n   - `➤ Press Enter to confirm, ESC to cancel:` → **send `Enter`**.\n3. **`mo clean` MAY empty the user Trash — but do NOT rely on it either way.**\n   ⚠️ **MEASURED EXCEPTION 2026-08-27 (Mole 1.52.0):** a full `mo clean` run driven by the tmux driver\n   below, answering `Space` at the sudo\u002Fsystem-caches prompt, **did NOT empty the Trash.** Trash went\n   10 -> 7 items; every Keyboard Maestro item survived, and the log tail never printed the\n   `✓ Trash · emptied` line. Emptying appears gated behind the sudo path that `Space` skips.\n   **Consequence: verify the Trash yourself after the run — never report it as emptied, and never\n   report it as preserved, without looking.** Both directions have bitten:\n   - assuming emptied -> you tell the user something is permanently gone when it is recoverable\n   - assuming preserved -> you leave items the user asked to be fully removed\n   🛑 **And when verifying \"is X gone everywhere\", remember `~\u002F.Trash` is NOT under `~\u002FLibrary`.**\n   A `find ~\u002FLibrary \u002FLibrary \u002FApplications` returns 0 while the item sits in Trash — that exact\n   scope bug produced a false \"FULLY REMOVED (Trash included)\" on 2026-08-27. Search `~\u002F.Trash`\n   explicitly, and positive-control the search against an app you know is installed.\n\n3b. **(original note, still true when the sudo path runs)** `mo clean` EMPTIES the user Trash (verified: its log prints `✓ Trash · emptied, N items`). This is\n   *permanent* deletion. Consequences you must respect:\n   - **Tell the user `mo clean` will empty their Trash** as part of the confirm — anything sitting in Trash is gone.\n   - **Never trash something and then run `mo clean` in the same pass** expecting it to be recoverable — `mo clean`\n     will permanently delete it. Either (a) do the browser-sweep trashing and let the user inspect\u002FPut-Back **before**\n     running `mo clean`, or (b) state plainly that the trashed items will be permanently removed by this run.\n\n## Workflow\n\n### 1. Recon (read-only, safe) — always start here\n```bash\nmo clean --dry-run     | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -70   # what would be freed + total GB\nmo optimize --dry-run  | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -30\nmo purge --dry-run     | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -10   # build artifacts — often the BIGGEST win (47GB on 2026-07-14)\nmo installer --dry-run | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | tail -10\n```\nAlso scan for browser leftovers (see §Browser sweep). Present a compact findings table to the user.\n\n### 2. Confirm the risky stuff (AskUserQuestion)\nAsk before: the real `mo clean`, the real `mo optimize`, `mo purge`, removing any browser leftover, uninstalling any real app.\nDefault the *safe* option first. Never empty Trash yourself (that's permanent — `mo clean` will do it as part of an approved run, see trap #3).\n\n### 2.5 Execution ORDER for a multi-part cleanup (learned 2026-07-14)\nWhen one approved pass includes trash-removals + brew + purge + clean, run in THIS order so nothing is lost early:\n1. `trash` the small approved leftovers (dotfiles, stubs) — still recoverable at this point\n2. `brew uninstall` items (no Trash involvement)\n3. `mo purge` (interactive, tmux driver below) — deletes directly, biggest space win\n4. **`mo clean` LAST** — clears caches AND empties the Trash, making step 1 permanent. Say so in the report.\n5. `trash-empty 30` (trash-cli, `~\u002F.local\u002Fbin`) — mole doesn't know trash-cli's separate\n   `~\u002F.local\u002Fshare\u002FTrash` (upstream #1423), so empty its >30-day entries here. Recent\n   entries stay recoverable via `trash-restore`. Skip silently if trash-cli is absent.\n\n### 3. Run Mole in a tmux TTY and auto-answer prompts\nReusable driver — handles both prompt types and stops on completion:\n```bash\nrun_mo () {  # usage: run_mo clean   |   run_mo optimize\n  local sub=\"\\$1\" S=\"mo_\\$1\" LOG=\"\u002Ftmp\u002Fmo_\\$1.$$.log\"; : > \"$LOG\"\n  tmux kill-session -t \"$S\" 2>\u002Fdev\u002Fnull\n  tmux new-session -d -s \"$S\" -x 200 -y 50\n  tmux send-keys -t \"$S\" \"mo $sub 2>&1 | tee '$LOG'; echo __EXIT_\\$? >> '$LOG'\" Enter\n  for i in $(seq 1 150); do\n    sleep 2\n    grep -q \"__EXIT_\" \"$LOG\" 2>\u002Fdev\u002Fnull && break\n    last=$(tmux capture-pane -t \"$S\" -p 2>\u002Fdev\u002Fnull | sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' | grep -vE '^\\s*$' | tail -1)\n    case \"$last\" in\n      *\"Enter continue, Space skip\"*) tmux send-keys -t \"$S\" Space ;;   # skip sudo\u002Fsystem-caches\n      *\"to confirm\"*)                 tmux send-keys -t \"$S\" Enter ;;    # confirm the run\n    esac\n  done\n  sed -E 's\u002F\\x1b\\[[0-9;?]*[a-zA-Z]\u002F\u002Fg' \"$LOG\" | grep -vE '^\\s*$' | tail -50\n  tmux kill-session -t \"$S\" 2>\u002Fdev\u002Fnull\n}\n```\n`mo clean` can take a few minutes (deleting thousands of small files) — use a generous Bash `timeout` (≥300000 ms)\nand, if it still runs long, re-check with `tmux capture-pane -t mo_clean -p` and `grep __EXIT_` on the log rather than assuming a hang.\nReport Mole's own summary line (`Tracked cleanup: N GB | Items: … | Free space: … (+N GB)`).\nA second `mo clean` in the same week yields little (skips things \"cleaned Nd ago\") — don't promise a repeat of the first pass's number.\n\n## mo purge — the interactive build-artifact purge (usually the BIGGEST win)\n\n`mo purge` has NO auto-confirm flag; drive its TUI in tmux. Keys: `↑↓` move · `Space` toggle · `Enter` confirm · `A` all · `I` invert · `Q` quit.\n```bash\ntmux new-session -d -s mopurge -x 220 -y 50\ntmux send-keys -t mopurge \"mo purge\" Enter\n# scan takes 1-3 min; poll capture-pane until \"Select Categories to Clean\" appears, then REVIEW the list, then:\ntmux send-keys -t mopurge Enter      # accept selection; watch for \"Purge complete\"\n```\nWhat tonight (2026-07-14, 47.34GB freed) taught about the selection screen:\n- **Mole pre-selects by recency**: `●` stale projects, `○` anything touched in the last few days. Its defaults are good —\n  review, don't rebuild. Spot-check that active projects (recent `○` rows) stayed unselected before pressing Enter.\n- **Estimates are inflated by case-duplicate rows**: APFS is case-insensitive, so `~\u002FCode\u002Fx` and `~\u002Fcode\u002Fx` list twice.\n  Expect the real freed number to be 10-20% below the dry-run estimate. Not an error.\n- Everything it targets is **regenerable** (node_modules \u002F .venv \u002F target \u002F dist \u002F caches) — the cost of a wrong pick is\n  one `npm install` \u002F `cargo build`, not data loss. Rust `target\u002F` deletion does NOT touch installed binaries in `~\u002F.cargo\u002Fbin`.\n- ⚠️ **\"Regenerable\" ≠ safe when a launchd service depends on it at RUNTIME.** Purging `node_modules` from a project that\n  backs a `KeepAlive` LaunchAgent doesn't cost \"one `npm install`\" — it puts that agent into a silent infinite crash-loop\n  that respawns forever and can write a multi-GB log before anyone notices. **Real case (found 2026-07-26):**\n  `~\u002Fquick\u002Fservices\u002Fnode_modules` was gone, so `com.quick.services` crash-looped on `Cannot find package 'hono'`\n  **3,343,284 times → 71 MB log**. Nothing surfaced it; the service was simply dead.\n  **Before confirming a purge, cross-check the selection against active agents:**\n  ```bash\n  # any LaunchAgent whose program\u002Fargs point into a project you're about to purge?\n  grep -lE \"$(ls ~\u002FLibrary\u002FLaunchAgents\u002F*.plist >\u002Fdev\u002Fnull 2>&1 && echo .)\" \u002Fdev\u002Fnull 2>\u002Fdev\u002Fnull\n  for p in ~\u002FLibrary\u002FLaunchAgents\u002F*.plist; do\n    \u002Fusr\u002Flibexec\u002FPlistBuddy -c 'Print :ProgramArguments' \"$p\" 2>\u002Fdev\u002Fnull | grep -qE '\u002F(Users|opt)\u002F' \\\n      && echo \"$(basename \"$p\"): $(\u002Fusr\u002Flibexec\u002FPlistBuddy -c 'Print :ProgramArguments:0' \"$p\" 2>\u002Fdev\u002Fnull)\"\n  done\n  # then: deselect any project dir that appears above, or reinstall deps + kickstart the agent right after purging.\n  ```\n  After any purge that hit a service-backed project: `launchctl list | awk '\\$2!=0 && \\$2!=\"-\"'` to catch new failures.\n- Big single wins to expect: multi-GB tool\u002Fdata caches (e.g. a genomics GWAS cache), Rust `target\u002F` dirs, old clones' node_modules.\n\n## Cleanup-candidate inventory (the \"what else can go?\" dry-run)\n\nTiered read-only sweep; output an HTML report to `~\u002FClaude-Reports\u002F` per the HTML-default rule.\n- **Tier 1 (big, near-zero risk):** `mo purge --dry-run` total · old iOS backups (`~\u002FLibrary\u002FApplication Support\u002FMobileSync\u002FBackup\u002F*` —\n  date via `Info.plist :Date` or dir mtime; a missing Info.plist = incomplete\u002Ftool-made backup; flag EMPTY device dirs too) ·\n  stale `~\u002FLibrary\u002FCloudStorage\u002F\u003CProvider> (M-D-YY …)` relink folders (see trap below).\n- **Tier 2 (unused apps — user decides):** rank `\u002FApplications\u002F*.app` by **preference-plist mtime**, NOT Spotlight:\n  ```bash\n  for app in \u002FApplications\u002F*.app; do bid=$(defaults read \"$app\u002FContents\u002FInfo\" CFBundleIdentifier 2>\u002Fdev\u002Fnull)\n    p=\"$HOME\u002FLibrary\u002FPreferences\u002F$bid.plist\"; ts=$([ -f \"$p\" ] && stat -f '%m' \"$p\")\n    echo \"${ts:+$(date -r $ts '+%Y-%m-%d')}${ts:-0000-no-pref}|$(du -sh \"$app\"|cut -f1)|$(basename \"$app\")\"; done | sort | head -35\n  ```\n  (Prefs are written when an app runs → old\u002Fabsent pref ≈ unused. Spotlight `kMDItemLastUsedDate` reads (null) for\n  everything mid-rebuild — unusable then.) Corroborate big candidates: a VM app with an empty `Virtual Machines.localized`\n  (40K) has zero VMs; an SDK app pairs with its data dir (`Android Studio` + `~\u002FLibrary\u002FAndroid`).\n  NEVER auto-remove Tier 2 — present the list; plausibly-active tools stay off it.\n- **Tier 3 (hygiene):** `brew leaves` (flag EOL runtimes like `node@18`) · dangling casks · orphan dotfiles mole flags\n  (`~\u002F.EasyOCR`-class) · `mo installer --dry-run`.\n\n### CloudStorage traps (both bit us 2026-07-14)\n- **`du` on `\u003CProvider> (date)` relink folders is APFS-clone-inflated** — the \"36GB\" folder freed ~0 real bytes when it\n  went away (blocks were clone-shared). Never promise a relink folder's `du` number as reclaimable space.\n- **macOS cleans these itself**: fileproviderd\u002FDriveFS garbage-collected all four dated relink folders mid-session.\n  Re-`ls` targets right before acting — they may already be gone.\n- **0-byte provider stubs (e.g. `ExpanDrive`) are TCC-protected**: `trash` fails (\"volume doesn't have one\"), `rm -rf`\n  gets permission-denied\u002Fblocked. They're harmless — LEAVE them, note it, move on.\n\n### Downloads triage (part of every full cleanup — user expects it)\nRead-only inventory first: `ls -lahtT ~\u002FDownloads` newest-first + per-folder `du`. Then:\n- **Only delete what you can PROVE dead**: byte-identical dupes (`md5 -q a b` — same-size+name-\"(1)\" is NOT proof, hash it;\n  2026-07-14: `form` vs `form.pdf` looked like dupes, md5s differed), zips whose extract dir exists with content, `.DS_Store`.\n- **Age-map to active work**: files ≤2 weeks old that match active cases\u002Fprojects are WORKING files — list them grouped\n  by case as *move* candidates, never delete. If a file set feeds an active goal (`goal list`), hold even the moves.\n- **Check for `.tmp.driveupload`** — its presence means something Drive-syncs the folder; moving files out changes what's\n  backed up. Note it before proposing moves.\n- Deletions → `trash` (recoverable until the next `mo clean` empties it — sequence per §2.5).\n\n### Dangling-cask cleanup (after any app was removed outside brew)\n`brew list --cask` reads Caskroom **directories**, so a manually-deleted app still \"lists\". If `brew uninstall --cask X`\nsays \"not installed\" yet X still lists: `brew uninstall --cask --force X` clears stale version dirs, and a renamed cask\n(e.g. `eloston-chromium → ungoogled-chromium`) leaves a **symlink** that even `--force` skips — `unlink` it directly.\n\n## Per-app uninstall — `~\u002Ftools\u002Fapp-uninstall` (use this, NOT `mo uninstall`)\n\n`mo uninstall \u003CApp>` exists, but for removing ONE app use **`~\u002Ftools\u002Fapp-uninstall`**. It carries\nAppCleaner 3.6.8's own 66 search paths (extracted from its binary 2026-08-27, saved verbatim at\n`~\u002Ftools\u002Fappcleaner-search-paths.txt`) applied under BOTH `~\u002FLibrary` and `\u002FLibrary`, **plus the\nfour things AppCleaner structurally cannot see**:\n\n| Gap | Why it matters |\n|---|---|\n| **`~\u002F.Trash`** | AppCleaner calls `trashItemAtURL:` to DELETE but never SEARCHES the Trash. Residue from an earlier partial\u002Fmanual removal is invisible to it — this is the exact blind spot that produced a false \"FULLY REMOVED\" on 2026-08-27. |\n| **`$TMPDIR`** | per-user `\u002Fprivate\u002Fvar\u002Ffolders\u002F...` caches are in no AppCleaner path. |\n| **TCC grants** | orphaned Accessibility\u002FScreenCapture rows survive the uninstall. Reported only — `TCC.db` is SIP-protected, never hand-edit it. |\n| **Confidence tiers** | AppCleaner matches by fuzzy `containsStringIgnoringCase:` on 4 keys with no tiering, so a short app name substring-matches unrelated files. Ours tiers HIGH (bundle-id) vs med (name\u002Fdisplay\u002Fexec) and refuses bare substring on keys \u003C5 chars. |\n\n```bash\n~\u002Ftools\u002Fapp-uninstall --self-test                 # negative control: proves the search is live\n~\u002Ftools\u002Fapp-uninstall \u003CAppName|bundle-id|\u002Fpath\u002FApp.app>          # DRY RUN (default)\n~\u002Ftools\u002Fapp-uninstall \u003CApp> --apply               # after reviewing the list\n```\n\n**EXIT CODES (stable contract — `\u002Fmo-clean` relies on these for the verification pass):**\n\n| code | meaning |\n|---|---|\n| `0` | CLEAN — searched with >=1 usable key, found nothing |\n| `10` | ARTIFACTS FOUND (or, with `--apply`, items still remain) |\n| `2` | usage error |\n| `3` | **COULD NOT MEASURE** — no usable match key, so NOTHING was searched. This is NOT clean. |\n\nThree outcomes, never two. `3` fires when the app is not installed (no bundle-id readable) and the\nname is under 5 chars, so every match key gets dropped — previously that printed `(none)` and\nreturned 0, which reads as \"no leftovers\" but means \"I searched for nothing\".\n\n```bash\n~\u002Ftools\u002Fapp-uninstall \"$APP\"; case $? in\n  0)  echo \"clean\" ;;\n  10) echo \"leftovers remain\" ;;\n  3)  echo \"UNMEASURED — pass the bundle-id or the .app path\" ;;\nesac\n```\n\n**ORDERING (critical, ties into trap #3):** run `app-uninstall` and move items to Trash\n**BEFORE** any `mo clean`, and tell the user those items become permanent when the Trash is\nemptied. Then re-run `app-uninstall \u003CApp>` afterwards as the verification pass — it is the only\nstep in this skill that looks inside `~\u002F.Trash`, so it is what proves the removal is complete.\n\n## Browser sweep — remove leftover browser junk, protect the real one\n\nThe old `:9222` debug-Chrome clone subsystem was retired 2026-07-14 (fcdp\u002Fccb replaced it). Residue to check for\nand, with confirmation, send to **Trash**:\n```bash\nfor d in \"$HOME\u002F.claude\u002Fchrome-debug-profile\" \"$HOME\u002F.kuri\" \"$HOME\u002F.kuri\u002Fchrome-profile\" \\\n         \"$HOME\u002Ftools\u002Fchrome-debug-on.sh\" \"$HOME\u002Ftools\u002Fchromectl\"; do\n  [ -e \"$d\" ] && printf \"leftover %s  %s\\n\" \"$(du -sh \"$d\" 2>\u002Fdev\u002Fnull|cut -f1)\" \"$d\"\ndone\n```\nRemoval — `trash` (Apple's `\u002Fusr\u002Fbin\u002Ftrash`, macOS 14+) moves to `~\u002F.Trash`, recoverable via Finder **Put Back**:\n```bash\ntrash \"$HOME\u002F.kuri\"        # only if no Kuri.app is installed (check: ls -d \u002FApplications\u002FKuri.app)\n```\n> ⚠️ **Sequencing:** `mo clean` empties the Trash (trap #3). So \"recoverable\" only holds **until** a `mo clean` runs.\n> If you're doing both in one session, do the browser-sweep trashing **first** and let the user Put-Back anything\n> they want **before** you run `mo clean` — otherwise the trashed leftovers are permanently deleted by the clean.\n\n**Separate installed browsers** (e.g. `Chromium.app`) are NOT debug clones — confirm explicitly, then:\n```bash\npgrep -x Chromium >\u002Fdev\u002Fnull && echo \"quit it first\"\ntrash \"\u002FApplications\u002FChromium.app\" \"$HOME\u002FLibrary\u002FApplication Support\u002FChromium\"\n# (or: run_mo \"uninstall Chromium\" for a full leftover sweep — needs the tmux driver)\n```\n\n### 🚫 NEVER touch these — real Chrome, real logins\n`~\u002FLibrary\u002FApplication Support\u002FGoogle\u002FChrome\u002F{Default, Profile 1, Profile 2, Profile 4, Profile 5, Guest Profile, System Profile}`.\nThese hold live logged-in sessions (one holds the primary login). \"Clean up chrome besides the default one\" means the\n**debug\u002Fclone\u002Fleftover** browsers above — it does **not** mean deleting real Chrome profiles. If the user truly wants a\nspecific real profile removed, confirm that exact profile by name first.\n\n## Manual follow-ups Mole surfaces (report, don't auto-do)\n- **Broken login items** (e.g. \"Cloudflare WARP · app not found\") → System Settings → General → Login Items.\n- **Database optimization skipped** because an app is open (e.g. Messages) → note it; user can close + re-run.\n- **iOS\u002FiPhone backups** (often 10 GB+), **orphan dotfiles**, **build artifacts** (`mo purge`) → offer, never auto-delete.\n\n## Do \u002F Don't\n- ✅ Dry-run first; show totals; confirm before deleting; Trash not `rm`. Tell the user `mo clean` empties the Trash.\n- ✅ Multi-part pass ORDER: trash small stuff → brew → `mo purge` → `mo clean` LAST (§2.5).\n- ✅ `Space` to skip the sudo\u002Fsystem-caches step (can't authenticate headless).\n- ✅ Re-verify targets exist right before acting (macOS may have self-cleaned CloudStorage relink folders).\n- ❌ Don't run bare `mo clean`\u002F`mo optimize`\u002F`mo purge` outside tmux (they hang on keypress prompts).\n- ❌ Don't delete real Chrome profiles, manually empty Trash, or type a sudo password.\n- ❌ Don't quote a relink folder's `du` as reclaimable GB (APFS clones), don't fight TCC-protected 0-byte provider stubs,\n  and don't auto-remove any Tier-2 app without the user picking it by name.\n",{"name":5,"description":7,"allowed-tools":24,"user-invocable":29},[25,26,27,28],"Bash","AskUserQuestion","Read","Write",true,"main","e7b39d448c7d905feed2b044d3ccdf60822596ab","skills\u002Fmo-clean",0,"https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter","https:\u002F\u002Fgithub.com\u002Fbarkleesanders","barkleesanders.com","Stay Hungry, Stay Foolish","2026-11-06 08:47:06",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":29},[41,44,47],{"tool":42,"command":43},"npx","npx skills add barkleesanders\u002Fclaude-code-starter --skill mo-clean",{"tool":45,"command":46},"bunx","bunx skills add barkleesanders\u002Fclaude-code-starter --skill mo-clean",{"tool":48,"command":49},"pnpm","pnpm dlx skills add barkleesanders\u002Fclaude-code-starter --skill mo-clean","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fmo-clean\u002FSKILL.md",[],[53,59,66,73,80,87],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AWV75B37B6YKG7ZKGZ783F","zi-search","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fzi-search\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7AWTZA3JGK1T7V1HS543FG7","visualise","Render inline interactive visuals — SVG diagrams, HTML widgets, charts, and explainers — directly in the conversation. Use this skill whenever the user asks to visualize, diagram, chart, illustrate, or explain something visually, or when an explanation would genuinely benefit from a spatial\u002Finteractive diagram rather than text. Also triggers for: flowcharts, architecture diagrams, data visualizations, interactive explainers, comparison layouts, UI mockups, and any request containing 'show me', 'draw', 'map out', 'visualize', or 'diagram'. Even when the user doesn't explicitly ask for a visual, use this skill proactively when the topic has spatial, sequential, or systemic relationships that a diagram would clarify better than prose.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvisualise\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7AWTR056C3P9R3VS8YVM2WX","video","When the user wants to create, generate, or produce video content using AI tools or programmatic frameworks. Also use when the user mentions 'video production,' 'AI video,' 'Remotion,' 'Hyperframes,' 'HeyGen,' 'Synthesia,' 'Veo,' 'Runway,' 'Kling,' 'Pika,' 'video generation,' 'AI avatar,' 'talking head video,' 'programmatic video,' 'video template,' 'explainer video,' 'product demo video,' 'video pipeline,' or 'make me a video.' Use this for video creation, generation, and production workflows. For video content strategy and what to post, see social-content. For paid video ad creative, see ad-creative.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7AWTHTWBMTYZPMHHEYX3TTG","manim-video","Production pipeline for mathematical and technical animations using Manim Community Edition. Creates 3Blue1Brown-style explainer videos, algorithm visualizations, equation derivations, architecture diagrams, and data stories. Use when users request: animated explanations, math animations, concept visualizations, algorithm walkthroughs, technical explainers, 3Blue1Brown style videos, or any programmatic animation with geometric\u002Fmathematical content.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002Fskills\u002Fmanim-video\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7AWTCXDJ9NWFQW51ENM8A2Z","video-use","Edit any video by conversation. Transcribe, cut, color grade, generate overlay animations, burn subtitles — for talking heads, montages, tutorials, travel, interviews. No presets, no menus. Ask questions, confirm the plan, execute, iterate, persist. Production-correctness rules are hard; everything else is artistic freedom.","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7AWTA1D5FP895S33GHSA2G5","ui-improver","https:\u002F\u002Fgithub.com\u002Fbarkleesanders\u002Fclaude-code-starter\u002Fblob\u002Fmain\u002Fskills\u002Fui-improver\u002FSKILL.md",[],[]]