AI Tools & Scripts
Free Disk on a Live Trading Host Without Downtime
Safe disk cleanup on a live trading host: scout, build a categorised deletion manifest with safety checks, get one explicit approval, delete, keep a ledger of removed binaries, and prove the trader kept its PID.
What you get: 1 file · 8.83 KB · ZIP
See purchase optionsProduct description
A full disk on a host that is trading is an emergency where the wrong rm can be worse than the problem. This skill gives an agent a conservative, auditable cleanup that never touches the running processes.
What is inside: - SKILL.md - the procedure: scout what is large and why, build a categorised manifest (rollback binaries, rotated logs, caches, build leftovers) with safety checks per item (is it the running executable, does a process hold it open, does it have hard links, is it referenced by a config or a socket), show the manifest and ask once, delete, then prove the trader's PID and start time did not change. It also covers stopping the host from refilling after every deploy. - scripts/manifest.sh - builds the candidate list with the safety checks, deleting nothing. - scripts/ledger.sh - records each binary's identity (mtime, sha256, Go version, module lines) before it is deleted, so "which build ran during that incident" stays answerable. - scripts/execute.sh - deletes exactly the approved manifest. - scripts/pm2-logrotate-compress-fix.sh - repairs pm2-logrotate so rotated logs get compressed.
For operators of their own trading hosts. Deletion always waits for your explicit approval of the manifest. Needs SSH, sudo and bash. Also part of the Crypto Trading Ops Playbooks pack at a lower per-skill price.
Example request
The disk on my trading host is at 93 percent. Free some space but do not restart or disturb the trader.
Example result
Example on a fictional host (your-staging-host, disk 93 percent). Following server-disk-cleanup the agent first scouted read-only: 14 GB of 20 GB sat in three places, rotated PM2 logs (5.1 GB, uncompressed), old rollback binaries (3.8 GB across 9 files), and a package cache (1.2 GB).
manifest.sh produced a categorised list with a verdict per item. The binary currently executing was marked KEEP because the process executable link pointed at it; two files showed an open handle from a log tailer and were marked HOLD; one rollback binary had a hard link elsewhere and was marked KEEP. Rotated logs older than 7 days and the 6 oldest rollback binaries were marked DELETE, keeping the newest three.
The agent showed the manifest (about 7.4 GB reclaimable) and asked for a single approval. After a yes it ran ledger.sh to record sha256 and build info for each binary, then execute.sh. Result: disk at 52 percent, trader PID and start time unchanged, restart count unchanged. It also applied the pm2-logrotate compress fix so rotated logs shrink in future, and nothing outside the approved list was removed.
Requirements
- SSH access with sudo to a Linux host running services under PM2
- bash and standard coreutils (du, find, lsof, stat)
- pm2-logrotate if you use the log-rotation fix
How to install
Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.
What you get
1 file · 8.83 KB
- server-disk-cleanup.zipZIP · 8.83 KB
AI Tools & Scripts
Free Disk on a Live Trading Host Without Downtime
Safe disk cleanup on a live trading host: scout, build a categorised deletion manifest with safety checks, get one explicit approval, delete, keep a ledger of removed binaries, and prove the trader kept its PID.
Getly opened the uploaded files and found nothing that would stop them opening. It is not a virus scan or a quality rating.
Tags
Frequently asked questions
Do I get access instantly?
Yes. This is a digital product - you can download it right after checkout, straight from your library.
Can I use it for commercial projects?
Yes. Commercial use is allowed: use it in your own business and in things you sell. You may not resell or redistribute the file itself.
What's your refund policy?
You can request a refund within 30 days. If something isn't right, request it from your order and the Getly team reviews it.
What file formats and sizes will I get?
You'll download 1 file - ZIP - 8.83 KB in total.
Do I get free updates?
Yes - when the seller ships a new version, you can re-download the latest files from your library at no extra cost. Check the changelog for recent updates.
Price
$7.00



