clean

Reset a project to its clean starter state by removing generated artefacts.

10|5|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/SylvainChabaud/spec-to-code-factory --skill clean-sylvainchabaud
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clean
Source: https://github.com/SylvainChabaud/spec-to-code-factory/tree/main/.claude/skills/clean
Command: npx skills add https://github.com/SylvainChabaud/spec-to-code-factory --skill clean-sylvainchabaud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Re-establishes a project in its original starter configuration by removing generated artefacts and resetting state to a clean baseline.

Core Features & Use Cases

  • Safe reset: prompts for confirmation and, if approved, removes generated artefacts to restore starter structure.
  • Flexible modes: supports --force to skip confirmation and --dry-run to preview removals.
  • Script-driven: delegates the reset to a dedicated tool (tools/clean.js) for consistent, repeatable resets across projects.

Quick Start

Run the reset flow to restore the project to its starter state.

Frequently Asked Questions about clean

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

FAQPage Schema
How do I reset a Node project to a clean starter state after generated artifacts pile up?▼

To reset a Node project to a clean starter state, run a deterministic workflow that removes generated artifacts and restores the baseline structure. The process delegates the actual reset to tools/clean.js for consistent results.

What is the safest way to remove generated artifacts during brownfield maintenance?▼

The safest way to remove generated artifacts during brownfield maintenance is using a reset workflow that prompts for confirmation by default before deleting files, ensuring you do not accidentally lose necessary project state.

Can I preview artifact removals before resetting my codebase to its baseline?▼

Yes, you can preview artifact removals before resetting your codebase by running the workflow with the --dry-run flag. This allows you to see exactly what will be deleted without actually modifying the project structure.

Does the project reset workflow support skipping the confirmation prompt?▼

Yes, the project reset workflow supports skipping the confirmation prompt. You can use the --force override flag to bypass the prompt, which is useful for automating fresh starts in codebases without manual intervention.

Why use a dedicated script like tools/clean.js to restore a project's starter configuration?▼

Using a dedicated script like tools/clean.js to restore a project's starter configuration ensures safe, repeatable resets across projects. It standardizes the removal of generated artifacts so the baseline structure is reliably re-established.