plugins/claude/code/commands/clean.md
Snider fc6519cd28
feat(code): add /code:clean command for project cleanup (#100)
Add cleanup command to remove generated files:
- Clears cache directories (storage/framework/cache, bootstrap/cache)
- Removes build artifacts (public/build, public/hot)
- Optional --deps flag to remove vendor/node_modules
- --cache flag for cache-only cleanup
- --dry-run for safe preview

Migrated from core-claude PR #45.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 07:31:20 +00:00

24 lines
511 B
Markdown

---
name: clean
description: Clean up generated files, caches, and build artifacts.
args: "[--deps] [--cache] [--dry-run]"
---
# Clean Project
This command cleans up generated files from the current project.
## Usage
```
/code:clean # Clean all
/code:clean --deps # Remove vendor/node_modules
/code:clean --cache # Clear caches only
/code:clean --dry-run # Show what would be deleted
```
## Action
```bash
"${CLAUDE_PLUGIN_ROOT}/scripts/cleanup.sh" "$@"
```