⚡ Interactive guide for UX designers

Claude Code for
UX Designers

Learn to use Claude Code as your design copilot. From capturing Figma designs to building functional prototypes with Andes, all from the terminal.

claude — ~/ux-project
🎨

From Figma to Code

Capture any Figma design and turn it into a functional prototype in minutes, not hours.

📦

Your Andes Library

Access components and tokens from MELI's design system directly from your prompt.

🚀

Rapid Iteration

Modify, test, and refine prototypes with natural language. No coding skills required.

1

What is Claude Code

Claude Code is an AI agent that lives in your terminal. Unlike ChatGPT or Claude web, it's not just a chat: it has direct access to your files, can run commands, use Git, open the browser, and connect to external tools like Figma.

Think of it as a coworker sitting right next to you who can touch your computer: they read your files, write code, run commands, and show you the results. You tell them what you want and they do it.

How is it different?

❌ ChatGPT / Claude Web
- Can only chat
- You copy and paste code
- Doesn't know your files
- Can't execute anything
- Starts from scratch every time
✅ Claude Code (Terminal)
- Reads and edits your files
- Runs real commands
- Uses Git, npm, etc.
- Connects to Figma, Andes
- Knows your project context

How does it work?

You open the terminal, type claude and start talking to it in plain English. Claude analyzes your project, uses tools as needed, and shows you the result.

🧑‍🎨 Designer
🤖 Claude Code
🎨 Figma MCP
📦 Andes MCP
🌐 Playwright
💡 Tip
You don't need to know how to code to use Claude Code. You just need to know how to describe what you want. The agent takes care of writing the code for you.
2

Setup & Configuration

Everything you need to get started with Claude Code. Follow the steps in order.

2a Installation and first use

First, install Claude Code with this command:

bash
curl -fsSL https://claude.ai/install.sh | bash

Then, navigate to your project folder and start Claude:

bash
cd ~/my-ux-project
claude

The first time it will ask you to authenticate with your Anthropic account. Follow the on-screen instructions — it's a quick process through the browser.

ℹ️ Prerequisites
You need to have Node.js 18+ installed. If you don't have it, download it from nodejs.org.
2b CLAUDE.md — Your instructions file

The CLAUDE.md file is like a personal instruction manual for Claude. You place it in the root of your project and Claude reads it every time it starts. There you define your context, preferences, and rules.

There are three levels:

  • Project (./CLAUDE.md): instructions specific to this project
  • User (~/.claude/CLAUDE.md): your global preferences
  • Folders (./src/CLAUDE.md): instructions for a specific folder

Example CLAUDE.md for a UX Designer at MELI

markdown
# UX Project — Mercado Libre

## Role
I'm a UX/Product designer at Mercado Libre. I'm not a developer.
Explain things to me in simple terms.

## Prototype stack
- HTML + CSS + JS vanilla (standalone files)
- Use Andes components (our design system)
- Prototypes go in the /prototypes folder

## Design System: Andes
- Always check the Andes UI Library MCP before building
- Use design tokens (colors, typography, spacing)
- Prefer existing components over inventing new ones

## Figma
- When working with Figma, remember: node-id uses X:Y format (not X-Y)
- If a call fails with nodeId, retry without it

## Preferences
- Language: English
- When generating HTML, make it self-contained (a single file)
- Open prototypes in the browser automatically
- Explain what you did after each change
💡 Tip
The more context you provide in CLAUDE.md, the better results you'll get. It's like briefing a new teammate.
2c MCP Servers Configuration

MCP Servers (Model Context Protocol) are plugins that give Claude superpowers. They are configured in the .mcp.json file in the project root.

json
{
  "mcpServers": {
    "figma": {
      "command": "npx",
      "args": ["-y", "figma-developer-mcp", "--stdio"],
      "env": {
        "FIGMA_API_KEY": "your-figma-api-key"
      }
    },
    "andes-ui-library": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/andes-mcp"],
      "env": {}
    },
    "playwright": {
      "command": "npx",
      "args": ["@anthropic-ai/mcp-server-playwright"]
    }
  }
}
⚠️ Figma API Key
To get your Figma API key: Figma → Settings → Personal Access Tokens → Generate new token. Never share your API key or push it to Git.
2d Permissions and basic security

Claude Code asks for permission before performing actions. There are three levels:

  • Read files: always allowed
  • Write/edit files: asks for confirmation
  • Run commands (bash): asks for confirmation

You can configure what is allowed automatically and what isn't. For UX prototypes, you generally want to allow it to write HTML/CSS/JS files and open the browser.

bash
# View current permissions
claude config list

# Automatically allow file writing
claude config set autoApprove "write"
💡 Tip
If you're not sure, leave the default permissions. Claude will ask you for permission one by one and you can accept or reject on a case-by-case basis.
3

Core Concepts

Before diving into the recipes, let's understand how Claude Code thinks and works.

📋

Plan Mode vs Execution

When to plan and when to execute

Claude Code has two main modes:

  • Plan Mode (Shift+Tab): Claude investigates, reads files, and proposes a plan before doing anything. Ideal for complex tasks or when you're not sure what you want.
  • Direct execution: Claude directly reads, writes, and executes. Use it when you know exactly what you want.
📋 Use Plan Mode when...
- It's a new, large prototype
- You don't know where to start
- You want to see options first
- You're exploring your design system
⚡ Direct execution when...
- It's a specific change
- You want to add a component
- You need to fix something quickly
- You know exactly what to ask for
💡 Shortcut
Press Shift+Tab to toggle between Plan Mode and Execution within Claude Code.
🔧

Tools that Claude uses

Read, Write, Bash, MCPs and more

Claude Code has built-in tools that it uses automatically as needed. You don't have to call them yourself — just describe what you want.

Tool What it does Usage example
Read Reads files from your project Read the index.html file
Write Creates or overwrites files Create a new prototype
Edit Modifies parts of a file Change the button color
Bash Runs commands in the terminal Open the HTML in the browser
Glob/Grep Searches files and content Find all the prototypes
MCPs External tools (Figma, Andes...) Look at the design in Figma
💬

How to communicate with Claude

Good vs bad prompts, with examples

The quality of what you get depends directly on how you ask for things. Here are some principles:

❌ Vague prompt
"Make me a page"
✅ Prompt with context
"Create an HTML prototype of the
MercadoLibre checkout flow.
Use Andes components.
Include: cart, shipping details,
and purchase confirmation.
Open it in the browser when
you're done."
❌ Too generic
"Make it pretty"
✅ Specific and actionable
"Change the background to #EEEEEE,
make the primary button larger
(48px tall), and add 24px
of spacing between sections."
💡 Golden rule
Write your prompts as if you were giving instructions to a junior designer who is very capable but doesn't know your project. The more context, the better the result.
🧠

Context window

/compact, /clear, and how to manage memory

Claude has a "context window" — the amount of information it can keep in mind at the same time. Think of it as working memory.

  • /compact — Compresses the current conversation to free up space. Use it when you've been working for a while and feel that Claude is starting to get confused.
  • /clear — Clears the entire conversation and you start from scratch. Useful when you switch tasks completely.
💡 Tip
If a session gets too long and Claude starts repeating itself or getting confused, use /compact. If you switch projects, use /clear.
4

MCP Integrations

MCPs are Claude Code's superpower. Each one gives it access to an external tool. Explore each integration in the tabs.

Figma MCP

Connects Claude Code to Figma bidirectionally: you can read designs, capture screenshots, get metadata — and now also create designs directly in Figma and generate FigJam diagrams.

✨ New: Create designs in Figma
You can now ask Claude to create designs directly in Figma. Describe an interface and Claude generates it as real Figma layers you can edit. Only works with Claude Code and requires the remote Figma MCP server.

Read & analyze

Action Example prompt
Get screenshot Capture the design from this Figma URL: [url]
View metadata Get the metadata of the component in Figma: [url]
Design context Analyze the design context of this screen: [url]
Variables Show me the design variables from this file: [url]

Create & generate

Action Example prompt
Create design in Figma Create a login screen in Figma with email, password, and sign-in button. Use this file: [url]
Create FigJam diagram Generate a checkout process flowchart in FigJam: [url]
Read FigJam diagram Read the FigJam diagram and explain the flow it shows: [url]

Code Connect & handoff

Tools for connecting Figma components with your project's code, making the design-to-development handoff easier.

Action Example prompt
View existing mappings Show the Code Connect mappings between Figma and the codebase: [url]
Detect suggested mappings Analyze the Figma components and suggest mappings with the project code: [url]
Add mapping Connect the Figma Button component to the AndesButton code component: [url]
Confirm mappings Confirm and send the Code Connect mappings we reviewed

Utilities

Action Example prompt
Generate design system rules Generate a rules file for the design system based on Figma: [url]
Check connected user Which Figma account are you connected to?
⚠️ node-id format
Figma URLs use node-id=X-Y (with a hyphen), but the API needs X:Y (with a colon). Claude handles this conversion automatically if you set up your CLAUDE.md correctly. If a call fails with nodeId, it retries without it (which creates a new page).

Andes UI Library MCP

Direct access to Mercado Libre's design system. You can look up components, view their props, and build interfaces using the official tokens.

What can you do?

  • Look up available components and their variants
  • View props, color tokens, typography, and spacing
  • Get usage examples for each component
  • Generate code that respects the design system
prompt
Check the Andes MCP for available form components.
I need inputs, selects, and buttons. Show me the
main props for each one and a usage example.
prompt
Use Andes tokens to create a product card with:
image, title, price, and an add-to-cart button.
Make sure to use the design system's colors,
typography, and spacing.
💡 Tip
Always ask Claude to check Andes first before building. This ensures it uses the correct components and tokens, rather than making up its own styles.

Playwright MCP

Playwright gives Claude the ability to open a real browser, take screenshots, click on elements, fill out forms, and navigate pages. It's your preview and testing tool.

Use cases for designers

  • Live preview: Open your prototype and verify how it looks
  • Screenshots: Capture the current state to share
  • Flow testing: Simulate clicks and user navigation
  • Responsive: Check how it looks at different sizes
prompt
Open the prototype.html file in the browser with
Playwright. Take a screenshot at 1440px wide and
another at 375px (mobile). Let me know if you see
any layout issues.

Combining MCPs — The full workflow

The real power comes when you combine all three MCPs in an integrated workflow. Here's the ideal design-to-prototype flow:

1. Capture from Figma
2. Check Andes
3. Claude builds
4. Preview with Playwright
prompt
I need to create a functional prototype. Follow these steps:

1. Capture the Figma design: [design URL]
2. Check Andes for the components we need
3. Build the HTML using Andes tokens and components
4. Open the result in the browser and take a screenshot
5. Show it to me and tell me which Andes components you used
💡 Pro workflow
This is the workflow you'll use the most. Save this prompt as a template and adapt it for each project. With practice, a complete prototype can take 15-20 minutes instead of hours.
5

Recipes / Playbooks

Proven step-by-step workflows. Each recipe includes the exact prompts for you to copy and paste.

Intermediate ~15 min

Create a prototype from Figma

Capture a Figma design and turn it into functional HTML with Andes.

1
Open Claude Code in your project
Navigate to your project folder and run claude.
2
Ask it to capture the Figma design
prompt
Look at this Figma design: [URL].
Capture a screenshot and analyze the screen
structure. List the components you identify.
3
Ask it to build the prototype
prompt
Now create a self-contained HTML that reproduces
this design. Check Andes for the right components.
Save it as checkout-prototype.html and open it
in the browser.
4
Iterate on the result
Ask for specific tweaks: "Make the header smaller", "Change the CTA color", etc.
Beginner ~10 min

Component with design system tokens

Build a component that follows Andes tokens to the letter.

1
Look up the available components
prompt
Check Andes for the Card component. Tell me
what variants it has, its props, and the design
tokens it uses (colors, typography, spacing,
borders).
2
Ask it to build it
prompt
Create a product card using exactly the tokens
you found in Andes. Include: placeholder image,
title, discounted price, and an add-to-cart
button.
3
Verify the result
Ask it to open the component in the browser and compare it with the original design.
Advanced ~30 min

Interactive user flow demo

Build a navigable multi-step prototype with transitions and states.

1
Define the complete flow
prompt
I need an interactive prototype of the MercadoLibre
purchase flow. It has 4 steps:
1. Cart (product list with quantities)
2. Shipping details (address form)
3. Payment method (selection between options)
4. Confirmation (summary + confirm button)

Each step has a 'Next' and 'Back' button.
Use Andes components. Make it a single self-contained
HTML with smooth transitions between steps.
2
Test with Playwright
prompt
Open the prototype in the browser and simulate the
complete flow: navigate through all 4 steps, fill in
sample data in the forms, and take a screenshot of
each step. Let me know if you find any usability
issues.
3
Iterate with visual feedback
Ask for changes based on the screenshots: "In step 2, the form looks too cramped. Add more spacing."
Beginner ~10 min

Quick A/B variant generation

Generate multiple versions of a component to compare and decide.

1
Request the variants
prompt
Create 3 variants of a hero section for the
MercadoLibre homepage:

Variant A: Hero with large background image and centered CTA
Variant B: Hero split layout (text left, image right)
Variant C: Minimalist hero with just text and search bar

Generate 3 separate HTML files: variant-a.html,
variant-b.html, variant-c.html. Use Andes tokens.
2
Compare visually
prompt
Open all 3 variants in the browser, take screenshots
of each one, and do a comparison. Which one do you
think has the best visual hierarchy?
Intermediate ~20 min

Prototypes for usability testing

Build interactive prototypes ready for user testing sessions.

1
Define the testing scenario
prompt
I need a prototype for a user testing session.
The scenario is: 'The user wants to change their
shipping address on MercadoLibre'.

The prototype should:
- Start on the 'My Account' screen
- Have working navigation to 'My Addresses'
- Allow editing an existing address
- Show a change confirmation
- Be as realistic as possible (believable mock data)

Use Andes components. Make it self-contained.
2
Verify the complete flow
Use Playwright to walk through the flow and verify everything works before the session.
3
Fine-tune the details
"Add a confirmation toast when the address is saved" or "Make the back button go to the previous screen".
Intermediate ~15 min

Accessibility audit

Review your prototype's accessibility and fix issues automatically.

1
Request the audit
prompt
Run an accessibility audit on the prototype.html
file. Check:
- Color contrast (WCAG AA minimum)
- Alt attributes on images
- Labels on forms
- Keyboard navigation
- Correct ARIA roles
- Heading hierarchy

List the issues found and fix the ones you can
automatically.
2
Verify the fixes
Ask it to open the prototype and confirm the fixes were applied correctly.
6

Tips & Best Practices

5 principles of effective prompting

1️⃣

Be specific about the expected outcome

Describe exactly what you want to get
❌ Vague
"Make me a form"
✅ Specific
"Create a registration form
with: name, email, password,
password confirmation, and a
terms checkbox. Use Andes
components. Validate that the
email has the correct format
and that the passwords match."
2️⃣

Provide project context

Claude works better when it understands the full picture

Before making your request, share the context:

  • "I'm working on the MercadoLibre checkout flow"
  • "It's for a user testing session next week"
  • "The users are frequent buyers aged 25-45"

This context helps Claude make better decisions about the design and implementation.

3️⃣

Mention the design system explicitly

Ask it to check Andes before building

Always include phrases like:

  • "Check Andes before building"
  • "Use the design system tokens"
  • "Make sure to use Andes components, don't make up your own"

If you don't mention it, Claude may make up its own styles that don't match your design system.

4️⃣

Iterate in small steps

Several simple requests are better than one giant one

Instead of asking for everything at once, do it in steps:

  1. First: "Set up the base layout structure"
  2. Then: "Now add the header with navigation"
  3. Then: "Add the main form"
  4. Then: "Add the validations"

This gives you more control and lets you course-correct before moving on.

5️⃣

Ask it to explain what it did

Learn as you work

After each task, ask for a summary:

  • "Explain what you did and why"
  • "Which Andes components did you use?"
  • "What design decisions did you make?"

This not only helps you understand the result, it also teaches you about code and the design system. Over time, you'll be able to make more precise requests.

When to use Plan Mode?

Is it a complex task with multiple steps?
↓ Yes
Use Plan Mode (Shift+Tab)
↓ No
Do you know exactly what you want?
↓ Yes
Direct execution
↓ No
Use Plan Mode

Common mistakes and how to avoid them

Mistake Solution
Not mentioning the design system Always include "Check/Use Andes" in your prompt
Sessions that are too long Use /compact every ~30 minutes or when you notice degradation
Not having a CLAUDE.md Create one with your context — it drastically improves results
Prompts that are too vague Include: what, how, with which tools, and where to save
Not verifying the output Always ask it to open the result in the browser
Asking for everything at once Break it into steps: structure → content → interaction → polish

Shortcuts and commands cheatsheet

Shift+Tab Toggle Plan Mode
/compact Compress context
/clear Clear conversation
/help Show help
Esc Cancel current action
/config Open settings
/cost View session cost
/doctor Diagnose issues

Advanced CLAUDE.md for a UX project

A more complete example for design projects with multiple prototypes:

markdown
# Project: MercadoLibre Checkout Redesign

## Project context
We're redesigning the MercadoLibre checkout flow.
The goal is to reduce cart abandonment by 15%.
Target: frequent buyers, mobile-first.

## My role
I'm a UX Designer. I'm not a developer.
Explain things to me in simple, visual terms.

## Project structure
/prototypes/          → Self-contained HTML files
/prototypes/v1/       → First iteration
/prototypes/v2/       → Second iteration
/screenshots/         → Reference captures
/assets/              → Images and resources

## Design rules
- Always check the Andes UI Library MCP before building
- Mobile-first (375px), then desktop (1440px)
- Use Andes tokens for colors, typography, spacing
- Prototypes must be self-contained (1 HTML file)
- Include realistic mock data (local names, local currency prices)

## Flows to prototype
1. Cart → Shipping → Payment → Confirmation
2. Edit shipping address
3. Apply discount coupon
4. Payment error and retry

## When generating prototypes
- Open the result in the browser automatically
- Take a screenshot with Playwright
- Tell me which Andes components you used
- List any design decisions you made

## Figma
- Figma URLs: node-id uses X:Y (not X-Y)
- If a call fails with nodeId, retry without it

## Preferences
- Language: English
- Prefer simple and clear components
- No excessive animations in prototypes
- Accessibility WCAG AA minimum