Skip to content
Back to skills

Cleanup

BSecurity

Clean workspace — build artifacts, dependencies, caches, Docker volumes, or temp files. Accepts arguments like build, deps, all, cache, docker, tasks, reinstall.

  • 11 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
ai-agentsnodedocker

Security analysis

B85/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned November 7, 2026

npx -y skills add brain-bootstrap/claude-code-brain-bootstrap --skill cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cleanup
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/brain-bootstrap-cleanup/badge)](https://www.skillsdirectory.com/skills/brain-bootstrap-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cleanup
description: Clean workspace — build artifacts, dependencies, caches, Docker volumes, or temp files. Accepts arguments like build, deps, all, cache, docker, tasks, reinstall.
---

# Cleanup Skill

Clean up workspace artifacts based on the requested scope.

## Usage

```
/cleanup              # Default: show what can be cleaned
/cleanup build        # Remove build artifacts
/cleanup deps         # Remove dependency directories (node_modules, venv, etc.)
/cleanup all          # Full clean: deps + build artifacts
/cleanup cache        # Clear build tool caches
/cleanup docker       # docker system prune -f (no named volumes removed)
/cleanup tasks        # Remove obsolete task files (lessons.md is NEVER deleted)
/cleanup reinstall    # Full reinstall: clean deps → install
```

## Instructions

### Determine action from $ARGUMENTS:

| Argument | Action |
|----------|--------|
| `build` or `dist` | Remove all build artifacts (`dist/`, `build/`, `.next/`, `target/`) |
| `deps` | Remove dependency directories (`node_modules/`, `venv/`, `.venv/`, `target/`) |
| `all` | Full clean: deps + build artifacts, then reinstall |
| `cache` | Clear build tool caches (`.turbo/`, `.cache/`, `__pycache__/`, `.mypy_cache/`) |
| `docker` | `docker system prune -f` (does NOT remove named volumes) |
| `tasks` | Clean obsolete task files (see rules below) |
| `reinstall` | Full reinstall: clean deps → install |

### Tasks file cleanup rules:
- **NEVER delete** `claude/tasks/lessons.md` (accumulated wisdom)
- **NEVER delete** `claude/tasks/CLAUDE_ERRORS.md` (bug history)
- `claude/tasks/todo.md` can be archived if no active task
- `claude/tasks/mr-description-*.md` can be deleted after MR is merged
- `claude/tasks/ticket-*.md` can be deleted after ticket is created

### Safety rules:
- NEVER run `rm -rf /`
- NEVER delete `.env` or `.env.*` files
- For `all`: confirm before deleting dependencies if `package.json`/`pyproject.toml` shows install script hooks
- For `docker`: confirm before running prune in production-adjacent environments

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.