mac-doctor

mac-doctor is a skill for Claude Code from fledgeling-co/fledgeling-plugins. It costs 216 tokens per session (4,082 once invoked), scanned B, original, MIT.

A macOS troubleshooting and cleanup workflow for development machines that are running out of disk space or becoming slowed by accumulated tool data. It checks whether files and processes are safe to remove before taking action.

In plain words
What is it for?
It is for diagnosing disk usage, safely reclaiming space, investigating stuck or abandoned development resources, and tracking repeated storage leaks.
Why use it?
Docker, Xcode, Node tools, development servers, and agent command-line tools can leave behind debris that eventually breaks builds or causes “no space left” errors. This finds the causes, removes only verified waste, and records what remains.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the mac-doctor plugin — 1 skill shipped together

Good fit It is for diagnosing disk usage, safely reclaiming space, investigating stuck or abandoned development resources, and tracking repeated storage leaks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fledgeling-co/fledgeling-plugins/mac-doctor
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 fledgeling-co/fledgeling-plugins --skill mac-doctor
Clone the repo
git clone --depth 1 https://github.com/fledgeling-co/fledgeling-plugins

Made for: Claude Code.

Or install mac-doctor, the plugin that ships this one along with the rest of its 1 skill.

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 mac-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/mac-doctor/github.svg)](https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/mac-doctor)
Your own site
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/mac-doctor"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/mac-doctor/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 mac-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/fledgeling-co/fledgeling-plugins/mac-doctor"><img src="https://agentmods.dev/badge/skills/fledgeling-co/fledgeling-plugins/mac-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00216 $0.04082
Opus 5.5 $0.00086 $0.01633
Sonnet 5.5 $0.00043 $0.00816
Haiku 4.5 $0.00022 $0.00408

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

Security

Grade B, and why

mac-doctor scanned grade B with 1 finding 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 2d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/install-agents.sh, scripts/reclaim.sh, scripts/runaway.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

them with the command and let the user run it, since most need sudo and launchd
plugins/mac-doctor/skills/mac-doctor/SKILL.md · 279 lines

How it starts

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

mac-doctor

Keep a working macOS dev machine from being strangled by its own tooling. Agent CLIs, node and dev servers, Docker, and Xcode each leave debris that is defensible one at a time and fatal together — this finds it, proves what is safe to remove, removes that, and records the rest.

Two things make this skill rather than a shell alias. First, most of the debris is indistinguishable from live state without checking: a worktree with unpushed commits looks exactly like an abandoned one, a dev server with no peers looks exactly like a forgotten one. Second, the disk fills through accumulation, not events — nothing is ever obviously wrong, so nobody looks until a build fails.

Running as a Gemini model? Read gemini.md in this directory first, then follow this file with the overrides it names. It converts this skill's prohibitions (never system prune -a, never pkill, never kill an idle orphan) into a bound ledger read back off the commands actually run, turns each tier into a counted target list, and requires every reported number to carry the command that produced it. Other models skip it.

Arguments

The invocation may carry an argument, which arrives as ARGUMENTS: <text> at the end of this file. Match it case-insensitively against the table below, ignoring any leading dashes — people type --setup, setup and install interchangeably, and a maintenance tool that argues about punctuation is a worse tool.

Argument Action
(none) Run the longest-cadence tier that is currently overdue — see below
15m 1h 12h 1d 7d Run that tier
install setup schedule agents Install the launchd agents, then show status
uninstall remove disable scripts/install-agents.sh --uninstall
status agents? scheduled scripts/install-agents.sh --status, plus the last ledger entry per tier
report check dry dry-run Survey and explain at 7d depth; change nothing, whatever the thresholds say
worktrees scripts/worktree-audit.sh only, with verdicts
processes runaway orphans scripts/runaway.sh only. Add --apply to act; without it nothing is signalled
simulators sims scripts/simulators.py --markdown --snapshots --memory, judged against references/simulators.md; change nothing
free free-space cleanup The session reclaim in Freeing space in a session: measure, ask, clear only what was picked
anything else Treat it as intent, not a token. "docker is eating my disk" is a 12h scoped to Docker; say which tier you chose and why

Read the full file on GitHub · 279 lines

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. 2d ago Changed · +67 lines · +9 tokens per session 2d8049940da3
  2. 2mo ago Changed 760bbb41c146
  3. 2mo ago First seen · 212 lines · 207 tokens per session scan B 99b8cbcd34ea

Subscribe to this mod's changes

mac-doctor is a skill published in the GitHub repository fledgeling-co/fledgeling-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 216 tokens to every session and 4,082 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

mac-doctor compared with skills from other repositories

mac-doctor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mac-doctorfledgeling-co/fledgeling-pluginsSkill2yesterdayMITB216Claude Code
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9kyesterdayApache-2.0A64Claude Code, Codex
cwv-optimizeradobe/skillsSkill342todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex