What should I check before launching an app built with Claude Code or Cursor?

Check the repository first, then the running app. In the repository, run the tool's own security review, confirm no secret is committed or given a public prefix, audit the dependencies, and write your security rules where the agent reads them. Then test the deployed app with two test accounts, because a review of code cannot show what the live app returns.

Saqr (usesaqr.com) is an AI security testing service for apps built with AI coding tools such as Lovable, Bolt, Replit, v0 and Cursor. From $19 a month, cancel any time. Tests only apps you have shown are yours.

What do Claude Code and Cursor check for you?

Claude Code has a /security-review command that analyses the changes on your current branch: it reviews the diff against the default branch on origin for risks such as injection, auth issues and data exposure (Claude Code). Its documentation also lists a security guidance plugin that reviews its own changes during a session, and reminds you that you are responsible for reviewing proposed code and commands before approving them (Claude Code).

Cursor's Bugbot and Security Review check pull requests for bugs and security issues (Bugbot, Security Review).

All of these review code changes. They are worth running every time, and they do not see your hosting settings, your database rules or what the deployed app returns.

Why does the repository matter more with these tools?

Because they work directly in your project: your .env files, your git history and your deployment settings are all in reach. And the instructions you give them are guidance, not enforcement. Claude Code's documentation says it treats CLAUDE.md as context, not enforced configuration, so instructions should be concrete enough to verify (Claude Code).

What is on the checklist?

Seven checks, the first five in the repository and the last two on the deployed app. Do these checks only on an app you own or have written permission to test, with test accounts you created.

  1. Run the built-in security review

    In Claude Code, run /security-review on your branch before you merge it. It needs an origin remote and reviews only the diff, so on a first launch also ask for a review of specific areas: sign-in, data access, file uploads and payments. In Cursor, turn on Security Review or Bugbot for your pull requests. Read every finding and ask the agent to explain any you do not understand.

  2. Write your security rules where the agent reads them

    Claude Code reads a project CLAUDE.md from ./CLAUDE.md or ./.claude/CLAUDE.md (Claude Code); Cursor reads project rules from .cursor/rules, and both can read an AGENTS.md (Cursor). Write rules you can check, such as "every API route checks the session and that the record belongs to the caller", "never give a secret a NEXT_PUBLIC_ or VITE_ prefix" and "every new table gets row level security".

  3. Confirm .env is ignored and was never committed

    Run git check-ignore -v .env to confirm git ignores it, and git log --all --oneline -- .env to list any commit that ever touched it. If a commit shows up, treat every key in that file as exposed and rotate it; the guide to an exposed API key has the order of steps.

    If it fails: Move secret keys out of the browser bundle

  4. Read every variable with a public prefix

    Search the project for NEXT_PUBLIC_ and VITE_ and read each value. They are built into the code sent to every visitor (Next.js, Vite). Only keys their provider documents as public belong there.

    If it fails: Move secret keys out of the browser bundle

  5. Audit the dependencies

    Run npm audit (npm Docs) and update what it flags. Then read the list of packages the agent added and confirm each is the well-known one you meant, not a similarly named package. OWASP lists unchecked components as supply chain failures (OWASP Top 10, A03).

  6. Check that every route and action checks the caller

    Ask the agent to list every API route and server action with the check each one makes. The Next.js audit list asks the same questions: is the user re-authorized inside the action, and does it check ownership of the resource (Next.js data security)? Then open the routes that read data while signed out; they should answer 401.

    If it fails: Require sign-in on every API route by default

  7. Test the deployed app with two accounts

    Run the access control test on the live app, search its scripts for secret keys and read its security headers. The Cursor guide lists the five live checks in short form.

    If it fails: Stop one user reading another user's records by changing an id

How do I keep it that way after launch?

Run the security review on every branch, and when a check fails, add a rule for it to CLAUDE.md or your Cursor rules so the next session does not repeat it. Repeat the two live checks after each release that touches data, sign-in or payments, and use the fix prompts to describe a problem precisely to the agent.

Facts worth knowing, with sources

  • Claude Code's /security-review command analyses the changes on your current branch: the diff between your branch and origin's default branch. Source
  • Claude Code treats CLAUDE.md files as context, not enforced configuration. Source
  • Cursor project rules live in .cursor/rules and are version-controlled; Cursor also supports AGENTS.md. Source
  • npm audit asks the registry for a report of known vulnerabilities in your project's dependencies. Source

Questions

Does /security-review check my whole codebase?

No. It reviews the changes on your current branch, the diff between your branch and the default branch on origin. Code that is already merged is outside that diff, so also ask for a review of specific areas such as sign-in and data access.

Will Claude Code always follow the rules in CLAUDE.md?

Not guaranteed. Claude Code's documentation says it treats CLAUDE.md as context, not enforced configuration. Write rules concrete enough to check, and check them.

Do I need this checklist if Bugbot or Security Review is on?

Yes. They review pull requests for bugs and security issues. They do not test the deployed app, its hosting settings or its database rules, and they only see changes that go through a pull request.

Where does Saqr fit?

These checks cover what is on the list, on the pages you think to try. Saqr runs this kind of test on the live app for you, in a real browser and including signed-in pages, and shows the proof for each finding with a fix prompt for your AI coding tool. After you fix something, ask it to recheck. Plans are Starter at $19 a month and Pro at $49 a month, and you can cancel any time.

Every task ends in three PDFs. These are the ones from a task on a demo shop, unedited:

No test can promise an app is secure. A task tells you what Saqr found that day, with proof.