Written by Denys Havryliak
How to Build an MVP with Claude Code
A seven-step guide to building an MVP with Claude Code: set the scope and architecture first, build one feature at a time with a check, then review the structure and security before launch.

Short answer: you build an MVP with Claude Code by deciding what it is before you let it write code. Anthropic's own founder guide puts it this way: "Once architecture and scope are defined, Claude Code becomes the primary MVP build tool." In practice that is seven steps:
- Decide what the MVP must prove.
- Write a scope document: what it does and what it does not do.
- Have Claude help you set the architecture, and save it in a CLAUDE.md file.
- Build one feature at a time, with a check that passes or fails.
- Watch the first minute of each task and stop it early if it drifts.
- Review the structure and the security before any user touches it.
- Measure what real users do, then decide what to build next.
The rest of this guide walks through each step. At the end you'll find a table of which file holds what, and when it makes sense to bring in an engineer.
Step 1: Decide what the MVP must prove
An MVP is a test, not a small version of the final product. Pick one question it has to answer, such as "will people in this group pay for this?" Everything you build should serve that question.
Claude can't pick the question for you. It can help you pressure-test it. If you want the product side in depth, such as what to cut and how to set a deadline, read our guide to building an MVP app. This article is about the Claude Code part.
Step 2: Write a scope document
Anthropic's guide says Claude can help you create a scope document "that describes what your MVP product does, what it deliberately does not do". The second half matters most. Anthropic's guide names "zero-friction scope creep" as an MVP-stage challenge: "When building feels effortless and is nearly free, there's always one more cool feature to add". A written "not now" list is what stops that.
Keep the document short. One page is enough: the question from step 1, the three or four things a user must be able to do, and a list of things you are leaving out on purpose.
Step 3: Set the architecture first, and save it in CLAUDE.md
Anthropic's guide warns that "Letting Claude Code build without guardrails produces a codebase that will be functional but structurally incoherent." The guardrails are decisions made before the first feature: how the app is split up, which tools it uses, and how data is stored.
The guide suggests asking Claude to help you define the architectural principles for your build, and then saving that output as CLAUDE.md files. Claude Code's documentation explains why this works. CLAUDE.md files "give Claude persistent instructions for a project", and Claude "reads them at the start of every session". Each session starts with a fresh context window, so this file is how the project's decisions carry over.
Two practical points from the documentation:
- Run
/initto generate a starting CLAUDE.md. Claude analyzes your codebase and writes down build commands, test instructions and conventions it finds. - Keep the file short. The docs say to aim for under 200 lines per file, because "longer files consume more context and reduce adherence."
Step 4: Build one feature at a time, with a check
Start each session from the written plan. Anthropic's guide says to begin each Claude Code session by revisiting your scope document and giving the model your CLAUDE.md. If you don't have a plan yet, the Claude Code documentation shows a way to get one: ask Claude to interview you until it can write the spec, then save it to a file called SPEC.md. It then suggests starting a fresh session to build from that file, so the build begins with a clean context and a written definition of done.
Give every task a way to be checked. The documentation's advice is to give Claude something it can run that comes back pass or fail. Its examples include a test file, a build's exit code, a linter, or a browser screenshot next to the mockup. With a check, Claude can run it, read what broke and fix it before running it again. Ask for evidence too: the command it ran and its output, or the screenshot.
Step 5: Watch the first minute
The documentation's advice is to catch a wrong approach early. It suggests watching the first minute, pressing Esc the moment Claude drifts, and running /clear with a better prompt after two failed corrections instead of trying a third time.
If a change goes wrong, /rewind (or Esc twice on an empty prompt) lets you roll the code, the conversation, or both back to an earlier point. One limit to know: the documentation says checkpoints cover files Claude edited with its own file tools, so a file that only a shell command changed isn't restored. Use git as well.
Step 6: Review the structure and the security before launch
This is the step people skip. Anthropic's guide has a section titled "Security review before any user touches it", and says a security review before launch is the minimum responsible threshold. It adds that Claude can do "a useful first-pass security review of AI-generated code", but that this "is not a substitute for security tooling, however, or, at higher stakes, a human reviewer."
Do three things before real users arrive:
- Ask Claude to review the code against your architecture notes and scope document, and list where the code has drifted from them.
- Run a real security pass. Our guide to auditing a cloud app gives an eight-step checklist you can use on a small product. For what usually goes wrong in AI-written apps, see security risks in vibe-coded apps.
- Check that no password, API key or private key is in the code or its history.
Step 7: Measure, then decide
Anthropic's guide recommends building your measurement framework before launch. Decide in advance which number will tell you the MVP worked, and what result would make you change direction. An MVP that ships without a way to measure only proves that it shipped.
Which file holds what
| File | What goes in it | When it is used |
|---|---|---|
| Scope document | What the MVP does, what it deliberately does not do | Start of every session |
| SPEC.md | The written spec for one piece of work, with a definition of done | Start of a fresh build session |
| CLAUDE.md | Architecture decisions, commands, conventions. Under 200 lines. | Loaded automatically in every session |
When to bring in an engineer
You can get a long way on your own. Bring in an engineer when the product handles payments or health data, when real customers will depend on it, or when you can't tell whether the code Claude wrote is sound. Our comparison of vibe coding and hiring engineers covers that trade-off in detail.
We've written up how our engineers use Claude Code in our guides to Claude Code with Xcode and Claude Code with Android Studio. If you'd like an engineer-led team to build the MVP, see our AI-assisted MVP service and our MVP development page. To be plain about it: Applefy is not an Anthropic partner and holds no Claude Partner Network tier or Claude Certified Architect credential. Claude Code is a tool we use, not a badge we carry.
Frequently Asked Questions
Can Claude Code build a whole MVP by itself?
Anthropic's guide says Claude Code becomes the primary build tool once scope and architecture are defined. It doesn't say to leave it unsupervised: it warns that building without guardrails gives a codebase that works but is structurally incoherent. Decide the scope and architecture first, and have a person review the result.
Do I need to know how to code?
It helps, because you need to judge what Claude gives you. If you can't read the code, lean on the checks in step 4 and get an engineer to review before launch, especially for security.
What should I put in CLAUDE.md?
The things Claude couldn't work out from the code alone: your architecture decisions, how to build and test the project, and your conventions. Keep it short, and run /init to generate a first version.
What is the difference between SPEC.md and CLAUDE.md?
SPEC.md describes one piece of work and what "done" means for it. CLAUDE.md holds the standing rules for the whole project and loads in every session.
Is Applefy an Anthropic partner?
No. Applefy holds no Claude Partner Network tier and no Claude Certified Architect credential.
Sources
- Anthropic — The founder's playbook: Building an AI-native startup, "MVP stage"The quotes in steps 2, 3 and 6, and the advice on scope documents, architecture, CLAUDE.md, session starts, security review and measurement. The page shows no publication date. Retrieved December 2, 2026.
- Claude Code — "How Claude remembers your project"What CLAUDE.md files are, that they are read at the start of every session, the under-200-lines guidance, what /init does, and that each session begins with a fresh context window. Retrieved December 2, 2026.
- Claude Code — "Best practices for Claude Code"The interview-to-SPEC.md workflow, giving Claude a pass-or-fail check, asking for evidence, pressing Esc early, /clear, and /rewind with its limit on files changed by shell commands. Retrieved December 2, 2026.
What this article does not claim
- No claim about how long an MVP takes or what it costs. This guide cites no time or cost figures.
- No claim that following these steps produces secure or production-ready software. Step 6 is a minimum, not a guarantee.
- No endorsement from Anthropic. Quotes come from public pages that Anthropic publishes, and those pages may change after the retrieval dates above.
Related articles
- Claude Code with Android Studio: A 2026 Workflow Guide for Kotlin EngineersAI & Tooling
- Claude Code with Xcode: A 2026 Workflow Guide for iOS EngineersAI & Tooling
- Why Claude Max Runs Out So Fast — and How to Make It LastDevelopment
