Blog
Guides: prototyping apps with Claude Code and AI agents
Practical guides for building apps with Claude Code and other coding agents: prototyping screens, user flows, design handoff, auto mode, MCP and security.
Start here
Claude Code
Claude Code auto mode blocked an action? 3 fixes that workAuto mode denied a command in Claude Code? Read the rule in the denial, then name the exact action, trust the host in autoMode, or retry from /permissions.
Claude Code
How to prototype app screens with Claude CodePrototype app screens with Claude Code before it edits your code: list the states, get one HTML frame per state, review versions, then apply your pick.
Prototyping
Figma vs HTML prototypes: which to use with AI agentsFigma vs HTML and CSS for prototyping: what each does best, a comparison table, where htmx fits, and how to choose when a coding agent builds the UI.
Prototyping
UI states checklist: empty, loading, error and moreA UI states checklist for every screen: empty, loading, partial, error, success and edge cases, with examples and a prompt to draft each state.
Claude Code
Working with Claude Code day to day: auto mode blocks and errors, MCP servers, prompts for UI, running it from your phone.
- Claude Code auto mode blocked an action? 3 fixes that work
Auto mode denied a command in Claude Code? Read the rule in the denial, then name the exact action, trust the host in autoMode, or retry from /permissions.
- Claude Code auto mode errors: no verdict, unavailable, fixed
Every Claude Code auto mode error explained: no safety verdict, temporarily unavailable, could not evaluate, not reviewed, the billing notice. Fix for each.
- Claude Code on mobile: run and steer it from your phone
Use Claude Code on your phone: cloud sessions, Remote Control for a session on your computer, the /mobile command, notifications and the limits to know.
- What is MCP? The Model Context Protocol for developers
What MCP is and how it works: hosts, clients and servers, tools, resources and prompts, stdio and HTTP, and what the stateless 2026-07-28 revision changed.
- Claude Code MCP server setup: add, scope, check, remove
Add a Claude Code MCP server step by step: the claude mcp add command, local, project or user scope, passing a key safely, checking status, removing it.
- Claude Code prompts for UI that produce better screens
Claude Code prompts for UI work: the five parts of a good request, prompts to copy, and how to get every screen state before the code changes.
- llms.txt for coding agents: write a guide they follow
How to write an llms.txt that coding agents such as Claude Code follow: the sections, exact commands, rules, consent steps, and a template to start from.
- How to prototype app screens with Claude Code
Prototype app screens with Claude Code before it edits your code: list the states, get one HTML frame per state, review versions, then apply your pick.
- Prototype a mobile app with Claude Code, screen by screen
Mobile app development with Claude Code starts with screens: phone-sized HTML frames for every state, linked by taps, reviewed before native code.
Prototyping
Drawing screens before code: every UI state, user flows, variants, onboarding and tutorials, and when HTML beats Figma.
- AI prototyping tools for developers: Figma Make, v0, Lovable
Figma Make, v0, Lovable and Claude Code compared for prototyping: what each generates, where the code lives, how you review screens, and which fits your team.
- Figma vs HTML prototypes: which to use with AI agents
Figma vs HTML and CSS for prototyping: what each does best, a comparison table, where htmx fits, and how to choose when a coding agent builds the UI.
- In-app tutorial design: patterns, examples and states
How to design in-app tutorials: six patterns with an example of each, teaching by doing, every state of every step, and a prompt to prototype yours.
- How to compare design variants before writing code
A method for design variants before code: how many to make, what should differ, how to judge them side by side, and a prompt for your coding agent.
- How to prototype an onboarding flow with an AI agent
A step by step way to prototype an onboarding flow with an AI coding agent: define activation, map steps and states, write the prompt, review, iterate.
- UI states checklist: empty, loading, error and more
A UI states checklist for every screen: empty, loading, partial, error, success and edge cases, with examples and a prompt to draft each state.
- User flow diagram: map every screen state, not pages
How to draw a user flow diagram where each node is a screen state (empty, loading, error, success) and each arrow names the action behind it.
- Wireframe vs mockup vs prototype: what AI agents change
Wireframe vs mockup vs prototype: what each fidelity level answers, what it costs, and how AI coding agents change which one you start with.
Design to code
Turning a chosen design into code with an agent: handoff, design tokens, auto layout to flexbox, staying in sync.
- Design handoff for AI coding agents: what to include
What a design handoff for AI agents should contain: every screen state, tokens, real content, behavior and a definition of done, with a template to paste.
- Design tokens as CSS variables an AI agent can follow
Set up design tokens as CSS variables that an AI coding agent follows: two layers, clear names, themes, a repository rule and a check for raw values.
- Visual prototype editing: you tweak, the agent codes
Visual prototype editing with a coding agent: which changes to make by hand, how to record them as data, and how the agent maps them to your code.
- Figma auto layout to CSS flexbox: the complete mapping
Map Figma auto layout to flexbox: direction, gap, padding, alignment, Hug, Fill and Fixed, with a full table, a worked card example and common pitfalls.
- Implement a prototype with an AI agent, step by step
Implement a prototype with an AI agent: settle the chosen version, plan against your codebase, build state by state, verify against the prototype, ship.
- How to keep your prototype and code in sync
Keep the prototype and code in sync: one source of truth per moment, chosen and shipped versions for each screen state, and captures of the running app.
Screens of a real app
Seeing the app you already have: screenshots with Playwright, safe demo data, documenting legacy screens, visual tests.
- Demo data for app screenshots: a privacy checklist
A privacy checklist for demo data for screenshots: what leaks into app captures, how to seed safe fake data, and what to check before an image is shared.
- How to document app screens before a legacy redesign
Document app screens of a legacy product before you redesign it: an inventory of screens and states, captures, flow maps and the rules the code enforces.
- Screenshot every page with Playwright, state by state
How to screenshot every page with Playwright: list routes and states, sign in once, wait for the right element, and save one stable image per state.
- Visual regression testing vs visual review: when to use each
Visual regression testing catches the UI changes you did not intend; visual review judges the ones you did. How each works, and one loop that uses both.
Security
Letting agents act without handing them the keys: scoped API keys, sandboxed HTML, prompt injection.
- Prompt injection in AI agent tools, and how to limit it
How prompt injection reaches AI agent tools through files, pages and tool results, and the design rules that limit the damage when an agent is fooled.
- iframe sandbox attribute: render untrusted HTML safely
The iframe sandbox attribute token by token: what each allow- value permits, the pair that defeats the sandbox, and a strict CSP setup you can copy.
- API keys for AI agents: scope, store and revoke safely
API keys for AI agents, done safely: scope each key to one resource, store only a hash, keep it out of the chat and the repo, and revoke it in one step.
Workflow
Day to day with a coding agent: change requests, reviewing UI changes, shipping safely, working with product managers.
- How to write a change request for an AI coding agent
Write a change request for an AI coding agent that it gets right the first time: point at one place, state the scope, define done. Templates included.
- A product manager workflow with AI coding agents
An AI agent product manager workflow: how a PM reviews screens, picks variants and approves changes on one prototype while a developer's agent codes.
- How to review UI changes made by an AI coding agent
How to verify UI changes made by an AI coding agent: check every affected screen state first, then read the diff for scope, reuse and regressions.
- How to ship app changes with an AI agent safely
Ship app changes with an AI agent without losing control: decide before code, build on a branch with checks, and gate push, merge and deploy yourself.
- Prototype version history: why every change is a version
Why prototype version history beats editing in place: what each version should record, active vs implemented, change notes, and rolling back safely.
- Vibe coding workflow: a review loop that keeps control
A vibe coding workflow that stays under control: plan first, review screens before code, apply small batches, check the diff and keep every version.