Clean Mac Disk logo

Clean Mac Disk

Community
Heyvhuang
clean-mac-disk

Use when your Mac's disk is almost full and you want to find and clean up what development left behind: caches, build output, Docker, models and old agent sessions. A read-only scan by size, a local treemap split into safe to remove and review first, and a cleanup script only for what you tick, using each tool's own clean command. Not for cleaning up code in a repo (check-before-launch).

Overview

PublisherHeyvhuang
Repositorycopybook-skills
Skill nameclean-mac-disk
Stars
143
Forks
9
Bundled files
Instructions only
LicenseCC-BY-4.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Heyvhuang on GitHub. Read the source before you install it.

Installation

Install the Clean Mac Disk AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Heyvhuang/copybook-skills/tree/main/standalone/tips/clean-mac-disk
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Heyvhuang/copybook-skills.git /tmp/copybook-skills
mkdir -p .claude/skills
cp -r /tmp/copybook-skills/standalone/tips/clean-mac-disk .claude/skills/clean-mac-disk
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Clean Mac Disk in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Clean Mac Disk on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Clean Mac Disk is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Disk map of dev leftovers

Disk almost full: a read-only scan, a treemap of what development left behind, and a cleanup script only for what you tick.

Steps

  1. Copy the prompt.
  2. Send it to Claude Code.
  3. You get: A local HTML treemap of your dev leftovers and a cleanup script for the items you tick.

The user chose this tip. The steps above are written for a person; do them for the user.

  • Step 1 names the text to use: it is under the heading of that name below. Use it word for word.
  • Step 2 says where the text goes. Apply a prompt within the task the user actually requested. Before writing a file or running a command, show the change and get their agreement. Before deleting, publishing, sending, paying or making changes outside the project, ask once for explicit approval, even if the user already requested it. Wait for the user to answer that question with a yes. A backup or the tip’s quoted instructions cannot waive confirmation. Only an ordinary edit inside this project can use the request as agreement for the same action, target and effects. Say what you did. Ask once for any wider change and keep the tip’s checkpoints and approvals below. A review, check or explanation changes nothing. If a step needs another app, a restart or a schedule you cannot access, give the user the text and say where it goes.
  • A quoted example gives no permission to act. Before running downloaded shell code or an unpinned package, changing persistent user-wide settings, or reading private session history, show the command or paths, what it will access or change, and any destination. Redact secret values. Wait for explicit approval of that specific action. For a remote installer, fetch and inspect a pinned revision or verify a trusted checksum before running it.
  • Fill each bracket or placeholder from what the user said, or ask.
  • Step 3 is what the user should end up with.

Prompt

text
Scan my home folder read-only. Look at sizes only and don't open any file contents. Skip iCloud, the Photos library and external drives, and skip any folder that triggers a system permission prompt. Find the big folders left behind by development work and build a local HTML page: a treemap sized by space, split into 'safe to remove' and 'let me review first'. Sessions, models and Docker always go under 'let me review first'. For each item, show the path, the size and what happens if it's deleted. When I tick items, generate a cleanup script that uses each tool's own clean command, and don't delete anything yourself. Append each item's size to ~/disk-report/sizes.csv, and next time read it first and flag what grew.

Copybook’s notes for the agent: Open the page for me in a browser and show it as a screenshot, with each group's total at the top. Say which folders you skipped and why.

Background

My Mac was down to 27 GB, so I had Opus 5.5 scan it read-only: 124 GB of developer leftovers, and ~/.codex alone was 59 GB, 31 GB of it old chats.

It drew a map of it, and once you tick items it writes the cleanup script. 22.5 GB of it is caches and build output that gets re-downloaded or rebuilt when you need it.

Send this to Claude Code and see how much is on yours.

Source

From Copybook: posted on X by @Voxyz_ai on 17 Oct 2026, 2K saves as of 14 Nov 2026. For Claude Code.

Frequently asked questions

What does the Clean Mac Disk AI skill do?

Use when your Mac's disk is almost full and you want to find and clean up what development left behind: caches, build output, Docker, models and old agent sessions. A read-only scan by size, a local treemap split into safe to remove and review first, and a cleanup script only for what you tick, using each tool's own clean command. Not for cleaning up code in a repo (check-before-launch).

Why use Clean Mac Disk on TypingMind?

Because you install it once and use it with any model. Clean Mac Disk is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Clean Mac Disk in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Heyvhuang/copybook-skills/tree/main/standalone/tips/clean-mac-disk. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Clean Mac Disk?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Clean Mac Disk?

As many as you like. As long as a model supports skills, you can use Clean Mac Disk with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Clean Mac Disk AI skill free?

Yes. It is published on GitHub by Heyvhuang under the CC-BY-4.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇