Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

jagones84от 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 space
  • path safety
  • nearby references
  • signature heuristics
  • probable duplicates
  • protected huge hotspots

Attention levels remain compact:

  • review first
  • review carefully
  • keep 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 duplicates as suspicion, not proof.
  • Treat protected huge hotspots as visibility findings, not action cues.
  • If ncdu is missing on Linux and installation needs sudo, 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 commands
  • AGENTS.md: repository entrypoint for agents
  • local .agent/HANDOFF.md if present: volatile operator memory, not required for the public repository
  • python -m dirstat_skill.cli: generic CLI
  • scripts/linux/*.sh: Linux helper scripts only
  • scripts/windows/*.ps1: Windows helper scripts only

Standard Workflow

1. Read State First

Read:

  • README.md
  • local .agent/HANDOFF.md only 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
  • On Linux:
    • use the generic CLI with --engine ncdu
    • or use scripts/linux/ helpers when they make the flow faster
  • 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-native CLI on that Windows host instead of scanning a mounted Windows path from Linux
    • do not force Linux ncdu onto 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.md
  • top_dirs.csv
  • top_files.csv
  • candidates.json
  • review_candidates.csv
  • review_report.md
  • run.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
Полный SKILL.md на ClawHub

Установить 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить DirStat_Skill с