Skip to content

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.

chore(hygiene): wire the updates ledger in and retire stale knowledge files

Agrici Danielf6c8494f532c
diff --git a/.gitignore b/.gitignore
index 54bc8ac..13fcc93 100644
--- a/.gitignore
+++ b/.gitignore
@@ -185,3 +185,7 @@ id_rsa
id_rsa.*
id_ed25519
id_ed25519.*
+
+# Local scratch and generated decks (never shipped)
+tmp/
+outputs/
diff --git a/agents/seo-agentic.md b/agents/seo-agentic.md
index 5ff8bac..aee1b12 100644
--- a/agents/seo-agentic.md
+++ b/agents/seo-agentic.md
@@ -30,7 +30,7 @@ browse and act for people can read and use a site, following the
factor. Never turn it into a percentage and never assume N.
- Keep the Agent-UX 0-100 heuristic separate from the Lighthouse fraction.
- Label WebMCP, Content-Signal, ai-catalog.json and Web Bot Auth as drafts or
- proposals with the check date from `references/vendor-matrix.md`.
+ proposals with the check date from `skills/seo-agentic/references/vendor-matrix.md`.
- Report training, search and user-triggered agent access on separate lines.
- Absence of WebMCP, ai-catalog.json or Markdown is an opportunity, not a
defect. Never promise ranking, citation or traffic effects.
diff --git a/pdf/google-seo-reference.md b/pdf/google-seo-reference.md
deleted file mode 100644
index 1c96d69..0000000
--- a/pdf/google-seo-reference.md
+++ /dev/null
@@ -1,151 +0,0 @@
-<!-- Updated: 2026-07-10 -->
-# Google SEO Quick Reference (July 2026)
-
-Deprecated standalone reference guide. It is not wired into any subagent loading path.
-Summarizes key Google Search concepts, requirements, and best practices. Not a reproduction of Google's documentation;
-see Official Documentation Links at the bottom for full details.
-
----
-
-## How Google Search Works
-
-Google Search operates in three stages: **Crawling** (Googlebot discovers pages by following links and reading sitemaps), **Indexing** (Google processes and stores page content, metadata, and signals in its search index), and **Serving** (when a user searches, Google's algorithms rank indexed pages by relevance, quality, and usability to return the most useful results). Pages must be crawlable and indexable to appear in search results.
-
----
-
-## Google Search Essentials
-
-Formerly known as "Webmaster Guidelines." Key requirements:
-
-### Technical Requirements
-- Pages must be accessible to Googlebot (not blocked by robots.txt or noindex)
-- Pages must return HTTP 200 status for indexable content
-- Content must be in a format Google can process (HTML preferred, JS-rendered content supported but slower)
-
-### Spam Policies
-- No cloaking (showing different content to Googlebot vs users)
-- No doorway pages (pages created solely to rank for specific queries)
-- No hidden text or links
-- No keyword stuffing
-- No link spam (buying links, excessive link exchanges)
-- No scraped or auto-generated content without added value
-- No sneaky redirects
-- No thin affiliate pages
-
-### Key Best Practices
-- Create content for users, not search engines
-- Make your site easy to navigate with a clear hierarchy
-- Use descriptive, unique titles and meta descriptions per page
-- Use heading tags (H1-H6) to structure content logically
-- Optimize images with alt text and appropriate file sizes
-- Ensure mobile-friendly responsive design
-- Serve pages over HTTPS for security, trust, and a lightweight ranking signal
-- Improve page load speed (Core Web Vitals)
-- Submit an XML sitemap to Google Search Console
-- Use structured data (JSON-LD) to help Google understand content
-
----
-
-## Content Quality Signals
-
-Google evaluates content quality through the E-E-A-T framework:
-
-- **Experience**: Does the content creator have first-hand experience with the topic? (Original photos, personal stories, demonstrated use)
-- **Expertise**: Does the creator have relevant knowledge or credentials? (Professional background, technical depth, accurate sourcing)
-- **Authoritativeness**: Is the creator or site recognized as a go-to source? (Industry citations, brand mentions, expert recognition)
-- **Trustworthiness**: Is the content and site reliable and transparent? (Contact info, secure site, editorial standards, accurate claims)
-
-> **YMYL Note**: "Your Money or Your Life" topics (health, finance, safety, legal) are held to the highest E-E-A-T standards. Inaccurate YMYL content can cause real-world harm, so Google applies stricter quality thresholds.
-
-> **Scope note**: E-E-A-T informs Google's core ranking and helpful-content systems broadly (not only YMYL), but Google never published a "December 2025 watershed" extending it to *all* competitive queries, nor per-industry traffic-drop figures — treat such claims as third-party interpretation, not Google fact.
-
----
-
-## Core Web Vitals
-
-Measured at the 75th percentile of real user data (field data).
-
-| Metric | Good | Needs Improvement | Poor |
-|--------|------|-------------------|------|
-| **LCP** (Largest Contentful Paint) | ≤ 2.5s | 2.5s – 4.0s | > 4.0s |
-| **INP** (Interaction to Next Paint) | ≤ 200ms | 200ms – 500ms | > 500ms |
-| **CLS** (Cumulative Layout Shift) | ≤ 0.1 | 0.1 – 0.25 | > 0.25 |
-
-**Key facts:**
-- INP replaced FID (First Input Delay) on March 12, 2024. FID was removed from Chrome's field-data tools (CrUX API, PageSpeed Insights) on September 9, 2024 (Lighthouse is a lab tool that never reported FID). Do NOT reference FID.
-- Core Web Vitals are a confirmed ranking signal (since June 2021)
-- Field data (CrUX) is preferred over lab data (Lighthouse) for assessment
-- Passing all three metrics at "Good" is the target
-
-**Measurement tools:**
-- Google PageSpeed Insights (field + lab data)
-- Chrome User Experience Report (CrUX): field data
-- Lighthouse (lab data only)
-- Google Search Console Core Web Vitals report
-
----
-
-## Structured Data Best Practices
-
-- **JSON-LD is Google's preferred format** (over Microdata and RDFa)
-- Place JSON-LD in `<script type="application/ld+json">` tags in the `<head>` or `<body>`
-- Always include `@context` and `@type` properties
-- **Required properties** must be present for rich result eligibility
-- **Recommended properties** improve rich result quality but aren't mandatory
-- Only mark up content that is visible on the page
-- Use Google's Rich Results Test to validate before deployment
-- Do not mark up content that is misleading or hidden from users
-- Keep schema current: update when page content changes
-
-### Deprecated/Restricted Types (as of May 2026)
-- **HowTo**: Rich results removed (September 2023)
-- **FAQ**: Rich results retired for all sites (May 7, 2026). FAQPage remains a valid Schema.org type, but no AI or ranking benefit is confirmed.
-- **SpecialAnnouncement**: Deprecated (July 31, 2025)
-- **CourseInfo, EstimatedSalary, LearningVideo**: Retired (June 2025)
-- **ClaimReview**: Retired (June 2025)
-- **VehicleListing**: Retired (June 2025)
-
----
-
-## Common Penalties & How to Avoid Them
-
-### Manual Actions
-Google Search Console notifications for violations. Common causes:
-- **Unnatural links** (buying/selling links): Disavow bad links, request reconsideration
-- **Thin content**: Add substantial unique value to affected pages
-- **Cloaking/sneaky redirects**: Remove deceptive serving, request reconsideration
-- **User-generated spam**: Moderate comments/forums, add nofollow to user links
-- **Structured data issues**: Fix misleading or spam markup
-
-### Algorithmic Demotions
-No manual notification, detected through ranking drops. Common causes:
-- **Helpful Content System**: Merged into Google's core ranking in March 2024: no longer a standalone system. Helpfulness signals are now evaluated within every core update. Low-value, AI-generated, or unhelpful content at scale still triggers demotions via core updates.
-- **Core Updates**: Broad quality reassessment across all signals
-- **Spam Updates**: Automated detection of spam patterns
-- **Link Spam Updates**: Devaluation of manipulative link patterns
-
-### Recovery Steps
-1. Identify the issue (Search Console, ranking timeline analysis)
-2. Fix the root cause (remove spam, improve content, clean links)
-3. For manual actions: submit reconsideration request via Search Console
-4. For algorithmic: improve quality, wait for next core update reassessment
-5. Monitor recovery in Search Console performance reports
-
----
-
-## Official Documentation Links
-
-- [Google Search Essentials](https://developers.google.com/search/docs/essentials)
-- [How Google Search Works](https://developers.google.com/search/docs/fundamentals/how-search-works)
-- [Structured Data Overview](https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data)
-- [Rich Results Test](https://search.google.com/test/rich-results)
-- [Core Web Vitals Report](https://support.google.com/webmasters/answer/9205520)
-- [PageSpeed Insights](https://pagespeed.web.dev/)
-- [Search Console Help](https://support.google.com/webmasters)
-- [Manual Actions Report](https://support.google.com/webmasters/answer/9044175)
-- [Google Search Status Dashboard](https://status.search.google.com/)
-- [Google Search Central Blog](https://developers.google.com/search/blog)
-- [Spam Policies](https://developers.google.com/search/docs/essentials/spam-policies)
-- [E-E-A-T and Quality Rater Guidelines](https://developers.google.com/search/docs/fundamentals/creating-helpful-content)
-
-> **Mobile-first indexing** is the default for the indexed web and Googlebot Smartphone is the primary crawler (rollout completed 2024). A mobile version is not strictly required (Google says it is "very strongly recommended"); the real risk for desktop-only sites is content/parity loss, not hard exclusion.
diff --git a/scripts/seo_updates.py b/scripts/seo_updates.py
index aaa926d..b949b42 100644
--- a/scripts/seo_updates.py
+++ b/scripts/seo_updates.py
@@ -17,6 +17,9 @@ Usage::
python scripts/seo_updates.py --kind core
python scripts/seo_updates.py --json
python scripts/seo_updates.py --unverified # show 3rd-party claims awaiting check
+
+JSON output carries ``freshness`` (age in days, ``stale`` after 30 days). Text
+output prints a warning to stderr when the ledger is stale.
"""
from __future__ import annotations
@@ -39,6 +42,28 @@ KNOWN_KINDS = (
)
+STALE_AFTER_DAYS = 30
+_STATUS_URL = "https://status.search.google.com/"
+
+
+def freshness(last_verified: str | None, today: date | None = None,
+ max_age: int = STALE_AFTER_DAYS) -> dict:
+ """Return the ledger age and whether it is too old to trust for recent updates."""
+ today = today or date.today()
+ try:
+ verified = date.fromisoformat(str(last_verified))
+ except ValueError:
+ return {"age_days": None, "stale": True,
+ "warning": "last_verified is missing or not an ISO date."}
+ age = (today - verified).days
+ stale = age > max_age
+ warning = (f"Ledger last verified {age} days ago. Updates released since "
+ f"{verified.isoformat()} are missing; check {_STATUS_URL} before "
+ "attributing recent traffic changes.") if stale else None
+ return {"age_days": age, "stale": stale, "warning": warning}
+
+
+
def _load() -> dict:
with _DATA_FILE.open() as fh:
return json.load(fh)
@@ -95,6 +120,9 @@ def main() -> int:
args = parser.parse_args()
data = _load()
+ fresh = freshness(data.get("last_verified"))
+ if fresh["stale"] and not args.json:
+ print(f"WARNING: {fresh['warning']}", file=sys.stderr)
if args.unverified:
result = {
@@ -128,6 +156,7 @@ def main() -> int:
{
"source_of_truth": data["source_of_truth"],
"last_verified": data["last_verified"],
+ "freshness": fresh,
"filter": {"since": args.since, "kinds": list(kinds or [])},
"count": len(filtered),
"updates": filtered,
diff --git a/skills/seo-audit/SKILL.md b/skills/seo-audit/SKILL.md
index b8b800a..5411804 100644
--- a/skills/seo-audit/SKILL.md
+++ b/skills/seo-audit/SKILL.md
@@ -178,6 +178,19 @@ If Google API credentials are configured (`"${CLAUDE_PLUGIN_ROOT}/scripts/claude
If Matomo credentials are configured (`"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run matomo_auth.py --check`), spawn the `seo-matomo` agent to enrich the audit with self-hosted analytics: organic visits trend, top landing pages, device and country breakdowns, channel / search-engine split, and organic keywords. Works as a GA4 alternative (when only Matomo is configured) or as a complement (when both GA4 and Matomo are present). Matomo numbers will not match GA4 exactly because of segmentation differences (`referrerType==search` vs `sessionDefaultChannelGroup == "Organic Search"`) and attribution-window rules.
+## Google Update Correlation
+
+Before attributing a traffic or ranking change to anything, list the confirmed
+Google updates in that window from the primary-source ledger:
+
+```bash
+"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run seo_updates.py --since <yyyy-mm> --json
+```
+
+Every entry cites a Google-owned URL. If `freshness.stale` is true, say the
+ledger may miss recent updates and check status.search.google.com before
+drawing conclusions. A date overlap is a hypothesis, never proof of cause.
+
## Error Handling
| Scenario | Action |
diff --git a/skills/seo-content/SKILL.md b/skills/seo-content/SKILL.md
index 6b35d2b..5b278bd 100644
--- a/skills/seo-content/SKILL.md
+++ b/skills/seo-content/SKILL.md
@@ -195,6 +195,19 @@ Per Google's AI optimization guide, "AEO" and "GEO" are rebranded labels for SEO
- Last updated date if content has been revised
- Flag content older than 12 months without update for fast-changing topics
+## Google Update Correlation (content and spam updates)
+
+Before attributing a traffic or ranking change to anything, list the confirmed
+Google updates in that window from the primary-source ledger:
+
+```bash
+"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run seo_updates.py --since <yyyy-mm> --json
+```
+
+Every entry cites a Google-owned URL. If `freshness.stale` is true, say the
+ledger may miss recent updates and check status.search.google.com before
+drawing conclusions. A date overlap is a hypothesis, never proof of cause.
+
## Output
### Content Quality Score: XX/100
diff --git a/skills/seo-geo/SKILL.md b/skills/seo-geo/SKILL.md
index 610d79e..781a958 100644
--- a/skills/seo-geo/SKILL.md
+++ b/skills/seo-geo/SKILL.md
@@ -318,6 +318,13 @@ Google added many AI citation/source surfaces across AI Overviews **and** AI Mod
---
+## Google Update Correlation
+
+For AI Overviews or AI Mode visibility changes, check the dated product and
+core-update entries first:
+`"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run seo_updates.py --kind product --kind core --json`.
+Treat a stale ledger (`freshness.stale`) as incomplete.
+
## Output
Generate `GEO-ANALYSIS.md` with:
diff --git a/skills/seo-google/SKILL.md b/skills/seo-google/SKILL.md
index b5f9e2a..cd3543d 100644
--- a/skills/seo-google/SKILL.md
+++ b/skills/seo-google/SKILL.md
@@ -123,6 +123,9 @@ Search Analytics: clicks, impressions, CTR, position for last 28 days.
**Reference:** `references/search-console-api.md`
**Default:** 28 days, dimensions=query,page, type=web, limit=1000.
+For EU sites, read `references/dma-consent-mode-v2.md` before interpreting CTR
+or GA4 drops: DMA and Consent Mode v2 change what Search Console and GA4 record.
+
Includes quick-win detection: queries at position 4-10 with high impressions.
The `totals` block comes from a separate dimensionless aggregate query because
query-level rows can omit anonymized low-volume traffic. Treat totals as
diff --git a/skills/seo-hreflang/SKILL.md b/skills/seo-hreflang/SKILL.md
index 167b8da..ce49224 100644
--- a/skills/seo-hreflang/SKILL.md
+++ b/skills/seo-hreflang/SKILL.md
@@ -271,6 +271,7 @@ Load on-demand as needed (do NOT load all at startup):
- `references/cultural-profiles.md`: DACH, Francophone, Hispanic, Japanese cultural adaptation profiles
- `references/locale-formats.md`: Number, date, currency, address, phone format tables per locale
- `references/content-parity.md`: Content parity audit methodology and scoring
+- `references/machine-translation-qa.md`: Flags unreviewed machine translation, which Google's spam policy treats as scaled content abuse
## Error Handling
diff --git a/tests/test_content_quality.py b/tests/test_content_quality.py
index aa1ecba..9216e48 100644
--- a/tests/test_content_quality.py
+++ b/tests/test_content_quality.py
@@ -432,3 +432,13 @@ def test_seo_updates_cli_accepts_every_known_kind() -> None:
)
assert result.returncode == 0, f"--kind {kind} failed: {result.stderr}"
json.loads(result.stdout)
+
+
+def test_seo_updates_freshness_flags_a_stale_ledger() -> None:
+ from datetime import date
+
+ fresh = seo_updates.freshness("2026-09-10", today=date(2026, 9, 23))
+ assert fresh == {"age_days": 13, "stale": False, "warning": None}
+ stale = seo_updates.freshness("2026-07-01", today=date(2026, 9, 23))
+ assert stale["stale"] and "status.search.google.com" in stale["warning"]
+ assert seo_updates.freshness("not-a-date")["stale"] is True
diff --git a/tests/test_schema_v2.py b/tests/test_schema_v2.py
index 2074a28..8b05dbf 100644
--- a/tests/test_schema_v2.py
+++ b/tests/test_schema_v2.py
@@ -290,7 +290,6 @@ def test_faqpage_guidance_does_not_claim_unconfirmed_benefits() -> None:
root = Path(__file__).resolve().parents[1]
targets = [
root / "hooks" / "validate-schema.py",
- root / "pdf" / "google-seo-reference.md",
root / "docs" / "TROUBLESHOOTING.md",
root / "skills" / "seo-content-brief" / "references"
/ "page-type-templates.md",