Skip to content
Design
Command

/cleanup

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

BOOST
From plugin
design-plugin
7802 skills2 commands
Install
> /plugin marketplace add 0xdesign/design-plugin

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cleanup

Context preview

What this command does when you run it.

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

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
Ships withdesign-plugin

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

Get the whole plugin
Stats
780
Stars
45
Forks
Active
Maintenance
TypeScript
Language
20d ago
Last commit
8mo ago
Created
3h ago
Added

Repo: 0xdesign/design-plugin

Other commands on design-plugin.