aggressive-macos-cleanup

aggressive-macos-cleanup is a skill for Claude Code, Codex from donaldfilimon/abi. It costs 44 tokens per session (3,030 once invoked), scanned D, original, Apache-2.0.

A macOS cleanup workflow for freeing storage by handling approved caches, duplicates, snapshots, repositories, and files. It emphasizes identifying exact disposable targets and preserving protected data and recovery paths.

In plain words
What is it for?
Use it when reorganizing a Mac, removing verified disposable data, managing Time Machine snapshots, or consolidating repositories.
Why use it?
It reduces the risk of deleting the wrong files while performing broad storage cleanup. It also accounts for permissions, running processes, application-managed libraries, and cloud-managed files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when reorganizing a Mac, removing verified disposable data, managing Time Machine snapshots, or consolidating repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/donaldfilimon/abi/aggressive-macos-cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add donaldfilimon/abi --skill aggressive-macos-cleanup
Clone the repo
git clone --depth 1 https://github.com/donaldfilimon/abi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aggressive-macos-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/donaldfilimon/abi/aggressive-macos-cleanup/github.svg)](https://agentmods.dev/skills/donaldfilimon/abi/aggressive-macos-cleanup)
Your own site
<a href="https://agentmods.dev/skills/donaldfilimon/abi/aggressive-macos-cleanup"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/aggressive-macos-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aggressive-macos-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/donaldfilimon/abi/aggressive-macos-cleanup"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/aggressive-macos-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,030 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.03030
Opus 5.5 $0.00018 $0.01212
Sonnet 5.5 $0.00009 $0.00606
Haiku 4.5 $0.00004 $0.00303

Measured 15d ago against content hash 7f4df1b71b9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

aggressive-macos-cleanup scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Trash are an admin boundary, not permission to recurse with `sudo rm -rf`.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Trash are an admin boundary, not permission to recurse with `sudo rm -rf`.
.agents/skills/aggressive-macos-cleanup/SKILL.md · 284 lines

How it starts

The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Aggressive macOS Cleanup

Overview

Be aggressive about proving what is disposable, not about widening deletion commands. A cleanup is complete only when exact targets, protected surfaces, reclaimed bytes, residual blockers, and retained recovery paths are all evidenced separately.

Load the machine's own home/disk, filing, iCloud-Git, and project-move guidance before acting when those skills or files exist. Local instructions can narrow this workflow further.

Non-negotiable boundaries

Never:

  • delete by filename similarity, equal dimensions, similar timestamps, or equal byte size alone;
  • issue recursive deletion against a home directory, workspace root, broad Library, /Applications, /Library, mounted volume, unresolved variable, or glob;
  • use sudo, chmod, chown, Full Disk Access, or another tool to bypass a permission boundary that has not been resolved to exact, authorized targets;
  • mutate files inside Photos, Music, or another application-managed library package with filesystem-level deduplication;
  • clean UV while its lock or mapped environments have holders, or remove plugin/model/package caches while a process runs from them;
  • delete iCloud-managed repositories, force their materialization, or run git gc, git prune, git repack, git fsck --lost-found, or similar object-walking maintenance there;
  • combine repositories because names or source trees look alike;
  • delete a dirty, unpushed, remote-less, or worktree-bearing checkout;
  • empty Trash as one undifferentiated action when it contains projects, documents, personal media, recovery directories, or root-owned bundles;
  • count logical duplicate bytes, APFS clone extents, hard-linked names, Trash moves, or snapshot-pinned blocks as physical storage already released.
  • mutate a mounted backup destination or any external volume unless the user separately names that exact volume and exact content as cleanup scope.

“Reinstallable,” “generated,” “under the user's home,” “already in Trash,” and “the dependencies can be rehydrated” are triage signals, never sufficient destructive evidence by themselves.

Read the full file on GitHub · 284 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 284 lines · 44 tokens per session scan D 7f4df1b71b9f

Subscribe to this mod's changes

aggressive-macos-cleanup is a skill published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 44 tokens to every session and 3,030 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

aggressive-macos-cleanup compared with skills from other repositories

aggressive-macos-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aggressive-macos-cleanupdonaldfilimon/abiSkill185d agoApache-2.0D44Claude Code, Codex
delegationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A118Claude Code
clinical-reportssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A71Claude Code
imaging-data-commonssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A62Claude Code, Codex
clinical-decision-supportsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A97Claude Code
clinical-imagingsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A69Claude Code, Codex
curated-bio-datasetssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A79Claude Code, Codex