SKILL-004: Clean Build Artifacts
Overview
Build artifacts can accumulate and cause subtle build errors or disk bloat. This skill "deep cleans" a workspace by removing generated folders that match standard patterns.
Trigger Phrases
- •
clean artifacts - •
clean build - •
wipe bin obj - •
reset workspace
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--target | string[] | No | bin,obj,node_modules | Folders to remove |
--dry-run | switch | No | False | List what would be deleted |
Outputs
- •Console log of deleted paths.
- •Space reclaimed summary.
Safety/QA Checks
- •Git Check: Uses
git clean -fdXif possible (safest). - •Explicit List: If not git, only deletes explicit target list (
bin,obj). - •No Source Code: Never deletes
.cs,.py, etc.
Implementation
See clean_artifacts.ps1.