[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDF7Z5PB46ETBC0B2D6QC3":3,"skill-same:01M7EDF7Z5PB46ETBC0B2D6QC3":49},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":13,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M7EDF7Z5PB46ETBC0B2D6QC3","seo-drift",null,"jonahthan433\u002FCortexOS","jonahthan433","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211465495?v=4","01M7ECH9HPHGA89DCXHHJBTS3C","jonah.ai","01M7ECH9JCEM45DZMWPT7148S1",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fseo-drift\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# seo-drift\n\n# SEO Drift Monitor (April 2026)\n\nGit for your SEO. Capture baselines, detect regressions, track changes over time.\n\n---\n\n## Commands\n\n| Command | Purpose |\n|---------|---------|\n| `\u002Fseo drift baseline \u003Curl>` | Capture current SEO state as a \"known good\" snapshot |\n| `\u002Fseo drift compare \u003Curl>` | Compare current page state to stored baseline |\n| `\u002Fseo drift history \u003Curl>` | Show change history and past comparisons |\n\n---\n\n## What It Captures\n\nEvery baseline records these SEO-critical elements:\n\n| Element | Field | Source |\n|---------|-------|--------|\n| Title tag | `title` | `parse_html.py` |\n| Meta description | `meta_description` | `parse_html.py` |\n| Canonical URL | `canonical` | `parse_html.py` |\n| Robots directives | `meta_robots` | `parse_html.py` |\n| H1 headings | `h1` (array) | `parse_html.py` |\n| H2 headings | `h2` (array) | `parse_html.py` |\n| H3 headings | `h3` (array) | `parse_html.py` |\n| JSON-LD schema | `schema` (array) | `parse_html.py` |\n| Open Graph tags | `open_graph` (dict) | `parse_html.py` |\n| Core Web Vitals | `cwv` (dict) | `pagespeed_check.py` |\n| HTTP status code | `status_code` | `fetch_page.py` |\n| HTML content hash | `html_hash` (SHA-256) | Computed |\n| Schema content hash | `schema_hash` (SHA-256) | Computed |\n\n---\n\n## How Comparison Works\n\nThe comparison engine applies **17 rules across 3 severity levels**. Load\n`references\u002Fcomparison-rules.md` for the full rule set with thresholds,\nrecommended actions, and cross-skill references.\n\n### Severity Levels\n\n| Level | Meaning | Response Time |\n|-------|---------|---------------|\n| **CRITICAL** | SEO-breaking change, likely traffic loss | Immediate |\n| **WARNING** | Potential impact, needs investigation | Within 1 week |\n| **INFO** | Awareness only, may be intentional | Review at convenience |\n\n---\n\n## Storage\n\nAll data is stored locally in SQLite:\n\n```\n~\u002F.cache\u002Fseo-skills\u002Fdrift\u002Fbaselines.db\n```\n\n### Tables\n\n- **baselines**: Captured snapshots with all SEO elements\n- **comparisons**: Diff results with triggered rules and severities\n\nURL normalization ensures consistent matching: lowercase scheme\u002Fhost, strip\ndefault ports (80\u002F443), sort query parameters, remove UTM parameters, strip\ntrailing slashes.\n\n---\n\n## Command: `baseline`\n\nCaptures the current state of a page and stores it.\n\n**Steps:**\n1. Validate URL (SSRF protection via `google_auth.validate_url()`)\n2. Fetch page via `scripts\u002Ffetch_page.py`\n3. Parse HTML via `scripts\u002Fparse_html.py`\n4. Optionally fetch CWV via `scripts\u002Fpagespeed_check.py` (use `--skip-cwv` to skip)\n5. Hash HTML body and schema content (SHA-256)\n6. Store snapshot in SQLite\n\n**Execution:**\n```bash\npython scripts\u002Fdrift_baseline.py \u003Curl>\npython scripts\u002Fdrift_baseline.py \u003Curl> --skip-cwv\n```\n\n**Output:** JSON with baseline ID, timestamp, URL, and summary of captured elements.\n\n---\n\n## Command: `compare`\n\nFetches the current page state and diffs it against the most recent baseline.\n\n**Steps:**\n1. Validate URL\n2. Load most recent baseline from SQLite (or specific `--baseline-id`)\n3. Fetch and parse current page state\n4. Run all 17 comparison rules\n5. Classify findings by severity\n6. Store comparison result\n7. Output JSON diff report\n\n**Execution:**\n```bash\npython scripts\u002Fdrift_compare.py \u003Curl>\npython scripts\u002Fdrift_compare.py \u003Curl> --baseline-id 5\npython scripts\u002Fdrift_compare.py \u003Curl> --skip-cwv\n```\n\n**Output:** JSON with all triggered rules, old\u002Fnew values, severity, and actions.\n\nAfter comparison, offer to generate an HTML report:\n```bash\npython scripts\u002Fdrift_report.py \u003Ccomparison_json_file> --output drift-report.html\n```\n\n---\n\n## Command: `history`\n\nShows all baselines and comparisons for a URL.\n\n**Execution:**\n```bash\npython scripts\u002Fdrift_history.py \u003Curl>\npython scripts\u002Fdrift_history.py \u003Curl> --limit 10\n```\n\n**Output:** JSON array of baselines (newest first) with timestamps and comparison summaries.\n\n---\n\n## Cross-Skill Integration\n\nWhen drift is detected, recommend the appropriate specialized skill:\n\n| Finding | Recommendation |\n|---------|----------------|\n| Schema removed or modified | Run `\u002Fseo schema \u003Curl>` for full validation |\n| CWV regression | Run `\u002Fseo technical \u003Curl>` for performance audit |\n| Title or meta description changed | Run `\u002Fseo page \u003Curl>` for content analysis |\n| Canonical changed or removed | Run `\u002Fseo technical \u003Curl>` for indexability check |\n| Noindex added | Run `\u002Fseo technical \u003Curl>` for crawlability audit |\n| H1\u002Fheading structure changed | Run `\u002Fseo content \u003Curl>` for E-E-A-T review |\n| OG tags removed | Run `\u002Fseo page \u003Curl>` for social sharing analysis |\n| Status code changed to error | Run `\u002Fseo technical \u003Curl>` for full diagnostics |\n\n---\n\n## Error Handling\n\n| Scenario | Action |\n|----------|--------|\n| URL unreachable | Report error from `fetch_page.py`. Do not guess state. Suggest user verify URL. |\n| No baseline exists for URL | Inform user and suggest running `baseline` first. |\n| SSRF blocked (private IP) | Report `validate_url()` rejection. Never bypass. |\n| SQLite database missing | Auto-create on first use. No error. |\n| CWV fetch fails (no API key) | Store `null` for CWV fields. Skip CWV rules during comparison. |\n| Page returns 4xx\u002F5xx | Still capture as baseline (status code IS a tracked field). |\n| Multiple baselines exist | Use most recent unless `--baseline-id` specified. |\n\n---\n\n## Security\n\n- **All URL fetching** goes through `scripts\u002Ffetch_page.py` which enforces SSRF protection\n  (blocks private IPs, loopback, reserved ranges, GCP metadata endpoints)\n- **No curl, no subprocess HTTP calls** -- only the project's validated fetch pipeline\n- **All SQLite queries** use parameterized placeholders (`?`), never string interpolation\n- **TLS always verified** -- no `verify=False` anywhere in the pipeline\n\n---\n\n## Typical Workflows\n\n### Pre\u002FPost Deployment Check\n```\n\u002Fseo drift baseline https:\u002F\u002Fexample.com     # Before deploy\n# ... deploy happens ...\n\u002Fseo drift compare https:\u002F\u002Fexample.com      # After deploy\n```\n\n### Ongoing Monitoring\n```\n\u002Fseo drift baseline https:\u002F\u002Fexample.com     # Initial capture\n# ... weeks later ...\n\u002Fseo drift compare https:\u002F\u002Fexample.com      # Check for drift\n\u002Fseo drift history https:\u002F\u002Fexample.com      # Review all changes\n```\n\n### Investigating a Traffic Drop\n```\n\u002Fseo drift compare https:\u002F\u002Fexample.com      # What changed?\n\u002Fseo drift history https:\u002F\u002Fexample.com      # When did it change?\n```\n",{},"main","38b32c99e7ed0b8e215d638e92cfa452c1ec3079","skills\u002Fimported\u002Fproductivity\u002Fseo-drift","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS","https:\u002F\u002Fgithub.com\u002Fjonahthan433","AI Consultant","2026-10-24 05:13:39",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add jonahthan433\u002FCortexOS --skill seo-drift",{"tool":35,"command":36},"bunx","bunx skills add jonahthan433\u002FCortexOS --skill seo-drift",{"tool":38,"command":39},"pnpm","pnpm dlx skills add jonahthan433\u002FCortexOS --skill seo-drift","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fseo-drift\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"skill.json","REFERENCE","参考文档",273,"https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fimported\u002Fproductivity\u002Fseo-drift\u002Fskill.json",[50,56,62,68,74,80],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M7EDQZDQX3Q8Y7GCQX6KN9V7","opportunity-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fsales\u002Fopportunity-brief\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7EDQYA0V9Y99VKBREJJ3MRT","morning-intel","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fmorning-intel\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7EDQVX1JVY0B6PDHKKGM19G","decision-brief","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fdecision-brief\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M7EDQV1GENZAC2SZSD8KZ3GM","weekly-review","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fweekly-review\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7EDQT2KETJ1Y3CGVN9EKW2J","system-health","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fsystem-health\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7EDQQN2JK3XPWMS1M4T0F3K","backup-restore","https:\u002F\u002Fgithub.com\u002Fjonahthan433\u002FCortexOS\u002Fblob\u002Fmain\u002Fskills\u002Fops\u002Fbackup-restore\u002FSKILL.md",[],[]]