clean-build

Clean and rebuild all packages in a pnpm-based monorepo.

80|49|Updated Mar 27, 2022
One-click install
npx skills add https://github.com/cartridge-gg/controller --skill clean-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-build
Source: https://github.com/cartridge-gg/controller/tree/main/.agents/skills/clean-build
Command: npx skills add https://github.com/cartridge-gg/controller --skill clean-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates build-time pain by removing all artifacts and forcing a fresh rebuild when caches become stale or builds fail after updates.

Core Features & Use Cases

  • Full clean and rebuild: removes generated artifacts, clears caches, and rebuilds every package in the workspace.
  • Cache resilience: resolves Turbo cache issues that cause unexpected failures.
  • Dependency update readiness: ensures new dependencies are integrated cleanly after updates.

Quick Start

Run the full clean-build sequence to reset artifacts, reinstall dependencies, and rebuild all packages.

Frequently Asked Questions about clean-build

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean and rebuild a pnpm monorepo from scratch?

A full clean and rebuild removes all generated build artifacts, clears caches, and reinstalls dependencies to rebuild every package in the pnpm workspace from scratch. This eliminates stale cache issues and resolves mysterious build failures.

Why does my pnpm build fail after a dependency update?

Build failures after a dependency update often stem from stale caches or conflicting generated artifacts. A full clean and rebuild removes these artifacts and forces fresh dependency integration, ensuring new packages are installed cleanly without residual state.

When should I clear the Turbo cache in a pnpm workspace?

Clear the Turbo cache during stale cache events, mysterious build failures, or after dependency updates. A full clean rebuild resolves these unexpected Turbo cache issues by removing all prior cached outputs and forcing a fresh execution.

Do I need a Node.js environment to run a full pnpm clean and rebuild?

Yes, you need a Node.js and pnpm-enabled workspace with access to the repository root to execute the clean and rebuild workflow. This environment is required to successfully run the pnpm clean, pnpm install, and pnpm build commands.

What's the best way to reset stale build artifacts in a pnpm monorepo?

The best way to reset stale build artifacts in a pnpm monorepo is to automate a full clean-and-rebuild workflow. This removes all generated artifacts and clears caches, rebuilding every package from scratch to resolve mysterious failures.