Free agent skill
Is your AI-built app safe to launch? Audit it first.
A free skill for your own AI agent that reads the repo of an app built with Lovable, Bolt, Replit, Cursor, v0 or a similar tool, the way a senior engineer would before launch. It looks for exposed keys, missing access control, unsafe payments, fragile deploys and AI-feature risks, ranks what it finds, and ends with a salvage-or-rebuild verdict. It is read-only, and the 35-point checklist is public below.
v0.1.0 · updated 2026-11-13 · MIT license · runs in your own agent, nothing is sent to NeuralSaaS
What you get
A score with the arithmetic
A number out of 100 and a verdict from "Do not ship" to "Ready to ship after minor fixes". Critical gaps cap the verdict, and the formula is public.
Findings with file and line
The top eight, ranked by severity, each with why it matters, a concrete fix and an effort tag from an hour to several days.
A salvage-or-rebuild verdict
Four dimensions (security model, data layer, portability, safe to change) decide whether to harden in place, rewrite parts, or rebuild the foundation and keep the interface.
What it could not check
Live database settings, backups and production variables are listed as not checked, so you know what a person must confirm.
Sample output
Review of ClinicBook, a fictional Lovable, Supabase, Stripe and OpenAI app built to be weak. Excerpt: the score and three of the five top gaps.
Score
32/100
21.5 / 67 · Verdict: Do not ship. Salvage with targeted rewrites
1. Secret key in browser code: missing
Found: src/components/Chat.tsx:12 reads VITE_OPENAI_API_KEY, which ships to every visitor, and calls OpenAI straight from the page.
Fix: Move the call to a server function that holds the key, rotate the key, and set a monthly cap with the provider.
2. Permissions only in the interface: missing
Found: supabase/functions/delete-booking/index.ts:14 deletes any booking id it is sent, using a service-role client.
Fix: Read the user from the session and delete only rows they own, with the normal client so database rules apply.
3. No row-level security: missing
Found: The migration creates the bookings and patients tables with security off, so anyone with the public key can read or write every row.
Fix: Enable row-level security on each table and add per-user policies, then test with two accounts.
The 35-point vibe coding security and readiness checklist
This is the full rubric the skill uses. You can run it by hand, with or without an AI agent. Critical checks count three times a minor one.
Secrets and keys
No secrets in the repository
criticalAre passwords, API keys, tokens or private keys absent from tracked files and from the git history?
Good looks like: Secrets live only in the host's environment settings; `.env` files are git-ignored and were never committed.
Red flags: A tracked `.env`; keys in source files; a key that was committed and later deleted but still sits in history; private key files.
No secret keys in browser code
criticalIs every secret key (service-role, secret, admin, LLM, payment secret) used only on a server, never in code that ships to the browser?
Good looks like: Only public identifiers (for example a Supabase anon key or a Stripe publishable key) appear in client code or `VITE_` / `NEXT_PUBLIC_` variables.
Red flags: `VITE_` or `NEXT_PUBLIC_` variables holding secret or service-role keys; an LLM or email API called directly from a component; keys in a bundled config file.
Environment variable hygiene
majorIs there a `.env.example` listing every variable (names only), `.env` ignored by git, and different values for development and production?
Good looks like: `.env.example` with names and comments; `.gitignore` covers `.env*`; production values only in the host.
Red flags: No `.env.example`; production values in a tracked file; the same key used for every environment.
Sign-in and access control
Real authentication
criticalIs sign-in handled by an auth provider or a server, with sessions that the server verifies?
Good looks like: A managed auth service or a vetted library; the server checks the session on each protected request.
Red flags: Login state kept only in `localStorage` or a client variable; a hard-coded password or shared login; roles stored in a field the user can edit.
Permissions enforced on the server
criticalDoes every read and write of private data check who is asking and whether they own it, on the server or in the database, not just in the interface?
Good looks like: Server functions or database policies check the user's identity and ownership for each operation.
Red flags: Buttons and routes hidden in the interface but the underlying endpoint accepts any request; records fetched by an id from the URL with no ownership check.
Database row-level rules
criticalIf a hosted database is used from the browser (Supabase, Firebase or similar), are row-level security or security rules enabled with per-user policies on every table?
Good looks like: Row-level security is on for every table in the public schema, with policies that scope rows to their owner or role.
Red flags: Tables created with security off; policies like `using (true)`; Firestore or Storage rules like `allow read, write: if true`; policies added only to some tables.
Admin and internal routes protected
majorAre admin pages, internal APIs and debug endpoints protected by server-checked roles?
Good looks like: Role checked on the server for each admin operation; internal endpoints not publicly reachable.
Red flags: Admin access decided by a client-side flag, a hidden URL or an email string in the browser; an open `/api/admin/*`.
Sign-in flows work and are safe
minorDo sign-up, email verification, password reset and sign-out work end to end, with redirects limited to known addresses?
Good looks like: Provider flows used as designed; redirect targets validated against an allow-list; sessions end on sign-out.
Red flags: Redirect loops after login; an unvalidated `?next=` parameter; reset links that do not expire; tokens kept where scripts can read them for no reason.
Data and database
Input validated and output escaped
majorIs user input validated on the server, SQL built with parameters, and user-supplied text kept out of raw HTML?
Good looks like: Server-side schema validation, parameterised queries or an ORM, no unsanitised HTML rendering.
Red flags: Validation only in the form; queries built by string concatenation; `dangerouslySetInnerHTML` or `innerHTML` with user or AI text; `eval` or dynamic `Function`.
Reproducible database schema
majorIs the database schema captured in versioned migrations so a new environment can be created from the repo?
Good looks like: Ordered migration files that match what production has; seed data separated.
Red flags: Tables created by clicking in a dashboard with nothing in the repo; types referencing tables that have no migration.
Queries that hold up with real data
majorAre list queries bounded and indexed, with pagination, and without loading everything then filtering in the browser?
Good looks like: Server-side filtering and pagination; indexes on filter and join columns; no query inside a loop over rows.
Red flags: `select *` with no limit; filtering and sorting in JavaScript after fetching all rows; one query per row in a list.
Backups and recovery
majorIs there a documented backup and a tested way to restore the production database?
Good looks like: Automated backups with a stated retention, and a note on how to restore.
Red flags: No mention anywhere; the only copy of the data is the live database on a free plan.
Payments (when the app takes money)
Applies when: The app takes payments, sells subscriptions or gates features by plan.
Payment confirmed by a verified webhook
criticalIs access or fulfilment granted only after a server-side webhook whose signature is verified, and handled so a repeat delivery does no harm?
Good looks like: A webhook endpoint verifies the provider's signature, updates the order or plan in the database, and is safe to receive twice.
Red flags: No webhook; 'paid' set from a success-page URL parameter; no signature check; the webhook handler returns errors that are ignored.
Prices and plans decided on the server
criticalAre the amount, product and plan looked up on the server, never taken from the browser's request?
Good looks like: The server maps a product id to a price; entitlements are read from the database, not from the client.
Red flags: A checkout function that accepts `amount` or `priceId` from the request body unchecked; plan stored in client state.
Dependencies
Lockfile committed
majorIs there one committed lockfile, and are dependency versions controlled?
Good looks like: A single lockfile for the package manager in use; installs are repeatable.
Red flags: No lockfile; several lockfiles from different managers; `latest` or `*` versions.
No known serious vulnerabilities
majorDoes a dependency audit show no known high or critical vulnerabilities in packages that ship to users or run on the server?
Good looks like: Audit output with no high or critical findings, or documented reasons.
Red flags: High or critical advisories left unaddressed; very old framework versions.
Packages are real and used
majorIs every import backed by a declared dependency, with no oddly named or unused packages that an AI tool may have invented or mistyped?
Good looks like: Imports match `package.json`; package names are recognisable; unused heavy packages removed.
Red flags: Imports with no matching dependency; near-miss names of popular packages; packages with no recent publisher activity that handle auth or payments.
Build, deploy and operations
Someone else can run it
majorCan a new developer clone the repo, set the listed variables and run it, with the steps written down?
Good looks like: README with install, environment variables, run and deploy steps that match the repo.
Red flags: Default template README; required variables undocumented; it only works on the author's machine or inside the builder tool.
Separate environments
majorAre development, staging and production kept apart, each with its own database and keys?
Good looks like: At least a separate development database; production credentials never used locally.
Red flags: One database used for testing and for real users; the production key sits in local config.
Automated checks and deploys
minorDoes a pipeline build the app and run checks before deploying, and is deployment a repeatable step?
Good looks like: CI that runs build, lint and tests on each change; deploy from a branch or tag.
Red flags: No CI; deploy by hand from a laptop; failing builds merged.
Not locked to the builder tool
majorCan the app run and deploy outside the AI builder it was created in, with its backend, storage and secrets under your accounts?
Good looks like: Standard framework and services; backend and hosting accounts owned by you; no dependency on builder-only runtime features.
Red flags: Builder-specific SDKs or tagger packages needed at runtime; backend functions or secrets that exist only inside the builder; accounts owned by someone else.
Errors are seen
majorAre production errors captured somewhere you will see them, and do users get a clear message when something fails?
Good looks like: Error tracking or logs you review; error and empty states in the interface.
Red flags: No logging; errors swallowed; blank screens on failure.
Code health
Tests on the paths that matter
majorDo automated tests cover sign-in, permissions, payments and the main user flow?
Good looks like: A test suite that runs with one command and covers the paths where a bug costs money or data.
Red flags: No tests; tests that only check that a component renders; failing tests ignored.
Errors handled, not swallowed
majorAre failures from the network and database handled and reported, without empty `catch` blocks or unhandled promises?
Good looks like: Errors logged with context and shown to the user; retries or fallbacks where sensible.
Red flags: Empty `catch {}`; `.catch(() => {})`; loading states that never end on failure.
No debug leftovers
majorAre test accounts, mock data, debug routes and verbose logs of user data removed from production code?
Good looks like: No hard-coded test users or credentials; mock data kept out of production paths; logs without personal data.
Red flags: Seeded admin accounts with simple passwords; `console.log` of user objects or tokens; routes named `/debug` or `/test` left on.
Structure you can change safely
minorIs the code split into understandable modules, without very large files or copy-pasted logic?
Good looks like: Components and data access in separate modules; shared logic in one place.
Red flags: Files over about 800 lines doing many jobs; the same query or rule copied across pages.
Types and lint
minorIs the type checker on in a meaningful way, with lint rules the code passes?
Good looks like: Strict or near-strict TypeScript, few `any`, a lint config that runs clean.
Red flags: Strict mode off with many `any`; lint disabled or ignored.
Written notes on how it works
minorIs there a short description of the architecture, data model and integrations?
Good looks like: A page that says what talks to what, where data lives, and which services are used.
Red flags: Only the generated template README; knowledge held in the author's head or the builder's chat history.
Production readiness
Abuse protection on public endpoints
majorDo public endpoints (sign-up, forms, password reset, anything that costs money) have rate limits or bot protection?
Good looks like: Limits per user and per IP; a bot check on sign-up and contact forms.
Red flags: Open endpoints that send email, text or call paid APIs with no limit.
CORS and security headers
minorIs cross-origin access limited to your own domains, and are basic security headers set?
Good looks like: An allow-list of origins; HTTPS only; standard headers set by the host or framework.
Red flags: `Access-Control-Allow-Origin: *` on endpoints that use credentials or return private data.
Personal data handled with care
majorIs personal data kept out of logs and analytics, and is there a way to delete or export a user's data?
Good looks like: Minimal personal data stored; no personal data in logs; a deletion path; a privacy page that matches reality.
Red flags: Names, emails or messages printed to logs; no way to delete an account; sensitive data kept without need.
AI feature (when it applies)
Applies when: The app calls an LLM or other AI service, or lets users chat with an assistant.
AI endpoints protected from cost abuse
criticalIs every AI call made from a server, behind sign-in and per-user limits, with a spending cap at the provider?
Good looks like: Authenticated endpoint, per-user rate and size limits, a monthly cap set with the provider.
Red flags: An unauthenticated endpoint or browser-side call to an LLM; no limits; no provider cap, so anyone can run up the bill.
AI actions limited to the user's rights
majorCan text from users or documents make the assistant do things the user could not do themselves, such as reading others' data or changing records?
Good looks like: Tools run with the signed-in user's permissions; sensitive actions need confirmation; retrieved text treated as untrusted.
Red flags: Tools that run with a service-role key; the assistant can look up any record by id; no confirmation before changes.
AI output treated as untrusted
majorIs model output validated before it is rendered as HTML, run as code, or written to the database, with timeouts and failure handling?
Good looks like: Output escaped or parsed against a schema; calls have timeouts and a fallback message.
Red flags: Model output rendered as raw HTML; output used directly in queries or commands; no timeout.
Data sent to the AI provider is minimal
minorIs only the data needed for the task sent to the provider, with the provider's retention and training settings checked?
Good looks like: Only needed fields sent; personal data removed where possible; provider settings reviewed.
Red flags: Whole customer records in every prompt; prompts and responses logged with personal data.
How the score works
Each applicable check is rated met (1), partial (0.5) or missing (0). Critical checks weigh 3, major 2, minor 1. The score is the weighted share of the applicable checks, out of 100.
If any critical check is rated partial, the verdict cannot be better than 'Nearly ready: fix the listed items first'. If any critical check is rated missing, it cannot be better than 'Not safe to ship yet'. A check that cannot be assessed from the files is rated na and listed under 'Not checked'; never rate a check met on faith.
| Score | Verdict |
|---|---|
| 85 to 100 | Ready to ship after minor fixes |
| 70 to 84 | Nearly ready: fix the listed items first |
| 50 to 69 | Not safe to ship yet |
| 0 to 49 | Do not ship |
Salvage or rebuild?
After the score, the skill answers the question most founders actually have: fix this, or start again? It decides from four dimensions, using the checks behind each one.
| Dimension | Fails when |
|---|---|
| Security model | Both are rated missing: access control exists only in the interface, so it has to be designed and added across the data layer. |
| Data layer | Both are rated missing: the schema is not reproducible and queries will not hold up with real data. |
| Portability and setup | Either is rated missing: the app cannot run outside the builder tool, or nobody but the original author can run it. |
| Safe to change | All three are rated missing: there are no tests, the code is tangled and errors are swallowed, so every change risks breaking something. |
Salvage: harden in place
No failing dimension and a score of 65 or more. Fix the listed findings in order; keep the architecture.
Salvage with targeted rewrites
One or two failing dimensions, or a score from 40 to 64 with fewer than three failing. Rewrite the named layers or modules; keep the interface and the rest.
Rebuild the foundation, reuse the interface
Three or more failing dimensions, or a score under 40 together with two or more failing dimensions. Keep the design, screens and product learnings; rebuild the data, auth and server layers.
Not enough to decide
Fewer than 20 checks could be rated from the files. Say what to provide.
A judgement from a static read of the files, not a guarantee. A person should confirm before money is spent on either path.
Get the skill
Free and open source. Enter your email to get the install commands and the paste-in prompt for chat tools without skill support. The GitHub repository is going public shortly; we will email you the link.
Questions
Does it change or run my code?
No. It reads files and searches them. It does not run your app, install packages, run tests, call any URL or edit a file. The one optional exception is a dependency audit, which contacts a package registry, so it asks first.
Will it show my secrets in its report?
No. When it finds a key it reports the type, the file and line, the first four characters and the length, never the full value. It will tell you to rotate any exposed key, because deleting it from the code does not undo the exposure.
Does my code leave my machine?
NeuralSaaS never receives it. The skill makes no calls of its own. Your agent sends the code it reads to whichever model you use, under that provider's terms. Check those terms for a confidential repo.
Which stacks does it handle?
It is written for JavaScript and TypeScript web apps with Supabase or Firebase and Stripe, which is what Lovable, Bolt, Replit, Cursor and v0 usually produce. The general checks work on other stacks, but the database-rule and payment checks are specific to those services.
Is a high score a guarantee that my app is secure?
No, and the skill is told never to say an app is secure. It reports what it checked and what it could not, such as live settings, backups and the full git history. It is not a penetration test or a compliance audit.
How is the salvage-or-rebuild verdict decided?
By rules that are public on this page: how many of four dimensions fail, and the score. It is a judgement from a static read, so confirm it with a person before spending money either way.
I do not use a coding agent. Can I still use it?
Yes. There is a paste-in prompt version. It asks you to paste the key files (never secrets), reviews only what you pasted, and says what it could not cover. The 35 checks are also listed on this page for a manual review.
Is it free?
Yes, and open source under the MIT license.
Want a person to confirm the verdict?
A static read cannot see your live settings, production data or hosting. If you would like a founder to look at the findings with you, or to tell you honestly whether a fix or a rebuild makes sense, talk to us. We will not promise to recover data or to fix everything. See how a discovery call works or talk to us.