katopz/katgpt-rs / .agents/skills/disk-clean
disk-clean
VerifiedAudit and reclaim disk space across the multi-repo workspace, home caches, and SDXC1TB. Scans cargo target dirs, incremental caches, GGUF model dirs, Unity Library caches, rustup and cargo registries. Classifies findings into regenerable-safe, load-bearing, and irreplaceable — the regenerable-safe class is deleted autonomously (before/after measured and reported), the load-bearing and irreplaceable classes are presented as a list for user approval and deleted only per approved item. Use when disk is full or low, before large builds or GPU training runs, or when asked what can be deleted or cleaned.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| tools/scan_exact.py | script | 1.5 KB |
| tools/scan_leaves.py | script | 1.3 KB |
| tools/scan_sum.py | script | 1.3 KB |
tools/scan_sum.py
View on GitHubimport re, collections, sys
# Progressive `dir /s /-C` output summarizer: groups per-directory "N File(s) M bytes"
# lines under their "Directory of <prefix>\<rest>" heading, rolled up to `depth` path
# components below `prefix`. Lines seen before any heading are ignored (the root
# summary). Partial scans sum only the directories already listed.
#
# Usage: py scan_sum.py <scan.txt> [prefix] [depth]
# prefix default: E:\git — quote backslashes are literal in the dir output.
path = sys.argv[1] if len(sys.argv) > 1 else 'E:/git/scan_vendor.txt'
prefix = sys.argv[2] if len(sys.argv) > 2 else 'E:\\git'
depth = int(sys.argv[3]) if len(sys.argv) > 3 else 1
sizes = collections.OrderedDict()
cur = None
pat_dir = re.compile(re.escape('Directory of ' + prefix) + r'\\(.*)$')
pat_files = re.compile(r'^\s*\d+ File\(s\)\s+(\d+) bytes')
for line in open(path, encoding='utf-8', errors='replace'):
m = pat_dir.search(line)
if m:
parts = m.group(1).split('\\')
cur = '\\'.join(parts[:depth]) if parts[0] else '.'
sizes.setdefault(cur, 0)
continue
m = pat_files.match(line)
if m and cur:
sizes[cur] += int(m.group(1))
total = 0
for k, v in sorted(sizes.items(), key=lambda kv: -kv[1]):
total += v
print(f"{v/1073741824:8.2f} GB {k}")
print(f"{total/1073741824:8.2f} GB TOTAL")
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |