DirStat_Skill
БесплатноЗапускает вложенные скриптыНе проверенUse when auditing disk usage on Windows or Linux and suggesting what a human should review to reclaim space without changing files automatically, especially…
от jagones84361 установка в других каталогахОб этом скилле
DirStat_Skill
READ-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.
Overview
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 hotspots
Attention levels remain compact:
review firstreview carefullykeep protected
When to Use
Use this skill when:
- the user asks what is consuming disk space
- the user asks what deserves review to free disk space
- the machine has large caches, model files, partial downloads, or trash
- the user wants a safe shortlist, not blind cleanup
- the environment is Windows or Linux and the repo tools are available
Do not use this skill when:
- the user wants automatic cleanup without review
- the environment is unrelated to this repository and its workflow
- the task is generic system administration with no need for disk-space triage
Safety Rules
- Never change files automatically.
- Never emit cleanup commands.
- Suggest human review only.
- Read compact outputs before raw exports.
- Treat partial downloads, trash, and cache as
review first. - Treat model assets, checkpoints, and live app inputs as
review carefully. - Treat Docker storage, swap, and system-owned paths as
keep protected. - Treat
probable duplicatesas suspicion, not proof. - Treat
protected huge hotspotsas visibility findings, not action cues. - If
ncduis missing on Linux and installation needssudo, use the repo install path only; do not invent alternate flows. - Never store credentials or passwords in the repository.
Repository Entry Points
README.md: project overview and commandsAGENTS.md: repository entrypoint for agents- local
.agent/HANDOFF.mdif present: volatile operator memory, not required for the public repository python -m dirstat_skill.cli: generic CLIscripts/linux/*.sh: Linux helper scripts onlyscripts/windows/*.ps1: Windows helper scripts only
Standard Workflow
1. Read State First
Read:
README.md- local
.agent/HANDOFF.mdonly if it exists in the current working copy
If the repo already contains recent audit results or blockers, continue from there instead of redoing the whole flow.
2. Choose The Right Runtime Path
- On Windows:
- use the native CLI with explicit
--path
- use the native CLI with explicit
- On Linux:
- use the generic CLI with
--engine ncdu - or use
scripts/linux/helpers when they make the flow faster
- use the generic CLI with
- On remote or mixed-machine setups:
- run the scan on the machine that owns the filesystem
- move only the compact outputs elsewhere for review
- if a Linux or DGX host already has remote shell access to a Windows host, launch the
windows-nativeCLI on that Windows host instead of scanning a mounted Windows path from Linux - do not force Linux
ncduonto Windows-style paths or Windows runtime onto Linux-style paths
3. Windows Read-Only Audit
Run:
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:
- a new run folder or explicit output folder
- a raw export file
summary.mdtop_dirs.csvtop_files.csvcandidates.jsonreview_candidates.csvreview_report.mdrun.log
To 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
4. Linux Read-Only Audit
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:
- a new run folder under
outputs/ - a raw export file
- compact report files generated by the Python CLI
If ncdu is missing, use:
bash scripts/linux/install_ncdu.sh
5. Optional Linux Helper Workflow
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
5.1 Optional Windows Helper Workflow
powershell -ExecutionPolicy Bypass -File scripts/windows/run_audit.ps1 -TargetPath C:\ -OutputDir ou
Установить DirStat_Skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл DirStat_Skill?
Use 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.
Как установить скилл DirStat_Skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл DirStat_Skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic