AI Vibing

Write These 5 Security Documents Before You Vibe Code an App (or Hire Someone To)

Write These 5 Security Documents Before You Vibe Code an App (or Hire Someone To)

Do this first

Security rules

How the app handles what people type in and how passwords and keys stay out of the code. Reel Playbooks addition: include validating every input on the server (input validation guide), storing secrets in environment variables or a secrets manager rather than in the repo (secrets guide), and rate limiting logins and forms.

See all 6 steps

Summary

Vibe coding makes it easy to ship an app before anyone has decided how it should keep people's data safe. The reel's rule: don't vibe code an app until five documents exist, and if someone is building one for your business, ask them for all five first. They are security rules, login rules, data rules, a threat map and a launch checklist. This playbook explains what goes in each, gives you a prompt to draft them with AI, and points to the free OWASP guides that tell you what good looks like.

Skill level
Intermediate
Time to implement
90 min
Cost
Free
Platform
Instagram
Tools
Claude, Onedery
Outcomes
Free to do
Last verified
Nov 18, 2026

Set upWhat you need

  • A one paragraph description of the app: who uses it, what they do, what data it handles

  • An AI assistant such as Claude or ChatGPT to draft the documents

  • Reel Playbooks addition: the free OWASP Application Security Verification Standard as a reference for what each rule should cover

  • About 90 minutes for a first draft, plus a review with your builder

ToolsClaudeOnedery

Do thisStep by step

0 of 6 steps done
  1. Security rules

    How the app handles what people type in and how passwords and keys stay out of the code. Reel Playbooks addition: include validating every input on the server (input validation guide), storing secrets in environment variables or a secrets manager rather than in the repo (secrets guide), and rate limiting logins and forms.

  2. Login rules

    Who signs in, how long they stay signed in, and what each person can see once they are in. Reel Playbooks addition: write it as a table of roles (for example your clients, your team, you as admin) against every screen and action, and have the builder enforce it on the server, not just by hiding buttons. OWASP's authentication, session management and authorization cheat sheets cover password rules, session timeouts and access checks.

  3. Data rules

    What client information the app keeps, how it is processed, and when it is deleted. The creator stresses that the rules vary by country. Reel Playbooks addition: list each field (name, email, phone, card details and so on), why you need it, where it is stored and whether it is encrypted, who can see it, and a deletion period. Collect only what you need; under the GDPR, for example, personal data should not be kept longer than necessary (ICO storage limitation guidance). Never store full card numbers yourself; let the payment provider hold them. If you serve several countries or handle health or financial data, get legal advice.

  4. Threat map

    Where somebody could break in, planned before any real clients use it, and penetration tested. Reel Playbooks addition: list every entry point (login page, contact forms, file uploads, admin panel, API), what could go wrong at each and a risk level, using the four questions in OWASP's threat modeling cheat sheet: what are we building, what can go wrong, what will we do about it, and did we do a good job. For testing, a free scanner like ZAP catches common issues; a professional penetration test against the OWASP testing guide costs money but is worth it before handling sensitive client data.

  5. Launch checklist

    A checklist that proves these protections were actually built before launch. Reel Playbooks addition: turn every promise in documents 1 to 4 into a yes or no item with the evidence (a test, a screenshot, a setting), and do not launch until each one is checked off.

  6. Draft them with AI and hand them to your builder

    Reel Playbooks addition: paste this into Claude or ChatGPT, then review and correct the result: Before writing any code for [app description], draft five short documents in plain English: (1) Security rules: how every input is validated, how secrets are stored outside the code, and what is rate limited. (2) Login rules: who can sign in, how, session length, and a table of each role and what it can see and change. (3) Data rules: every piece of personal data we keep, where it is stored, who can access it, how it is encrypted, when it is deleted, and which laws apply for users in [countries]. (4) Threat map: every entry point (login, forms, file uploads, admin, API), what could go wrong at each, its risk level, and how we will test it. (5) Launch checklist: a yes or no item for each promise in documents 1 to 4, with how to prove it. Ask me questions where you need facts you do not have. Give the finished documents to your AI coding tool as project instructions, or to your developer as part of the brief, and ask them to show how each item was met.

Heads upCommon mistakes & tips

  • Ask before, not after. Adding security rules to an app that is already built is much harder than building to them from day one.

  • Reel Playbooks addition: if a builder cannot produce or explain these documents, treat it as a warning sign about how the app will handle your clients' data.

  • Reel Playbooks addition: AI drafted documents can sound confident and still be wrong for your situation; have someone with security experience review them for anything that handles payments, health or other sensitive data.

  • Reel Playbooks addition: if the app is mainly a place to store client records, intake forms and follow ups, an existing system like Onedery may already cover it, so you only build the parts that are truly custom and keep less sensitive data in custom code.

  • The reel ends with an offer to comment SECURITY for the creator's list of questions to ask your builder; the prompt in the last step covers the same ground.

Quick answersCommon questions

What is Write These 5 Security Documents Before You Vibe Code an App (or Hire Someone To) in short?

Vibe coding makes it easy to ship an app before anyone has decided how it should keep people's data safe. The reel's rule: don't vibe code an app until five documents exist, and if someone is building one for your business, ask them for all five first. They are security rules, login rules, data rules, a threat map and a launch checklist. This playbook explains what goes in each, gives you a prompt to draft them with AI, and points to the free OWASP guides that tell you what good looks like.

What do I need before starting?
  • A one paragraph description of the app: who uses it, what they do, what data it handles

  • An AI assistant such as Claude or ChatGPT to draft the documents

  • Reel Playbooks addition: the free OWASP Application Security Verification Standard as a reference for what each rule should cover

  • About 90 minutes for a first draft, plus a review with your builder

How many steps does it take?
6 steps:
  1. Security rules

  2. Login rules

  3. Data rules

  4. Threat map

  5. Launch checklist

  6. Draft them with AI and hand them to your builder

Who created this method?

Michael Kocher. Original strategy on Instagram.

Watch the original video on Instagram

MK

Michael Kocher

@michaelpkocherIG

Original strategy by Michael Kocher. Watch the original on Instagram.

MeasureHow to know it worked

You have five short documents your builder has read and agreed to, every launch checklist item is ticked with evidence, a scan or penetration test of the entry points on the threat map has been run and its findings fixed, and you can answer what data you keep and when you delete it without guessing.

ProvenanceSource & adaptation notes

Original

The reel (43 seconds) and caption say not to vibe code your app unless you have created five documents, and if someone is building one for your business, ask for all five first: 1) security rules, such as how it handles what people type in and how passwords stay out of the code; 2) login rules, covering who signs in, how long they stay in and what each person can see; 3) data rules, covering what client information it keeps, how it is processed and when it is deleted, which varies by country; 4) a threat map of where somebody could break in, planned before real clients use it and penetration tested; 5) a launch checklist proving these protections were built before launch. On screen the creator shows sample versions of each document.

Reel Playbooks additions

Reel Playbooks additions: what to put in each document, the role and permission table, server side enforcement, input validation, secrets and rate limiting guidance, the data inventory and deletion periods with the GDPR storage limitation example, card data handling, OWASP's four threat modeling questions, free scanning versus professional penetration testing, evidence based launch items, the AI drafting prompt, review cautions, and the build versus buy tip.

AttributionCredit

Original tip by Michael Kocher (@michaelpkocher) on Instagram (watch the original reel).

Adapted from Michael Kocher's video; steps expanded by Reel Playbooks.

Watch the original video

Reel Playbooks credits and links to the original creator. See For creators to request changes or removal.