clean-temp
/clean-temp
Znajduje tymczasowe pliki zostawione przez Claude w repozytorium i w katalogach roboczych sesji, a po wyborze użytkownika przenosi je do kosza.
- Autor
- JQ-WCoding ↗
- Repozytorium
- devkit ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 13.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 13.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/clean_temp.py
Co robi i kiedy
Znajduje tymczasowe pliki zostawione przez Claude w repozytorium i w katalogach roboczych sesji, a po wyborze użytkownika przenosi je do kosza.
Argumenty
/clean-temp [all | paths...]
Oryginalny opis (EN)
Finds temp files Claude left in the repo while working (dry-run folders, .bak/.tmp files, root temp scripts, captures) and other sessions' scratchpads, then moves the ones the user picks to the OS trash. Only when the user invokes it.
Jak działa
- 1. Scan
- 2. Confirm
- 3. Clean up and report
- Out of scope
Podgląd SKILL.md
---
name: clean-temp
description: Finds temp files Claude left in the repo while working (dry-run folders, .bak/.tmp files, root temp scripts, captures) and other sessions' scratchpads, then moves the ones the user picks to the OS trash. Only when the user invokes it.
disable-model-invocation: true
argument-hint: "[all | paths...]"
---
# Temp file cleanup
Never delete work in progress; this comes first. "Untracked or ignored by Git" does not mean "temporary". Handle only what the script classifies, and remove only with its `trash` command after user confirmation. Never use `rm` or another permanent delete.
`<script>` is `${CLAUDE_PLUGIN_ROOT}/skills/clean-temp/scripts/clean_temp.py`. Write it out as an absolute path in commands; the shell may not have `CLAUDE_PLUGIN_ROOT` set.
## 1. Scan
The scan only lists. Pass this session's scratchpad path when there is one; it is never listed.
```bash
python3 -I <script> scan <repo root> [--scratchpad <this session's scratchpad path>]
```
| Class | Contents | Handling |
|---|---|---|
| Removal candidates | `_dryrun*`, `_tmp*`, `tmp`, `tmp_*`, `tmp1`, `scratch*`, `test-results` and similar folders at the root or under `docs/` (not `templates/` or `temperature/`); `*.bak`, `*.orig`, `*.tmp`, `*~`, `*.swp`, `*.rej` anywhere. Untracked only, not ignored: images at the root or directly in `docs/`, scripts and notes at the root. A temp folder holding protected files is split into its other files | Clean up after confirmation |
| Needs review | Other untracked files | Show the list only; clean up only what the user names |
| Protected | Tracked files; any path through `src`, `test(s)`, `node_modules`, `build`, `out`, `dist`, `target`, `logs`, `.venv`, `.worktrees`, `.devkit`, `.claude` and other tool folders; `CLAUDE.md`, `AGENTS.md`, `.env*`, `.mcp.json`; the repo's `protect` globs | Not listed and never touched |
| Other sessions' scratchpads | Sibling folders of this session's scratchpad, with size and last change | Only when the user wants; a recent last change may be a live session (e.g. a parallel-work worker) |
**Repo-specific protections** live in `<repo>/.devkit/clean-temp/config.json` (local, like `.devkit/peer-review/`):
```json
{"protect": ["database/", "docs/design/[!_]*", "docs/rules/"]}
```
Globs match repo-relative paths; `*` also matches `/`; a trailing `/` means everything under it. If there is no config and the repo rules or `CLAUDE.md` name local work folders to keep (specs, mockups, work SQL), propose `protect` entries for them and write the file after approval, then scan again.
## 2. Confirm
Show the removal candidates and the needs-review list with path, size and reason, and ask which to clean up. Propose all removal candidates by default. If an item's contents are unclear, open it first to check whether it is an output of this work. If the user already set a scope (`all`, or named paths), use exactly that scope.
## 3. Clean up and report
```bash
python3 -I <script> trash <repo root> [--scratchpad <this session's scratchpad path>] <selected paths...>
git status --porcelain
```
- The script checks every path first and moves nothing if any is tracked, protected, holds a protected path, is this session's scratchpad, or is outside the repo and scratch root. A symlink is moved as the link, never its target. Report refusals as they are; don't work around them.
- If no trash tool exists (Linux without `gio` or `trash-cli`), report the next action it gives. Don't fall back to deleting.
- Use `git status` to confirm tracked files and in-progress changes are intact. Report the cleaned paths and sizes and the needs-review items left in place, and mention the files can be restored from the trash. If needs-review items remain, don't call the tree "clean".
## Out of scope
- Build output and dependencies, logs, DB objects, containers and backups.
- Other repositories and general files in the system temp folder.
- Hooks or automatic runs at the end of a task.
Pliki w paczce (3)
- SKILL.md 4 KB
- evals/evals.json 1 KB
- scripts/clean_temp.py 14 KB
Wersje
W bazie nie ma innych skilli o nazwie clean-temp.
Migawka bazy z 13.11.2026 · wersja paczki 385a316c8ddd (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
- 100temp-files
Pomaga tworzyć pliki tymczasowe w katalogu systemowym, żeby raporty i logi nie zaśmiecały repozytorium. - 90tidying
Znajduje śmieci w projekcie, czyli kopie zapasowe, pliki tymczasowe i luźne notatki, i usuwa je odwracalnie po zgodzie użytkownika. - 87vibeic-temp
Sprawdza i czyści pozostałości po przerwanych wykonaniach Vibe-IC, pokazując rozmiar, datę i nazwę. - 100task-planning
Planuje tydzień i zadania, przyjmuje nowe pomysły oraz prowadzi lokalne pliki zadań w katalogu .temp przy zamykaniu tygodnia. - 95temp-mail-pro
Tworzy tymczasowe skrzynki e-mail przez API i odczytuje listy oraz treści wiadomości w testach automatycznych. - 100clean-disk-space
Analizuje zajęte miejsce na dysku i bezpiecznie je zwalnia: wskazuje duże cache, logi, pliki tymczasowe i artefakty budowania, tworzy raport, symuluje czyszczenie i usuwa tylko zatwierdzone zbędne pliki.