{
  "title": "It Looks Done But Doesn't Work: Vibe-Code Fix Finder",
  "output": {
    "kind": "text",
    "format": null
  },
  "description": "Your AI-built app looks perfect but nothing actually saves or works? Find the real cause and get a fix plan your AI agent can follow.",
  "content": "You are a senior engineer who specializes in rescuing apps that were built quickly with AI coding tools (\"vibe coding\"). These apps often look finished but fail underneath: buttons with no handler attached, fake sample data instead of a real database, a front end and back end that disagree on field names or endpoints, silent errors in the console, or code written without knowing what the real data looks like.\n\nHere is my situation:\n- What the app is: {{app_description}}\n- Tools and stack I built it with: {{tech_stack}}\n- What's broken (what I expected vs. what actually happens): {{whats_broken}}\n- Errors, console output, or logs I can see: {{error_output}}\n- Relevant code or file structure (may be partial): {{code_or_files}}\n- How comfortable I am reading code: {{skill_level}}\n\nPlease do the following:\n\n1. **Most likely causes.** List the 3 most likely root causes, ranked, with one sentence each on why you suspect it based on what I shared. Check especially for: missing logic behind the UI, mock or hard-coded data, front end/back end mismatches, swallowed or silent errors, missing environment variables or credentials, and wrong assumptions about the data.\n2. **How to confirm.** For each cause, give one quick check I can do myself (where to look, what to click, what to log) to confirm or rule it out. Match the explanation to my comfort level.\n3. **The fix.** For the most likely cause, explain the fix in plain language, then write a ready-to-paste prompt I can give my AI coding agent so it fixes the real problem instead of just making the screen look right. The prompt should tell the agent to explain what it changed and to not touch unrelated files.\n4. **Prove it works.** Give me a short test checklist (3 to 5 steps) to verify the fix with real data, including one edge case.\n5. **Stop it happening again.** One or two habits for my next build session so this class of bug gets caught early.\n\nIf you need information I didn't give, say exactly what to paste next rather than guessing. Be direct and practical; skip generic advice.",
  "variables": [
    {
      "name": "app_description",
      "type": "text",
      "required": true,
      "defaultValue": null,
      "options": [],
      "ui": {
        "element": "input",
        "label": "What your app does",
        "placeholder": "A habit tracker where users log daily streaks",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "tech_stack",
      "type": "text",
      "required": false,
      "defaultValue": null,
      "options": [],
      "ui": {
        "element": "input",
        "label": "Tools and stack",
        "placeholder": "Built with Cursor, Next.js, Supabase",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "whats_broken",
      "type": "text",
      "required": true,
      "defaultValue": null,
      "options": [],
      "ui": {
        "element": "textarea",
        "label": "What's broken",
        "placeholder": "Clicking Save shows a success toast, but nothing appears after refresh",
        "helpText": "What you expected vs. what actually happens"
      },
      "autoGenerated": false
    },
    {
      "name": "error_output",
      "type": "text",
      "required": false,
      "defaultValue": "None that I can see",
      "options": [],
      "ui": {
        "element": "textarea",
        "label": "Errors or logs",
        "placeholder": "Paste console errors, terminal output, or server logs",
        "helpText": null
      },
      "autoGenerated": false
    },
    {
      "name": "code_or_files",
      "type": "text",
      "required": false,
      "defaultValue": "Not shared yet",
      "options": [],
      "ui": {
        "element": "textarea",
        "label": "Relevant code or file structure",
        "placeholder": "Paste the component, API route, or folder tree",
        "helpText": "Partial is fine"
      },
      "autoGenerated": false
    },
    {
      "name": "skill_level",
      "type": "dropdown",
      "required": true,
      "defaultValue": "I can follow code but don't write much",
      "options": [
        "I don't read code at all",
        "I can follow code but don't write much",
        "I'm a developer"
      ],
      "ui": {
        "element": "select",
        "label": "How comfortable are you reading code?",
        "placeholder": null,
        "helpText": null
      },
      "autoGenerated": false
    }
  ],
  "preset": null,
  "values": {}
}