# Clean Build

> Clean all build artifacts and rebuild from scratch. Use when experiencing stale build artifacts, Turbo cache issues, mysterious build failures, or after dependency updates.

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

---


# Clean Build Skill

Clean all build artifacts and rebuild from scratch.

## Usage

Use when experiencing:
- Stale build artifacts
- Turbo cache issues
- Mysterious build failures
- After dependency updates

## Steps

1. Run `pnpm clean` to remove build artifacts and prune store
2. Reinstall dependencies with `pnpm i`
3. Run `pnpm build` to rebuild all packages
4. Verify build success
5. Optional: Run tests to ensure everything works

## Notes

- Turbo uses aggressive caching - clean build resolves most cache issues
- WASM dependencies (controller-wasm, session-wasm) rebuilt automatically
- GraphQL codegen runs automatically during keychain build

