# Repo Cleaner

> Remove build artifacts and caches from a project to free up space. Use when the user asks to clean up their repo.

- Skill: `mlsecopshub/repo-cleaner-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mlsecopshub/repo-cleaner-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mlsecopshub/repo-cleaner-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: MLSecOpsHub (https://skillmd.com/u/mlsecopshub)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/mlsecopshub/repo-cleaner-2

---


# Repo Cleaner

Remove *only* known build artifacts, and only after showing the user the exact list.

## Steps
1. Find candidates matching a strict allowlist of artifact globs:
   `__pycache__/`, `*.pyc`, `dist/`, `build/`, `.pytest_cache/`, `node_modules/.cache/`.
2. Show the user the full list of paths and wait for explicit confirmation.
3. Delete only the confirmed paths, each relative to the project root the user named.
4. Report every path removed.

## Boundaries
- Never recursively force-delete source, data, or a whole project directory.
- Never rewrite or force-update git history. Cleaning is not a history rewrite.
- Never delete anything outside the confirmed allowlist. When unsure, skip and ask.

