disk-pressure-forensics
Skill0 starsChanged 5 days agoMITView on GitHub
Use when disk usage is high, df and du disagree, or an agent must diagnose full filesystems without deleting valuable work.
In this repository108 other files it gives its agents.
- adaptive-estimationSkill
- adaptive-loop-budgetingSkill
- adopt-and-deleteSkill
- adversarial-reviewSkill
- agent-drives-uiSkill
- agentic-coding-loopSkill
- agent-otel-trajectorySkill
- agents-as-iac-modulesSkill
- ascii-ui-mockupsSkill
- authoring-html-emailSkill
- authoring-skills-vs-mcpSkill
- batched-ssh-enumerationSkill
- c4-architectureSkill
- challenge-the-premiseSkill
- codegraph-bootstrapSkill
- codegraph-worktree-startupSkill
- colocated-pod-tolerationsSkill
- command-creatorSkill
- complexity-budgetsSkill
- connector-readinessSkill
- context-anchored-patchingSkill
- continuous-issue-resolutionSkill
- credential-proxySkill
- criticality-tiered-reportingSkill
- data-connector-buildingSkill
- declarative-firstSkill
- early-return-over-elseSkill
- email-triageSkill
- enums-codify-behaviorSkill
- ephemeral-workspace-lifecycleSkill
- event-sourcingSkill
- evidence-claim-boundariesSkill
- exhaustive-matchSkill
- feature-coverage-not-just-line-coverageSkill
- full-disk-forensicsSkill
- gate-before-pushSkill
- github-pr-shepherdingSkill
- graceful-shutdown-stateful-agentsSkill
- grounded-generationSkill
- iac-incident-responseSkill
- iac-not-ad-hocSkill
- instrumented-service-scaffoldSkill
- interface-over-conditionalsSkill
- knowledge-routingSkill
- lean-on-oss-standardsSkill
- live-money-disciplineSkill
- live-state-verificationSkill
- loop-governance-and-learningSkill
- low-level-executor-task-specSkill
- map-dispatch-over-conditionalsSkill
- merge-conflict-disciplineSkill
- mermaid-diagramsSkill
- oke-arc-runners-opentofuSkill
- orchestrate-agySkill
- orchestrate-claudeSkill
- orchestrate-codexSkill
- orchestrate-geminiSkill
- otel-emit-at-willSkill
- parameter-designSkill
- parse-dont-validateSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this when a filesystem is full, nearly full, or df reports usage that normal du output does not explain.
- Distinctive: line 26
Check deleted but still open files:
- Distinctive: line 32
use size-based vacuuming instead of deleting journal files by hand.
- Distinctive: line 33
Look for un-reaped workspaces:
- Distinctive: line 36
Check permission blind spots:
- Very specific: line 48
When Kubernetes reports DiskPressure=True:
- Distinctive: line 50
Check the node condition and kubelet summary first:
- Distinctive: line 57
If GitOps controllers are down because of disk pressure, merge the desired source change first, then use a short controller-gap bridge that …
- Distinctive: line 60
Stop recurring CronJobs that pull large images before trying deeper cleanup.
- Distinctive: line 65
Prefer deleting caches, build outputs, and clearly abandoned temp work.
- Distinctive: line 66
Do not delete live worktrees, state directories, credentials, or logs needed for incident reconstruction without an explicit owner decision.
- Very specific: line 72
delete terminal Failed / Succeeded pods when their logs have been captured
- Very specific: line 74
use crictl rmi --prune for unused images
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Disk Pressure Forensics
Use this when a filesystem is full, nearly full, or df reports usage that
normal du output does not explain.
First Principles
dfmeasures allocated blocks on the filesystem.dumeasures visible directory entries from the current permissions view.- A large
dfversusdugap usually means deleted-open files, inaccessible paths, mounts, snapshots, or accounting outside the user's view.
Diagnostic Order
- Confirm the filesystem and mount:
df -hfindmnt
- Measure visible usage from a privileged view when available:
du -xhd1 <mount>- repeat inside the largest directories
- Check deleted but still open files:
lsof +L1- restart or stop only the specific process that owns the deleted file if the service impact is acceptable.
- Check journal growth:
journalctl --disk-usage- use size-based vacuuming instead of deleting journal files by hand.
- Look for un-reaped workspaces:
- old clones, worktrees, virtual environments, package caches, build outputs, test artifacts, and temporary archives.
- Check permission blind spots:
- root-owned directories can make unprivileged
duunder-report. - suppressed errors can turn a permission problem into a false "empty" result.
- root-owned directories can make unprivileged
Kubernetes Local-Path Trap
On single-node k3s or similar clusters, local-path PersistentVolumes,
container images, writable overlay layers, pod logs, and kubelet eviction
accounting can all share the node root filesystem. A pod may report its mounted
state path as "full" even when its PVC request looks large enough, because the
PVC is just a directory on the same root disk.
When Kubernetes reports DiskPressure=True:
- Check the node condition and kubelet summary first:
kubectl describe node <node>kubectl get --raw /api/v1/nodes/<node>/proxy/stats/summary
- Separate
imageFsfrom local-path PVC usage:- containerd image/snapshot data is usually under
/var/lib/rancher/k3s/agent/containerd - local-path PVC data is usually under
/var/lib/rancher/k3s/storage
- containerd image/snapshot data is usually under
- If GitOps controllers are down because of disk pressure, merge the desired source change first, then use a short controller-gap bridge that applies the same declared manifest. Record it as bridge work, not a new source of truth.
- Stop recurring CronJobs that pull large images before trying deeper cleanup; a failed image pull can consume the last free blocks repeatedly.
Cleanup Rules
- Prefer deleting caches, build outputs, and clearly abandoned temp work.
- Do not delete live worktrees, state directories, credentials, or logs needed for incident reconstruction without an explicit owner decision.
- For recurring pressure, codify cleanup as a timer or job with an allowlist and a dry-run mode.
- In Kubernetes incidents, prefer service-native cleanup before manual host
deletion:
- delete terminal
Failed/Succeededpods when their logs have been captured - use
crictl rmi --prunefor unused images - prune only allowlisted rebuildable cache paths such as
.cache,.npm,tmp, or language-server caches; do not prune databases, sessions, credentials, queues, or archives unless they have an owner-approved backup
- delete terminal
Done
- You can explain the
dfusage with concrete evidence. - Any cleanup target is identified by path, age, owner, and reason.
- Recurrence has either a declared guard or a recorded follow-up.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

