Design with Claude Code
One command gives Claude Code a canvas to design on. This guide takes you from install to an exported screen in a few minutes.
What you need
- A Mac, Apple Silicon or Intel.
- Claude Code, installed and signed in (run
claudeonce in a terminal). - Node.js 18 or later, for the
npxcommand below.
1. Install Potlot
Open Terminal and run:
curl -fsSL https://download.anaknegeri.dev/potlot/install.sh | bashThe script downloads the latest release, checks it against its SHA-256 checksum, installs it into Applications and opens Potlot. After that, Potlot updates itself.
2. Connect Claude Code
claude mcp add --scope user potlot -- npx -y potlot mcp --open-appThis adds Potlot as an MCP server for Claude Code in every project. npx runs the server that ships inside the Potlot app, so it always matches your app's version.
--open-app is optional but worth it: when Claude Code starts working on a design, Potlot opens and shows you the document live. Leave it out and the agent works headless. Open the app later and it takes the documents over within a couple of seconds.
Using another MCP client? It takes the same command in its config:
{
"mcpServers": {
"potlot": {
"command": "npx",
"args": ["-y", "potlot", "mcp"]
}
}
}3. Make your first design
You can start from either side.
From your terminal. Run claude from your project's folder and ask for a design, for example:
Design a landing page for a coffee shop in Bandung in Potlot.The agent creates a new .ptl file in that folder, so the design sits next to your code and you can commit it with the rest of the project. With --open-app, Potlot opens and you watch the page come together.
Want a specific name or location? Say it in the prompt:
Design a landing page for a coffee shop in Bandung in Potlot, save it as designs/landing.ptl.From the Potlot app. Home asks “What will you create today?” Pick a project type (Landing page, Mobile app, Web app, Slides, Dashboard or Something else…), type your prompt and press Enter. Check that Claude Code is the selected agent on the model button at the bottom right of the composer. Potlot runs the claude CLI you already signed in to.
The project type sets sensible frames: one 1440-wide page for a landing page, 390 × 844 phone screens for a mobile app, 1920 × 1080 for slides.
4. Watch, then steer
Your agent lays out frames, text and components on the canvas, section by section. It checks its own work too: after each section it takes a screenshot and looks for broken layout, clipped content, low contrast and uneven spacing, then fixes the existing layers.
You can step in at any point:
- Select a layer. It appears as a chip in the composer, so your next message is about that layer.
- Pin a comment. Press
C, click where the note belongs and write it. Ask the agent to address the comments, and it replies in each thread with what it changed. - Queue a follow-up. Type while the agent works. Your message waits above the composer, and Steer sends it right away.
5. Take it to code
Two ways, depending on what you need.
Copy the HTML. Select a screen's frame and click Copy HTML at the bottom of the Inspector, or press ⌥⌘C. You get one self-contained page with Tailwind classes, laid out by the same engine as the canvas. Export HTML saves it as a file. It is a faithful snapshot for reference or a quick prototype, not production code.
Have Claude Code build it. Ask, for example, "build this screen in the app". The agent explores your project first (framework, styling, component library), turns the design's components into code components and its variables into theme tokens, then runs your type check, lint and build and compares the result with a screenshot of the frame. On Tailwind it checks whether you are on v3 or v4 first.
Next
- Connect an agent: Codex, Cursor, Antigravity and Pi.
- Comments and Screenshots: how agents read your notes and check their work.
- Export HTML: everything the export includes.
Something unclear, missing or broken? Write to feedback@anaknegeri.dev.