Skip to content
Marketing
Skill

/seo-drift

Git-for-SEO — capture baselines of on-page SEO-critical elements and diff against them to catch regressions a deploy introduced (title changed, canonical flipped, noindex added, schema removed). Stores baselines in a local SQLite history so you can compare and trend over time.

From plugin
designer-pro-and-seo
845 skills13 agents4 MCP
Install
$ npx -y skills add ZachArticulateV/designer-pro-and-seo --skill seo-drift --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/seo-drift

Context preview

The summary Claude sees to decide when to auto-load this skill.

Git-for-SEO — capture baselines of on-page SEO-critical elements and diff against them to catch regressions a deploy introduced (title changed, canonical flipped, noindex added, schema removed). Stores baselines in a local SQLite history so you can compare and trend over time.

SKILL.md

seo-drift.SKILL.md
name: seo-drift
description: Git-for-SEO — capture baselines of on-page SEO-critical elements and diff against them to catch regressions a deploy introduced (title changed, canonical flipped, noindex added, schema removed). Stores baselines in a local SQLite history so you can compare and trend over time. Trigger when the user says "SEO drift", "SEO baseline", "track changes", "did anything break", "SEO regression", "compare SEO", "before and after deploy", "monitor SEO changes", or "deployment check".

seo-drift

**Family:** seo **Status:** Stable

Purpose

Baseline + diff for SEO state — "git for SEO." Capture a page's SEO-critical elements, store the snapshot, then after a deploy or content change diff a fresh capture against the stored baseline to catch silent regressions before they cost rankings. Two modes: a quick one-off **JSON baseline** (`drift_tools.py`), or a **local SQLite history** (`drift_baseline/compare/history`) that remembers every snapshot so you can compare and trend over time. Works offline on local HTML or by fetching a URL through the shared SSRF guard.

Triggers

  • "seo drift" / "baseline" / "deployment check"
  • "track changes" / "did anything break" / "seo regression"
  • "compare seo" / "before and after" / "monitor seo changes"

Inputs

  • A URL (fetched, SSRF-guarded) or local HTML file
  • Mode: a one-off JSON baseline+diff, or a stored SQLite baseline / compare / trend
  • Optional: a `--db` path (default `<cwd>/.seo-drift/baselines.db` under your workspace;

it refuses to default *inside* the plugin — run from your project, or pass `--db` to a path under your workspace), a `--label` (e.g. `prod`, `pre-deploy`), a `--baseline-id`

Steps

1. **Capture a baseline into the SQLite store** (before a deploy, or at handoff):

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/drift_baseline.py" --url <URL> --db .seo-drift/baselines.db --label pre-deploy   # or --file page.html

Records title, meta description, h1, canonical, meta robots, OG tags, schema-block count, h2 count, and word count (the canonical capture set from `drift_tools.py`), tagged with a timestamp and label, indexed by URL. 2. **Compare after a change** against the stored baseline:

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/drift_compare.py" --url <URL> --db .seo-drift/baselines.db

Resolves the latest baseline for that URL (or `--label` / `--baseline-id`), captures fresh, and runs the severity engine. It treats **adding `noindex`/`nofollow`** and a **canonical flip or drop** as **critical**, **title / h1 / schema-loss** changes as **high**, and meta-description / OG / h2 / word-count drift as **advisory** (word-count moves under 20% are suppressed as editing noise). Full rationale: `references/seo-drift/severity-model.md`. 3. **Trend the history** to see drift across deploys:

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/drift_history.py" --url <URL> --db .seo-drift/baselines.db --trend

Lists stored baselines, or with `--trend` reports the per-transition change count and critical/high/advisory tally — a regression timeline where a deploy that quietly added noindex shows up as a critical-count spike. 4. **Quick one-off (no store):** for a single before/after without history, use the original JSON path — `drift_tools.py --capture --out baseline.json`, then `drift_tools.py --diff --baseline baseline.json`. Same capture set; the JSON baseline is a plain file you can commit. 5. **Interpret.** Walk the regressions worst-first: intended change or accident? Fix any critical/high immediately. The store design is documented in `references/seo-drift/sqlite-schema.md`.

Outputs

| Output | What it contains | Format | Quality bar (how it is scored) | |---|---|---|---| | Stored baseline | A captured SEO-element snapshot tagged with url / label / timestamp, in a local SQLite db | SQLite row (snapshot as JSON) + `--human` ASCII | Capture is deterministic given the same input + `--captured-at`; written under the user's workspace, never the plugin | | Compare report | Changed elements with before/after, each carrying a rule code (D1–D14), severity tier, and a plain-language note | JSON (default) + ASCII `--human` | Sorted critical → high → advisory; severity comes from the captured-element model, not a guess; "no SEO drift detected" when nothing material changed | | Trend timeline | Per-transition change count + critical/high/advisory tally across the stored history | JSON `transitions[]` / ASCII `--human` | One transition per consecutive snapshot pair; counts reproduce the compare engine exactly | | Severity verdict | The tier per change + why (de-index risk vs primary signal vs secondary) | tier label + note | No fabricated magnitude — severity is a structural judgment, never an invented traffic/ranking number |

Filed to: the user's project workspace (the SQLite db and any JSON baselines), never the plugin. The engine never estimates a traffic or ranking-position impact from a diff — that would be a synthesized number.

Error Handling

| Condition | Detection | Behavior (degrade, never fail) | User-facing message | |---|---|---|---| | No network / offline | fetch raises or `--no-network` set | run the offline `--file` path (the canonical capturer reads local HTML) | "Offline — analyzed the provided file; a live URL would capture the deployed page." | | Blocked / internal URL | the shared `net_safety.safe_open` guard refuses a private/loopback/metadata host | return no body + the guard's error; never fetch it | "That URL resolves to a non-public address — refused by the SSRF guard." | | Bad / empty input | no `--file` and no reachable `--url` → JSON `{"error"}` + non-zero exit | report the validation error; capture nothing | "Provide --file or a reachable --url." | | No baseline store yet | `drift_compare`/`drift_history` find no db at `--db` → JSON error + non-zero | tell the user to capture first | "

Read more
Ships withdesigner-pro-and-seo

A Claude Code plugin for the web-design + SEO workflow: research a niche, generate a coherent design system, write a complete build brief, build, run a pre-delivery QA gate, port the result into any CMS, and review on-page SEO.

Get the whole plugin

Other skills on designer-pro-and-seo.