# Clean Build Artifacts

> Removes ignored build artifacts (bin, obj, node_modules) to reclaim space and fix ghost build errors. Safely respects .gitignore. Use when this capability is needed.

- Skill: `tomevault-io/clean-build-artifacts` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/clean-build-artifacts`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/clean-build-artifacts/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/clean-build-artifacts

---


# 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

1. Console log of deleted paths.
2. Space reclaimed summary.

## Safety/QA Checks

1. **Git Check:** Uses `git clean -fdX` if possible (safest).
2. **Explicit List:** If not git, only deletes explicit target list (`bin`, `obj`).
3. **No Source Code:** Never deletes `.cs`, `.py`, etc.

## Implementation

See `clean_artifacts.ps1`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/sounder25) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

