Works with the AI Agents you already use
Disk Usage Analyzer
Identify disk space hogs, detect runaway log growth, and compare storage snapshots across local and remote systems.
$2.99
Disk Usage Analyzer
Example session with this skill installed
Scan /var/log to find the top 10 largest files and check for unrotated logs or growth issues.
- Read your context and instructions
- Compiled the disk usage analyzer
I have completed the scan of /var/log. The analysis identified several large log files and potential waste patterns, specifically within the journal and legacy application logs.
Disk Usage Analysis: /var/log
| Path | Size | Category | Observation |
|---|---|---|---|
/var/log/journal/... | 2.4 GB | System Log | Vacuuming recommended |
/var/log/nginx/access.log.1 | 1.8 GB | Web Log | Uncompressed, ready for rotation |
/var/log/syslog | 950 MB | System Log | Rapid growth detected |
/var/log/app/debug.log | 820 MB | App Log | Contains multi-month stale data |
/var/log/mail.log.2.gz | 450 MB | Mail Log | Old archive |
/var/log/auth.log | 120 MB | Security | Normal range |
/var/log/kern.log | 85 MB | Kernel | Normal range |
/var/log/dpkg.log | 12 MB | Package | Normal range |
Waste Pattern Detection:
- Unrotated Logs:
nginx/access.log.1is nearly 2GB and hasn't been compressed by logrotate. - Stale Data:
app/debug.logcontains entries older than 90 days. - Docker Bloat: No significant Docker container logs found in this path.
Next steps
- Run
journalctl --vacuum-size=500Mto reclaim space in the system journal. - Check
logrotateconfiguration for Nginx to ensure.1files are compressed immediately. - Execute
python3 scripts/disk_usage.py snapshot /var/log -o log_snap_v1.jsonto track growth over the next 24 hours.
Connects securely to your tools. The creator never sees your data.
About this skill
Disk space crises usually happen at the worst possible time. This skill identifies exactly what is consuming storage and flags runaway growth patterns before partitions hit capacity.
What it does
- Live directory scanning walks local file systems to rank the largest directories and files by size.
- Growth analysis compares two snapshots of the same path to pinpoint exactly where data is accumulating.
- Waste detection flags common culprits like unrotated logs, core dumps, orphaned temp files, and Docker layer bloat.
- Remote analysis processes standard
duoutput files for systems where the agent cannot run directly. - File grouping categorizes storage usage by extension and file age to identify stale data.
How it works
- Scan a specific directory path or mount point to get a real-time view of usage.
- Snapshot the current state to a JSON file for historical tracking or comparison.
- Compare two snapshots using the growth command to visualize delta changes.
- Filter results by minimum size or exclude specific system directories like
/procand/dev.
Frameworks & tools
The skill utilizes a Python-based execution environment to interface with standard Unix utilities like du and df. It handles JSON for snapshot persistence.
Why this beats prompting it yourself
Generic prompts often fail to handle the recursive complexity of file systems or the specific formatting of du exports. This skill provides a structured CLI-like interface that produces machine-readable snapshots, allowing for precise delta comparisons that manual inspection misses.
Use cases
- Identify which Docker volumes or log files are causing a sudden disk space alert.
- Compare server storage state before and after a major deployment or data migration.
- Audit a remote server's storage using a provided
dutext export. - Clean up dev environments by finding multi-GB core dumps and old build artifacts.
Known limitations
Requires read permissions for the directories being scanned. Remote analysis depends on correctly formatted du -ab output. Scan depth may impact performance on extremely large volumes.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Requires read access to target directories. Performance varies with file count. Growth analysis requires two existing snapshot files for comparison.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago