DE

Conducts design interviews and generates five UI variations for evaluation, including automated cleanup of temporary files.

Install

mkdir -p .claude/skills/design-lab && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1314" && unzip -o skill.zip -d .claude/skills/design-lab && rm skill.zip

Installs to .claude/skills/design-lab

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Conduct design interviews, generate five distinct UI variations in a temporary design lab, collect feedback, and produce implementation plans. Use when the user wants to explore UI design options, redesign existing components, or create new UI with multiple approaches to compare.
280 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Automatically identifies package managers like pnpm, yarn, or npm
  • Detects UI frameworks including Next.js, Vite, Remix, Nuxt, and Astro
  • Identifies styling systems such as Tailwind, MUI, or Styled Components
  • Parses existing design documentation to maintain consistency
  • Generates five distinct UI variations for comparative review

How it works

It performs a static analysis of project config files to detect the stack, then conducts a structured interview before spinning up a temporary design sandbox.

Inputs & outputs

You give it
User request for new UI or component redesign
You get back
Comparison report with five UI variations and an implementation plan

When to use design-lab

  • Explore multiple UI component variations
  • Redesign existing interface elements
  • Generate implementation plans from design feedback

About this skill

Design Lab Skill

This skill implements a complete design exploration workflow: interview, generate variations, collect feedback, refine, preview, and finalize.

CRITICAL: Cleanup Behavior

All temporary files MUST be deleted when the process ends, whether by:

  • User confirms final design → cleanup, then generate plan
  • User aborts/cancels → cleanup immediately, no plan generated

Never leave .claude-design/ or __design_lab routes behind. If the user says "cancel", "abort", "stop", or "nevermind" at any point, confirm and then delete all temporary artifacts.


Phase 0: Preflight Detection

Before starting the interview, automatically detect:

Package Manager

Check for lock files in the project root:

  • pnpm-lock.yaml → use pnpm
  • yarn.lock → use yarn
  • package-lock.json → use npm
  • bun.lockb → use bun

Framework Detection

Check for config files:

  • next.config.js or next.config.mjs or next.config.tsNext.js
    • Check for app/ directory → App Router
    • Check for pages/ directory → Pages Router
  • vite.config.js or vite.config.tsVite
  • remix.config.jsRemix
  • nuxt.config.js or nuxt.config.tsNuxt
  • astro.config.mjsAstro

Styling System Detection

Check package.json dependencies and config files:

  • tailwind.config.js or tailwind.config.tsTailwind CSS
  • @mui/material in dependencies → Material UI
  • @chakra-ui/react in dependencies → Chakra UI
  • antd in dependencies → Ant Design
  • styled-components in dependencies → styled-components
  • @emotion/react in dependencies → Emotion
  • .css or .module.css files → CSS Modules

Design Memory Check

Look for existing Design Memory file:

  • docs/design-memory.md
  • DESIGN_MEMORY.md
  • .claude-design/design-memory.md

If found, read it and use to prefill defaults and skip redundant questions.

Visual Style Inference (CRITICAL)

DO NOT use generic/predefined styles. Extract visual language from the project:

If Tailwind detected, read tailwind.config.js or tailwind.config.ts:

// Extract and use:
theme.colors      // Color palette
theme.spacing     // Spacing scale
theme.borderRadius // Radius values
theme.fontFamily  // Typography
theme.boxShadow   // Elevation system

If CSS Variables exist, read globals.css, variables.css, or :root definitions:

:root {
  --color-*     /* Color tokens */
  --spacing-*   /* Spacing tokens */
  --font-*      /* Typography tokens */
  --radius-*    /* Border radius tokens */
}

If UI library detected (MUI, Chakra, Ant), read the theme configuration:

  • MUI: theme.ts or createTheme() call
  • Chakra: theme/index.ts or extendTheme() call
  • Ant: ConfigProvider theme prop

Always scan existing components to understand patterns:

  • Find 2-3 existing buttons → note their styling patterns
  • Find 2-3 existing cards → note padding, borders, shadows
  • Find existing forms → note input styles, label placement
  • Find existing typography → note heading sizes, body text

Store inferred styles in the Design Brief for consistent use across all variants.


Phase 1: Interview

Use the AskUserQuestion tool for all interview steps. Adapt questions based on Design Memory if it exists.

Step 1.1: Scope & Target

Ask these questions (can combine into single AskUserQuestion with multiple questions):

Question 1: Scope

  • Header: "Scope"
  • Question: "Are we designing a single component or a full page?"
  • Options:
    • "Component" - A reusable UI element (button, card, form, modal, etc.)
    • "Page" - A complete page or screen layout

Question 2: New or Redesign

  • Header: "Type"
  • Question: "Is this a new design or a redesign of something existing?"
  • Options:
    • "New" - Creating something from scratch
    • "Redesign" - Improving an existing component/page

If "Redesign" selected, ask: Question 3: Existing Path

  • Header: "Location"
  • Question: "What is the file path or route of the existing UI?"
  • Options: (let user provide via "Other")

If target is unclear, propose a name based on repo patterns and confirm.

Step 1.2: Pain Points & Inspiration

Question 1: Pain Points

  • Header: "Problems"
  • Question: "What are the top pain points with the current design (or what should this new design avoid)?"
  • Options:
    • "Too cluttered/dense" - Information overload, hard to scan
    • "Unclear hierarchy" - Primary actions aren't obvious
    • "Poor mobile experience" - Doesn't work well on small screens
    • "Outdated look" - Feels old or inconsistent with brand
  • multiSelect: true

Question 2: Visual Inspiration

  • Header: "Visual style"
  • Question: "What products or brands should I reference for visual inspiration?"
  • Options:
    • "Stripe" - Clean, minimal, trustworthy
    • "Linear" - Dense, keyboard-first, developer-focused
    • "Notion" - Flexible, content-focused, playful
    • "Apple" - Premium, spacious, refined
  • multiSelect: true

Question 3: Functional Inspiration

  • Header: "Interactions"
  • Question: "What interaction patterns should I emulate?"
  • Options:
    • "Inline editing" - Edit in place without modals
    • "Progressive disclosure" - Show more as needed
    • "Optimistic updates" - Instant feedback, sync in background
    • "Keyboard shortcuts" - Power user efficiency

Step 1.3: Brand & Style Direction

Question 1: Brand Adjectives

  • Header: "Brand tone"
  • Question: "What 3-5 adjectives describe the desired brand feel?"
  • Options:
    • "Minimal" - Clean, simple, uncluttered
    • "Premium" - High-end, polished, refined
    • "Playful" - Fun, friendly, approachable
    • "Utilitarian" - Functional, efficient, no-nonsense
  • multiSelect: true

Question 2: Density

  • Header: "Density"
  • Question: "What information density do you prefer?"
  • Options:
    • "Compact" - More information visible, tighter spacing
    • "Comfortable" - Balanced spacing, easy scanning
    • "Spacious" - Generous whitespace, focused attention

Question 3: Dark Mode

  • Header: "Dark mode"
  • Question: "Is dark mode required?"
  • Options:
    • "Yes" - Must support dark mode
    • "No" - Light mode only
    • "Nice to have" - Support if easy, not required

Step 1.4: Persona & Jobs-to-be-Done

Question 1: Primary User

  • Header: "User"
  • Question: "Who is the primary end user?"
  • Options:
    • "Developer" - Technical, keyboard-oriented
    • "Designer" - Visual, detail-oriented
    • "Business user" - Efficiency-focused, less technical
    • "End consumer" - General public, varied technical ability

Question 2: Context

  • Header: "Context"
  • Question: "What's the primary usage context?"
  • Options:
    • "Desktop-first" - Primarily used on larger screens
    • "Mobile-first" - Primarily used on phones
    • "Both equally" - Must work well on all devices

Question 3: Key Tasks

  • Header: "Key tasks"
  • Question: "What are the top 3 tasks users must complete?"
  • (Let user provide via "Other" - this is open-ended)

Step 1.5: Constraints

Question 1: Must-Keep Elements

  • Header: "Keep"
  • Question: "Are there elements that must be preserved?"
  • Options:
    • "Existing copy/labels" - Keep current text
    • "Current fields/inputs" - Keep form structure
    • "Navigation structure" - Keep current nav
    • "None" - Free to change everything

Question 2: Technical Constraints

  • Header: "Constraints"
  • Question: "Any technical constraints?"
  • Options:
    • "No new dependencies" - Use existing libraries only
    • "Use existing components" - Build on current design system
    • "Must be accessible (WCAG)" - Strict accessibility requirements
    • "None" - No special constraints
  • multiSelect: true

Phase 2: Generate Design Brief

After the interview, create a structured Design Brief as JSON and save to .claude-design/design-brief.json:

{
  "scope": "component|page",
  "isRedesign": true|false,
  "targetPath": "src/components/Example.tsx",
  "targetName": "Example",
  "painPoints": ["Too dense", "Primary action unclear"],
  "inspiration": {
    "visual": ["Stripe", "Linear"],
    "functional": ["Inline validation"]
  },
  "brand": {
    "adjectives": ["minimal", "trustworthy"],
    "density": "comfortable",
    "darkMode": true
  },
  "persona": {
    "primary": "Developer",
    "context": "desktop-first",
    "keyTasks": ["Complete checkout", "Review order", "Apply discount"]
  },
  "constraints": {
    "mustKeep": ["existing fields"],
    "technical": ["no new dependencies", "WCAG accessible"]
  },
  "framework": "nextjs-app",
  "packageManager": "pnpm",
  "stylingSystem": "tailwind"
}

Display a summary to the user before proceeding.


Phase 3: Generate Design Lab

Directory Structure

Create all files under .claude-design/:

.claude-design/
├── lab/
│   ├── page.tsx                 # Main lab page (framework-specific)
│   ├── variants/
│   │   ├── VariantA.tsx
│   │   ├── VariantB.tsx
│   │   ├── VariantC.tsx
│   │   ├── VariantD.tsx
│   │   └── VariantE.tsx
│   ├── components/
│   │   └── LabShell.tsx         # Lab layout wrapper
│   ├── feedback/                # Interactive feedback system
│   │   ├── types.ts             # TypeScript interfaces
│   │   ├── selector-utils.ts    # Element identification
│   │   ├── format-utils.ts      # Feedback formatting
│   │   ├── FeedbackOverlay.tsx  # Main overlay component
│   │   └── index.ts             # Module exports
│   └── data/
│       └── fixtures.ts          # Shared mock data
├── design-brief.json
└── run-log.md

Feedback System Setup (CRITICAL - NEVER SKIP)

The FeedbackOverlay is the PRIMARY feature of the Design Lab. Without it, users cannot provide interactive feedback. NEVER generate a Design Lab without the FeedbackOverlay.

Reliability Strategy: To avoid import path issues across different project configurations, create the FeedbackOverlay directly in the route directory (e.g., app/design-lab/FeedbackOverlay.tsx), NOT in .claude-design/. This


Content truncated.

When not to use it

  • When the user only needs a simple code refactor without UI changes
  • When the target framework is not supported by the detection logic

Prerequisites

Project must contain a package manager lockfileExisting design-memory.md or equivalent for context

Limitations

  • Temporary files must be manually cleaned or will be purged upon completion
  • Restricted to the specific list of frameworks and package managers hardcoded in the logic

How it compares

Unlike a standard prompt, this skill automates the detection of project-specific styling and architecture, ensuring variations are compatible with the existing environment.

Compared to similar skills

design-lab side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
design-lab (this skill)76moNo flagsIntermediate
ui-styling129moReviewBeginner
web-design-reviewer77moNo flagsIntermediate
frontend-design-pro108moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

ui-styling

mrgoonie

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

12132

web-design-reviewer

github

This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage, then performs fixes at the source code level.

750

frontend-design-pro

claudekit

Creates jaw-dropping, production-ready frontend interfaces AND delivers perfectly matched real photos (Unsplash/Pexels direct links) OR flawless custom image-generation prompts for hero images, backgrounds, and illustrations. Zero AI slop, zero fake URLs.

1011

tailwindcss-development

spatie

Styles applications using Tailwind CSS v4 utilities. Activates when adding styles, restyling components, working with gradients, spacing, layout, flex, grid, responsive design, dark mode, colors, typography, or borders; or when the user mentions CSS, styling, classes, Tailwind, restyle, hero section, cards, buttons, or any visual/UI changes.

413

frontend-enhancer

ailabs-393

This skill should be used when enhancing the visual design and aesthetics of Next.js web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. Use this skill for tasks like improving styling, creating responsive designs, implementing modern UI patterns, adding animations, selecting color schemes, or building aesthetically pleasing frontend interfaces.

35

bencium-innovative-ux-designer

bencium

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

11

Search skills

Search the agent skills registry