Skip to content

Swipe right for a newer agent, Patch Notes Explainer. Swipe left for an older agent, Meeting Notes to Tasks.

Issue 37 · 11 Oct 2026 · Medium · Free

Vibe-code Security Checker

AI security review prompt for vibe-coded apps

The model shipped a feature in one shot. It runs. You still need someone to ask where the password is stored and who is allowed to delete the row.

Category
Coding & Vibe Coding

Sample you can paste

Stack: Next.js route handler, TypeScript, Postgres via a query string.
Diff:
```ts
export async function DELETE(request: Request) {
  const { id } = await request.json();
  const key = "sk_live_51HabcExampleNotReal";
  await db.query("delete from notes where id = " + id);
  return Response.json({ ok: true, key });
}
```

Steps

  1. Step 1

    Save the prompt where you write code

    In Cursor, add the prompt as a project rule or paste it at the start of a review chat. In Claude or ChatGPT, save it as a project instruction. The rubric JSON can sit beside it.

  2. Step 2

    Paste a diff, not the whole repo

    Include the files that changed and one line about the stack: framework, database, and whether the route is public. A 200-line diff reviews better than a zip file.

  3. Step 3

    Read findings before fixes

    The agent lists issues first, with severity and the line that triggered them. It shows a safer version of your code. It does not write an exploit.

  4. Step 4

    Treat it as a first pass

    This does not replace a human review, a dependency audit, or a pentest. It catches the class of mistake vibe-coding produces on a Tuesday night.

What you get

What you put in and what you get out

When to use it

Use it before you deploy anything a model wrote that touches logins, secrets, user data, or a database.

When to skip it

It is not a penetration test and it refuses to write exploits. It names the risk and the fix.

Sample run

0:00

The diff that 'works'

A Next.js DELETE handler reads an id from JSON, concatenates it into SQL, and returns a live-looking secret key in the response.

Full prompt

vibe-code-security-checker.prompt.txt

You review AI-generated or hastily written code for security issues. You are a careful reviewer, not an attacker. You never provide exploit steps, payloads, proof-of-concept attacks, or instructions for breaking a system you were not given. You only inspect the code the user pasted.

INPUT
- One line on the stack: language, framework, datastore, and how a user authenticates, if they said.
- A diff or a file. If they paste a whole repo with no question, review the routes, queries, and auth checks first.
- If they did not include auth context, say what you had to assume.

RUBRIC, in this order
1. Secrets: keys, passwords, tokens, or connection strings in source, logs, or client responses.
2. Authorization: can a caller read or change someone else's data by changing an id? Is the user id taken from the client?
3. Injection: SQL, shell, HTML, path, or header values built by concatenation.
4. Browser trust: prices, roles, or feature flags decided only on the client.
5. SSRF and open fetches: user-controlled URLs requested by the server.
6. Auth defaults: missing rate limits on login or reset, cookies without sensible flags, debug routes left on.
7. LLM calls: untrusted text concatenated into a tool-using prompt, with no boundary between instructions and data.

RULES
- Quote the line you are talking about. No finding without evidence from the paste.
- Severity is only: high, medium, low.
- For each finding, say the impact in one sentence and show a safer version of their code. Do not show attack traffic.
- If the paste includes a live-looking secret, tell them to rotate it. Do not repeat the full secret in your answer; redact the middle.
- Do not claim a clean bill of health. End with what you could not see (dependencies, infra, data migrations).
- If the user asks for an exploit, refuse that part and continue the review.

OUTPUT
## Findings
A list. Each item: severity, title, quoted evidence, impact, safer code.
If there are none, write "No findings in the pasted code" and still complete the next section.

## Not visible from this diff
Bullets of what you could not check.

## Do these first
The high findings, in order, as actions. If there are no high findings, say so.

Copied it? Get the Friday roundup. Seven agents and one tip, once a week.

Config

security-review.rubric.json

{
  "version": 1,
  "refuses": [
    "exploit steps",
    "payloads",
    "proof of concept attacks"
  ],
  "order": [
    "secrets",
    "authorization",
    "injection",
    "client-trusted decisions",
    "server-side requests",
    "auth defaults",
    "prompt boundaries"
  ],
  "severities": [
    "high",
    "medium",
    "low"
  ],
  "requiresEvidenceQuote": true
}
How it works

Vibe-coding gets a feature on screen and leaves the boring failures in the diff: a key in the file, a query built with string concatenation, a delete route that trusts the body's userId, a price checked only in the browser.

This agent walks a fixed rubric and reports findings against the diff you paste. It is a review, not an attack tool. The prompt tells the model to describe the impact and show a safer version of *your* code. It refuses exploit steps, payloads, and proof-of-concept attacks.

Use it on the diff you are about to merge

Paste the prompt once as a standing instruction. Each review is then: stack in one line, diff in a fence, done. If you use Cursor, a project rule means you can say "review this diff with the security checker" and the rubric is already there.

The JSON file is the same rubric in an order a script can read later. The prompt stands alone if you only want to paste one thing.

A finding without a file and a quoted line is a feeling. The output format rejects those.

Questions about Vibe-code Security Checker

What does it check?

Hardcoded secrets, missing auth on routes, injection in queries, unsafe defaults like open CORS, and who is allowed to delete or read a row.

Is it enough before launch?

It catches the common mistakes vibe-coded apps ship with. If you handle payments or sensitive data, get a human security review too.

Is Vibe-code Security Checker free?

Yes. The prompt is free to copy, download, and reuse under CC-BY-4.0. There is no sign-up on One Agent a Day. You only need access to a chat model such as Cursor, Claude and ChatGPT.

Which AI tools does Vibe-code Security Checker work in?

It was written for Cursor, Claude and ChatGPT. It is a plain-text prompt, so any capable chat model can run it. Paste the prompt first, then your input.

What do I paste into Vibe-code Security Checker?

Save the prompt where you write code. In Cursor, add the prompt as a project rule or paste it at the start of a review chat. In Claude or ChatGPT, save it as a project instruction. The rubric JSON can sit beside it.

Compare and find more

Share this agent

Vibe-code Security Checker — You put in Stack: Next.js route handler, TypeScript, Postgres via a query string.. You get out What it will not do. Free from One Agent a Day.

Share on XShare on LinkedIn
Was this useful?

A yes or no is enough. The note stays on this server's log.

Friday email

The week’s 7 agents, in one email

Every Friday. Seven free prompts, one tip, one “paste this first.” Unsubscribe anytime.

One email, every Friday. Confirm on the next page. Unsubscribe anytime.

The daily agent stays free. Pro waitlist is a separate list, and it is not open yet.

Friday email

The week’s 7 agents, in one email

Every Friday. Seven free prompts, one tip, one “paste this first.” Unsubscribe anytime.

One email, every Friday. Confirm on the next page. Unsubscribe anytime.