domain-migration
БесплатноЗапускает вложенные скриптыНе проверенExecutes a domain rebrand, subdomain-to-subfolder merge, or blog URL consolidation with zero ranking loss, shipping a verified 1-to-1 redirect config…
от Illyism★ 2 274 звезды на GitHubОб этом скилле
Domain Migration
You move a site to new URLs without losing rankings, backlinks, or AI-search recognition of the brand. The output is a shipped redirect config, a verification script that passes, cutover edits, and outreach drafts. A migration checklist with no config is a failed run.
Examples in this file use a rebrand from BillBox (billbox.io) to invoicekit.io, and a merge of blog.deployfast.dev into deployfast.dev/blog.
Fatal mistakes and why they destroy rankings
MISTAKE WHAT HAPPENS
Redirect every old URL to the new homepage Google treats mass redirects to an unrelated page as soft 404s.
The backlink equity of every inner page is dropped.
2-3 hop chains http://old/x → https://old/x → https://old/y → https://new/y.
(http → https → old slug → new domain) Each hop delays processing and crawlers stop following
long chains. Users on slow mobile wait for every hop.
Staging noindex or Disallow: / shipped The new domain is deindexed on launch day. Recovery takes weeks.
Blocking the old domain in robots.txt Googlebot can't crawl old URLs, never sees the 301s, and
keeps the old URLs indexed while the new ones sit unranked.
Skipping URLs not in the current sitemap Retired posts with DR 60 backlinks start returning 404.
Their equity is gone and nobody notices until traffic drops.
Removing redirects after a few months Backlinks to old URLs live for years. Removing the 301 kills them.
Decision tree: which migration is this
Migration type
├── Full domain change (billbox.io → invoicekit.io)
│ └── All 4 steps + Google Search Console Change of Address tool + backlink transfer sprint
├── Subdomain to subfolder (blog.deployfast.dev → deployfast.dev/blog)
│ └── Steps 1-3. Backlink sprint only for the top 10 referring pages to the subdomain.
├── Slug consolidation on the same domain (/blog/2021/how-to-x → /blog/how-to-x)
│ └── Steps 1-2 + sitemap update. No Change of Address.
└── Merging 2 sites into 1
└── All 4 steps for the retired site. Map each retired page to its closest topical
equivalent on the surviving site.
Step 1: Full URL inventory
Build the union of every source below. Each catches URLs the others miss.
- Old
sitemap.xml(and nested sitemaps): the URLs the site currently advertises. - Repo route tree: every static route plus every slug generated by dynamic routes (
content/**, data files, CMS export). - Google Search Console: Pages report, last 16 months, every URL with at least 1 click or 10 impressions.
- Ahrefs Best by links (or the backlink tool the user has): every old URL with at least 1 referring domain. This is the list that saves retired posts with strong backlinks.
- Analytics landing pages: every landing page with at least 1 session in the last 12 months.
Normalize before deduping: lowercase host, strip query strings and fragments, and pick one trailing-slash form. Write the result to seo/url-inventory.csv with columns old_url,source,clicks_16mo,referring_domains.
Step 2: Deterministic 1-to-1 redirect map
Assign every inventory row a destination:
Old URL
├── Same content, same path on the new domain
│ └── Same-path rule (covered by the catch-all)
├── Same content, new slug
│ └── Explicit 1-to-1 entry
├── Content merged into another page
│ └── Explicit entry to the page that absorbed it
├── Content deleted, has referring domains or clicks
│ ├── A page on the same topic exists → explicit entry to that page
│ └── No topical equivalent → restore the page on the new domain, then map it 1-to-1
└── Content deleted, 0 referring domains, 0 clicks
└── Let it return 410. Never point it at the homepage.
Then collapse chains: if the site already has redirects (/old-slug → /new-slug), resolve every entry to its final destination so each old URL reaches its target in exactly 1 hop.
Write seo/redirect-map.csv with header old_url,new_url. Every new_url must return 200 on the new domain before cutover.
Ship the config for the user's host
Next.js (next.config.mjs on whichever deployment answers the old host). permanent: true returns 308, which Google treats the same as 301.
import { readFileSync } from 'node:fs'
const explicit = readFileSync('./seo/redirect-map.csv', 'utf8')
.trim().split('\n').slice(1)
.map((line) => line.split(','))
.map(([oldUrl, newUrl]) => ({ from: new URL(oldUrl).pathname, to: newUrl }))
export default {
async redirects() {
return [
// Explicit 1-to-1 entries first: Next.js uses the first matching rule.
...explicit.map(({ from, to }) => ({
source: from,
has: [{ type: 'host', value: '(www\\.)?billbox\\.io' }],
destina
Установить domain-migration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл domain-migration?
Executes a domain rebrand, subdomain-to-subfolder merge, or blog URL consolidation with zero ranking loss, shipping a verified 1-to-1 redirect config, `scripts/verify-redirects.sh`, canonical and schema cutover edits, and `seo/backlink-transfer-emails.md` outreach drafts. Use when the user is changing domains, rebranding, moving `blog.` to `/blog`, merging sites, renaming URL slugs in bulk, or asks how to migrate without losing SEO traffic.
Как установить скилл domain-migration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл domain-migration запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic