Przejdź do treści
Biblioteka skilli
Produktywność osobista · Przegląd i audyt

scan

/scan

Pokazuje, ile miejsca zajmuje folder projektu i co można bezpiecznie usunąć, np. node_modules czy cache, tylko do odczytu. Przydaje się, gdy projekt jest ogromny.

Repozytorium
claude-plugins ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pokazuje, ile miejsca zajmuje folder projektu i co można bezpiecznie usunąć, np. node_modules czy cache, tylko do odczytu. Przydaje się, gdy projekt jest ogromny.

Argumenty

/scan [DIR]
Oryginalny opis (EN)

Break down how much space a project folder or directory uses and which of it can be safely reclaimed (node_modules, build output, caches, logs, git worktrees). Use when asked why a folder or project is huge, how to free up space in it, or whether something in it is safe to delete. Read-only; never deletes without confirmation; git-aware. For the whole machine, use /disk-reclaim:system.

Jak działa

  1. 1. Run the scanner
  2. 2. Read the result, then add judgment
  3. 3. Purging SAFE items (the built-in purge option)
  4. 4. Other deletions (only after the user says yes)
  5. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 52 linii, 642 słów
Podgląd SKILL.md
---
name: scan
description: Break down how much space a project folder or directory uses and which of it can be safely reclaimed (node_modules, build output, caches, logs, git worktrees). Use when asked why a folder or project is huge, how to free up space in it, or whether something in it is safe to delete. Read-only; never deletes without confirmation; git-aware. For the whole machine, use /disk-reclaim:system.
argument-hint: "[DIR]"
---

# scan

Plugin root: `${CLAUDE_PLUGIN_ROOT}`. Scripts are in `${CLAUDE_PLUGIN_ROOT}/scripts/`; shared guidance is in `${CLAUDE_PLUGIN_ROOT}/references/`.

Scan the directory in `$ARGUMENTS` (default: the current directory). Answer two questions: **where is the space going**, and **what can be given back without losing anything that cannot be rebuilt**. Analysis is read-only. Deleting is a separate, confirmed step.

**Non-negotiables** (full text in `${CLAUDE_PLUGIN_ROOT}/references/deletion-rules.md`, read it before removing anything):

- Show a dry run first. Remove nothing until the user has approved the items by name.
- Re-check each item immediately before it runs; skip and report any that changed.
- Prefer reversible actions. Never use `--force`, `git clean -x` or `git reset --hard`, and never delete branches, unless the user asks for that exact thing.
- Never propose KEEP items, and never promote a VERIFY item because it is old.

## 1. Run the scanner

```bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/scan.py [DIR] [--top 15] [--min-mb 20] [--max-depth 6]
```

`DIR` defaults to the current directory. It prints markdown: largest subdirectories, reclaimable items grouped by safety tier and category, git worktrees, large files, and proposed (not executed) commands. Add `--json` if you need to post-process, `--min-mb 0 --top 200` to see small items.

On a very large tree the scan can take a few minutes (it honours `--max-seconds` and says so if it stopped early). If the user points it at a home directory or `/`, narrow it first (for example the projects folder) because a whole-disk scan mostly finds things nobody wants removed.

## 2. Read the result, then add judgment

The script classifies; you decide what to say. Present a short summary first (total, free space, the few biggest wins), then the tables. Keep it compact: sizes human-readable, top N only.

Read `${CLAUDE_PLUGIN_ROOT}/references/tiers-and-gates.md` for what SAFE, VERIFY and KEEP mean and how to treat each. If the result looks surprising (a "SAFE" item you doubt, a huge KEEP), check it yourself rather than repeating the label.

## 3. Purging SAFE items (the built-in purge option)

After the report, offer to purge the SAFE items. Ask which categories (build caches, build output, dependency caches) and confirm the policy, because it is a judgment about the user's workflow, not a fact: by default the purge keeps build output in **high-traffic checkouts** (a normal clone, and any worktree named `main`) so they stay ready to build and run, and clears the same output from linked worktrees and other low-traffic copies, where it only takes up space.

```bash
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/scan.py DIR --json > /tmp/scan.json
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/reclaim.py /tmp/scan.json --categories "build cache,build output" --exclude some/path   # dry run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/reclaim.py /tmp/scan.json --categories "build cache,build output" --exclude some/path --execute
```

`reclaim.py` is a dry run unless `--execute` is given. It re-verifies every item at that moment (still git-ignored, no tracked files, no key material, manifest beside it), skips any checkout with a process running in it, removes only directories with known derived-output names, writes a log, and reports the free space gained. Always show the user the dry-run table first, and exclude any single item they are unsure of (a huge `build/` folder can be a packaged deliverable). Use `--no-protect` only if the user asks to clear the high-traffic checkouts too.

## 4. Other deletions (only after the user says yes)

Read `${CLAUDE_PLUGIN_ROOT}/references/deletion-rules.md` and follow it: show the exact commands and the space they free, re-check just before acting, prefer reversible actions, and report what was removed, what was skipped and why.

## Notes

- Sizes are block usage from `du`; hard-linked or copy-on-write files (pnpm stores, APFS clones) can make real savings smaller.
- Works on macOS and Linux with no configuration and no paths baked in. Standard library Python 3 only; needs `du`, and `git` for the repository-aware checks.
- **This tool deletes data** once `reclaim.py --execute` is given, after the dry run and the user's approval. Provided as is, without warranty (MIT licence).

Wersje

RepozytoriumWynikLicencja
Ta strona · jwill824/claude-plugins100MIT
tony/skills100MIT
zealynxsecurity/krait100MIT
koda-ai-studio/agent-bom100Apache-2.0
cwinvestments/memstack100MIT
x-cmd/x-cmd100Apache-2.0
duc01226/EasyPlatform100MIT
duc01226/EasyPlatform100MIT
wshobson/agents100MIT

Migawka bazy z 13.11.2026 · wersja paczki 894b6b368efa (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90free-up-disk-space
    Zwalnia miejsce na dysku Maca bezpiecznie: pokazuje, co zajmuje przestrzeń, czyści pamięci podręczne i symulatory oraz ocenia, czy folder można usunąć.
  • 100cleanup
    Zwalnia miejsce na komputerze: pokazuje, co zajmuje najwięcej, dlaczego jest bezpieczne do usunięcia, a usuwa wyłącznie wskazane przez właściciela.
  • 100safe-disk-cleanup
    Diagnozuje zajęte miejsce na dysku dewelopera i wskazuje, co można usunąć, po zatwierdzeniu planu. Przydaje się, gdy dysk jest pełny.
  • 100pro-disk-cleanup
    Szuka i bezpiecznie zwalnia miejsce na dysku na macOS, Windows i Linuksie: skan tylko do odczytu, trzy poziomy, kopie zapasowe, cache i Docker.
  • 100mac-storage-cleaner
    Bezpiecznie odzyskuje miejsce na dysku Maca w przejrzysty i odwracalny sposób: czyści cache, usuwa pozostałości po odinstalowanych aplikacjach i wskazuje, co zajmuje dysk.
  • 100mac-storage-saver
    Szuka, co zajmuje miejsce na Macu, sortuje foldery na bezpieczne do usunięcia i na wymagające zgody, a usuwa tylko zatwierdzone.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.