{"id":"vibe-mkt-popup-frequency-fix-prompt","audience":"marketing","category":"coding","track":"coding","technique":"constraints","title":"Write a one-bug fix prompt for a newsletter popup","free":false,"task":"Your AI-built site's newsletter popup has one bug. Write the follow-up prompt for the AI builder in one code block of at most 8 lines, with at most one short line outside it. It must name the popup component, say what's wrong, use the show-again window your lead just set, say not to change the popup's text, colors or any other component, and give one check you can do in the browser.","materialLabel":"Your notes and a Slack message (attached to your prompt automatically)","material":"Site: Marigold Candle Co. (built with an AI app builder)\n\nThe bug:\n- The newsletter popup (components/NewsletterPopup.tsx) shows up on EVERY page load.\n- Even right after a visitor closes it with the X, it pops up again on the next page.\n- Customers are complaining: \"your popup won't leave me alone\".\n\nWhat it should do:\n- Once a visitor closes it, don't show it again for a while.\n- My notes from last month said 30 days.\n\nDon't break:\n- The popup copy (\"Get 10% off your first order\") and the coral color are approved by the brand team.\n- Last time I asked the builder to \"fix the popup\", it redesigned it and changed the footer too.\n\nSlack from Imogen (marketing lead), today:\n\"Let's use 7 days, not 30. We want people to see the holiday offer.\"\n\nOther wish: an exit-intent popup. Not now.\n","rules":[{"type":"codeBlocks","count":1},{"type":"maxCodeLines","max":8},{"type":"maxProseWords","max":20}],"mistakes":[{"title":"A vague fix request","why":"'Fix the popup' lets the builder redesign it, like last time.","fix":"Add: \"Only change components/NewsletterPopup.tsx.\"","checks":["r0","r2"]},{"title":"Using the old window","why":"Your notes say 30 days, and the AI uses them.","fix":"Add: \"Don't show it again for 7 days after closing (Imogen's call).\"","checks":["r1"]},{"title":"No fence around approved work","why":"Builders tweak copy and colors while they're in there.","fix":"Add: \"Don't change the text, colors or any other component.\"","checks":["r2"]},{"title":"A prompt wrapped in chat","why":"The AI explains the fix and writes code for you.","fix":"Say: \"One code block, at most 8 lines, nothing else.\"","checks":["codeBlocks","maxCodeLines","maxProseWords"]}],"promptHints":[{"label":"Names the component","patterns":["newsletterpopup"]},{"label":"Uses the new window","patterns":["7 days","seven days","imogen"]},{"label":"Protects approved work","patterns":["don.t change","colou?rs","text"]},{"label":"Gives a check","patterns":["check","reload","another page"]},{"label":"Asks for one block","patterns":["code block","\\d+ lines"]}],"hint":"A fix prompt works best when it names the one file, the exact behavior, and what must stay the same. Use your lead's latest number.","rubricLabels":["The prompt names NewsletterPopup.tsx (or the NewsletterPopup component) and says the popup reappears on every page even after the visitor closes it","The prompt says that after closing, the popup should not show again for 7 days (not 30)","The prompt says not to change the popup text, colors or any other component, gives one browser check (for example close it, load another page, it stays hidden), and does not ask for an exit-intent popup"]}