If you built an app by prompting an AI tool, you have a real head start. You have something that works, that people can look at, and that proves the idea. What you usually do not have yet is something that survives real users, real data and the next change.
I make vibe-coded apps production-ready for founders and non-technical teams, and the work follows a consistent order. This is that order as a checklist. You can run through it yourself, or hand it to whoever you hire. Each section ends with a question that tells you whether you are done.
1. Auth and permissions
AI tools tend to build the happy path: a login screen that works. They are less reliable about what happens after login.
- Every route and every API endpoint requires an identity unless it is deliberately public.
- Authorization is checked on the server, not only hidden in the interface.
- A user can only read and change their own data. Test this by logging in as one user and requesting another user's record.
- Admin actions are separated and limited to named roles.
- Identity itself is not something you built. Use a vendor for sign-in, as doing it well is that vendor's whole business.
2. Secrets
- No keys, tokens or passwords in the repository, including its history. If one was committed, treat it as exposed and replace it.
- Secrets live in a secret store or the host's environment configuration, not in code or chat logs.
- Each environment has its own secrets. Production keys are not on anyone's laptop.
- Keys have the least privilege that works.
AI tools often paste a key straight into a file to make something work. Search for it before you do anything else.
3. Data model and migrations
- The schema is defined in code and every change is a migration file, applied the same way in every environment.
- Nobody edits production data or structure by hand through a console.
- Constraints live in the database (required fields, uniqueness, foreign keys), not only in application code.
- Backups exist, and you have restored one at least once.
4. Tests
You do not need full coverage. You need automated checks on the parts that must never break: sign-in, payments, anything that writes important data, and the one flow your business depends on.
- A small suite that runs with one command.
- Tests that can fail. Break the code on purpose and confirm the test notices.
- A type check or linter on every change.
5. CI and deploys
- Every change is built and checked automatically before it can merge.
- The main branch is protected: no direct pushes, required checks, a review.
- Deploys come from the repository by a pipeline, not from someone's laptop.
- After a deploy, something reads the live site back and confirms the new version is running.
This is where the quality of everything else gets enforced. A test that nobody is forced to run is a suggestion.
6. Errors and observability
You want to learn about a problem before a user writes to you.
- Error tracking on the front end and the back end, with alerts that reach a person.
- Basic usage analytics, so you know what people actually do.
- Structured logs you can search.
- An uptime check on the pages that matter.
7. Infrastructure as code
If your hosting was set up by clicking through a console, nobody can reproduce it, review it or recover it.
- Infrastructure is defined in code (Terraform or CDK, for example) and changed through pull requests.
- Environments such as staging and production are built from the same definitions.
- Access to the cloud account is through single sign-on, not shared passwords.
8. Cost controls
Vibe-coded apps tend to run up two bills: hosting and AI usage. Both are fixable.
- Right-size the hosting. Do not provision for load that has not arrived, and let idle systems scale to zero where you can.
- Put budget alerts on the cloud account and on every AI provider key.
- Cache AI prompts and cap usage per user.
- Make cost visible: a run that reports its own cost is a run you can optimize.
- Check whether work needs an extra service at all, or can run inside the app.
9. Agent rules so you can keep building
This is the step that decides whether the hardening lasts. If the next AI session does not know how your codebase works, it will undo the work.
- A rules file such as CLAUDE.md that says how to run checks, how to add a page, a feature or a table, and what must never be done.
- One clear convention for each common change.
- Review gates on every change: tests plus an AI reviewer reading the diff against your rules.
- Plain-language docs for running, changing and deploying the app, written for people who are not engineers.
In what order
If you cannot do everything at once, this is the order I would use: secrets and auth first, because they are the risks that hurt most. Then CI with a few tests, because it makes every later change safer. Then migrations and backups, observability, infrastructure as code and costs. Agent rules go in early, even in rough form, because every change after that benefits.
The readiness scorecard on this site is a quick way to see where your app stands against this list.