Spark
Vibe coding: from idea to production

Vibe coding: interfaces — web products and apps

Topic 2616 min read + 2.5 hours for the taskRevised October 9, 2026

The “Vibe coding: websites” topic takes a prototype as far as a live link. But a website and a full product differ in how they’re built, not in how they look. A product has user accounts, its own data, business logic, and a duty to keep working safely and predictably even when the number of users grows. This topic is about taking the same prototype to the state of a real web product. With MCP and mature terminal agents, you can really do this yourself, without a developer. You’ll need a wider set of skills than for building a landing page, but every step below is broken down on its own.

If you haven’t gone through the “Web app technical foundations for designers” topic yet, start there. Words like “backend”, “endpoint” and “database schema” aren’t explained again here.

Tools for full applications

Lovable and Replit are handy for building a whole small app with a database and logic from scratch. The tools from the “Vibe coding: websites” topic are stronger at individual screens and static content. These two think in terms of data and app state from the start.

Claude Code, Codex CLI and Gemini CLI (see the “CLI and terminal AI agents” topic) become your main tool here, not just a convenient alternative. When you work with an existing, more complex project, you need to go deeper into the code and see all the files at once, not just the screen that’s in focus right now.

Cursor is also worth knowing about. It isn’t a terminal agent but a full IDE (a code editor with windows and buttons, a fork of VS Code) with built-in AI. In terms of what it does, it’s close to terminal agents: it sees the whole project and edits files itself. But it works through a familiar visual interface instead of the command line. So for a designer with no terminal experience, it’s often a more comfortable way into building complex projects than Claude Code or Codex CLI.

Connecting the agent to an existing project

A common real-world scenario is joining a company’s long-standing production repository that someone else built. It has its own history, its own habits and its own undocumented decisions that the agent doesn’t know and won’t guess from scratch. In this case, don’t ask the agent to change anything right away. First ask it to figure things out:

Study the structure of this project: what stack it uses, how the folders are organized, where to find the button components and color tokens. Give me a short summary before you change anything

It also helps to ask the agent right away to generate a CLAUDE.md/AGENTS.md based on that breakdown (the “Terminal agents: making them yours” topic). Then the next session starts with a ready cheat sheet instead of a fresh breakdown of the structure from scratch.

The brief as project files: README, ROADMAP, ARCHITECTURE

The “Vibe coding: websites” topic describes lighter levels of briefing: from a short prompt to a structured spec or a brief document pasted at the start of a chat. But some projects live longer than one session: they grow and change, you come back to them a week later, or another person joins. For a project like that, the most reliable brief is a set of files right in the repository, not text pasted into a chat once. The agent reads them at the start of every new session as context:

  • README.md: what the product is, who it’s for, what problem it solves, how to run the project locally. It’s where anyone (or any agent) opening the repository for the first time begins.
  • ROADMAP.md: what’s done, what’s in progress, what’s planned and in what order. It keeps the agent from proposing functionality that was deliberately postponed, and from wasting time on something that was already implemented differently than expected.
  • ARCHITECTURE.md (or a similar file): what stack is used and why, how the folders are organized, which key technical decisions were made and for what reason. It serves the same purpose as the glossary from the “Web app technical foundations” topic, only written down for a specific project instead of in general terms.

The list isn’t exhaustive. Real projects often add a CHANGELOG.md (what changed in each version) or a CONTRIBUTING.md (rules for people joining development). But if you’re running a vibe-coded project on your own, the three files above are usually enough.

This isn’t the same as CLAUDE.md/AGENTS.md from the “Terminal agents: making them yours” topic. Those files are rules for the agent’s behavior: what’s allowed and what isn’t, which conventions to follow. README/ROADMAP/ARCHITECTURE are the spec of the product itself: what’s being built and where it’s heading. In practice, keep both kinds of files together and explicitly ask the agent to read all of them at the start of a session, not just CLAUDE.md.

Read README.md, ROADMAP.md and ARCHITECTURE.md in this project (or offer to create them if they don’t exist yet) and briefly tell me what the product is, what’s already done and what’s planned, before you start a new task

Spec-driven development: a more precise level of detail

The section below is an advanced level. If this is your first time vibe coding a product rather than just websites, it’s fine to read it for the big picture. You’ll come back to it on a real project, once you feel that the structure from README/ROADMAP/ARCHITECTURE above isn’t enough.

README/ROADMAP/ARCHITECTURE are more of a living context that gets updated as the project goes, not a rigid spec for a specific piece of work. For a more precise task (a whole new product from scratch or a single complex feature inside a large project), a stricter format is gaining ground: spec-driven development. It’s a deliberate alternative to vibe coding blindly from one prompt and then cleaning up whatever the agent made up on its own. It works at any scale: for one feature with several interconnected parts, and for a whole product if it’s built from scratch with this method. Instead of one prompt for the entire task, you create a separate specs/[number]-[name]/ folder with three files:

  • what and why: a description of the task (the whole product or one feature), user scenarios and acceptance criteria, stating explicitly what is deliberately out of scope (spec.md in GitHub Spec Kit, requirements.md in AWS Kiro: same idea, different names in different tools);
  • how: the tech stack, the data model, the architecture and the breakdown into components (plan.md in Spec Kit, design.md in Kiro);
  • what exactly to do: tasks.md in both, a breakdown into small independent tasks, each explicitly pointing to a specific item from the first file instead of coming out of thin air.

For a landing page or a simple form, this much detail is overkill. But it pays off wherever there are several moving parts, whether it’s one complex feature or a whole product. The agent drifts from the original intent less often, because you can check every finished task not by “do I like it” but by “does it do exactly what the spec says.” Several tools already support this workflow with ready commands. GitHub Spec Kit is the open reference tool: portable, it works on top of any agent, with explicit /speckit-specify, /speckit-plan and /speckit-tasks commands. In some agents they’re written with a dot: /speckit.specify. AWS Kiro is a separate agentic IDE with a built-in workflow of the same kind, but it requires you to use it as your development environment. Cursor has a built-in Plan Mode. And you can explicitly ask Claude Code itself to work by the same logic, even without a separate tool. Check the specific file names, commands and tools at the time you use them: this practice took shape very recently and keeps changing fast.

Before writing code for [feature / product: description], create three files for it in the specs/[name]/ folder: spec.md with the description and acceptance criteria (and explicitly what’s out of scope), plan.md with the technical solution, and tasks.md with a breakdown into small tasks, each pointing to a specific item in spec.md. Show me all three drafts before you start writing code

References before you set the task

Before you describe a screen to the agent, look at how live products solve it. Mobbin has 1,400+ iOS and web apps with complete flows, Refero has 140,000+ web and iOS screens, and Nicelydone has 200,000+ SaaS screenshots with search by on-screen text. The free plans of all three are heavily limited. Check whether Mobbin and Refero let you copy to Figma on your plan: on the free one, you often have to copy the screenshot by hand. For micro-interactions and animations, there’s 60fps, with 2,100+ recordings from real apps. You can’t show the agent a video, but you can and should describe from it what moves, for how long and with what easing.

Figma MCP: from design to working code

What MCP is in general and why it works more precisely than a screenshot is covered in the “Tools: a reference guide” topic (the section “MCP: how an agent connects to your real data”). Here’s the practice specifically for Figma. An MCP server gives a terminal agent (Claude Code, for example) direct access to a real Figma file: components, styles, spacing and color tokens. The agent no longer has to guess the layout from a screenshot. The result is more pixel-accurate and uses the project’s real design tokens right away, instead of newly invented values.

On the left, a pricing card design in Figma with spacing variables labeled; on the right, an AI agent chat that received the selected frame’s code and the design’s variable list, colors and typography, through MCP
Through MCP, the agent gets not a picture but the design’s structure together with its variables, so the code ends up with the same tokens as Figma. Image from the Figma blog. · Figma MCP · source: figma.com/blog/introducing-figma-mcp-server

How to connect it, in broad strokes (check the specific steps against Figma’s current documentation; they change). The recommended option today is the remote server hosted by Figma itself. You don’t need to run anything on your computer; you just add it to the agent once. In Claude Code, it’s one command:

claude mcp add --transport http figma https://mcp.figma.com/mcp

Then, inside a session, type /mcp, pick the Figma server and authorize in the browser (“Allow access”). After that, the agent can open files from a link to a frame or component. The remote server can not only read a design but also create and change the file’s contents: frames, components, variables, auto layout. The second option is the desktop server. You turn it on in the Dev Mode settings of the Figma desktop app; it runs locally on your computer (an address like http://127.0.0.1 with a port that Figma shows you) and works with the file currently open in the app. It shows up in older guides and remains a fallback. The remote Figma MCP formally works on any plan, but on the free Starter plan and on View/Collab seats it’s up to 20 calls a month, which isn’t enough for a project. For real work you need a Dev or Full seat on a paid plan (200 calls a day, 600 on Enterprise); for the agent to change the file and not just read it, you need a Full seat. The desktop server is available only on a Dev or Full seat on a paid plan.

A prompt example after connecting the Figma MCP:

Build the Button component from the Figma design [link to the specific component: right-click → Copy link to selection], using the existing color and spacing tokens from the library instead of arbitrary values

Auth, database and UX polish

As soon as a prototype gets a real user, it needs sign-in and data storage.

The agent won’t create a Supabase project or get the keys by itself. First set up a project on supabase.com, and put the URL and the publishable key (the anon key in older projects) into a .env file. Name the table profiles, not users, so you don’t confuse it with the system auth.users table. And without row level security (RLS) policies, the table is open to anyone who has the project’s address:

The Supabase project is created; the URL and publishable key (the anon key in older projects) are in .env. Create a profiles table with the fields id (a reference to auth.users), email and created_at, and turn on RLS for it with the policy ‘a user sees and edits only their own row.’ Write this as an SQL migration in the project folder and connect the sign-up form to the table

Split auth into two steps. Supabase supports email sign-in right away, but by default it sends a confirmation email. Supabase’s built-in email has a strict hourly limit, so during development you can turn confirmation off in the Auth settings. Sign-in with Google requires manual setup in Google Cloud Console and in the Supabase dashboard, and the agent won’t do that for you:

Add email sign-in with Supabase Auth: a sign-in page, sign-up with a confirmation email, and protection of private pages from unauthorized access
Add sign-in with Google. First, list step by step what I need to do by hand in Google Cloud Console and in the Supabase dashboard, and wait until I say ‘done.’ Only then write the code

A separate step is polishing the UX and checking accessibility before you show the project to anyone:

Run an accessibility check on this prototype: text contrast, alt text on images, focus during keyboard navigation. Then fix the problems you find

Personalization: language, device, location

Before showing the project to real users outside your team, think through explicitly who it’s being adapted for. This isn’t only about accessibility (see above) but also about several separate dimensions of personalization. Interface language (i18n): if your audience speaks more than one language, move the text into separate translation files from the very start instead of hardcoding it. Otherwise, adding a second language later turns into reworking half the project. Device adaptation isn’t just “it fits on a small screen.” It means deliberate decisions about what to hide or simplify on mobile instead of just squeezing it. Location: currency, date format and units of measurement can differ for users from different countries. Plan for this in advance too, instead of patching it after the fact.

Prepare the project for several interface languages: move all interface text into a separate translations file, starting with English and [second language]

Payments and checks before production

If a product has paid features, payments are almost never written from scratch. You connect a ready service like Stripe (more about the idea itself in the “Web app technical foundations” topic). First decide what you’re selling: a one-time payment and a subscription are different Stripe Checkout modes. Both need a server route with the secret key, a webhook that confirms the payment, and a Stripe sandbox (Sandbox, formerly test mode) during development:

Connect Stripe Checkout in subscription mode for the Pro plan, in a Stripe sandbox (Sandbox, formerly test mode). Create the checkout session in a server route and take the secret key from .env. Add a webhook that marks the user as Pro in the database after a successful payment, plus success and cancel pages. First tell me where the project’s server side will live

Before you show this to a client, check that the API part actually works and doesn’t just look like it works in the interface. Two helper tools come in handy here:

  • Postman is an app that lets you “knock” directly on an API endpoint (the “Web app technical foundations” topic) without the product’s interface: send a test request and see exactly what the server returned. It’s useful when it’s unclear whether the problem is in the interface or in the backend itself.
  • ngrok is a service that gives a temporary public address to a project that’s still running only on your local computer. You often need it to test webhooks (notifications from Stripe that a payment went through). An outside service can’t reach localhost, but through ngrok it can.

You can ask the agent to set up both tools and explain them step by step. You don’t have to figure them out on your own. It’s enough to know they exist and what they’re for.

Git workflow: how the agent works with change history

Git is a version system that stores the history of code changes: who changed what, and when. If something breaks, it lets you roll back. Terminal agents work with git directly, so it helps to know the basic words. A commit is a saved “snapshot” of changes with a description. A branch is a parallel version of the project for experiments that doesn’t affect the main one. A pull request is a proposal to merge changes from a branch into the main project.

Let’s separate this right away from version history in Figma itself. History in Figma and git in code are two completely independent systems that know nothing about each other. Changes in a design don’t get into git automatically. And the other way around: rolling back code doesn’t roll back the Figma file. If you need to sync the state of design and code, that’s a separate step (through the Figma MCP, see the section above). “They’re both versions” doesn’t sync anything by itself.

Commit the current changes with a clear message in English and create a new branch for the dark theme experiment

If more than one person works on a project at the same time (a designer and a developer, two designers), sooner or later both change the same file in different branches. Git can’t decide on its own whose version is right. This is called a merge conflict: git honestly stops and asks a human to choose which version to keep, instead of guessing. There’s nothing scary about it. A conflict is a normal part of working together, not a breakdown. You can ask the agent directly to explain what exactly conflicts and to suggest a solution:

I have a conflict when merging branches. Show me in simple words what exactly conflicts in each file, and suggest how to combine both versions

When the result is off: edits at the scale of a whole project

The general technique of a targeted fix instead of starting over is covered in the “Vibe coding: websites” topic: “don’t change anything except X,” a marked-up screenshot instead of a verbal description, a rollback instead of endless patches. It works the same way here, but on a bigger project the cost of a mistake is higher. Add one habit specific to a project with history and several people: try a risky edit in a separate branch (branch, see above), not straight in the main one. If the experiment fails, just go back to the main branch without losing anything in the working version. If it works, merge it back. That’s cheaper than fixing the main branch after a failed edit.

Testing and deploy

Before showing the project to a client or launching, ask the agent to write and run automated tests. These are programs that check on their own that key scenarios (sign-up or form submission, for example) actually work:

Write and run automated tests for the sign-up form, show me which pass and which fail, and fix the broken ones

The deploy itself is no different from a simple website. The mechanics are the same as in the “Vibe coding: websites” topic, section “Deploy”: the same services like Vercel, the same single command to the agent. The difference is elsewhere. Before publishing a product with real users and data, go through the security checklist in the “Securing a vibe-coded project” topic.

After the deploy, the project is ready not only for use but also for your portfolio, with a live link (see the “Portfolio: how to present AI projects” topic).

What to do when something here breaks instead of working the first time is covered in the “Reading and debugging the agent’s code” topic. And if the task is to build AI as a feature into the product itself for its future users (a chat helper, generating descriptions on the fly and so on), that’s a different task. It’s covered in the “AI as a feature inside a prototype” topic.

Command examples for practice

Where to pasteAny chat assistant: ChatGPT, Claude, Gemini — these are questions to build understanding; they don’t need the project
Explain in simple words what a git commit and a branch are, as if I’ve never done any development
I have a finished Figma design and a connected Figma MCP. Where do I start building components so I don’t have to redo everything?
I’ve been given access to an existing company production repository. Where do I start so I don’t break anything on day one?
Where to pasteTerminal agent or Cursor, from the project folder
Help me write README.md, ROADMAP.md and ARCHITECTURE.md for my project [description]: ask clarifying questions if there isn’t enough information before you write
I have a feature [description] with complex multi-step logic. Write it up as spec.md with acceptance criteria before we move on to the plan and tasks
Mini-task

Take a landing page or prototype you’ve already built (your own from the “Vibe coding: websites” topic or any other). Add one real production capability from this topic: a database, auth or a payment integration, following the examples above. You don’t have to take it all the way to production. What matters is going once from a static prototype to a working feature with real data. Two to three hours assumes your accounts are already set up: a Supabase project or a Stripe test account. Count sign-up and setup separately.

Time: 2–3 hours
Done when: the feature works with real data: a record shows up in the database, a private page is closed without signing in, or a test payment goes all the way through

Sources

  1. Rate limits & accessdevelopers.figma.com

    Figma MCP call limits by plan and seat

  2. Guide to the Figma MCP serverhelp.figma.com

    the remote server at mcp.figma.com, and the desktop server only on Dev or Full seats

  3. Spec Kitgithub.com

    current Spec Kit commands and artifact structure

  4. Specskiro.dev

    the requirements.md, design.md and tasks.md files in Kiro

  5. Row Level Securitysupabase.com

    without RLS, a table is open for reading and writing

  6. Sandboxesdocs.stripe.com

    Stripe sandboxes for development without real payments

Found a mistake or an outdated fact? Write to hey@iskra.guide