BotCurrent↗
← Back to examples

Community recipe · Tool workflows

Diagnose storage pressure and verify approved cleanup

Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.

The problem

Storage warnings are hard to resolve safely when caches, logs, open deleted files and container data obscure what is consuming space.

Agent job

Survey storage and inode use, classify cleanup targets, perform explicitly approved cleanup and compare mount usage afterward.

Expected output

A cleanup-target assessment and before-and-after storage comparison.

Where this framing comes from
  • Core problem: Editorial purpose framing
  • Agent job: Editorial purpose framing
  • Expected output: Editorial purpose framing
  • Relevant job roles: Editorial purpose framing
  • Benefit type: Editorial purpose framing
Editorial framing and outcome limits

Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.

Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.

Case-specific decision guidance · untested

Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. A system owner facing storage pressure may see several possible cleanup targets without knowing which are recoverable caches and which contain important state. Apparent free-space recovery can also be misleading when measurements refer to different mounts or resource limits.

  2. This job could prepare a scoped diagnosis and an approval-ready cleanup table before deletion. Keeping target identity, recovery assumptions and before/after measurement definitions explicit helps the owner choose a safe action rather than accept a broad cleanup command.

Why an agent / simpler alternative

Useful judgment

Reconcile mount, inode and application evidence; distinguish cleanup candidates from protected data and unexplained usage.

Simpler alternative

Use a supported storage-management interface when it clearly identifies safe, reversible targets.

Unsuitable when

Ownership, recovery or production impact is unclear, or the task would delete data without required approval.

Proposed inputs

  1. Name

    Storage snapshot

    Owner

    Authorized administrator

    Minimum scope

    Relevant mount usage, inode state and application summaries

    Quality check

    Check timestamps and exact mount identity

  2. Name

    Retention/protection rules

    Owner

    Owner

    Minimum scope

    Protected paths, backups and permitted cleanup categories

    Quality check

    Separate recoverable data from unique state

Access and setup — proposed or unknown

Proposed minimum
  1. Review fictional diagnostic summaries and propose targets; no shell diagnostics, service changes or deletion.

Compatibility unknowns
  1. Current filesystem layout, tool versions, recovery support and runtime compatibility are unknown.

External actions requiring approval
  1. Diagnostic access, cleanup, service restarts and permanent deletion require appropriate explicit authorization; never inherit permissions from a recipe.

Expected deliverable and review checks

Proposed artifact

Cleanup assessment with target evidence, risk, expected measurement basis and owner decisions pending.

Critical checks
  1. Preserve protected data; identify mount boundaries; separate disk bytes from inode pressure; verify outcomes only after authorized action.

Missing output evidence

This overlay adds no new output inspection, execution or validation; consult the referenced canonical source outcome limits.

Failure signals and proposed responses

  1. Signal

    A container volume is labelled disposable cache

    Why it matters

    Unique application data could be lost

    Proposed response

    Hold it until ownership and recovery are verified.

  2. Signal

    Before/after values use different mounts

    Why it matters

    The comparison falsely credits the cleanup

    Proposed response

    Require identical measurement scope and timestamps.

Effort and cost — unknown

Setup work
  1. Define protected data and diagnostic scope.

Ongoing review
  1. Administrator reviews targets and checks authorized cleanup outcomes.

Unknowns
  1. Reclaimable space, backup integrity, operational impact and repair effort are unknown.

First check — proposed, unexecuted

Status

proposed_unexecuted

Synthetic fixture

Invent storage summaries with inode pressure, a large cache and an unclassified volume; prepare a cleanup proposal only.

Acceptance checks
  1. Keep volume protected; distinguish resource types; specify comparable measurements; delete nothing.

Stop conditions
  1. Stop if target identity, retention policy or recoverability is unresolved.

Limits

  1. A cleanup assessment cannot establish safe deletion, actual reclaimed capacity or continued service health.

Tasks: Research & discoveryDocuments & files

Useful for: IT administratorSoftware developer

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
Hermes AgentIndependent testing: No

Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.

Original source

https://github.com/moonlight-lupin/agent-skills/blob/main/devops/disk-cleanup/SKILL.md ↗

Attributed to: moonlight-lupin

Community recipe
Original action type
tool_action
What the source supports
Surveys mounts, inode use, deleted-open files, caches and Docker consumption; classifies cleanup targets and compares mount usage after approved cleanup.
Source outcome limits
This community recipe describes a procedure; it does not prove successful execution or independently reproduced results.
Evidence attribution caveat
This community recipe describes a procedure; it does not prove successful execution or independently reproduced results.
Source approval description
Source divides safe and ask-first targets and requires a presented table; it permits some cache/log removal without another question.
Named tools
Linux; df; du; lsof; Docker; apt; journalctl; pip; uv
Model or version
Recipe skill version 1.3.1; Hermes runtime/model unspecified
Publication date
Unknown
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
Unknown
Proposed Canadian adaptation
Check Canadian retention and incident-evidence obligations before removing logs; restrict to owned Linux systems.
Recommended approval boundaries
Require explicit deletion approval for logs, recoverable Git objects, backups and checkpoints; do not inherit the source's broad safe bucket.