# Source Command Clean

> Clean build artifacts and cache files

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

---


# source-command-clean

Use this skill when the user asks to run the migrated source command `clean`.

## Command Template

Clean all build artifacts, cache files, and temporary files from the project.

Execute the following cleanup commands:

1. Remove Python cache: `find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true`
2. Remove .pyc files: `find . -type f -name "*.pyc" -delete`
3. Remove pytest cache: `rm -rf .pytest_cache`
4. Remove coverage data: `rm -rf htmlcov .coverage coverage.xml`
5. Remove build artifacts: `rm -rf dist build *.egg-info`
6. Remove mypy cache: `rm -rf .mypy_cache`
7. Remove ruff cache: `rm -rf .ruff_cache`

Report back with:

- List of directories/files removed
- Disk space freed
- Confirmation that working directory is clean

