Skip to content
Design
Command

/cleanup

Remove all temporary design lab files created during a design-and-refine session

From plugin
design-plugin
7852 skills2 commands
> /plugin marketplace add 0xdesign/design-plugin

Command definition

cleanup.md
description: Remove all temporary design lab files created during a design-and-refine session

Cleanup Command

Manually clean up all temporary files created during a design-and-refine session.

Usage

/design-and-refine:cleanup

What This Does

Removes all temporary files and directories created during design exploration:

1. **`.claude-design/`** - The main temporary directory containing:

  • Design lab variants
  • Preview files
  • Design brief JSON
  • Run logs

2. **Temporary routes:**

  • `app/__design_lab/` (Next.js App Router)
  • `app/__design_preview/` (Next.js App Router)
  • `pages/__design_lab.tsx` (Next.js Pages Router)
  • `pages/__design_preview.tsx` (Next.js Pages Router)

3. **Any App.tsx modifications** (for Vite projects without routers)

Instructions

When this command is invoked:

1. Check if `.claude-design/` directory exists 2. If it exists, list the contents and ask for confirmation before deleting 3. Check for temporary route files in common locations 4. Delete confirmed files 5. Report what was deleted

**Safety rules:**

  • ONLY delete files inside `.claude-design/`
  • ONLY delete route files that match the plugin's naming pattern (`__design_lab`, `__design_preview`)
  • Always confirm with the user before deleting
  • Never delete user-authored files
@0xdesign
Ships withdesign-plugin

A Claude Code plugin that helps you make confident UI design decisions through rapid iteration.

Stars on GitHub

Momentum

stars in total
785
Star history of 0xdesign/design-plugin on GitHub, a chart by star-history.com

Other commands on design-plugin.

start

start

Command

Start a design and refine session - generate variations, collect feedback, and iterate to the perfect design

@0xdesign@0xdesignInstall Command

More commands from other plugins.

od-contribute
Auto-invoked

od-contribute

Command

Open a first-contribution PR (or bug issue) on nexu-io/open-design — works for non-coders too.

open-designtoday108k
@nexu-io@nexu-ioInstall Command
design-deslop

design-deslop

Command

Strip the signatures that make a UI look AI-generated — flat hierarchy, no focal point, monotone layout, timid palettes, generic…

@dammyjay93@dammyjay93Install Command