How to Let Your Team Edit Your Website With Claude
Table of contents
- What “editing the site with Claude” means
- Step 1: put the site where an agent can work
- Step 2: write the docs the agent reads first
- Step 3: give it a design system, not a blank page
- Step 4: keep content where editors already work
- Step 5: preview every change
- Step 6: make approval the only way to production
- What a normal week looks like
- What it doesn’t replace
- How we run our own site
- Setting it up
- FAQs
Your marketing team can change the website by asking Claude, and it doesn’t have to be risky. Put the site in a git repository, write down the rules the agent must follow, let every change arrive as a pull request with a preview link, and make a person’s approval the only way to production.
We run our own site this way at DesignMe, and we set it up for clients on Astro and Next.js. Here is the setup, step by step, and where it still needs people.
What “editing the site with Claude” means
Claude Code is Anthropic’s coding agent. It runs in the terminal, in VS Code and JetBrains, in a desktop app and in the browser, and it reads a project’s files, makes changes and runs commands. Through its GitHub Actions integration, anyone with write access can mention @claude in a pull request or issue and have it implement the change and push commits. Anthropic also connects Claude to Slack, so a request can start in the channel your team already uses.
So the person asking doesn’t open a code editor. They write “add a case study page for the new customer, using the same layout as the Lightdash one”, and get back a link to a preview of the page and a summary of what changed.
Step 1: put the site where an agent can work
An agent works best on plain files in a git repository: components, styles and content it can read, change and build. That is why code-based sites give it the most room.
- Astro fits content-heavy marketing sites, blogs and docs. Pages ship as HTML, and Astro runs an official docs MCP server so agents can read current documentation instead of old training data. The Astro team joined Cloudflare in January 2026, and both sides said Astro stays open source and works with any host.
- Next.js fits when the site shares components with a React product or has logged-in areas. Since version 16.2 it ships version-matched docs inside the project, and from 16.3 it writes a managed block in AGENTS.md that points coding agents such as Claude Code to them. Vercel’s own evals found a 100% pass rate with bundled docs, against up to 79% for skill-based approaches.
- Framer and Webflow connect to external agents too. Framer’s agent setup works with Claude Code, Cursor and others, and Webflow’s MCP server works within your existing roles. If your team lives on a canvas, that can be the right trade, with less control than code. Our Astro vs Framer comparison covers the choice.
If you are moving platforms to get here, plan it as a migration with every URL kept, not as a rebuild.
Step 2: write the docs the agent reads first
Claude Code reads a CLAUDE.md file in the project at the start of every session, and the team shares it through git. Many other agents read AGENTS.md, and Claude Code can read that instead. This file is where your site’s rules live. Ours covers:
- The stack. Framework, CMS, hosting, where content and images live.
- Design rules. Use the semantic tokens, never a raw hex value or pixel size. No new card or list styles: extend the existing component instead.
- Rules that don’t bend. URLs never change without a 301 redirect. Every page keeps its title, description, canonical and Open Graph tags. No em dashes in site copy.
- How to check work. Build the site, check both themes, check the page on a phone.
Keep it short and specific. Anthropic’s docs are clear that Claude treats these files as context, not enforced configuration, so anything that must never happen also needs a check in code or a permission it doesn’t have.
Here’s what ours actually looks like. The CLAUDE.md at the root of our site’s repository is about a hundred lines, split into short sections. Each one answers a question Claude would otherwise guess at (and guessing is where off-brand pages come from):
| Section | What it settles | Example rule from the file |
|---|---|---|
| Stack | Where things live | Insights are a Markdown collection; case studies are one Astro page each |
| Design system | Which values to use | Use semantic tokens, never a hard-coded hex value or px font size |
| Component library | Which building block fits | A card is Card inside a CardGrid; a big number is Stat |
| Rules that don’t bend | What never changes quietly | No slug rename without a 301 in the redirects file |
| SEO and OG images | What every page must carry | Titles at most 60 characters, descriptions 120 to 160 |
| Motion | How things move | Sections reveal once on scroll, automatically; no per-page entrance CSS |
| Cookie consent | What never gets added to a page | No tracking script added directly; it goes in Tag Manager with a consent check |
The file stays short because it points elsewhere for detail. The design system has its own document (docs/design-system.md) with the full component inventory and the owner decisions behind it, the deploy has its own runbook, and so does the content editor.
The other habit that matters: decisions go into the file, not just into the page. Several rules in ours carry a date, such as “no visual breadcrumbs at the top of pages” (the owner’s call on 8 October 2026). Once a decision is written down, every later change follows it, whoever asks for it, and nobody has to repeat it in a review comment.
Step 3: give it a design system, not a blank page
Ask an agent for a pricing page on a site without a design system and you get a generic pricing page. Ask it on a site with design tokens, approved sections and written rules, and you get a page that looks like yours. The design system is what keeps agent output on brand, which is why we build or tidy it before connecting anything. We wrote up what that system needs in design systems AI agents can build with.

On our own site the system has two layers. The first is tokens in one CSS file: colours written once for light and dark themes, a fluid type scale, spacing and radius. The second is a small set of primitives in src/components/ui/: Card and CardGrid for any tile, List and ListRow for rows, Tag for every chip, badge and filter, Panel and DataTable for bordered visuals and tables, Stat for big numbers, SectionHead for the eyebrow, heading and sub. Every one of them is demoed on a /styleguide page in both themes, so a person reviewing a change can compare it to the reference.
The rule we lean on most is a plain one: no new card, list or chip styles. If a primitive can’t do what a page needs, Claude extends the primitive (a new prop or variant) and adds it to the styleguide, instead of writing one-off CSS on the page. It came straight from the owner’s feedback when we built the library: “We don’t want to have 50 different styles for cards or 50 different styles for lists.”
A few more rules from the same doc show the level of detail that helps: nothing visible rounds more than 4px, cards use hairlines instead of drop shadows, and states are shown by fill or outline, never by a new colour.
Step 4: keep content where editors already work
Decide who edits what before the build. Marketers usually want a headless CMS such as Sanity, whose official MCP server lets agents query and patch documents with awareness of your schema. Developers and agents are happy with Markdown in the repo. Blog posts in Markdown, case studies in the CMS and page layouts in code is a common split, and the agent can work in all three.
What we use on our own site: Keystatic
Our site is small and the people who edit it are few, so we didn’t put a hosted CMS in front of it. Content lives as files in the repo, and for the one thing non-developers change most often (the tab title and meta description of each page) we added Keystatic, an open-source editor that saves straight into the repo’s files.
It went in on 14 October 2026 in two steps. First, a local editor: run the site on your computer, open /keystatic, edit, save, and the change is written to a JSON file for that page. There is one file per public page, 228 of them, pre-filled with the existing values so all 228 titles and descriptions on the built site stayed identical. Second, a hosted copy of the same editor at cms.designme.agency for people who don’t run the code. They log in with GitHub, work on their own branch (each save is a commit), and click “Create pull request” when they’re done.
The editor enforces a few limits so a typo can’t break search results: titles up to 80 characters (the form tells you to aim for 60), descriptions up to 200 (aim for 120 to 160). Delete an entry and the page falls back to its own text in code.
What it doesn’t edit yet is just as useful to know. Our insight articles contain raw HTML blocks (the TL;DR box, tables, callouts), and Keystatic’s editor doesn’t support raw HTML, so saving an article there could break them. The articles stay in Markdown and change through Claude until those blocks become editor components. We’d rather leave a field out of the editor than let someone save a broken page from it.
When Sanity is the better editing layer
Keystatic suits a small team and a site whose content mostly lives in code. A client’s marketing team that publishes every week, wants to see the page while typing, and has five content types (case studies, integrations, authors, careers, changelog) needs more than a form over JSON files. That’s when we set up Sanity, which is our usual pick for a headless CMS (we compared it with WordPress in our headless CMS migration guide).
The split we set up is simple to explain to a team:
- Marketers work in Sanity Studio. Copy, images, new case studies, a new careers listing, an author bio. They see a preview of the page as they edit and publish when it’s right, with no developer and no agent involved.
- Claude handles structural changes in the repo. A new section type, a new page template, a change to the navigation or the content model itself. These are code changes, so they arrive as pull requests with a preview.
- A person reviews the code. Every pull request, whoever (or whatever) wrote it.
Sanity’s MCP server also lets Claude read and patch content with awareness of the schema. Whether we turn that on is a decision about access: drafting is fine for most teams, publishing directly usually isn’t. Our headless CMS build includes the content model in Sanity (or similar), the design system in code, preview and publish wiring, and the team and agent docs, so both sides of the split are documented from day one.
| Editing layer | Who uses it | What they change | Best for |
|---|---|---|---|
| Markdown in the repo, changed by Claude | Anyone who can describe the change | Articles, page copy, layouts | Small teams; content that sits close to the design |
| Keystatic (our own site) | A few named editors | Page titles and meta descriptions today | Lean sites that want a form for a few fields, with every save still in git |
| Sanity Studio | A marketing team that publishes weekly | Case studies, authors, careers, any structured content | Many content types, live previews while typing |
| Claude on a branch | The team, through a request | Sections, templates, navigation, the content model | Structural changes that need code review |
Sanity Studio, where marketers edit

Step 5: preview every change
Every change should come with a link to the site as it will look. The common hosts do this by default: Vercel builds a preview for every push to a non-production branch and every pull request, Netlify builds a Deploy Preview for every pull request, and Cloudflare Pages gives every pull request its own preview URL.
The preview is what makes the workflow usable for people who don’t read code. The marketing lead checks the page on their phone, asks for changes in the same thread, and approves when it is right.
Our own previews run on Cloudflare. A script in the repo (scripts/deploy/staging.sh) takes the branch Claude worked on, builds it in a clean copy of the repository (never the folder someone is editing in), marks every page noindex so search engines don’t pick it up, and deploys it to a private staging address. The real domain is untouched. Anyone reviewing the change gets a link that looks and behaves like the live site, apart from the contact forms, which show their fallback message on staging because the form functions only run in production.
Step 6: make approval the only way to production
The agent drafts, a person approves, and only the approval publishes. In practice:
- Protect the main branch. GitHub can require a set number of approving reviews before anything merges, and the agent’s work never skips that.
- Scope access. Give the agent the repository and CMS it needs, with separate rights to draft, publish and approve. Anthropic’s GitHub Actions docs recommend granting the workflow only the permissions it needs and reviewing Claude’s changes before merging.
- Add automated checks. Build, broken links, accessibility and page weight run on every pull request, so the reviewer looks at the page, not the plumbing.
- Be careful with untrusted input. Anthropic warns about prompt injection, where text inside content tries to redirect the agent, and advises against piping untrusted content straight to Claude. Keep agents in trusted channels and repositories.
On our site, production is a Cloudflare Pages project, and two things keep the agent away from it. The deploy script refuses to run unless the code being deployed is exactly what’s on the main branch on GitHub (“Push (or check out) what should go live first”), and when run by hand it asks you to type the project’s name before it continues. Our runbook also says nothing goes to production without the owner’s explicit OK. The second guard is that nothing deploys on its own: merging a change into main, from the editor or an agent, doesn’t publish it, and production only updates when the owner runs the deploy. If a bad deploy does slip through, rolling back is one click in the Cloudflare dashboard: pick the previous deployment and roll back.
From request to live page
Request
Someone on the team asks Claude in plain words, in Slack or on GitHub.
Agent edits files
Claude changes the pages and content on a branch, following CLAUDE.md.
Pull request and preview
The host builds a preview link; checks run on build, links and accessibility.
Review
A person checks the preview, asks for changes in the thread and approves.
Merge and deploy
The protected main branch merges only with an approving review.
Review matters because the output isn’t always right. In Stack Overflow’s 2025 Developer Survey, 84% of developers said they use or plan to use AI tools, and more of them distrust the accuracy of those tools (46%) than trust it (33%).
What a normal week looks like
A request comes in on Monday: the sales team needs a landing page for a trade show. The marketing lead asks Claude for it, using the event page layout, with the booth number, a form and three product photos. Twenty minutes later there’s a preview link. They ask for the form above the photos, approve the second version, and it goes live after review.
It works the same way outside SaaS. A hardware company adds a spec sheet page for a new model from the existing product template. An industrial supplier adds a distributor to the locations page. None of these needed a developer before, but all of them used to wait in a developer’s queue.
What it doesn’t replace
The agent takes the everyday requests. It doesn’t decide what the site should say, pick a new visual direction, or catch every mistake on its own. New sections, a change of positioning and anything involving pricing or legal copy still need people, and someone senior has to review what the agent produces. We say the same about our own work in how we use AI: AI does the legwork, people make the calls.
It helps to write the split down as a table and agree it with the team before anyone asks Claude for anything. This is the version we start from:
| Change | Who makes it | Where | Who approves |
|---|---|---|---|
| Copy, images, a new case study or job post | Marketing, in the CMS | Sanity Studio or Keystatic | The marketing lead, in the editor’s preview |
| Page titles and meta descriptions | Marketing or SEO, in the CMS | Keystatic on our site, Sanity for clients | A person reviewing the pull request |
| A new page from an existing template | Anyone, by asking Claude | A branch in the repo | A person, on the preview link |
| New sections, layout, navigation, components | Claude, from a written request | A branch in the repo | A developer or designer, in code review |
| Design tokens and primitives | A designer, with Claude doing the edits | Tokens file and the styleguide | The design lead |
| Pricing, legal copy, positioning | People | Wherever it lives | The founder or whoever owns it |
We write the last row in from the start (Claude can change a price on a page in seconds, so a person decides it and a person approves it).
How we run our own site
We ran designme.agency on Framer for three years and moved it to Astro in October 2026. We kept all 63 live URLs, and measured on production with PageSpeed Insights, the homepage dropped from 10.33MB on Framer to 0.52MB on desktop. The repository has a CLAUDE.md with the rules above, the tokens and components are documented on a styleguide page, and the content is typed collections in Markdown.
- 63
- live URLs kept in the move
- 10.33MB → 0.52MB
- homepage page weight, Framer vs Astro (PageSpeed Insights, desktop)
After launch we measured both sites on production: mobile PageSpeed Performance went from 33 to 71 on the Framer pages to 91 to 99 on Astro, and hosting went from about $150 a month with 5 Framer editors to $0 on Cloudflare. The numbers are in our Framer to Astro migration results.

We change the site by asking Claude for a page or a fix, reviewing the change and shipping it. The first drafts are fast. The review is where the time goes, and it is where the quality comes from.
Here’s the whole loop as it runs on designme.agency today:
How a change ships on designme.agency
Ask on a branch
A task gets its own git branch. Claude Code reads CLAUDE.md first.
Build with the system
Claude uses the tokens and primitives from the design system doc, and extends a primitive instead of adding a style.
Preview
The branch is built in a clean copy of the repo and deployed to a private, noindex staging address.
Review
A person checks the page in both themes and on a phone, then reviews the pull request.
Merge and deploy
The reviewed pull request merges into main and goes to production on Cloudflare Pages.
A real example from the repository: this article sits in a folder of insights that got new visual components on a branch (feat/insight-components). Claude did the edits on that branch, the components were picked by the owner on a dev-only comparison page, and nothing reached the live site until the branch was reviewed. The commit history reads the same way: features land through numbered pull requests from branches such as fix/404-redirects and feat/og-figma, and as of 18 October 2026, 564 of the 605 commits on main list Claude as a co-author.
That doesn’t mean Claude runs the site: every one of those commits started with a person’s request, and nothing reaches production without the owner’s OK. It shows where the typing happens. The location pages for London, Austin and Toronto, the share images for all 228 pages and the content editor itself were all built that way, from a written request, on a branch, against the same rules.
Setting it up
If you want your team editing the site this way, there are two parts: a site built for it and the workflow around it. Our headless CMS and custom builds start from $15k and take 4+ weeks, with team and agent docs included. AI workflows, where your team asks an agent in Slack or Claude and approves a preview, take 3 to 4 weeks to set up on a site that’s ready. Full ranges are on our pricing page.
DesignMe designs and builds websites for funded SaaS and AI companies that their teams, and their agents, can change without breaking the design. If you want your team editing the site with Claude, send us your current site and we’ll reply within one business day:
Sources
- Anthropic, Claude Code overview (accessed 10 October 2026) (opens in a new tab)code.claude.com
- Anthropic, Claude Code memory and CLAUDE.md (accessed 10 October 2026) (opens in a new tab)code.claude.com
- Anthropic, Claude Code GitHub Actions (accessed 10 October 2026) (opens in a new tab)code.claude.com
- Anthropic, Claude Code security (accessed 10 October 2026) (opens in a new tab)code.claude.com
- Astro, Build with AI (accessed 10 October 2026) (opens in a new tab)docs.astro.build
- Cloudflare, "Cloudflare acquires Astro" (16 January 2026) (opens in a new tab)cloudflare.com
- Next.js, "How Next.js supports AI coding agents" (updated 6 October 2026) (opens in a new tab)nextjs.org
- Framer, "Use external agents with Framer" (updated 15 September 2026) (opens in a new tab)framer.com
- Webflow, MCP server overview (accessed 10 October 2026) (opens in a new tab)developers.webflow.com
- Sanity, MCP server (accessed 10 October 2026) (opens in a new tab)sanity.io
- Vercel, Environments and preview deployments (updated 17 September 2026) (opens in a new tab)vercel.com
- Netlify, Deploy Previews (updated 8 October 2026) (opens in a new tab)docs.netlify.com
- Cloudflare, Pages preview deployments (updated 3 June 2026) (opens in a new tab)developers.cloudflare.com
- GitHub, About protected branches (accessed 10 October 2026) (opens in a new tab)docs.github.com
- Stack Overflow, 2025 Developer Survey, AI (2025) (opens in a new tab)survey.stackoverflow.co
Press Escape to close.
Free website cost calculatorWhat should your website cost?


