Claude Code pre-deploy checklist for website changes
Claude Code pre-deploy checklist for website changes

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
| Check | How | Who |
|---|---|---|
| Only the expected files changed | Read the file list in the pull request or /diff | Person |
| The change matches the request | Compare the diff with the task in one sentence | Person |
| No commits you didn't make | Ask Claude to run git log on the branch and list commits by anyone else | Claude, read by a person |
| The branch is up to date with main | Ask Claude to compare the branch with the latest main | Claude |
| Edits were made in source files, not built output | Confirm changed files are source files; a rebuild would overwrite edits made only in generated files | Claude, 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
| Check | How | Who |
|---|---|---|
| The build passes | Run the site's build command; read the end of the output | Claude, evidence shown to a person |
| Linters (tools that flag code errors) and tests pass, if the project has them | Run them; no check removed or disabled to make it pass | Claude |
| No broken internal links | Run a link checker against the built site | Claude |
| Required status checks on the pull request are green | Look at the automated checks listed on the pull request | Person |
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
| Check | How | Who |
|---|---|---|
| Changed pages look right on phone and desktop widths | Open each on the staging or preview URL | Person |
| Header, footer and menus still work site-wide | Spot-check a few unrelated pages | Person |
| For bulk changes, more than the first page is right | Check the first, second and last pages the change touched | Person |
| Nothing on staging talks to real customers | Test emails and payments go to test accounts | Person |
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
| Check | How | Who |
|---|---|---|
| Every changed page has a title, a meta description and one H1 | Claude checks the built pages | Claude |
| No page has noindex by accident | Search the built pages for noindex meta tags, and check response headers on staging | Claude, confirmed by a person |
| Canonical tags (which tell Google the preferred URL for a page) point to the right URLs | Check changed pages and a sample of others | Claude |
| Changed or removed URLs have permanent redirects | Test old URLs on staging; each should return a redirect to the right page | Claude, confirmed by a person |
| The sitemap includes new pages and drops removed ones | Compare the sitemap with the list of pages | Claude |
| Structured data still matches visible content | Validate 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
| Check | How | Who |
|---|---|---|
| Every changed form submits and the message arrives | Submit test data on staging; check the inbox or CRM | Person |
| Analytics and conversion tags still fire | Check your analytics tool's real-time or debug view on staging | Person |
| Checkout, booking or payment flows untouched, or tested end to end | Run a test transaction with test keys | Developer or person |
| Phone numbers, prices and addresses match your facts file | Compare changed text against the source of truth | Person |
6. Secrets and security
| Check | How | Who |
|---|---|---|
| No environment files, keys or passwords in the commit | Read the file list; environment files belong in .gitignore | Person |
| Secret scanning or push protection didn't flag anything | Check GitHub's alerts; if a secret was exposed, rotate it | Person |
| Changes to forms, logins or user input got a security review | Run /security-review; a developer reads the findings | Claude and developer |
| No new third-party scripts or libraries slipped in | Look for new script tags and package changes in the diff | Person |
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
| Check | How |
|---|---|
| You know the rollback for your host | Vercel: 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 once | Try it on a quiet day, not during an incident |
| After deploy, the live pages show the change | Check the changed pages on the live domain |
| If the live page looks unchanged, check the build before redeploying | A cached copy can make a finished change look missing; confirm the deploy and git log first |
| Forms and tracking work on live | One 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:
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 →
Great — your audit is on the way!
We'll send your free SEO/GEO/AEO/CRO audit within the next few hours. Where should we send it?
You're all set! ✓
Your free audit is being prepared — check your inbox in the next few hours. Talk soon!
On this page
- Key Takeaways
- How to use this checklist
- 1. Scope and history
- 2. Build and automated checks
- 3. Staging check in a real browser
- 4. SEO and indexing
- 5. Forms, tracking and money paths
- 6. Secrets and security
- 7. Approval and the deploy itself
- 8. Rollback plan and after-deploy checks
- A prompt that runs the automated parts
- Conclusion
- Frequently asked questions





