All answers

How to build a static website with an AI coding agent

The order of steps that keeps a small site project cheap and finished: structure first, content second, styling last.

Short answer

  • Decide the pages and the content before you let an agent write any code.
  • Build the structure first, then fill in the copy, then style. Reversing this costs the most.
  • Review each page as it lands instead of asking for the whole site in one go.

Write the page list first

A static site is mostly a decision about pages. Home, what you do, proof, contact. If you cannot list them, the agent will invent them and you will spend the session deleting things.

For each page write one line about who it is for and what should happen next. That single line prevents most of the rework.

Structure, content, style, in that order

  • Structure: routes, layout, navigation, nothing pretty yet.
  • Content: real text, real links, no filler that has to be replaced later.
  • Style: colors, type and spacing once the content lengths are known.

Ship one page at a time

Ask for one page, look at it, then move on. Long sessions drift, and a drifting session rewrites files you were happy with.

Keep the visual rules in one place so every new page inherits them instead of getting its own colors.

Finish with the parts people skip

Titles and descriptions per page, one clear heading, alt text on images, and a sitemap. This is a small amount of work and it is the difference between a site that gets found and one that does not.

Common questions

Static or dynamic?

Start static. Add a database the first time you need to store something a visitor sends you, not before.

Why does styling last save money?

Because styling depends on real content lengths. Style early and you pay for it twice.

The longer storyBuild Better Static Websites With AI Coding Agents Without Burning CreditsRead on Substack

Related answers