Site Cutover & Takedown Checklist – Claude Code Skill
by GlowHalo
Inventory the hosts, routes, redirects and callbacks your files show for your site before a move or takedown; what files cannot show becomes questions.
$5
Works with the AI Agents you already use
Site Cutover & Takedown Checklist – Claude Code Skill
Example session with this skill installed
Use the Site Cutover & Takedown Checklist on this sample repository (an invented example). I'm moving old-example.com to new-example.com. Git remote origin is https://github.com/acme/old-example.git. Files:
--- CNAME ---
www.old-example.com
--- index.html ---
<!doctype html> <html><head><link rel="canonical" href="https://www.old-example.com/">
<meta property="og:url" content="https://www.old-example.com/">
<meta property="og:image" content="https://www.old-example.com/img/og.png">
</head><body><a href="https://www.old-example.com/about.html">About</a></body></html>
--- about.html ---
<!doctype html> <html><head><link rel="canonical" href="https://www.old-example.com/about.html">
<meta property="og:url" content="https://www.old-example.com/about.html">
</head><body><a href="https://www.old-example.com/">Home</a></body></html>
--- sitemap.xml ---
<urlset><url><loc>https://www.old-example.com/</loc></url><url><loc>https://www.old-example.com/about.html</loc></url></urlset>
--- robots.txt ---
User-agent: *
Sitemap: https://www.old-example.com/sitemap.xml
--- _redirects ---
/blog/* https://www.old-example.com/news/:splat 301
/home / 302
--- wrangler.toml ---
name = "old-example"
routes = [
{ pattern = "old-example.com/", zone_name = "old-example.com" },
{ pattern = "api.old-example.com/", zone_name = "old-example.com" }
]
--- .github/workflows/deploy.yml ---
name: deploy
on: { push: { branches: [main] } }
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cloudflare/pages-action@v1
with:
projectName: old-example-site
directory: .
--- README.md ---
old-example
Mirror repo: acme/old-example-mirror publishes a snapshot.
OAuth callback: https://www.old-example.com/auth/callback
--- src/config.js ---
export const API_BASE = "https://api.old-example.com";
- Read your context and instructions
- Compiled the site cutover
Goal: cutover — 4 distinct hosts / 14 inventory rows — 10 questions open — verified 0 (nothing run yet)
Scope
- Goal: cutover. You said "I'm moving old-example.com to new-example.com".
Old: old-example.com, which in the files also appears as www.old-example.com and api.old-example.com. Repo https://github.com/acme/old-example.git (stated by user).
New: new-example.com (stated by user). This is a
NEW host. Whether the new canonical host is the apex or www. is not stated (Q1).
Files searched: the 10 files pasted in your message: CNAME, index.html, about.html, sitemap.xml, robots.txt, _redirects, wrangler.toml, .github/workflows/deploy.yml, README.md, src/config.js. Line numbers are counted from the paste. I read nothing on disk.
- Remotes: only
origin(stated by user). No.gitmoduleswas provided.
Dates: none given.
Cache window: no TTL given, so I assume the
48h default. This is a default, not a measurement.
Host inventory
| # | Category | Host / URL | What it does | Source | Needs action |
|---|---|---|---|---|---|
| 1 | A. DNS | www.old-example.com | Custom domain for the site (GitHub Pages-style CNAME file) | CNAME:1 "www.old-example.com" | Yes: switch, then redirect |
| 2 | B. Edge | old-example.com/* (apex) | Route bound to Worker old-example in zone old-example.com | wrangler.toml:3 { pattern = "old-example.com/*", zone_name = "old-example.com" } | Yes: re-route or redirect |
| 3 | B. Edge | api.old-example.com/* | Route bound to the same Worker | wrangler.toml:4 { pattern = "api.old-example.com/*", ... } | Yes |
| 4 | B. Edge | Worker old-example | Serves #2 and #3 | wrangler.toml:1 name = "old-example" | Yes: new routes, then retire old ones |
| 5 | D. Deploy | Cloudflare Pages project old-example-site | CI publishes the repo root on push to main | .github/workflows/deploy.yml:8,10 cloudflare/pages-action@v1, projectName: old-example-site | Yes: custom domains in the dashboard (Q3) |
| 6 | D. Mirror | Repo acme/old-example-mirror | "publishes a snapshot". The publishing address is unknown (Q5) | README.md:2 "Mirror repo: acme/old-example-mirror publishes a snapshot." | Yes: retire after cutover (IRREVERSIBLE if deleted) |
| 7 | D. Repo | github.com/acme/old-example | Origin repo. The CNAME file suggests GitHub Pages may also be on (Q4) | stated by user + CNAME:1 | Check |
| 8 | C. Redirect | /blog/* → https://www.old-example.com/news/:splat 301 | Absolute redirect target on the old host. After cutover it would send traffic back to the old domain | _redirects:1 | Yes: make it relative or point it at NEW |
| 9 | C. Redirect | /home → / 302 | Relative, so it is unaffected by the domain change. It is temporary (302), not permanent | _redirects:2 | No (for this cutover) |
| 10 | E. Sitemap/robots | https://www.old-example.com/, /about.html, /sitemap.xml | Sitemap URLs and the robots Sitemap: line name the old host | sitemap.xml:1, robots.txt:2 | Yes: files to change |
| 11 | F. Canonical/meta | https://www.old-example.com/… | canonical, og:url, og:image | index.html:3,4,5, about.html:3,4 | Yes: files to change |
| 12 | G. Hard-coded | https://www.old-example.com/about.html, https://www.old-example.com/ | Absolute nav links | index.html:6, about.html:5 | Yes: files to change (or make relative) |
| 13 | H. Callback | https://www.old-example.com/auth/callback | OAuth redirect URI. The provider console is unknown (Q6) | README.md:3 | Yes: register the new one first, remove the old one last |
| 14 | G/H. API base | https://api.old-example.com | Front-end API base URL | src/config.js:1 API_BASE = "https://api.old-example.com" | Yes: file to change, plus CORS on the API (Q7) |
Other observations
- I. Analytics, verification and mail: none found in the files searched. That does not mean none exists (Q8).
- Secrets: none found.
Deploy publishes the repo root. deploy.yml:11 has directory: ., so files like README.md (with the callback URL), wrangler.toml and CNAME are likely publicly served on the Pages site. This is a side note, not a cutover blocker.
Questions (not findings)
- Is the new canonical host
new-example.comorwww.new-example.com? This decides every redirect target and the new OAuth callback. - Is there an apex A/AAAA record or CNAME for
old-example.comoutside the Worker route, and any other records (MX,TXT, other subdomains)? Check the Cloudflare DNS panel for zoneold-example.com. - Is there a custom domain on the Pages project
old-example-site, presumablywww.old-example.com? Is its*.pages.devdefault address in use or linked anywhere? Check Cloudflare dashboard → Workers & Pages → old-example-site → Custom domains. - Is GitHub Pages enabled on
acme/old-example, given theCNAMEfile? Check Repo → Settings → Pages. - Where does
acme/old-example-mirrorpublish its snapshot (GitHub Pages, Pages project, other)? Does the snapshot contain anything personal? Check that repo's Settings → Pages and its workflows. - Which OAuth provider holds
https://www.old-example.com/auth/callback? Check that provider's app console. - Does the API behind
api.old-example.comhave a CORS or allowed-origins list that must addnew-example.com? Are there webhooks or partners callingapi.old-example.com? Is there a real endpoint path I can use for verification? None appears in the pasted code. - Are there analytics or tag-manager properties, or a Search Console property for
old-example.com? Check the analytics and Search Console accounts. - Is the
old-exampleWorker's*.workers.devaddress enabled? Check Worker → Settings → Domains & Routes. - Are there social profiles, listings, QR codes or print material with the old URL? This is outside the repo.
Runbook
- Freeze and snapshot: export the DNS zone for
old-example.com, screenshot the Pages/Worker custom domains and routes, and rungit tag pre-cutover| verify: tag exists, export saved | rollback: n/a (this is the anchor) | no | you - Lower the DNS TTL on
www, apex andapirecords (Q2) at least 48h before the switch. Read the current TTL withdig old-example.com A(ANSWER SECTION, TTL column); without a reading it stays UNSURE | verify:digshows the new TTL | rollback: restore the old TTL | no | you - Stand up NEW: add the
new-example.comcustom domain to Pages projectold-example-site(or a new project), and add a Worker route forapi.new-example.com/*if the API moves (Q7). Test directly before relying on DNS | verify:curl -sI https://new-example.com/→ 200 | rollback: remove the new domain or route | no | you - Change files (not done by this Skill):
index.html:3,4,5,6,about.html:3,4,5,sitemap.xml:1,robots.txt:2,_redirects:1,src/config.js:1,README.md:3, andCNAME:1(or delete it if GitHub Pages is unused, Q4) | verify:grep -rn "old-example\.com" .returns only intended hits | rollback:git revert| no | you or a later session - Register the new OAuth callback (Q6) and add the new origin to API CORS (Q7). Keep the old values | verify: OAuth login works on NEW | rollback: remove the new entries | no | you
- Switch routes and DNS one at a time: Pages custom domain, then the Worker routes in
wrangler.toml:3–4(add NEW patterns and zone) | verify: Phase 5 lines for each host | rollback: restore from the step 1 snapshot | no | you - Install path-preserving 301s from
www.old-example.com/*,old-example.com/*and (if moving)api.old-example.com/*to NEW, e.g. a Cloudflare Redirect Rule on the old zone | verify: deep-path curl → 301 → 200 on NEW | rollback: remove the rule | no | you - Search and analytics: add a property for NEW, run Change of Address, resubmit the sitemap (Q8) | verify: console status | rollback: n/a | partly | you
- Retire old hosts only after step 7 passes: the mirror
acme/old-example-mirror(Q5), GitHub Pages onacme/old-example(Q4), theworkers.devandpages.devdefaults if unused (Q3, Q9). Back up the mirror (git clone --mirror) before deleting; deletion is IRREVERSIBLE, so confirm first. Do
not release the old zone or domain, because the redirects depend on it | verify: mirror-host lines in Phase 5 → 404 or DNS gone | rollback: restore from the clone (only if backed up) |
IRREVERSIBLE (delete) | you
10. After the cache window: remove the old OAuth callback and old CORS origin, restore TTLs, and rerun the status table | verify: Phase 5 again | rollback: re-add the callback | no | you
Verification commands
www.old-example.com (expected: 301 → NEW, same path)
curl -sI https://www.old-example.com/
curl -sI https://www.old-example.com/about.html
curl -sI https://www.old-example.com/blog/test
curl -sI -L https://www.old-example.com/about.html | grep -i "^HTTP\|^location"
curl -sI http://www.old-example.com/
curl -s https://www.old-example.com/robots.txt | head
dig +short www.old-example.com CNAME
old-example.com (apex, expected: 301 → NEW)
curl -sI https://old-example.com/
curl -sI https://old-example.com/about.html
curl -sI -L https://old-example.com/ | grep -i "^HTTP\|^location"
curl -sI http://old-example.com/
dig +short old-example.com A ; dig +short old-example.com CNAME ; dig +short old-example.com MX
api.old-example.com (expected: 301/308 to the new API, or still served until step 10; add a real endpoint path per Q7)
curl -sI https://api.old-example.com/
dig +short api.old-example.com CNAME ; dig +short api.old-example.com A
new-example.com (NEW, expected: 200, never retired)
curl -sI https://new-example.com/
curl -sI https://new-example.com/about.html
curl -s https://new-example.com/robots.txt | head
curl -s https://new-example.com/sitemap.xml | head
dig +short new-example.com A ; dig +short new-example.com CNAME
Mirror and default addresses (Q3, Q4, Q5, Q9) get commands only after you confirm the actual URLs.
Status table
| Host | Expected | Evidence pasted | Status |
|---|---|---|---|
| www.old-example.com | 301 → NEW (path kept) | none | UNSURE (not yet checked) |
| old-example.com | 301 → NEW (path kept) | none | UNSURE (not yet checked) |
| api.old-example.com | redirect to the new API, or served until step 10 | none | UNSURE (not yet checked) |
| new-example.com | 200 | none | UNSURE (not yet checked) |
Limits of this check
- I only saw the 10 pasted files. Grep cannot see the Cloudflare DNS, Pages or Worker dashboards, GitHub Pages settings, the mirror repo, the OAuth console, analytics, or any third-party links. Those are the open questions above.
- I made no network calls and ran no commands.
- Cache window: no TTLs were given, so assume up to 48h (default) before treating any "gone" or "moved" reading as final. A
HITor a nonzeroagewithin that window means UNSURE.
Paste the command output and I will fill in the status table.
Connects securely to your tools. The creator never sees your data.
About this skill
Before you move a site to a new host or domain, switch repositories, or take a site down, build a read-only inventory of the places your files show serving or referencing it, not just the one repository you are looking at. Greps your repo and config for DNS hints, CDN and edge routes, redirects, mirrors and second repos, sitemaps, canonical tags, hard-coded URLs, callback URLs, analytics properties and cache clues. Outputs an ordered runbook with per-host verification commands (you run them), rollback points, and a verified gone / verified moved / UNSURE table based on the command output you paste back. Read-only: it greps your repo and prints commands for you to run; it changes nothing. It does not execute changes or make network calls and is instructed not to invent a host; anything not found, or only visible in a dashboard, becomes a question.
Anthropic, Claude Code, OpenAI, Codex, OpenClaw and any platform names mentioned (such as GitHub) are trademarks of their respective owners. This Skill is an independent product and is not affiliated with, endorsed by or sponsored by any of them.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 20 days ago
- Accounts
Old
Api
- Software
Git
Permissions
Allowed Hosts