seo-drift
Skill này làm gì
Skill này lưu một mốc cơ sở về các chi tiết SEO quan trọng của trang, như tiêu đề, mô tả, tiêu đề mục và schema. Skill dành cho chủ site muốn phát hiện lỗi SEO sau các thay đổi.
Khi nào nên dùng
- ✓Khi bạn muốn lưu một phiên bản đã biết là tốt của trang trước khi cập nhật site.
- ✓Khi bạn muốn kiểm tra xem một thay đổi gần đây có làm hỏng tiêu đề hoặc schema không.
- ✓Khi bạn muốn có lịch sử về cách các chi tiết SEO của trang đã thay đổi.
Liên kết skill
https://github.com/AgriciDaniel/claude-seo/blob/main/skills/seo-drift/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể lưu mốc cơ sở SEO của trang giá của tôi ngay bây giờ để chúng ta so sánh sau khi thiết kế lại không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill ghi lại tiêu đề, mô tả, tiêu đề mục, schema, mã trạng thái và mã băm nội dung của trang. Sau đó skill so sánh trang hiện tại với mốc cơ sở đã lưu và báo cáo các khác biệt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Skill ghi lại những gì?
Skill ghi lại tiêu đề, mô tả meta, URL chuẩn, thẻ robots, tiêu đề mục, schema, thẻ Open Graph, dữ liệu tốc độ và mã trạng thái.
Các thay đổi được xếp hạng như thế nào?
Việc so sánh áp dụng các quy tắc ở ba mức độ nghiêm trọng, để các vấn đề nghiêm trọng nổi bật.
Tôi có thể xem các so sánh trước đây không?
Có. Lệnh lịch sử hiển thị các thay đổi và so sánh trước đây.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 26k
- Vị trí xếp hạng
- #10004
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
seo-ahrefs
26kGiúp agent của bạn lấy dữ liệu Ahrefs về website: backlink, tên miền dẫn link, từ khóa tự nhiên, ý tưởng nội dung. Cần token API Ahrefs.
seo-image-gen
26kGiúp agent của bạn tạo hình ảnh SEO như thẻ xem trước mạng xã hội, ảnh bìa blog và infographic, bằng Gemini. Cần cài tiện ích banana trước.
seo-bing
26kGiúp agent của bạn kiểm tra dữ liệu Bing Webmaster Tools và gửi URL trang mới qua IndexNow, để giúp Bing tìm thấy các trang của bạn.
seo-dataforseo
26kGiúp agent của bạn lấy dữ liệu SEO trực tiếp từ DataForSEO: kết quả tìm kiếm, lượng từ khóa, backlink, lượt nhắc đến AI. Mỗi lần gọi bị tính phí.
Skill tương tự
competitive-platform-analysis
280kGiúp bạn hiểu rõ đối thủ cạnh tranh. Công cụ xác định, phân loại và lọc các công ty cạnh tranh trước khi phân tích sâu hơn.
competitive-report-structure
280kTạo báo cáo đối thủ cạnh tranh toàn diện. Kết hợp thông tin để thể hiện bức tranh chung, đề xuất và giúp đồng đội thống nhất hướng đi.
lead-intelligence
280kGiúp agent tìm và liên hệ với những người quan trọng. Phân tích khách hàng tiềm năng, gợi ý cách tiếp cận và quản lý việc liên lạc qua email và mạng xã hội.