Claude Skill Disk Cleanup — DevOps skill for Claude Code
Claude Code skill: nightly, emergency and weekly disk cleanup for Linux servers (Docker, Supabase, PM2, Node, Python) that never touches data, spares caches in use and proves every pass; root or no ro.
How to install Claude Skill Disk Cleanup
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open koffih/claude-skill-disk-cleanup and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Skill Disk Cleanup does
Claude Code skill: nightly, emergency and weekly disk cleanup for Linux servers (Docker, Supabase, PM2, Node, Python) that never touches data, spares caches in use and proves every pass; root or no root.
Alternatives in DevOps
- Supabase — Infrastructure Supabase database/auth integration 14k ★
- Coi — Give the agent a machine 743 ★
- Code On Incus — Give each AI agent its own isolated machine with root, Docker, and systemd 670 ★
README
claude-skill-disk-cleanup
A [Claude Code](https://claude.com/claude-code) skill that installs, audits and extends an automatic disk cleanup on a Linux server: a nightly pass, an hourly emergency check and a weekly aggressive pass, for Docker, self-hosted Supabase, PM2, Node and Python stacks.
- Never touches data: database volumes, uploads and backups are out of scope.
- Spares what is in use: a cache entry a live process runs from (
npx,uvxtools) is kept, the rest goes. - Proves its work: one journal line per action, before and after, MB freed, and a dated witness file for a monitor.
- Root or not: systemd timers as root, or a tagged crontab block from a work account without root, cleaning only what that account owns.
- Tested in a sandbox:
scripts/banc-essai.shruns 27 checks in a throwaway container, including what must survive.
Install
curl -fsSL https://raw.githubusercontent.com/koffih/claude-skill-disk-cleanup/main/install.sh | bash
Options after `bash -s --`: `--project`, `--uninstall`. Or through the catalog [koffih/claude-skills](https://github.com/koffih/claude-skills): `install.sh disk-cleanup`.
Then ask Claude Code: "the disk is full", "set up the disk cleanup on this server", "is the disk cleanup doing anything?".
Use the script directly
cd scripts
cp nettoyage-disque.conf.exemple nettoyage-disque.conf # edit it
NETTOYAGE_CONF=$PWD/nettoyage-disque.conf ./nettoyage-disque.sh essai hebdomadaire # dry run
sudo ./installer-sur-serveur.sh --dossier /opt/ops/nettoyage-disque --heure 01:30 # root
./installer-sur-serveur.sh --utilisateur --heure 03:30 # no root
The script and its messages are in French; `SKILL.md` and `references/` explain everything in English.
License
MIT
Related Skills
Mac Cleaner
Free up disk space on macOS for developers who ship with AI agents: node_modules, Rust target, leftover git wo
DevOps Drift Review
Interpret infrastructure drift findings: root causes and remediation (never applies)
JalRakshak AI
🌊 Autonomous Climate & Water Emergency Command Engine for Mumbai. Powered by AWS Strands 5-Agent DAG, Bedrock
Cleanup Session
After a feature/fix/release is done, remove this repo's dev leftovers — merged branches, their worktrees, and
Aelios
Long-term memory for your AI companion, on your own Cloudflare account. Captures instantly, extracts every 4 h
Ship Sentinel
Claude Code mod that holds git push, PR, publish and deploy commands until your pre-ship check skills have run
Related Agents
PM2
pm2 logs --lines 200 --nostream --err docker compose logs --tail 200 journalctl -u -n 200 --no-pager
Miri For UB Detection
cargo +nightly miri run RUSTFLAGS="-Z sanitizer=address" cargo build --target x86_64-unknown-linux-gnu RUSTFLA
Kernel Completeness Critic
Specialist critic for linux-kernel-dev answers · scores ONLY completeness — error handling, cleanup paths, the