Claude Code pre-deploy checklist for website changes

By: Irina Shvaya | October 14, 2026
This article is part of our Claude Code Guide: what Claude Code is, how to use it safely on a business website, and how to budget for and choose help. Want it set up for your team? See Claude Code consulting.

Before any change made with Claude Code goes live on your website, run through eight checks: confirm what changed and that nobody else's work is mixed in, confirm the build passes, look at the change on staging, check the SEO basics, test forms and tracking, make sure no secrets went into the commit, get a person's approval, and know exactly how you'll roll back. If any check fails, the answer is "not yet."

This is a go/no-go gate, not a full testing plan. The detailed QA routine has its own guide, linked below. What follows is the short list a business owner, marketing manager or developer can tick off in a few minutes, with the prompt that runs the automated parts and the parts only a person can do. It reflects Claude Code as of October 2026.

Key Takeaways

  • Claude Code's checkpoints can't undo a deployment, so the check has to happen before the deploy, and you need a rollback plan that doesn't depend on Claude Code.
  • Check git history for commits you didn't make before every deploy. Two sessions editing one site can quietly overwrite each other's work.
  • Auto mode blocks production deploys and merging a pull request no human has approved by default, but it allows pushes to any branch. On many hosts a push to main is a deploy.
  • Check that no page picked up a stray noindex, that titles and canonicals survived, and that redirects still work, before Google sees the change.
  • A person approves every deploy. On GitHub, branch protection with a required review makes that a rule rather than a habit.

How to use this checklist

Run it on the branch or pull request that holds the change, with the change already on a staging or preview copy. Claude can do the mechanical checks. A person does the judgment checks and the final approval. Keep the results with the pull request so there's a record.

For the full testing routine (cross-browser checks, accessibility, performance), see our guide to a QA routine before every deploy. For checks that run automatically on every pull request, see website QA with Claude Code in GitHub Actions.

1. Scope and history

CheckHowWho
Only the expected files changedRead the file list in the pull request or /diffPerson
The change matches the requestCompare the diff with the task in one sentencePerson
No commits you didn't makeAsk Claude to run git log on the branch and list commits by anyone elseClaude, read by a person
The branch is up to date with mainAsk Claude to compare the branch with the latest mainClaude
Edits were made in source files, not built outputConfirm changed files are source files; a rebuild would overwrite edits made only in generated filesClaude, read by a person

The history check comes from a real mistake. When we rebuilt eseospace.com, one Claude Code session regenerated pages another had just edited, and those edits disappeared. Checking git log for changes you didn't make is now a standing rule before every deploy. More failures like this one are in our guide to common Claude Code mistakes on websites.

2. Build and automated checks

CheckHowWho
The build passesRun the site's build command; read the end of the outputClaude, evidence shown to a person
Linters (tools that flag code errors) and tests pass, if the project has themRun them; no check removed or disabled to make it passClaude
No broken internal linksRun a link checker against the built siteClaude
Required status checks on the pull request are greenLook at the automated checks listed on the pull requestPerson

Ask for evidence, not a summary. Anthropic's best-practices page puts it this way: "Have Claude show evidence rather than asserting success." A pasted build log is evidence. "Everything looks good" is not.

3. Staging check in a real browser

CheckHowWho
Changed pages look right on phone and desktop widthsOpen each on the staging or preview URLPerson
Header, footer and menus still work site-wideSpot-check a few unrelated pagesPerson
For bulk changes, more than the first page is rightCheck the first, second and last pages the change touchedPerson
Nothing on staging talks to real customersTest emails and payments go to test accountsPerson

Combining stylesheets on eseospace.com once exposed an unclosed brace in a theme file that swallowed header styles across the site. The lesson we recorded was to validate combined output in a real browser. No staging copy yet? Start with our guide to setting up a staging copy.

4. SEO and indexing

CheckHowWho
Every changed page has a title, a meta description and one H1Claude checks the built pagesClaude
No page has noindex by accidentSearch the built pages for noindex meta tags, and check response headers on stagingClaude, confirmed by a person
Canonical tags (which tell Google the preferred URL for a page) point to the right URLsCheck changed pages and a sample of othersClaude
Changed or removed URLs have permanent redirectsTest old URLs on staging; each should return a redirect to the right pageClaude, confirmed by a person
The sitemap includes new pages and drops removed onesCompare the sitemap with the list of pagesClaude
Structured data still matches visible contentValidate changed pages; Google says not to mark up content "that is not visible to readers of the page"Claude, confirmed by a person

A stray noindex is the costliest small mistake on this list. Google says a page with noindex is dropped "entirely from Google Search results." It's easy to carry over from a staging copy. For redirect work, our guide to building a 301 redirect map explains how to test one.

5. Forms, tracking and money paths

CheckHowWho
Every changed form submits and the message arrivesSubmit test data on staging; check the inbox or CRMPerson
Analytics and conversion tags still fireCheck your analytics tool's real-time or debug view on stagingPerson
Checkout, booking or payment flows untouched, or tested end to endRun a test transaction with test keysDeveloper or person
Phone numbers, prices and addresses match your facts fileCompare changed text against the source of truthPerson

6. Secrets and security

CheckHowWho
No environment files, keys or passwords in the commitRead the file list; environment files belong in .gitignorePerson
Secret scanning or push protection didn't flag anythingCheck GitHub's alerts; if a secret was exposed, rotate itPerson
Changes to forms, logins or user input got a security reviewRun /security-review; a developer reads the findingsClaude and developer
No new third-party scripts or libraries slipped inLook for new script tags and package changes in the diffPerson

GitHub's guidance when secret scanning raises an alert: "rotate the affected credential immediately." Deleting the line from the next commit isn't enough, because the old commit still holds it. Our Claude Code security checklist covers the setup that prevents this in the first place.

7. Approval and the deploy itself

  • A person approves. Someone who read the diff and saw the staging copy says yes, in the pull request. Branch protection with "Require pull request reviews before merging" makes this mandatory on GitHub.
  • Claude doesn't deploy on its own. Anthropic's auto mode blocks "Production deploys and migrations" and "Merging a pull request no human has approved" by default. It does allow pushes to any branch, including main, so keep an ask rule on git push.
  • Be deliberate about auto-merge. The desktop app can merge a pull request once all checks pass if you turn on its auto-merge option and GitHub auto-merge is enabled for the repository. GitHub's auto-merge waits only for the reviews and checks your branch protection requires, so leave it off unless a person's approval is one of them.
  • Deploy at a time someone can watch. Not late on a Friday, and not when the person who knows the rollback is away.

8. Rollback plan and after-deploy checks

CheckHow
You know the rollback for your hostVercel: Instant Rollback to a previous production deployment. Netlify: publish a previous deploy. Shopify: keep the duplicate theme you made before the change. Any git-based site: revert the merge and redeploy.
The rollback has been tested at least onceTry it on a quiet day, not during an incident
After deploy, the live pages show the changeCheck the changed pages on the live domain
If the live page looks unchanged, check the build before redeployingA cached copy can make a finished change look missing; confirm the deploy and git log first
Forms and tracking work on liveOne real-world test submission

Rollbacks behave differently by host and plan. Vercel lets Hobby users roll back only to the immediately previous deployment, while Pro and Enterprise teams can roll back further. After a Vercel rollback, new pushes to the production branch don't go live until you undo it. On Netlify it's the opposite: with auto publishing on, the next deploy from git replaces the rolled-back version. Check your host's documentation.

A prompt that runs the automated parts

Paste this into Claude Code on the branch, in Manual mode, so you approve each command before it runs:

Before I deploy this branch: run the build and paste the last lines of output. Run the link checker. For every page changed on this branch, confirm it has a title, a meta description and exactly one H1. Search the built pages for noindex in robots meta tags. Confirm the sitemap includes every new URL. Run git log and list any commits on this branch that I didn't make. Report pass or fail for each check, with evidence. Don't edit any source files.

Adjust the commands to your project. Our templates page keeps a version of this prompt alongside a permissions file and other prompts for website work. The prompt covers the mechanical checks only. The browser checks, the form tests and the approval stay with people.

Conclusion

A pre-deploy checklist turns "Claude says it's done" into "we checked, and here's the evidence." Confirm scope and history, see the build pass, look at staging in a browser, protect your SEO basics, test forms and tracking, keep secrets out of the commit, get a person's approval, and know your rollback. It takes minutes, and it's the difference between a quiet release and a weekend of repairs. If you'd like a deploy process like this built into your site's workflow, our Claude Code development team sets it up as part of website projects. More guides are in our Claude Code Guide.

Frequently asked questions

Can Claude Code run the whole checklist for me?

It can run the mechanical parts: the build, link checks, counts, git history and searches for noindex. It can't decide whether a page looks right to your customers, whether a price is current or whether the change should ship. Those checks and the approval stay with people.

Do I need this for a one-line text change?

A shorter version, yes: confirm only that file changed, the build passes, the page looks right on staging, and someone approved it. Small changes are where people skip the check and a typo in a price or phone number goes live.

What if a check fails right before a launch?

Don't deploy. Fix the cause on the branch, rerun the checks, and get approval again. If the launch date is fixed, ship the parts that passed and hold the rest.

Can Claude Code deploy to production in auto mode?

Auto mode blocks production deploys by default, but it allows pushes to any branch, including main. If your host deploys when main changes, a push is effectively a deploy. Add an ask rule for git push and protect main with a required review.

How do I roll back if something breaks?

Use your host's rollback, such as Vercel's Instant Rollback or publishing a previous deploy on Netlify, or revert the merge in git and redeploy. Claude Code's rewind can't undo a deployment.

Put this into action with eSEOspace

We help businesses grow with seo, geo & aeo that actually performs. Explore the services behind this guide:

Book a free strategy call →

Get a FREE Audit

We'll perform a comprehensive SEO, AEO, GEO & CRO audit of your website — completely free — and show you exactly how to outrank your competitors.

Don't have a site yet? Get in touch →

Get a FREE GEO/AEO/SEO Audit

We'll analyze your site's SEO, GEO, AEO & CRO — completely free — and show you exactly how to get found across Google and AI answers.

Don't have a site yet? Get in touch →

You Might Also like to Read