# Site Studio: the 4 live prompts Open an empty folder called `site-studio` in Claude Code. Paste one prompt at a time. After each one, open http://localhost:8787 and show the result before moving on. ## Think first (3 min, keyboard off) - **Who uses it?** You. You are about to pitch a shop, fix your own site, or start a new one. - **What do they need?** A real one-page site in minutes, not a blank editor. - **Smallest thing that works?** One form, one Node file, one HTML file out. No database, no npm install. Write this on screen: **3 fields in. AI fills the rest. One HTML file out.** ## Prompt 1: scaffold (min 3-8) ```text STEP 0 - DESIGN SKILL (do this first) - Check whether Anthropic's frontend-design plugin is installed: run `claude plugin list` and look for frontend-design@claude-plugins-official. - If it is missing, install it: claude plugin marketplace add anthropics/claude-plugins-official (skip if that marketplace is already added) claude plugin install frontend-design@claude-plugins-official --scope user - A plugin installed now only loads in the next session. So if the frontend-design skill is not already available to you, read its SKILL.md directly: the installPath is in ~/.claude/plugins/installed_plugins.json, the file is /skills/frontend-design/SKILL.md. Follow it for all the UI work in this build. - Tell me in one line: already installed, or installed now. Then build a small local web app called Site Studio. - Zero npm dependencies. One server.mjs for Node 20+, run with `node server.mjs`, port 8787. It serves index.html, app.js, style.css and anything under output/. - Read GEMINI_API_KEY from the environment or from a .env file next to server.mjs. Add .env.example (empty key) and a .gitignore with .env and output/. - index.html: a form. Required: Theme, Niche, Description. Optional: Site name, Domain, Target audience, Tone, Color palette, Sections (checkboxes: hero, about, fun facts, products, social, community, contact, FAQ), Call to action, Amazon affiliate tag, Affiliate categories, Social platforms, Hero video prompt, Image prompts (textarea, one per line), Existing site URL. - Right side: a status line and an empty iframe for the preview later. - Clean, large text, readable on a 1080p stream, works on a phone. Light and dark mode. - Keep the code short. Students will read it. Start the server when done and tell me the URL. ``` **Show:** the line that says whether frontend-design was installed, then the form at localhost:8787. Say: the design skill is why the form does not look like every other AI-made page. ## Prompt 2: AI suggest + fill everything (min 8-13) ```text Add Gemini to Site Studio. - server.mjs: a helper that calls the Gemini REST API generateContent with model gemini-2.5-flash and the x-goog-api-key header. Use built-in fetch. No SDK. - POST /api/suggest {field, label, form}: ask Gemini for a value for that one field, using everything already in the form as context. Return {value}. Only the value, no explanation. - POST /api/fill {form, fields}: ask for ALL empty fields in one call. Use responseMimeType "application/json". Return {values}. - UI: a "Suggest" button next to every optional field (not the affiliate tag or the URL), and a "Fill everything" button that fills only the empty fields. Sections suggestions should tick the matching checkboxes. - If there is no key, the error must say: get a free key at https://aistudio.google.com/apikey and put GEMINI_API_KEY in .env. Show every API error in the status line in plain words. Restart the server. ``` **Show:** type cats / black cats / description, click Suggest on Tone, then Fill everything. ## Prompt 3: generate the site (min 13-18) ```text Add "Generate site". - POST /api/generate {form}: ask gemini-2.5-flash for ONE complete HTML file. Inline CSS, no external JavaScript, no frameworks. Use every form field. - Save it to output//index.html. Slug = domain without the TLD, else the name, else the niche. - Affiliate links: the SERVER builds them, never the model. One per category: https://www.amazon.com/s?k=&tag= Give the model those exact URLs. After generation, replace any other amazon.com product URL with a search link. The page must include: "As an Amazon Associate I earn from qualifying purchases." - Tell the model: facts sections only state well-established facts. Health or medicine content says to ask a veterinarian (or the right professional) first. No fake reviews, no invented prices. - Hero: if output//hero.mp4 exists, use