Install
openclaw skills install @jagones84/dirstat-skillUse when auditing disk usage on Windows or Linux and suggesting what a human should review to reclaim space without changing files automatically, especially for caches, model files, trash, and partial downloads.
openclaw skills install @jagones84/dirstat-skillREAD-ONLY ANALYSIS ONLY
This skill never changes files automatically, never schedules cleanup, and never performs cleanup actions. It only scans disk usage, emits compact reports, and suggests what a human should review.
This skill turns the repository into an agent-ready workflow for read-only space recovery triage.
It audits disk usage, reads compact reports, and produces an analysis dossier with six analysis types:
dominant spacepath safetynearby referencessignature heuristicsprobable duplicatesprotected huge hotspotsAttention levels remain compact:
review firstreview carefullykeep protectedUse this skill when:
Do not use this skill when:
review first.review carefully.keep protected.probable duplicates as suspicion, not proof.protected huge hotspots as visibility findings, not action cues.ncdu is missing on Linux and installation needs sudo, use the repo install path only; do not invent alternate flows.README.md: project overview and commandsAGENTS.md: repository entrypoint for agents.agent/HANDOFF.md if present: volatile operator memory, not required for the public repositorypython -m dirstat_skill.cli: generic CLIscripts/linux/*.sh: Linux helper scripts onlyscripts/windows/*.ps1: Windows helper scripts onlyRead:
README.md.agent/HANDOFF.md only if it exists in the current working copyIf the repo already contains recent audit results or blockers, continue from there instead of redoing the whole flow.
--path--engine ncduscripts/linux/ helpers when they make the flow fasterwindows-native CLI on that Windows host instead of scanning a mounted Windows path from Linuxncdu onto Windows-style paths or Windows runtime onto Linux-style pathsRun:
python -m dirstat_skill.cli audit --path C:\ --output-dir outputs\win_c_audit --config config\defaults.json
Override the dominant-space threshold when needed:
python -m dirstat_skill.cli audit --path C:\ --output-dir outputs\win_c_audit --config config\defaults.json --dominant-percent 0.67
Expected:
summary.mdtop_dirs.csvtop_files.csvcandidates.jsonreview_candidates.csvreview_report.mdrun.logTo scan more than one target on Windows:
python -m dirstat_skill.cli audit --path C:\ --path D:\models --output-dir outputs\win_multi_audit --config config\defaults.json
Run:
python3 -m dirstat_skill.cli audit --path /home --engine ncdu --output-dir outputs/linux_home_audit --config config/defaults.json
Override the dominant-space threshold when needed:
python3 -m dirstat_skill.cli audit --path /home --engine ncdu --output-dir outputs/linux_home_audit --config config/defaults.json --dominant-percent 0.72
Expected:
outputs/If ncdu is missing, use:
bash scripts/linux/install_ncdu.sh
Run:
bash scripts/linux/prepare_linux_scripts.sh
bash scripts/linux/run_audit.sh
For DGX over SSH:
ssh dgx bash {baseDir}/scripts/linux/prepare_linux_scripts.sh
ssh dgx {baseDir}/scripts/linux/run_audit.sh
powershell -ExecutionPolicy Bypass -File scripts/windows/run_audit.ps1 -TargetPath C:\ -OutputDir outputs\win_c_audit
Run:
bash scripts/linux/show_latest_audit.sh
Read in this order:
review_report.mdreview_candidates.csvsummary.mdtop_dirs.csvtop_files.csvcandidates.jsonDo not start from the raw export unless the compact reports are missing or clearly wrong.
Use the dossier analyses first:
dominant spacepath safetynearby referencessignature heuristicsprobable duplicatesprotected huge hotspotsThen use the attention levels:
review first
review carefully
keep protected
C:\WindowsC:\Program Files/etc, /usr, /boot, /var/libThe selector should:
This avoids the classic failure mode where a flat top list misses dozens of 1-5 GB review-worthy files that dominate space as a group.
Return a human-review suggestion list grouped by:
Preferred output order:
C:\Windows\Temp, D:\, E:\, and F:\.scripts/linux/run_audit.sh.top_dirs.csv reflects real subtree weight instead of directory inode size only.The final answer should always contain:
python -m dirstat_skill.cli audit --path C:\ --output-dir outputs\win_c_audit --config config\defaults.json
python3 -m dirstat_skill.cli audit --path /home --engine ncdu --output-dir outputs/linux_home_audit --config config/defaults.json
bash scripts/linux/run_audit.sh
bash scripts/linux/show_latest_audit.sh
bash scripts/linux/find_safe_candidates.sh
The public repository and skill identity are DirStat_Skill.
The Python import package is dirstat_skill.