06 · AI as a reviewer · From How to Scale Your Vibe-Coded SaaS

How do I use AI to fix my vibe-coded app without breaking it?

By Carl Saguinsin · Fractional CTO & Product EngineerUpdated 18 November 2026

Use AI as a careful reviewer first and an implementer second. Ask it for a read-only map of the code, then a plan with tests and a rollback, then one small change in a branch with production credentials and customer data kept out of its context. Verify the change yourself before it ships. The tools that built the app quickly will break it just as quickly if nothing constrains them.

A generic promise that the assistant will "always follow best practices" is too broad to work. Put short, repository-specific guidance where your coding assistant actually reads it, such as an AGENTS.md, a CLAUDE.md, or a project skill in the format your tool supports. Keep the full guide as a reference, and make the local file a small set of rules tied to this app. A filename alone does not make an assistant follow it.

The safe AI-assisted change loop

  1. Ask for a read-only map. Which files and services implement the journey? What is known versus assumed?
  2. Ask for a plan. Require a small change, the expected result, tests, rollback, and risks. Review it before any editing.
  3. Change in a branch or an isolated environment. Keep production credentials and customer data out of the assistant's context entirely.
  4. Verify the change. Run the relevant automated tests, inspect the diff, test a denied-access case if permissions changed, and compare before and after metrics if performance changed.
  5. Deploy with an owner. Watch the core journey and know how to roll back. Record the decision and what you learned.

What AI can and cannot do here

It can make the ideas easier to apply: map the code, draft the plan, write the tests, and act as a sceptical second reviewer of its own diff. It cannot prove your app is secure, scalable, or ready to deploy. That takes evidence from your own system and careful human review, and no prompt changes that.

Scoped repository guidance prompt · run once, with read-only repository access

Read this guide and inspect this repository READ-ONLY. First identify this app's stage, stack, deployment path, critical customer journey, data boundaries, test commands, and existing repo instructions. If any are unknown, ask me.

Draft a concise repository guidance file in the format my coding assistant actually supports (for example AGENTS.md or a project skill). Scope it to this repository. Include: product goal and critical journey; architecture map; non-negotiable security and tenant rules; safe development/test commands; data and migration precautions; release and rollback checks; evidence required before performance or architecture changes; and when to seek human review.

Do not copy the full guide, claim permanent memory, create conflicting instructions, or include secrets. Cite the relevant guide sections and repository files in a companion rationale. Show me the proposed file and conflicts with existing guidance before writing it. After approval, write only that file and verify it is readable by this tool.

Questions founders ask

Should I paste the whole guide into my repository for the AI to follow?

No. Keep the guide as a reference the assistant can read when asked, and write a short, repository-specific rules file for the things that must never be violated: tenant isolation, safe test commands, migration precautions, and when to stop and ask a human. Short rules get followed. Long documents get skimmed.

Can the AI tell me whether its own fix is safe?

Ask it to review the diff as a sceptical second reviewer, citing exact lines, without editing or approving deployment. That catches a surprising amount. It is still not a sign-off. A denied-access test in staging and a human reading the diff are.

Which tool should I use to fix the app, the one that built it or a different one?

Whichever one you can constrain. The loop above works the same in Cursor, Claude Code, Lovable, or Bolt. What matters is read-only first, a plan second, an isolated branch third, and your own verification before anything ships.

The whole guide, free

Fourteen pages. Five audits. One prompt.

Everything on these pages, plus the AI fast-track prompt that turns the guide into a 30-day plan for your own product. Put your email in and it's in your inbox in a minute.

Free, 14 pages, in your inbox in a minute. One short note a week after that.