Логотип Free My Disk

Free My Disk

Спільнота
wquguru
free-my-disk

Safely audit and reclaim disk space on macOS and Ubuntu/Linux hosts, including remote servers over SSH. Use when the user says their Mac, Linux box, VPS, or server disk is full, asks what can be safely deleted, wants to clean caches, developer artifacts, Docker storage, apt/Homebrew/npm/pnpm/yarn/pip/uv caches, journal/log files, Xcode data, editor extensions, node_modules, Trash, crontab/systemd timer disk checks, or asks for a repeatable free-space cleanup workflow.

Add to TypingMind

Огляд

Видавецьwquguru
Репозиторійskills
Назва навичкиfree-my-disk
Зірки
94
Форки
7
Файли в пакеті
3
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: wquguru. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Free My Disk у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/wquguru/skills/tree/main/skills/free-my-disk
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wquguru/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/free-my-disk .claude/skills/free-my-disk
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Free My Disk в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Free My Disk, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Free My Disk не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Free My Disk

Core Rule

Prefer a read-only audit before deleting anything. Classify findings into safety tiers, explain likely impact, and only delete after the user clearly asks to clean. Never delete personal documents, project archives, photos, mail, source repositories, Docker volumes, databases, app containers, or production data unless the user explicitly names them.

Quick Audit

Detect the platform first:

bash
uname -a
df -h /

For macOS, run the bundled read-only script first when possible:

bash
bash scripts/audit_macos_disk.sh

Use PROJECT_SCAN=1 bash scripts/audit_macos_disk.sh to include common project roots such as ~/projects, ~/code, ~/src, and ~/work. Use FULL_SCAN=1 bash scripts/audit_macos_disk.sh only when the user wants a deeper scan and the disk has enough free space for a slower traversal.

For Ubuntu/Linux, run the bundled read-only script first when possible:

bash
bash scripts/audit_linux_disk.sh

Use PROJECT_SCAN=1 bash scripts/audit_linux_disk.sh to include common user and project roots such as ~/projects, ~/code, ~/src, ~/work, and /opt. Use FULL_SCAN=1 bash scripts/audit_linux_disk.sh only when the user wants a deeper scan.

For a remote host, replace my-server with the actual hostname or SSH config alias, then copy or stream the script over SSH:

bash
ssh my-server 'bash -s' < scripts/audit_linux_disk.sh
ssh my-server 'PROJECT_SCAN=1 bash -s' < scripts/audit_linux_disk.sh

If the script is not suitable, gather the same facts manually:

bash
df -h /
du -sh ~/Library/Caches ~/.npm ~/.pnpm-store ~/.yarn ~/.cache ~/Library/Logs ~/.Trash 2>/dev/null
du -sh ~/Library/Containers/com.docker.docker ~/Library/Developer ~/Downloads 2>/dev/null
find ~ -xdev -type f -size +1G -print 2>/dev/null | head -100

On Linux, prefer these manual checks:

bash
df -h /
df -ih /
sudo du -xhd 1 / 2>/dev/null | sort -h | tail -30
du -sh ~/.cache ~/.npm ~/.pnpm-store ~/.yarn ~/.cache/pip ~/.local/share/uv ~/.local/share/Trash 2>/dev/null
sudo journalctl --disk-usage 2>/dev/null || true
docker system df 2>/dev/null || true
find "$HOME" -xdev -type f -size +1G -print 2>/dev/null | head -100

Use du -xhd 1 <dir> | sort -h | tail for large directories. Prefer targeted scans over full-home scans when the disk is very full. On remote Linux servers, include inode pressure with df -ih /; many tiny logs or cache files can fill inodes before bytes.

Safety Tiers

Treat these as usually safe to clean on macOS:

  • Homebrew old versions and cache: brew cleanup, then optionally remove ~/Library/Caches/Homebrew/*.
  • Package manager caches: npm cache clean --force, pnpm store prune, yarn cache clean.
  • Reinstallable dependencies the user names: node_modules, .venv, build outputs, .next, dist, target.
  • User logs: files under ~/Library/Logs.
  • Trash: ~/.Trash, only after confirming nothing important is there.

Treat these as usually safe to clean on Ubuntu/Linux:

  • Apt package cache: sudo apt-get clean and sudo apt-get autoclean.
  • Unused distro packages: sudo apt-get autoremove --purge, after reviewing the package list.
  • Package manager caches: npm cache clean --force, pnpm store prune, yarn cache clean, pip cache purge, uv cache clean.
  • Systemd journal vacuuming by size or time, for example sudo journalctl --vacuum-time=14d or sudo journalctl --vacuum-size=500M.
  • Reinstallable dependencies the user names: node_modules, .venv, build outputs, .next, dist, target.
  • User trash and caches: ~/.local/share/Trash and ~/.cache, after checking they are not application state.

Treat these as safe but with workflow impact:

  • VS Code/Cursor extensions under ~/.vscode/extensions and ~/.cursor/extensions; deleting them uninstalls extensions.
  • Xcode DerivedData and simulator caches; deleting them slows the next build or simulator boot.
  • Python/uv/pip caches and tool environments; deleting them may require reinstalling tools.
  • Agent or editor histories such as .claude/projects, .codex/sessions, .cursor/projects; deleting them may remove local history.
  • Large rotated logs under /var/log; truncate or rotate named logs rather than deleting active log files.
  • Snap, Flatpak, conda, and language runtime caches; deleting them may require redownloading packages or rebuilding environments.

Treat these as high impact:

  • Docker Desktop Docker.raw: never delete directly. Use Docker prune commands and Docker Desktop compaction/reset behavior.
  • Docker volumes: do not run docker volume prune unless the user explicitly accepts losing persistent container data. On servers, assume volumes may contain databases, Grafana/InfluxDB state, uploads, or other service data.
  • ~/Downloads, project archives, media, iCloud Drive, Mail, Photos libraries, and app containers: report size and ask.
  • APFS local snapshots: report them, but avoid deleting snapshots unless the user explicitly asks and understands the backup/update implications.
  • Linux service data under /var/lib, /srv, /opt, /home/*, database directories, backups, and container bind mounts: report size and ask before changing.
  • Kernel or boot cleanup under /boot: prefer package-manager removal of old kernels; do not manually delete kernel files unless recovering from a blocked package manager and the user accepts the risk.

Remote Linux Example

Treat remote servers as production-like Ubuntu/Linux hosts unless the user says otherwise. In examples, replace my-server with the actual hostname or SSH config alias.

  1. Start read-only and capture host pressure:
bash
ssh my-server 'df -h /; df -ih /; uname -a; sudo journalctl --disk-usage 2>/dev/null || true; docker system df 2>/dev/null || true'
  1. Run the Linux audit script:
bash
ssh my-server 'PROJECT_SCAN=1 bash -s' < scripts/audit_linux_disk.sh
  1. For a large root filesystem, inspect one level at a time:
bash
ssh my-server 'sudo du -xhd 1 / 2>/dev/null | sort -h | tail -30'
ssh my-server 'sudo du -xhd 1 /var 2>/dev/null | sort -h | tail -30'
  1. Clean low-risk server candidates first when asked:
bash
ssh my-server 'sudo apt-get clean && sudo apt-get autoclean'
ssh my-server 'sudo journalctl --vacuum-time=14d'
ssh my-server 'docker system prune -af && docker builder prune -af && docker system df'

Skip docker volume prune, /var/lib/docker/volumes, database directories, and application data unless the user explicitly accepts losing or rebuilding that data.

Scheduled Monitoring

Do not create or edit crontab, launchd jobs, systemd timers, or Codex automations unless the user asks for scheduled monitoring or cleanup. Default scheduled jobs to read-only audit/reporting. Do not schedule destructive cleanup commands such as rm -rf, docker system prune, docker volume prune, apt-get autoremove, or journal vacuuming unless the user explicitly accepts the exact command, cadence, and impact.

Before adding a schedule, ask concise questions. If an interactive user-input tool such as AskUserQuestion or request_user_input is available, use it; otherwise ask in chat:

  • Target: local macOS, local Linux, or remote SSH host?
  • Mode: read-only audit/report only, or user-approved low-risk cleanup?
  • Cadence and output: daily/weekly/monthly, preferred time, log path, and alert threshold?

For Linux servers, prefer a report-only crontab entry with absolute paths and a dedicated log directory:

bash
mkdir -p "$HOME/.local/state/free-my-disk"
crontab -l > /tmp/free-my-disk.cron 2>/dev/null || true
grep -v 'free-my-disk audit' /tmp/free-my-disk.cron > /tmp/free-my-disk.new
printf '0 8 * * * PROJECT_SCAN=1 /absolute/path/to/audit_linux_disk.sh >> "$HOME/.local/state/free-my-disk/audit.log" 2>&1 # free-my-disk audit\n' >> /tmp/free-my-disk.new
crontab /tmp/free-my-disk.new
rm /tmp/free-my-disk.cron /tmp/free-my-disk.new

For macOS, prefer scheduled audit logs with launchd only if the user wants persistent local scheduling; otherwise run the audit on demand. For remote hosts, install the schedule on the remote host only after confirming the SSH target and where logs should live.

Cleanup Workflow

  1. State current free space from df -h /.
  2. Report candidates by tier with sizes and impact.
  3. Clean low-risk macOS caches first when asked:
bash
brew cleanup
npm cache clean --force
pnpm store prune
yarn cache clean
  1. Remove user-named reinstallable directories with rm -rf only after repeating the exact paths.
  2. For Docker, start Docker Desktop if needed, then run:
bash
docker system prune -af
docker builder prune -af
docker system df

Skip docker volume prune -f unless the user explicitly requests volume deletion.

  1. On Ubuntu/Linux, clean low-risk system caches first when asked:
bash
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove --purge
sudo journalctl --vacuum-time=14d
npm cache clean --force
pnpm store prune
yarn cache clean
pip cache purge
uv cache clean

Review apt-get autoremove output before accepting removal if the host is production-like.

  1. Recheck:
bash
df -h /
df -ih /
docker system df 2>/dev/null || true

Summarize what was cleaned, what was intentionally skipped, the new free-space number, and any follow-up impact such as reinstalling editor extensions or dependencies.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Free My Disk?

Safely audit and reclaim disk space on macOS and Ubuntu/Linux hosts, including remote servers over SSH. Use when the user says their Mac, Linux box, VPS, or server disk is full, asks what can be safely deleted, wants to clean caches, developer artifacts, Docker storage, apt/Homebrew/npm/pnpm/yarn/pip/uv caches, journal/log files, Xcode data, editor extensions, node_modules, Trash, crontab/systemd timer disk checks, or asks for a repeatable free-space cleanup workflow.

Навіщо використовувати Free My Disk у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Free My Disk — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Free My Disk у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/wquguru/skills/tree/main/skills/free-my-disk. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Free My Disk?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Free My Disk?

Зі скількома забажаєте. У TypingMind ви можете використовувати Free My Disk із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Free My Disk?

На GitHub цю навичку публікує wquguru. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Control Ui E2e

openclaw
ОрганізаціяПопулярне

Використовуйте під час проєктування, тестування, виправлення або розширення графічного інтерфейсу OpenClaw Control UI, зокрема для галерей стрес-тестування інтерфейсу зі зворотним зв’язком, наскрізних перевірок за допомогою Vitest + Playwright, сценаріїв Gateway із заглушками…

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Deslop

openclaw
ОрганізаціяПопулярне

Очищення змін у поточній гілці від AI-slop: перед автоматичним переглядом приберіть зайві коментарі, надмірні захисні перевірки, підміну типів і відхилення від стилю.

82.2K
391K
Інструкції
Відкрити
Логотип openclaw

Discord Clawd

openclaw
ОрганізаціяПопулярне

Використовуйте, щоб спілкуватися з агентом або сеансом OpenClaw, підключеним до Discord; не для пошуку в архіві.

82.2K
391K
Файлів: 1
Відкрити
Логотип openclaw

Discrawl

openclaw
ОрганізаціяПопулярне

Архів Discord: пошук, актуальність синхронізації, особисті повідомлення, підсумки, TUI, робота з репозиторіями та випусками.

82.2K
391K
Файлів: 1
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇