Course contents
Build a single-page website
Write a first prompt that covers who, what and how, build a one-page site, and check it in a real browser at phone size.
Your first prompt decides most of what you get. Vague prompts get generic sites full of placeholder text. A good first prompt says who the site is for, what it must contain, how it should look, what to avoid, and how you'll check it. It doesn't need technical words: plain, specific English beats jargon every time.
What goes in a first prompt
| Part | Why it matters | Crumb & Co. example |
|---|---|---|
| Who it's for | The agent pitches tone and layout to the reader | Neighbors walking past, mostly on their phones |
| What's on the page | Stops the agent inventing sections | Hero, about, this week's bakes, hours, location, contact |
| Real details | Placeholder text hides layout problems | Tue–Sun 7am to 3pm; 14 Elm Street; hello@crumbandco.example |
| Look and feel | Gives direction without designing it yourself | Warm and simple: cream background, dark brown text, one accent color |
| Constraints | Keeps the project small enough to understand | Plain HTML, CSS and JavaScript; no frameworks; works on phones |
| Done means | Gives you and the agent the same test | Readable at phone width, no sideways scrolling, every section present |
Notice what's missing: no talk of grids, components or font files. Describe the outcome and let the agent pick the technique. When you care about a detail, such as an exact color or the order of sections, say so.
Assemble the first prompt for the Crumb & Co. homepage. Switch on the parts that help; leave out the parts that hurt.
Make a website for my bakery.
Check it like a visitor
When the agent says it's finished, open the page in a real browser and look at it the way a visitor would, before you read the agent's summary. Then check it at phone size. In Chrome or Edge, right-click the page, choose Inspect, and turn on the device toolbar (the phone-and-tablet icon) to preview phone widths. Firefox calls the same feature Responsive Design Mode.
- Is every section you asked for on the page, with your real details?
- On a phone-sized screen, does any text run off the edge or overlap?
- Do the links and the email address work when you click them?
- Is there leftover filler text, such as “Your text here” or paragraphs of dummy Latin?
The page looks great on your laptop, but in the phone preview the hours table runs off the right edge. What's the best next prompt?
Ask for a plan before code
Start your agent in the
crumb-and-cofolder. In Claude Code, press Shift+Tab until the status bar shows plan mode, or start the prompt with/plan. With other agents, the prompt's last line (“Show me your plan first and wait for my OK”) does the same job.VerifyYou know how you'll get a plan before the agent edits any files.Send the first prompt
Paste the full prompt and read the plan that comes back. Check it lists plain files (such as
index.htmlandstyles.css) and no framework.promptBuild a one-page website for Crumb & Co., a neighborhood bakery. It's for neighbors walking by, mostly on phones, deciding whether to stop in. Sections: a hero with the name and the tagline "Baked this morning, two doors down", about us, this week's bakes (cardamom buns, sourdough loaf, lemon tart), opening hours, location, contact. Details: open Tuesday to Sunday, 7am to 3pm, closed Monday. 14 Elm Street. hello@crumbandco.example. Look: warm and simple. Cream background, dark brown text, one accent color. Constraints: one page, plain HTML, CSS and JavaScript, no frameworks or build tools. It must work well on a phone. Done means: every section is present, it's readable at 375px wide with no sideways scrolling, and the email link opens a new message. Show me your plan first and wait for my OK.VerifyThe agent replies with a plan, and no files have changed yet.Approve and let it build
If the plan matches what you asked for, approve it. If not, say what to change, for example “skip app.js for now.” Watch the edits appear; each one shows what was added.
Verifyindex.htmlandstyles.cssnow exist in the folder.Open the page in your browser
Ask the agent to open
index.htmlin your browser, or do it yourself: on a Mac runopen index.html, on Windows runstart index.html, or double-click the file. Then do the visitor check above, including the phone preview.bashopen index.htmlVerifyThe page loads with your real details, and nothing runs off the edge in the phone preview.Fix one thing, then commit
Describe the most important problem in one specific prompt and check again. When you're happy, ask: “Commit this with a message that describes the site.”
VerifyAsking for the git log shows a new commit on top of your first one.
Plain-English definitions from the AI Coding Dictionary.