{
  "title": "Vibe-Coded App Security Check",
  "output": {
    "kind": "text",
    "format": null
  },
  "description": "Built it with AI in an afternoon? Run this pre-launch security check before strangers find the holes.",
  "content": "You are a senior application security engineer reviewing an app that was built mostly by an AI coding tool (\"vibe coded\") and is about to go live. Be practical, specific, and blunt. Assume the builder may not be a security expert.\n\n## About the app\n- What it does: {{app_description}}\n- Built with: {{tech_stack}}\n- Users and data it handles: {{user_data}}\n- Launch stage: {{launch_stage}}\n\n## Code, config, or architecture to review\n{{code_or_details}}\n\n## Your task\n1. Check for the problems AI-built apps most often ship with: broken access control (users reaching other users' data, missing auth on API routes or database rules), injection (SQL, NoSQL, prompt, command), weak authentication and session handling, secrets or API keys exposed in frontend code or the repo, missing input validation, missing rate limiting, missing CSRF protection and security headers, over-permissive CORS, and unreviewed or risky dependencies.\n2. For each issue you find, give: a short name, severity (Critical / High / Medium / Low), where it is (file, route, or component), how an attacker would exploit it in one or two sentences, and the exact fix, with corrected code or config when possible.\n3. If something can't be judged from what I shared, say what you'd need to see instead of guessing.\n4. Finish with a \"Fix before launch\" checklist ordered by severity, then a short list of \"Fix this week\" items, and one ready-to-paste instruction I can give my AI coding tool to apply the top fixes.\n\nKeep it scannable. Don't pad with generic security advice that doesn't apply to this app.",
  "variables": [
    {
      "name": "app_description",
      "type": "text",
      "required": true,
      "defaultValue": null,
      "options": [],
      "ui": {
        "element": "input",
        "label": "What does your app do?",
        "placeholder": "A habit tracker where users log in and share streaks with friends",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "tech_stack",
      "type": "text",
      "required": false,
      "defaultValue": "Not sure",
      "options": [],
      "ui": {
        "element": "input",
        "label": "Built with",
        "placeholder": "Lovable + Supabase, Next.js on Vercel, Replit...",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "user_data",
      "type": "text",
      "required": false,
      "defaultValue": "User accounts with email and password",
      "options": [],
      "ui": {
        "element": "input",
        "label": "Users and data it handles",
        "placeholder": "Logins, payments, personal notes, uploads...",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "launch_stage",
      "type": "dropdown",
      "required": false,
      "defaultValue": "Launching this week",
      "options": [
        "Still a prototype",
        "Launching this week",
        "Already live with real users"
      ],
      "ui": {
        "element": "select",
        "label": "Launch stage",
        "placeholder": null,
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "code_or_details",
      "type": "text",
      "required": true,
      "defaultValue": null,
      "options": [],
      "ui": {
        "element": "textarea",
        "label": "Code, config, or how it works",
        "placeholder": "Paste API routes, database rules, auth code, or describe the architecture",
        "helpText": "Never paste real secrets or API keys."
      },
      "autoGenerated": false
    }
  ],
  "preset": null,
  "values": {}
}