Migration Map 标志

Migration Map

社区
popiliadam
migration-map

Use when: kullanıcı "migration map", "redirect map", "site taşıma", "URL değişikliği", "301 haritası", "domain taşıma", "redirect planı", "eski URL'leri yeni URL'lere yönlendir", "migration verify", "redirect doğrula" der ya da /pseo-migration-map çağırır. Free (paid MCP yok) — SF export + master.xlsx okur. Also use when: bir site/CMS/domain taşıması planlanıyor; eski-site SF crawl inventory'si alındı; operatör bir url-mapping.csv (+ opsiyonel regex mapping-rules.json) sağladı; bulgular master.xlsx#redirect_404'e key=url merge ile yazılacak (plan modu) veya post-launch crawl ile doğrulanacak (verify modu); 301 haritası + sunucu-config snippet'leri + faz-geçit checklist raporda üretilecek (recommendation-only, operatör deploy eder). Do not use when: tek-URL retire/sunset (content-remediation, R-90/R-91, ayrı — bu skill BULK harita yapar); SF export yok (sf-import önce, DURUR); robots.txt/ noindex denetimi (robots-policy-audit); master.xlsx yokken (init-project önce); GSC'ye sitemap submit / Change-of-Address (operatör-only, motor YAZMAZ).

概览

发布者popiliadam
代码仓库platinum-seo-engine
技能名称migration-map
星标数
26
复刻数
3
附带文件
仅含指令
许可协议AGPL-3.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 popiliadam 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Migration Map AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/planning/migration-map
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git /tmp/platinum-seo-engine
mkdir -p .claude/skills
cp -r /tmp/platinum-seo-engine/skills/planning/migration-map .claude/skills/migration-map
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Migration Map,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Migration Map。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Migration Map 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

migration-map — planning skill (GAP-T4, FREE)

Site-migration / redirect-map playbook per rules/tech-seo-governance.md R-134 (Migration Redirect-Map Contract), R-135 (Migration Phase Gate), R-136 (Post-Migration Verification & Rollback Watch). SF's redirect_chains is a Tier-1 export collected on every crawl but consumed by nothing; this skill turns it (plus the old-site inventory + an operator mapping seed) into a one-to-one redirect map and a post-launch verification.

Recommendation-only (R-135). The engine produces the map + the verification; the operator deploys (htaccess/nginx/platform snippets are recommendations, emitted as report text). The engine NEVER writes to client infrastructure, NEVER calls mcp__gsc__submit_sitemap, and NEVER auto-triggers Change-of-Address (no API exists — GSC UI is operator-only). The Excel write is behind the standard request_approval gate. Scope fence: content-remediation owns single-URL retire (R-90/R-91); this skill handles the BULK map and never re-issues a single-URL retire.

Modes (input mode, enum-in-description per W-F3 D1)

  • plan — read the old-site inventory + the operator seed, expand explicit pairs + ordered regex rules over the full inventory, lint, and write redirect_404 rows (status: TODO). A mode value that is neither plan nor verify → DURUR (the skill refuses with an explanation, never guesses).
  • verify — read the post-launch crawl (redirect_chains.csv + response_codes_all.csv), confirm each map row resolves old → single-hop 301 → 200, and update matching redirect_404 rows' status (DONE for verified; rows stay TODO/ONGOING otherwise). R-136 cadence (T+1d / T+7d / T+30d) is a report checklist, not a scheduler.

Outputs

  • master.xlsx#redirect_404 — {url, inlinks, action, target_url, status} rows (action carries 301/410 per R-91 convention; status = statusEnum). Written via scripts/util/sheet_merge.merge_keyed_rows(..., key_column="url") — idempotent re-runs replace the same url keys in place and preserve foreign rows (sf_projection's own redirect_404 rows survive). sf-import's transaction.replace wipes the sheet → re-run after every sf-import.
  • outputs/reports/{date}-migration-map.md — map stats + unmapped triage table + lint findings + server-config snippet section + the R-135 phase-gate checklist (incl. the Change-of-Address line when the domain changes) + (verify) the verification table + rollback recommendation.
  • events.jsonl — append_provenance(source.kind="sf_csv", operation="project_excel", target_excel_sheet="redirect_404").

Body protocol

Mirrors tech-audit's shape minus the budget pre-flight (this skill is free).

  1. create_run — workflow_runner.create_run(skill="migration-map", mode=...).
  2. read inputs — resolve sf-exports/{date}/raw/; plan: read internal_all.csv (Address + Inlinks) + the seed *-url-mapping.csv (old_url,new_url,action) + optional *-mapping-rules.json (validated against schemas/migration-mapping.schema.json); read master.xlsx#gsc_performance (url/clicks, read-only) for traffic-critical detection. verify: read redirect_chains.csv + response_codes_all.csv from the post-launch export.
  3. transform (pure) —
    python
    from scripts.planning import migration_map_transform as mmt
    # plan
    out = mmt.build_map(inventory_rows, mapping_pairs, mapping_rules, gsc_rows,
                        homepage_collapse_pct=homepage_collapse_pct)
    # verify
    res = mmt.verify_map(redirect_rows, redirect_chain_rows, response_rows)
    build_map lints loops/self-redirects (RED), chains > 3 hops, homepage-collapse %, traffic-critical-unmapped, duplicate-target fan-in — and never silently drops an old URL (every one is a row or listed in unmapped, R-134). verify_map flags 302/307-leaks, chains > 3 hops, 4xx/5xx regressions, and redirect-to-homepage drift (R-136), with a RedirectChainsSchemaDriftError guard on column drift.
  4. request_approval — request_approval(...) ("N redirect satırı master.xlsx#redirect_404'e yazılsın mı?"); skill EXIT awaiting_approval.
  5. write_excel — on approve, sheet_merge.merge_keyed_rows(master_xlsx, "redirect_404", out["redirect_rows"], key_column="url", run_id=..., project_slug=..., writer="migration-map") (plan), or update matching rows' status (verify).
  6. render_report — render_template.py templates/reports/migration-map.template.md → outputs/reports/{date}-migration-map.md (server-config snippets + phase-gate checklist as recommendation text).
  7. provenance event — append_provenance(source.kind="sf_csv", operation="project_excel", target_excel_sheet="redirect_404", rows_written=...).
  8. deployment confirmation (operator-gated) — only after the operator explicitly confirms the redirects are deployed, emit events_writer.append_work(event_type="redirect_deployed", task_id=...) (event_kind=work). This is gated on the approval/confirm step and is never autonomous — the engine does not deploy and does not assume deployment. Until confirmed, rows stay TODO.
  9. complete — workflow_runner.complete(...) with string-typed outputs.

DURUR conditions

Stop and flag the manager — do not patch, do not fabricate.

  1. mode is neither plan nor verify (refuse with explanation — never guess a mode).
  2. plan: internal_all.csv (inventory) missing — run sf-import first.
  3. plan: the operator mapping seed (*-url-mapping.csv) absent — a bulk map needs the operator's old→new decisions (an LLM session may DRAFT the seed; the engine does not invent targets).
  4. verify: redirect_chains.csv missing, or its Address column absent (RedirectChainsSchemaDriftError) — re-export with default columns.
  5. master.xlsx#redirect_404 row schema mismatch on write (RowSchemaError).
  6. Loops / self-redirects in the proposed map (lint.verdict == "RED") — surface for operator resolution before any deploy.
  7. PSEO_WORKSPACE_ROOT unset and no workspace_root arg.

Cross-references

  • Rules: rules/tech-seo-governance.md (R-134 / R-135 / R-136); rules/content-update-discipline.md (R-91 single-URL 301/410 — the content-remediation scope fence).
  • Transform: scripts/planning/migration_map_transform.py (build_map, verify_map, MigrationMapError, RedirectChainsSchemaDriftError).
  • Write path: scripts/util/sheet_merge.py (merge_keyed_rows, key=url).
  • Schemas: schemas/master-excel.schema.json#redirect_404 (5-col + statusEnum), schemas/migration-mapping.schema.json (optional regex rules), schemas/events.schema.json (redirect_deployed work event — enum-legal, no change).
  • Template: templates/reports/migration-map.template.md.
  • Command: commands/pseo-migration-map.md.
  • Downstream: master-task-sync (optional follow-up tasks via primary_source: "redirect_404"), indexing-ping (sitemap-submit recommendation — operator-consent gated), drift-check.

Discipline checklist

  • Recommendation-only — engine never deploys, never submits sitemaps, never auto Change-of-Address (R-135).
  • Free — budget.uses_paid_mcp=false; GSC reads are cost-0 and optional.
  • Never silently drops a URL — every old URL is a redirect row or listed unmapped (R-134).
  • Schema-first — frontmatter validates against skill-frontmatter.schema.json; redirect_404 rows validate against master-excel.schema.json#redirect_404.
  • Plugin-agnostik — no slug literals; pure two-mode transform.
  • Idempotent write — merge_keyed_rows replaces the same url keys in place; foreign sf_projection rows preserved.
  • redirect_deployed event gated on operator confirm — never autonomous (append-only via events_writer).
  • Scope fence — BULK map only; content-remediation owns single-URL retire (R-90/R-91).

常见问题

Migration Map AI 技能有什么作用?

Use when: kullanıcı "migration map", "redirect map", "site taşıma", "URL değişikliği", "301 haritası", "domain taşıma", "redirect planı", "eski URL'leri yeni URL'lere yönlendir", "migration verify", "redirect doğrula" der ya da /pseo-migration-map çağırır. Free (paid MCP yok) — SF export + master.xlsx okur. Also use when: bir site/CMS/domain taşıması planlanıyor; eski-site SF crawl inventory'si alındı; operatör bir url-mapping.csv (+ opsiyonel regex mapping-rules.json) sağladı; bulgular master.xlsx#redirect_404'e key=url merge ile yazılacak (plan modu) veya post-launch crawl ile doğrulanaca...

为什么在 TypingMind 中使用 Migration Map?

因为您只需安装一次,就能搭配任何模型使用。Migration Map 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Migration Map?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/planning/migration-map。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Migration Map?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Migration Map 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Migration Map 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Migration Map AI 技能免费吗?

是的。popiliadam 已在 GitHub 上根据 AGPL-3.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇