Vibe-Coded MVP to Production: A CTO's Checklist
Updated
Picture a CTO who joins a startup six months after launch. The MVP was built by the founders with AI agents over a few weekends. It has paying customers, and the team still adds features with AI every day.
In week one a small pricing change breaks invoice emails. Nobody knew the two shared a helper file. Nothing was wrong with the idea or the team. Nobody had a picture of what was in the code.
A vibe-coded MVP proves the idea fast. Turning it into a product is a different job: you have to understand code nobody fully read, and keep shipping while you fix it. A rewrite is rarely the answer. Start with a short audit, a clear order of work, and guardrails so new AI-written code does not undo the progress. This checklist is the order I would go in. Disclosure: Ask Jentic is my product, and it covers parts of steps 1, 4 and 6.
1. Map what you have
Before you fix anything, get a picture of the whole thing: the main modules and how they connect, the data model, the routes and webhooks it serves, and every outside service it calls. AI-built apps tend to wire services in wherever it was quickest, so expect surprises.
Write the result down in the repo. Everything else on this list builds on it.
- Which files and modules depend on which
- The data model and where it is written to
- Routes, webhooks and background jobs
- Outside services, environment variable names and hosts called
2. Find the load-bearing parts
Some files are used everywhere: shared helpers, auth, payment code, the database layer. A change there can reach most of the app. Rank files by how much depends on them and by how often they change. The ones high on both lists are where breakage comes from.
These are the files to protect first, and the ones where AI-written changes deserve a human review.
3. Lock down secrets, data access and auth
This is the step that cannot wait. Move any secrets out of the code and into environment variables, rotate anything that was ever committed, and check that every table has access rules. Generated apps often leave data readable by anyone who finds the endpoint.
If you are unsure, get a security review or run a dedicated scanner. A map of the code helps you scope it, but it is not a substitute.
4. Put tests where the risk is
You will not reach full coverage, and you do not need to. Write tests for the load-bearing files from step 2 and for the flows that cost money or trust: sign-up, sign-in, payments, anything that sends email.
From then on, check which changed files in each release have no test reaching them. That list is your test backlog, ordered by what is changing.
5. Make it boring to build and run
Production products are predictable. Pin dependency versions, check that runtimes are not near end of life, make CI run the tests on every pull request, and keep separate staging and production environments.
Make sure you can restore the database and roll back a deploy, and that someone has tried both.
6. Put guardrails on how the team uses AI
The team will keep coding with AI, and it should. The goal is that new code fits what is already there. Every change goes through a pull request, the reviewer checks what the change can reach beyond the diff, and changes to load-bearing files get a second look.
Give the AI assistants the same context your engineers have: an AGENTS.md file, the code map and the reasons behind key decisions. An agent that knows the structure makes fewer changes that break it.
7. Write down why, as you go
Every shortcut in the MVP had a reason, and most are lost already. As you harden each area, record the decisions you keep, change or reverse in short decision records. The next engineer, and the next AI agent, will need them.
Copy-paste MVP-to-production checklist
PRODUCT: <name> OWNER: <name> DATE: <date> 1. MAP [ ] Module and dependency map saved in the repo: <link> [ ] Data model documented [ ] Routes, webhooks and jobs listed [ ] Outside services and env variable names listed 2. LOAD-BEARING FILES [ ] Top files by dependents: <list> [ ] Top files by change frequency: <list> [ ] Files on both lists (protect first): <list> 3. SECURITY BASICS [ ] No secrets in the code; committed secrets rotated [ ] Access rules on every table [ ] Auth flows reviewed by a person [ ] Security review or scanner run: <date> 4. TESTS [ ] Tests on load-bearing files [ ] Tests on sign-up, sign-in, payments, email [ ] Changed files with no test in the last release: <list> 5. BUILD AND RUN [ ] Dependencies pinned [ ] Runtimes supported for 12+ months [ ] CI runs tests on every pull request [ ] Staging and production separated [ ] Database restore tested: <date> [ ] Deploy rollback tested: <date> 6. AI GUARDRAILS [ ] All changes merge through pull requests [ ] Reviewers check what a change can reach [ ] Second review for load-bearing files [ ] AGENTS.md and code map available to AI assistants 7. DECISIONS [ ] Decision records kept in the repo: <link>
Frequently asked questions
Should we rewrite the MVP instead?
Usually not. A rewrite stops feature work and throws away code that already works for customers. Map it, protect the load-bearing parts and replace weak areas one at a time. Consider a rewrite only for a part the map shows is both central and beyond repair.
How long does this take?
It depends on the size of the code and the team. Steps 1 to 3 are the urgent ones and are worth doing before the next big feature. Steps 4 to 7 become ongoing habits with no end date.
Should the team stop using AI to write code?
No. The speed is real. Put guardrails around it: pull requests, a check of what each change can reach, tests on the risky files, and good context for the agents.
Where does Ask Jentic fit?
I built it, so take that into account. It does the mapping in step 1, ranks what depends on what for step 2, lists changed files no test covers for step 4, and gives AI assistants the same map for step 6. It does not fix code or scan for security problems.
Skip the manual work
Ask Jentic maps your MVP's code, shows what each change can reach and which changes no test covers. Connect it on GitHub to start step 1.