disk

A disk-space and storage-performance analysis command for server-1 that checks filesystems, inodes, and disk input and output.

In plain words
What is it for?
Use it to inspect space trends, find large directories, review disk throughput and wait times, investigate the specified nearly full mount, and plan log, Docker, or MySQL cleanup.
Why use it?
It identifies filesystems at risk of filling up, rapid growth, inode exhaustion, and slow or overloaded storage.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/danielbodnar/skills/disk
Clone the repo
git clone --depth 1 https://github.com/danielbodnar/skills
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 323 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00323
Opus 5 $0.00000 $0.00161
Sonnet 5 $0.00000 $0.00065
Haiku 4.5 $0.00000 $0.00032

Measured yesterday against content hash 26ee7d5865ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

disk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/infra-ops/commands/disk.md · 49 lines

What it actually says

Disk Usage Analysis

Analyze disk space and I/O across all filesystems on server-1:

  1. Query disk.space metrics for all mount points:

    • Used vs available space
    • Percentage utilization
    • Trend over last 24 hours
    • Growth rate estimation
  2. Check disk.inodes metrics:

    • Inode usage percentage
    • Available inodes
    • Potential inode exhaustion
  3. Analyze disk I/O patterns:

    • disk.io (read/write throughput)
    • disk.ops (operation counts)
    • disk.await (average wait times)
    • disk.util (utilization percentage)
  4. Identify high-risk filesystems:

    • Flag any filesystem >90% full
    • Highlight rapid growth patterns
    • Check for inode issues
  5. Provide cleanup recommendations:

    • Suggest log rotation if needed
    • Identify large files to investigate
    • Docker cleanup (images, volumes, logs)
    • MySQL binary log purging
  6. For the known critical mount point /mnt/data/oldserver/mnt/md3 (94% full):

    • Calculate days until full based on growth rate
    • Suggest immediate cleanup actions
    • Provide commands to free space

Include commands like:

# Find largest directories
du -sh /mnt/data/oldserver/mnt/md3/* | sort -rh | head -20

# Check Docker disk usage
docker system df

# Check MySQL binary logs
docker exec systemavo-db-1 mysql -e "SHOW BINARY LOGS;"
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 49 lines · 0 tokens per session scan A 26ee7d5865ab

Subscribe to this mod's changes

disk is a command published in the GitHub repository danielbodnar/skills (2 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 323 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.