| name | source-command-clean |
| description | Clean build artifacts and cache files |
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:
- Remove Python cache:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
- Remove .pyc files:
find . -type f -name "*.pyc" -delete
- Remove pytest cache:
rm -rf .pytest_cache
- Remove coverage data:
rm -rf htmlcov .coverage coverage.xml
- Remove build artifacts:
rm -rf dist build *.egg-info
- Remove mypy cache:
rm -rf .mypy_cache
- Remove ruff cache:
rm -rf .ruff_cache
Report back with:
- List of directories/files removed
- Disk space freed
- Confirmation that working directory is clean