Articles / AI-ready builds

An AI-Ready Website: How to Build a Site You and Claude Can Manage Safely

An AI-ready website is a code-based site with its content in a CMS, set up so an AI assistant like Claude can change it safely. Four things make it safe: written rules (CLAUDE.md), locks the assistant cannot override, automatic checks on every build, and previews with version history so any change can be undone.

By ,

More and more small teams want the same thing from a website: fast pages, an easy way to change the words, and an AI assistant that can make bigger changes without breaking anything. That last part is new, and it changes what a good build looks like.

This guide explains what an AI-ready website is, how it differs from a Webflow, Framer or WordPress site, what it costs to run and how to set one up so you stay in control. It is written for founders, marketers and small teams, not developers, though we include the snippets a developer will want.

What "AI-ready" actually means

An AI-ready website is a site built in code, with the content in a CMS, set up so that an AI coding assistant like Claude can safely work on it. Four things make it safe:

  1. Written rules. A file in the project tells the assistant how the site fits together and what it must never touch.
  2. Locks. Settings that physically stop the assistant editing protected files or running risky commands, whatever it is asked.
  3. Checks. Every change runs through automatic tests for broken links, missing pages and missing search details before it can go live.
  4. A way back. Every change is saved in version history, you see a preview before it goes live, and the previous version can be restored in minutes.

Without those four, an AI assistant on a code-based site is a gamble. With them, it is one of the most productive ways a small team can run a website.

Why this is happening now

Two things changed in the last couple of years. AI assistants got good enough to make real changes to real projects: new sections, page types, redirects, content imports. And tools like Lovable, Bolt and v0 showed people they could get a working site by describing it.

The catch is what happens next. A site generated in a chat window is a great first version. It is a harder thing to grow, hand to a colleague or trust with your search rankings. We wrote about that moment in outgrowing Lovable, Bolt or v0.

How it compares with Webflow, Framer and WordPress

  • Webflow is a visual builder with a CMS and hosting in one. Great when your team wants to design pages visually. The code and content stay on Webflow's platform, and plans cap your CMS items. See Webflow vs Astro.
  • Framer is fast to design in and good for small marketing sites. It does not export your site as code, so leaving means rebuilding. See Framer vs Astro.
  • WordPress can do almost anything, at the cost of plugins, updates and security patches. AI can help here too, but the moving parts make it harder to keep safe.
  • An AI-ready custom build gives you the code, the content and the hosting in accounts you own. You lose the visual page designer. In exchange you get speed, no plan caps and an assistant that can do the work a developer used to.

The stack we use

There are many good options. This is what we use for our own site and for clients, and why.

  • [Astro](/glossary/astro) builds the pages. It turns each page into plain HTML and only adds JavaScript where something needs it, so pages load fast. Cloudflare acquired the team behind Astro in January 2026, and Astro stays open source.
  • [Sanity](/glossary/sanity) holds the content. Editors use a custom Studio with visual editing, so changing words and images never needs code.
  • [Cloudflare](/glossary/cloudflare) hosts the site. On its Workers platform, requests for static files are free and unlimited, so a marketing site costs little or nothing to serve.
  • GitHub keeps every change to the code, with a full history you can roll back.
  • Claude Code makes the changes that need code, following the rules in the project.

For the people who use them day to day, the split is simple: words and pictures change in the Studio, structure changes go through Claude.

The four guardrails, in practice

1. Written rules: CLAUDE.md

Claude Code reads a file called CLAUDE.md at the start of every session. It is plain English: how the site is organised, where content lives, which commands check the work and what not to do. Here is a shortened version of the kind of file we write:

CLAUDE.md
# Acme website

Astro site, content in Sanity, hosted on Cloudflare.

## How it fits together
- Pages are in src/pages. Every page uses src/layouts/Base.astro.
- All words come from Sanity. Never hard-code copy in a template.
- Styles live in src/styles/global.css. Use the existing classes.

## Rules
- Never change a page address (slug). Rankings depend on them.
- Never edit public/_redirects by hand. Redirects are managed in the Studio.
- Ask before adding a package.

## Checks
- Run npm run build before saying a change is done. It checks every link.

We cover this properly in how to set up CLAUDE.md for a website project.

2. Locks: permissions and hooks

Rules in CLAUDE.md guide what Claude tries to do. They do not stop it. The stop comes from Claude Code's own settings, which the assistant cannot override. A settings file in the project can deny reading secrets, editing protected files or running deploy commands:

.claude/settings.json
{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Edit(./public/_redirects)",
      "Edit(./src/styles/tokens.css)",
      "Bash(npx wrangler deploy *)",
      "Bash(git push --force *)"
    ]
  }
}

For anything a pattern can't express, a hook can check each edit before it happens and block it with a reason Claude can read.

3. Checks on every build

The build should fail loudly, or at least report clearly, when something is wrong: a link to a page that doesn't exist, a page without a title, an image without alt text. Claude runs the same build before it reports back, and the same checks run in the cloud on every change. Editors get the same protection inside the Studio through content guardrails.

4. Preview, history and rollback

Every change is a commit in Git, so you can see exactly what changed and undo it. Changes can be reviewed on a preview before they go live, and Cloudflare keeps earlier versions of the site you can roll back to.

What it costs to run

For a typical marketing site with a blog, the running costs are small:

  • Hosting: Cloudflare serves static pages free, with a paid Workers plan from $5 a month if you need more server-side features.
  • CMS: Sanity's free plan includes 20 seats and 10,000 documents. Most small sites never leave it. The Growth plan is priced per seat.
  • AI: a Claude subscription for whoever makes structural changes.
  • Domain and email: what you pay today.

The real cost is the build itself: the design, the content model, the Studio and the guardrails. That is a one-off, and it is what lets everything after it be cheap.

Who it suits, and who it doesn't

It suits you if:

  • You have outgrown a site builder's plan caps or prices.
  • You care about speed and search and want to own your code and content.
  • Someone on your team is comfortable asking Claude for changes and reviewing a preview.
  • You want structured content that can feed other places later, like an app, a help centre or AI search.

It is not the right call if:

  • Your team redesigns pages visually every week. Webflow or Framer will make you happier.
  • Nobody will ever review a change before it goes live.
  • You need a full online shop. Shopify is usually the better base.

How to get started

  1. List what the site must do. Pages, forms, integrations, languages, who edits what.
  2. Decide on the content model. What is a page and what is a repeatable item, like a post, case study or location.
  3. Plan the move if you have a site today. Every existing address needs to keep working. Our migration guides cover this.
  4. Set up the guardrails before the first AI change. Rules, locks, checks and previews first, then hand the keys over.
  5. Keep a person in the loop. The assistant proposes, you approve.

If you would rather not do it alone, this is exactly what our AI-ready websites service sets up.

  • What is an AI-ready website?

    A site built in code with its content in a CMS, set up so an AI coding assistant can make changes safely. It has written rules for the assistant, locks it cannot override, automatic checks and a way to preview and undo every change.

  • Can Claude break my website?

    Not if the guardrails are in place. Settings block edits to protected files and risky commands, checks catch broken links and missing pages, and every change can be previewed and rolled back before or after it goes live.

  • Do I need a developer to run an AI-ready site?

    Not day to day. Your team edits content in the Studio, and structural changes are short requests to Claude that you review in a preview. It helps to have someone set it up properly and be on hand for bigger changes.

  • Is an AI-ready site cheaper than Webflow or Framer?

    Usually cheaper to run: static hosting on Cloudflare is free, and Sanity’s free plan covers most small sites. The build itself is a one-off cost, so the saving shows up over time.

  • Which AI assistant works best?

    We use Claude Code because it reads the project rules, respects permission settings and hooks, and runs the build checks before reporting back. The guardrails in this guide are written for it.

Rather have us do it?

Send a few lines about it. Mark replies within 48 hours to set up a free call and a fixed quote.

Book a free call