seo-drift
它能做什么
这项技能保存页面重要 SEO 细节的基线,例如标题、描述、标题层级和结构化数据。适合希望在改动之后及时发现 SEO 故障的网站所有者。
适用场景
- ✓当你想在网站更新前保存一个已知良好的页面版本的时候。
- ✓当你想检查最近的改动是否破坏了标题或结构化数据的时候。
- ✓当你想查看页面 SEO 细节变化历史的时候。
技能链接
https://github.com/AgriciDaniel/claude-seo/blob/main/skills/seo-drift/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请现在保存我定价页面的 SEO 基线,以便重新设计后进行比较。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能记录页面的标题、描述、标题层级、结构化数据、状态码和内容哈希值。之后,它会将当前页面与保存的基线进行比较,并报告差异。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
SEO Drift Monitor (April 2026)
Git for your SEO. Capture baselines, detect regressions, track changes over time.
Commands
| Command | Purpose |
|---|---|
/seo drift baseline <url> |
Capture current SEO state as a "known good" snapshot |
/seo drift compare <url> |
Compare current page state to stored baseline |
/seo drift history <url> |
Show change history and past comparisons |
What It Captures
Every baseline records these SEO-critical elements:
| Element | Field | Source |
|---|---|---|
| Title tag | title |
parse_html.py |
| Meta description | meta_description |
parse_html.py |
| Canonical URL | canonical |
parse_html.py |
| Robots directives | meta_robots |
parse_html.py |
| H1 headings | h1 (array) |
parse_html.py |
| H2 headings | h2 (array) |
parse_html.py |
| H3 headings | h3 (array) |
parse_html.py |
| JSON-LD schema | schema (array) |
parse_html.py |
| Open Graph tags | open_graph (dict) |
parse_html.py |
| Core Web Vitals | cwv (dict) |
pagespeed_check.py |
| HTTP status code | status_code |
fetch_page.py |
| HTML content hash | html_hash (SHA-256) |
Computed |
| Schema content hash | schema_hash (SHA-256) |
Computed |
How Comparison Works
The comparison engine applies 17 rules across 3 severity levels. Load
references/comparison-rules.md for the full rule set with thresholds,
recommended actions, and cross-skill references.
Severity Levels
| Level | Meaning | Response Time |
|---|---|---|
| CRITICAL | SEO-breaking change, likely traffic loss | Immediate |
| WARNING | Potential impact, needs investigation | Within 1 week |
| INFO | Awareness only, may be intentional | Review at convenience |
Storage
All data is stored locally in SQLite:
~/.cache/claude-seo/drift/baselines.db
Tables
- baselines: Captured snapshots with all SEO elements
- comparisons: Diff results with triggered rules and severities
URL normalization ensures consistent matching: lowercase scheme/host, strip default ports (80/443), sort query parameters, remove UTM parameters, strip trailing slashes.
Command: baseline
Captures the current state of a page and stores it.
Steps:
- Validate URL (SSRF protection via
google_auth.validate_url()) - Fetch page via
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run fetch_page.py <URL> - Parse HTML via
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run parse_html.py <URL> - Optionally fetch CWV via
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run pagespeed_check.py <URL>(use--skip-cwvto skip) - Hash HTML body and schema content (SHA-256)
- Store snapshot in SQLite
Execution:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_baseline.py <url>
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_baseline.py <url> --skip-cwv
Output: JSON with baseline ID, timestamp, URL, and summary of captured elements.
Command: compare
Fetches the current page state and diffs it against the most recent baseline.
Steps:
- Validate URL
- Load most recent baseline from SQLite (or specific
--baseline-id) - Fetch and parse current page state
- Run all 17 comparison rules
- Classify findings by severity
- Store comparison result
- Output JSON diff report
Execution:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_compare.py <url>
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_compare.py <url> --baseline-id 5
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_compare.py <url> --skip-cwv
Output: JSON with all triggered rules, old/new values, severity, and actions.
After comparison, offer to generate an HTML report:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_report.py <comparison_json_file> --output drift-report.html
Command: history
Shows all baselines and comparisons for a URL.
Execution:
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_history.py <url>
"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run drift_history.py <url> --limit 10
Output: JSON array of baselines (newest first) with timestamps and comparison summaries.
Cross-Skill Integration
When drift is detected, recommend the appropriate specialized skill:
| Finding | Recommendation |
|---|---|
| Schema removed or modified | Run /seo schema <url> for full validation |
| CWV r |
常见问题
它记录哪些内容?
它记录标题、meta 描述、规范网址、robots 标签、标题层级、结构化数据、Open Graph 标签、速度数据和状态码。
改动如何排序?
比较时会按三个严重级别应用规则,使严重问题更加醒目。
我可以查看过去的比较吗?
可以。历史命令会显示过去的改动和比较结果。
详情
作者的原始描述
SEO drift monitoring: capture baselines of SEO-critical elements, detect changes, and track regressions over time. Git for SEO: baseline, diff, and track changes to your on-page SEO. Use when user says "SEO drift", "baseline", "track changes", "did anything break", "SEO regression", "compare SEO", "before and after", "monitor SEO changes", or "deployment check".
repo: AgriciDaniel/claude-seo
热度
- GitHub 星标
- 26k
- 排名
- #10004
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …
同一仓库的更多技能
seo-ahrefs
26k让你的智能体获取网站的实时 Ahrefs 数据,包括反向链接、引荐域名、自然关键词和内容创意。需要 Ahrefs API 令牌。
seo-image-gen
26k帮你的智能体使用 Gemini 制作 SEO 图片,例如社交预览卡片、博客头图和信息图。需要先安装 banana 扩展。
seo-bing
26k帮你的智能体检查 Bing Webmaster Tools 数据,并通过 IndexNow 提交新页面网址,帮助 Bing 发现你的页面。
seo-dataforseo
26k让你的智能体从 DataForSEO 获取实时 SEO 数据,例如搜索结果、关键词搜索量、反向链接和 AI 提及情况。每次调用都会由服务商计费。