

사이트 이전·종료 전 호스트 점검 스킬 — AI 에이전트가 읽고 실행하는 스킬 파일(SKILL.md)입니다. 직접 채워 쓰는 문서나 노션 템플릿이 아니라, Claude Code 같은 에이전트에 넣고 요청하면 에이전트가 안의 절차대로 결과를 만들어 줍니다.
붙여넣는 내용: 이전 또는 폐쇄 대상인 기존 도메인·새 도메인 또는 저장소, 그리고 점검 대상인 저장소·설정 파일입니다.
받는 결과: path:line 근거가 달린 호스트 목록, 직접 실행하는 확인 명령이 포함된 순서별 실행 절차서, 그리고 verified gone / verified moved / UNSURE 상태표입니다.
이 스킬은 사이트를 새 호스트나 새 도메인으로 옮기기 전, 저장소를 바꾸기 전, 또는 사이트를 내리기 전에 쓰는 도구입니다. 사이트는 한 곳에서만 제공되는 경우가 드물어서, 저장소 하나를 정리해도 다른 호스트는 계속 살아 있을 수 있습니다. 이 스킬은 사용자의 파일이 사이트를 제공하거나 참조하는 것으로 보여 주는 곳들을 읽기 전용 목록으로 만들고, 대시보드에서만 확인할 수 있는 항목은 질문으로 정리한 다음, 순서별 실행 절차서와 상태표를 제공합니다. 어떤 것도 변경하지 않으며 스스로 네트워크 호출을 하지도 않습니다.
1단계 — 범위 정하기. 목표(이전, 폐쇄 또는 저장소 전환), 기존 및 새 도메인과 저장소, 리모트, 일정을 정합니다.
2단계 — 탐색. 저장소에서 DNS 및 서브도메인 단서, 엣지 워커 경로, 리디렉션, 미러와 두 번째 저장소, 사이트맵과 robots, canonical 태그, 하드코딩된 절대 URL, OAuth/웹훅 콜백, 분석 도구 및 서치 콘솔 ID를 grep으로 찾습니다. 모든 행에는 path:line 근거가 붙으며, 호스트는 사용자의 파일에 나오는 실제 도메인이며, 유추하거나 추측한 URL은 확인 명령이 아니라 질문으로 다룹니다.
3단계 — 질문. 저장소로는 알 수 없는 것(등록기관 관리 화면, CDN 대시보드, 이전 계정, 제공업체 콘솔)은 "…가 있습니까?" 형태의 질문이 되며, 조사 결과로 다루지 않습니다.
4단계 — 실행 절차서. 확인 명령과 롤백이 포함된 순서별 단계이며, 해당하는 경우 IRREVERSIBLE(되돌릴 수 없음) 표시가 붙습니다.
5단계 — 검증. 직접 실행하는 복사·붙여넣기용 curl -I 및 dig 명령입니다. 출력은 사용자가 붙여넣으며, "gone" 판정에는 상태 코드만으로는 부족하고 캐시 근거가 필요합니다(TTL을 알려 주지 않으면 48시간으로 가정합니다). 이 스킬은 저장소 안의 문서가 아니라, 여러 시스템에 걸친 호스트와 URL을 점검합니다.
아래 샘플의 출력은 영어로 실행한 원문 그대로입니다.
샘플 문제에 이 스킬을 실행한 실제 출력이며 편집하지 않았습니다.
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 `.gitmodules` was 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)
1. Is the new canonical host `new-example.com` or `www.new-example.com`? This decides every redirect target and the new OAuth callback.
2. Is there an apex A/AAAA record or CNAME for `old-example.com` outside the Worker route, and any other records (`MX`, `TXT`, other subdomains)? Check the Cloudflare DNS panel for zone `old-example.com`.
3. Is there a custom domain on the Pages project `old-example-site`, presumably `www.old-example.com`? Is its `*.pages.dev` default address in use or linked anywhere? Check Cloudflare dashboard → Workers & Pages → old-example-site → Custom domains.
4. Is GitHub Pages enabled on `acme/old-example`, given the `CNAME` file? Check Repo → Settings → Pages.
5. Where does `acme/old-example-mirror` publish its snapshot (GitHub Pages, Pages project, other)? Does the snapshot contain anything personal? Check that repo's Settings → Pages and its workflows.
6. Which OAuth provider holds `https://www.old-example.com/auth/callback`? Check that provider's app console.
7. Does the API behind `api.old-example.com` have a CORS or allowed-origins list that must add `new-example.com`? Are there webhooks or partners calling `api.old-example.com`? Is there a real endpoint path I can use for verification? None appears in the pasted code.
8. Are there analytics or tag-manager properties, or a Search Console property for `old-example.com`? Check the analytics and Search Console accounts.
9. Is the `old-example` Worker's `*.workers.dev` address enabled? Check Worker → Settings → Domains & Routes.
10. Are there social profiles, listings, QR codes or print material with the old URL? This is outside the repo.
## Runbook
1. Freeze and snapshot: export the DNS zone for `old-example.com`, screenshot the Pages/Worker custom domains and routes, and run `git tag pre-cutover` | verify: tag exists, export saved | rollback: n/a (this is the anchor) | no | you
2. Lower the DNS TTL on `www`, apex and `api` records (Q2) at least 48h before the switch. Read the current TTL with `dig old-example.com A` (ANSWER SECTION, TTL column); without a reading it stays UNSURE | verify: `dig` shows the new TTL | rollback: restore the old TTL | no | you
3. Stand up NEW: add the `new-example.com` custom domain to Pages project `old-example-site` (or a new project), and add a Worker route for `api.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
4. 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`, and `CNAME: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
5. 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
6. 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
7. 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
8. Search and analytics: add a property for NEW, run Change of Address, resubmit the sitemap (Q8) | verify: console status | rollback: n/a | partly | you
9. Retire old hosts only after step 7 passes: the mirror `acme/old-example-mirror` (Q5), GitHub Pages on `acme/old-example` (Q4), the `workers.dev` and `pages.dev` defaults 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 `HIT` or a nonzero `age` within that window means UNSURE. Paste the command output and I will fill in the status table.
DNS를 바꾸거나 저장소를 삭제하거나 무언가를 푸시합니까? 아니요. 읽기 전용입니다. 사용자가 실행할 계획과 명령만 출력합니다.
실제 운영 중인 사이트 자체를 확인합니까? 아니요. 네트워크 호출을 하지 않습니다. curl과 dig 명령을 출력하면 사용자가 실행하고, 그 출력을 붙여넣어 해석하도록 합니다.
저장소에 없는 호스트도 찾아 줍니까? 아니요. 찾은 척하지도 않습니다. 등록기관, CDN 대시보드, 서드파티 콘솔은 조사 결과가 아니라 답해야 할 질문으로 정리됩니다.
법률 또는 개인정보 관련 조언을 해 줍니까? 아니요. 호스트에 개인 데이터가 있을 수 있으면 우선순위로 표시하고 전문 자격을 갖춘 곳에서 조언을 받으라고 안내합니다.
Anthropic, Claude Code 및 언급된 모든 플랫폼 이름(GitHub, Cloudflare 등)은 각 소유자의 상표입니다. 이 스킬은 독립 제품이며 이들 중 어느 곳과도 제휴, 보증, 후원 관계가 없습니다.
info@glowhalo.org · 개인정보 처리방침
스킬 파일 (SKILL.md)
1,900원Claude Code·Codex·OpenClaw용 SKILL.md + 사용법