Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.
fix(metadata-template): mark the detector heuristic, drop spam-update causation claims
Agrici Daniel9437fdcd4d9e
diff --git a/agents/seo-content.md b/agents/seo-content.mdindex 8e3c26a..da2ff8a 100644--- a/agents/seo-content.md+++ b/agents/seo-content.md@@ -21,22 +21,25 @@ When given content to analyze:## Templated Metadata-Body-copy uniqueness does not clear a site of scaled content abuse. Metadata is+Body-copy uniqueness does not clear a site of duplicated or templated+metadata, a documented content-quality problem in its own right. Metadata isgenerated in bulk far more often than body copy is, and a description thatrestates its own title and then appends a stock CTA is the shape those jobs-produce on every URL at once.+produce on every URL at once. This is a heuristic check (deterministic+string comparison, no model); it does not claim any specific Google ranking+or spam update targeted this pattern.Single page:```-claude-seo run metadata_template.py --title "<title>" --description "<desc>" --json+"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run metadata_template.py --title "<title>" --description "<desc>" --json```Site-wide, which is the unit that matters, pass a JSON list of`{url, title, description}` objects collected while crawling:```-claude-seo run metadata_template.py --pairs-file metadata.json --json+"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run metadata_template.py --pairs-file metadata.json --json```Report `site_risk`, `templated_ratio`, and any `shared_cta_phrases`: the samediff --git a/scripts/metadata_template.py b/scripts/metadata_template.pyindex 431a4e3..b46571b 100644--- a/scripts/metadata_template.py+++ b/scripts/metadata_template.py@@ -11,10 +11,13 @@ Why this matters================Bulk metadata jobs (a CSV column piped into a template, an LLM asked for"a description for each of these titles") emit that exact shape across-every page of a site at once. Under Google's spam policies and QRG-§4.6.5, site-wide templated metadata reads as scaled content abuse, and-it does so **independently of body-copy quality** — a site whose article-text is entirely original can still be demoted on the metadata alone.+every page of a site at once. Duplicated or templated metadata is a+documented content-quality problem: Google's Quality Rater Guidelines+§4.6.5 describes scaled content abuse in general terms, and site-wide+templated metadata fits that description independently of body-copy+quality. This tool does not claim that templated metadata caused, or was+specifically targeted by, any particular Google ranking or spam update;+it flags a documented quality pattern, nothing more.Existing content checks do not catch this. ``content_quality.py`` scoresbody text; the ``seo-programmatic`` uniqueness gate measures unique body@@ -60,11 +63,14 @@ Output (JSON when ``--json`` is set)::"templated_ratio": 0.0..1.0,"shared_cta_phrases": {"try it free now": 26},"site_flags": ["site-wide-templated-metadata", ...],- "site_risk": "high" | "medium" | "low"+ "site_risk": "high" | "medium" | "low",+ "method": "heuristic"}A single pair scores as one page; ``--pairs-file`` scores a whole site,-which is the unit the spam signal actually operates on.+which is the unit this quality problem is actually visible at. ``method``+is always ``"heuristic"``: four deterministic string comparisons, no+model, no inference about who or what wrote the metadata."""from __future__ import annotations@@ -195,8 +201,9 @@ def analyse(title: str, description: str, url: str | None = None) -> dict:"templated_metadata", "high","Meta description repeats the title verbatim and then closes with a ""stock call to action. Bulk metadata jobs emit this shape on every "- "page at once, and site-wide templated metadata reads as scaled "- "content abuse even when the body copy is original.",+ "page at once, and duplicated or templated metadata site-wide is a "+ "documented content-quality problem even when the body copy is "+ "original.","Rewrite the description to say what the title does not: what the page ""does, for whom, and what makes it different. 150-160 characters, no ""stock CTA.",@@ -253,8 +260,9 @@ def analyse_pairs(pairs: Iterable[dict]) -> dict:``pairs`` yields mappings with ``title`` and ``description`` keys andan optional ``url``. The site view is the operational unit: one- templated description is an oversight, the same shape on a third of- the site is the pattern Google's spam systems act on.+ templated description is an oversight, the same shape across a third+ of the site is the pattern worth flagging as a site-wide quality+ problem."""pages = [analyse(p.get("title", ""), p.get("description", ""), p.get("url"))@@ -292,6 +300,9 @@ def analyse_pairs(pairs: Iterable[dict]) -> dict:"shared_cta_phrases": shared,"site_flags": site_flags,"site_risk": site_risk,+ # Deterministic string comparison, no model, no inference about+ # authorship. Always "heuristic": this is not a Google-verified verdict.+ "method": "heuristic",}@@ -358,6 +369,7 @@ def main() -> int:json.dump(result, sys.stdout, indent=2)sys.stdout.write("\n")else:+ print(f"Method: {result['method']} (deterministic string comparison, no model)")print(f"Pages checked: {result['pages_checked']}")print(f"Templated pages: {result['templated_count']} "f"({result['templated_ratio']:.0%})")diff --git a/skills/seo-page/SKILL.md b/skills/seo-page/SKILL.mdindex 3ab1f32..529f26b 100644--- a/skills/seo-page/SKILL.md+++ b/skills/seo-page/SKILL.md@@ -22,11 +22,12 @@ metadata:- Title tag: 50-60 characters, includes primary keyword, unique- Meta description: 150-160 characters, compelling, includes keyword- Meta description is not a restatement of the title: run- `claude-seo run metadata_template.py --title "<title>" --description "<desc>" --json`.- A description that opens by repeating its own title and closes on a stock CTA- ("Try it free now.", "Start free!") is templated metadata, the shape bulk- generation jobs produce site-wide, and it reads as scaled content abuse- regardless of how original the body copy is+ `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run metadata_template.py --title "<title>" --description "<desc>" --json`+ (heuristic, deterministic string comparison). A description that opens by+ repeating its own title and closes on a stock CTA ("Try it free now.",+ "Start free!") is templated metadata, the shape bulk generation jobs produce+ site-wide, and duplicated or templated metadata is a documented+ content-quality problem regardless of how original the body copy is- H1: exactly one, matches page intent, includes keyword- H2-H6: logical hierarchy (no skipped levels), descriptive- URL: short, descriptive, hyphenated, no parametersdiff --git a/skills/seo-programmatic/SKILL.md b/skills/seo-programmatic/SKILL.mdindex 7ccc4e7..32ebf07 100644--- a/skills/seo-programmatic/SKILL.md+++ b/skills/seo-programmatic/SKILL.md@@ -116,7 +116,7 @@ Unique content % = (words unique to this page) / (total words on page) × 100Measure against all other pages in the programmatic set. Shared headers, footers, and navigation are excluded from the calculation. Template boilerplate text IS included.-**Metadata is scored separately.** This calculation covers body copy only, so a set that passes it can still carry one generated title/description shape on every URL. Run `claude-seo run metadata_template.py --pairs-file <file> --json` over the whole set and treat a `site_risk` of `high` as a gate failure regardless of body uniqueness.+**Metadata is scored separately.** This calculation covers body copy only, so a set that passes it can still carry one generated title/description shape on every URL. Run `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run metadata_template.py --pairs-file <file> --json` (heuristic, deterministic string comparison) over the whole set and treat a `site_risk` of `high` as a gate failure regardless of body uniqueness.## Canonical Strategydiff --git a/skills/seo/references/quality-gates.md b/skills/seo/references/quality-gates.mdindex 9be76b0..16cf79d 100644--- a/skills/seo/references/quality-gates.md+++ b/skills/seo/references/quality-gates.md@@ -100,14 +100,16 @@ Google's doorway page algorithm penalizes programmatic location pages with thin/| Not a title restatement | Must not open by repeating the title tag verbatim |> **Templated metadata gate.** "Unique per page" is necessary but not-> sufficient: 26 descriptions can each be unique strings while all sharing one-> generated shape. Opening with the page title and closing on a stock CTA-> ("Try it free now.", "Start free!") is that shape, and site-wide it reads as-> scaled content abuse under Google's spam policies even when the body copy is-> entirely original. Check with-> `claude-seo run metadata_template.py --pairs-file <file> --json`. The CTA-> requirement above means a CTA written for this page, not one appended to every-> page by a template.+> sufficient: many descriptions can each be unique strings while all sharing+> one generated shape. Opening with the page title and closing on a stock CTA+> ("Try it free now.", "Start free!") is that shape, and duplicated or+> templated metadata site-wide is a documented content-quality problem even+> when the body copy is entirely original; this heuristic check does not+> claim any specific Google ranking or spam update targeted this pattern.+> Check with+> `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run metadata_template.py --pairs-file <file> --json`.+> The CTA requirement above means a CTA written for this page, not one+> appended to every page by a template.---diff --git a/tests/test_metadata_template.py b/tests/test_metadata_template.pyindex 52d9913..039cdf5 100644--- a/tests/test_metadata_template.py+++ b/tests/test_metadata_template.py@@ -1,10 +1,12 @@"""Tests for scripts/metadata_template.py — the templated-metadata detector.-The true-positive corpus is the real metadata that got a live site demoted-by the June 2026 spam update for scaled content abuse: a bulk CSV metadata-job wrote a description for every page that restates the page title and-then appends a stock CTA.+The true-positive corpus is real metadata observed on a live site: a bulk+CSV metadata job wrote a description for every page that restates the page+title and then appends a stock CTA. Duplicated or templated metadata is a+documented content-quality problem (see QRG §4.6.5 on scaled content); this+detector does not claim, and these tests do not assert, that any specific+Google ranking update targeted or was caused by this pattern.The false-positive corpus is the harder half. Every entry is legitimatemetadata that a naive "description contains the title" rule would flag —@@ -28,7 +30,6 @@ if _SCRIPTS not in sys.path:import metadata_template # noqa: E402-# ---------------------------------------------------------------------------# True positives: templated title + description pairs# ---------------------------------------------------------------------------@@ -359,3 +360,33 @@ def test_pairs_file_accepts_parse_html_meta_description_key(tmp_path) -> None:proc = _run_cli("--pairs-file", str(path), "--json")assert proc.returncode == 0, proc.stderrassert json.loads(proc.stdout)["templated_count"] == 1+++def test_json_output_reports_heuristic_method() -> None:+ """This is a deterministic string-comparison heuristic, not a model+ verdict and not a claim about any specific Google ranking update."""+ title, description = _TEMPLATED_PAIRS[0]+ result = metadata_template.analyse_pairs([{"title": title, "description": description}])+ assert result["method"] == "heuristic"+++def test_human_output_names_the_method_as_heuristic() -> None:+ title, description = _TEMPLATED_PAIRS[0]+ proc = _run_cli("--title", title, "--description", description)+ assert proc.returncode in (0, 1), proc.stderr+ assert "heuristic" in proc.stdout.lower()+++def test_findings_do_not_claim_a_specific_spam_update_caused_or_targeted_this() -> None:+ """Regression guard: no finding message may assert that templated+ metadata caused, or was specifically targeted by, a named Google+ ranking or spam update. Duplicated/templated metadata is a documented+ quality problem (QRG scaled-content-abuse category); this tool makes+ no claim beyond that."""+ title, description = _TEMPLATED_PAIRS[0]+ result = metadata_template.analyse(title, description)+ for signal in result["signals"]:+ text = (signal["message"] + " " + signal["recommendation"]).lower()+ assert "spam update" not in text+ assert "2026 spam" not in text+ assert "demoted" not in text