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.
feat(v2): Checkpoint 5 — 5 new MCP extensions + parasite-risk + llms.txt evidence reframe (Phase E)
Daniel83cb1c24f1aa
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex c5e38d6..ef47489 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -68,7 +68,8 @@ jobs:python3 -m py_compile scripts/unlighthouse_run.pypython3 -m py_compile scripts/schema_generate.pypython3 -m py_compile scripts/schema_ecommerce_validate.py- echo "All 45 scripts passed syntax check"+ python3 -m py_compile scripts/parasite_risk.py+ echo "All 46 scripts passed syntax check"test:name: Test suite (manifests + sync_flow)diff --git a/extensions/ahrefs/docs/AHREFS-SETUP.md b/extensions/ahrefs/docs/AHREFS-SETUP.mdnew file mode 100644index 0000000..a4b67c8--- /dev/null+++ b/extensions/ahrefs/docs/AHREFS-SETUP.md@@ -0,0 +1,66 @@+# Ahrefs extension setup++Wires the official [`@ahrefs/mcp`](https://www.npmjs.com/package/@ahrefs/mcp)+server into your Claude Code session so the `seo-ahrefs` skill can call+live Ahrefs data.++## Install++```bash+./extensions/ahrefs/install.sh # Linux / macOS+.\extensions\ahrefs\install.ps1 # Windows PowerShell+```++The installer:++1. Verifies Python 3 + Node 18+ are on `$PATH`.+2. Prompts for your Ahrefs API token (input is hidden).+3. Pre-warms the `@ahrefs/mcp` npm package via `npx --yes` so the first+ MCP call doesn't spend 10+ seconds downloading.+4. Copies `skills/seo-ahrefs/SKILL.md` into `~/.claude/skills/seo-ahrefs/`.+5. Atomically writes `mcpServers.ahrefs` into `~/.claude/settings.json`+ with your token in the `env` block. The settings file is `chmod 0o600`+ after the merge (same hardening as the OAuth token).++## Verify++Open a new Claude Code session and ask:++```+/seo ahrefs metrics https://example.com+```++If you see "Ahrefs MCP not connected", the npm package is not yet cached.+Re-run the installer to pre-warm or run `npx --yes --package=@ahrefs/mcp ahrefs-mcp --help` manually.++## Rotate token++```bash+./extensions/ahrefs/install.sh # re-runs the prompt; overwrites the env entry+```++The Python merge script is idempotent — re-running only replaces the+`mcpServers.ahrefs.env.AHREFS_API_TOKEN` value, leaving the rest of+`settings.json` intact.++## Uninstall++```bash+./extensions/ahrefs/uninstall.sh # removes the skill + clears the MCP entry+```++## Cost model++Ahrefs charges per "unit". A unit covers most read endpoints (domain+metrics, backlink data) at 1 unit each; bulk endpoints cost more. The+`scripts/dataforseo_costs.py` cost tracker shipped with claude-seo+generalises across vendors — see `references/cost-guardrails.md` in+the orchestrator skill for how to wire Ahrefs accounting.++## Troubleshooting++| Symptom | Cause | Fix |+|---|---|---|+| `Error: AHREFS_API_TOKEN is empty` | Installer didn't capture input | Re-run installer; type token at the prompt, then press Enter |+| `npx: package not found` | Offline run / fresh machine | Run with internet on; the installer pre-warms but the cache needs network |+| 401 from any `/seo ahrefs *` command | Token revoked / expired | Generate a new token at https://ahrefs.com/api and re-run the installer |diff --git a/extensions/ahrefs/install.ps1 b/extensions/ahrefs/install.ps1new file mode 100644index 0000000..09e5eb6--- /dev/null+++ b/extensions/ahrefs/install.ps1@@ -0,0 +1,61 @@+# Claude SEO — Ahrefs extension installer (Windows / PowerShell).+# Mirrors extensions/ahrefs/install.sh.+[CmdletBinding()]+param()++$ErrorActionPreference = "Stop"++function Test-Cmd($name) {+ $null = Get-Command $name -ErrorAction SilentlyContinue+ return $?+}++if (-not (Test-Cmd python)) { throw "Python 3 is required." }+if (-not (Test-Cmd npx)) { throw "Node 18+ / npx is required." }++$SkillDir = Join-Path $HOME ".claude/skills"+$SettingsJson = Join-Path $HOME ".claude/settings.json"++if (-not (Test-Path (Join-Path $SkillDir "seo"))) {+ throw "claude-seo base plugin not installed."+}++$Token = Read-Host "Ahrefs API token" -AsSecureString+$Plain = [System.Net.NetworkCredential]::new("", $Token).Password+if (-not $Plain) { throw "No token provided." }++$SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path+$SkillTarget = Join-Path $SkillDir "seo-ahrefs"+New-Item -ItemType Directory -Path $SkillTarget -Force | Out-Null+Copy-Item -Path (Join-Path $SourceDir "skills/seo-ahrefs/SKILL.md") `+ -Destination (Join-Path $SkillTarget "SKILL.md") -Force+Write-Host "✓ Installed skill: $SkillTarget"++# Pre-warm.+& npx --yes --package=@ahrefs/mcp ahrefs-mcp --help *> $null++# Merge settings.json.+$pyScript = @"+import json, os, sys, tempfile+path, token = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try:+ data = json.load(open(path))+ except Exception:+ data = {}+data.setdefault('mcpServers', {})['ahrefs'] = {+ 'command': 'npx',+ 'args': ['--yes', '--package=@ahrefs/mcp', 'ahrefs-mcp'],+ 'env': {'AHREFS_API_TOKEN': token},+}+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or '.', prefix='.settings.', suffix='.json')+with os.fdopen(fd, 'w') as fh:+ json.dump(data, fh, indent=2)+os.replace(tmp, path)+print(f'Wrote mcpServers.ahrefs to {path}')+"@+$pyScript | python - $SettingsJson $Plain++Write-Host ""+Write-Host "Done. Open a new Claude Code session and run /seo ahrefs metrics <url>."diff --git a/extensions/ahrefs/install.sh b/extensions/ahrefs/install.shnew file mode 100755index 0000000..a468471--- /dev/null+++ b/extensions/ahrefs/install.sh@@ -0,0 +1,91 @@+#!/usr/bin/env bash+# Claude SEO — Ahrefs extension installer.+#+# Wires the official @ahrefs/mcp server into ~/.claude/settings.json and+# copies the seo-ahrefs mirror skill into ~/.claude/skills/.+#+# Prereq: an Ahrefs API token. Get one at https://ahrefs.com/api.+set -euo pipefail++main() {+ SKILL_DIR="${HOME}/.claude/skills"+ SETTINGS_JSON="${HOME}/.claude/settings.json"++ echo "════════════════════════════════════════"+ echo "║ Claude SEO — Ahrefs extension ║"+ echo "════════════════════════════════════════"++ command -v python3 >/dev/null 2>&1 || {+ echo "✗ Python 3 required."; exit 1;+ }+ command -v npx >/dev/null 2>&1 || {+ echo "✗ Node 18+ / npx required."; exit 1;+ }++ if [ ! -d "${SKILL_DIR}/seo" ]; then+ echo "✗ claude-seo base plugin not installed."+ echo " Install it first: curl -fsSL https://raw.githubusercontent.com/AgriciDaniel/claude-seo/main/install.sh | bash"+ exit 1+ fi++ # Locate this script's directory so the call works for both+ # `./install.sh` and `curl | bash` invocations.+ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"++ read -rsp "Ahrefs API token: " AHREFS_TOKEN+ echo+ if [ -z "${AHREFS_TOKEN}" ]; then+ echo "✗ No token provided."; exit 1;+ fi++ # Pre-warm the package so the first MCP invocation isn't slow.+ echo "→ Pre-warming @ahrefs/mcp..."+ npx --yes --package=@ahrefs/mcp ahrefs-mcp --help >/dev/null 2>&1 || true++ mkdir -p "${SKILL_DIR}/seo-ahrefs"+ cp "${SOURCE_DIR}/skills/seo-ahrefs/SKILL.md" "${SKILL_DIR}/seo-ahrefs/SKILL.md"+ echo "✓ Installed skill: ${SKILL_DIR}/seo-ahrefs/SKILL.md"++ # Merge MCP config into ~/.claude/settings.json atomically.+ mkdir -p "$(dirname "${SETTINGS_JSON}")"+ python3 - "${SETTINGS_JSON}" "${AHREFS_TOKEN}" <<'PY'+import json+import os+import sys+import tempfile++path, token = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try:+ with open(path) as fh:+ data = json.load(fh)+ except json.JSONDecodeError:+ data = {}+data.setdefault("mcpServers", {})["ahrefs"] = {+ "command": "npx",+ "args": ["--yes", "--package=@ahrefs/mcp", "ahrefs-mcp"],+ "env": {"AHREFS_API_TOKEN": token},+}+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or ".",+ prefix=".settings.", suffix=".json")+try:+ with os.fdopen(fd, "w") as fh:+ json.dump(data, fh, indent=2)+ os.chmod(tmp, 0o600)+ os.replace(tmp, path)+except Exception:+ if os.path.exists(tmp):+ os.unlink(tmp)+ raise+print(f"✓ Wrote mcpServers.ahrefs to {path}")+PY++ echo+ echo "Done. Open a new Claude Code session and run:"+ echo " /seo ahrefs metrics https://example.com"+ echo+ echo "Full docs: extensions/ahrefs/docs/AHREFS-SETUP.md"+}++main "$@"diff --git a/extensions/ahrefs/skills/seo-ahrefs/SKILL.md b/extensions/ahrefs/skills/seo-ahrefs/SKILL.mdnew file mode 100644index 0000000..7333ab9--- /dev/null+++ b/extensions/ahrefs/skills/seo-ahrefs/SKILL.md@@ -0,0 +1,52 @@+---+name: seo-ahrefs+description: Ahrefs API analyst (extension). Reads referring domains, backlinks, organic keywords, and content explorer data via the official @ahrefs/mcp server. Pairs with seo-backlinks for multi-source confidence weighting.+metadata:+ version: "1.9.9"+compatibility: "Requires the official @ahrefs/mcp server (installed by extensions/ahrefs/install.sh)."+---++# seo-ahrefs++Live Ahrefs data via the official `@ahrefs/mcp` server.++## Prerequisites++- Run `extensions/ahrefs/install.sh` (Linux/macOS) or `install.ps1` (Windows) before using this skill.+- An Ahrefs API token (https://ahrefs.com/api).+- Node 18+ on `$PATH` for the MCP server.++Before calling any Ahrefs tool, verify the MCP is connected by checking+that any Ahrefs MCP tool is available in this session. If tools are+not available, tell the user the extension is not installed and+provide the install command above.++## Routing++| Command | Action |+|---|---|+| `/seo ahrefs metrics <url>` | Domain / URL rating, referring domain count, organic traffic estimate |+| `/seo ahrefs backlinks <url>` | Top referring domains, anchor distribution, follow/nofollow ratio |+| `/seo ahrefs organic <url>` | Organic keywords, ranking distribution, traffic by country |+| `/seo ahrefs content <topic>` | Content Explorer top results, social shares, referring domains |++## Output conventions++- Cite the data source on every metric: "Ahrefs (live, confidence 1.00)".+- When Ahrefs and Moz disagree on the same metric, trust Ahrefs and note the discrepancy in the report.+- Toxic link assessment: combine Ahrefs Spam Score with the existing seo-backlinks Common Crawl + verify crawler signals.++## Cross-skill delegation++- For multi-source confidence weighting across Moz + Bing + Common Crawl + Ahrefs, hand back to `seo-backlinks`.+- For SERP-feature analysis where Ahrefs and DataForSEO overlap, prefer DataForSEO for live SERP data.++## Cost guardrails++Ahrefs API usage is metered per unit. Before running a batch (>= 50 URLs):++1. Estimate cost with `python scripts/dataforseo_costs.py` (the cost-tracker module is generic and supports Ahrefs unit accounting).+2. Surface the estimate to the orchestrator.+3. Log actual cost after each call.++This is the same workflow the seo-dataforseo skill uses.diff --git a/extensions/ahrefs/uninstall.sh b/extensions/ahrefs/uninstall.shnew file mode 100755index 0000000..72a4008--- /dev/null+++ b/extensions/ahrefs/uninstall.sh@@ -0,0 +1,33 @@+#!/usr/bin/env bash+# Claude SEO — Ahrefs extension uninstaller.+set -euo pipefail++SKILL_DIR="${HOME}/.claude/skills/seo-ahrefs"+SETTINGS_JSON="${HOME}/.claude/settings.json"++if [ -d "${SKILL_DIR}" ]; then+ rm -rf "${SKILL_DIR}"+ echo "✓ Removed ${SKILL_DIR}"+fi++if [ -f "${SETTINGS_JSON}" ]; then+ python3 - "${SETTINGS_JSON}" <<'PY'+import json, os, sys, tempfile+path = sys.argv[1]+with open(path) as fh:+ data = json.load(fh)+servers = data.get("mcpServers", {})+if "ahrefs" in servers:+ servers.pop("ahrefs")+ fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or ".", prefix=".settings.", suffix=".json")+ with os.fdopen(fd, "w") as fh:+ json.dump(data, fh, indent=2)+ os.chmod(tmp, 0o600)+ os.replace(tmp, path)+ print(f"✓ Removed mcpServers.ahrefs from {path}")+else:+ print(f" (no mcpServers.ahrefs entry to remove in {path})")+PY+fi++echo "Done."diff --git a/extensions/bing-webmaster/docs/BING-WEBMASTER-SETUP.md b/extensions/bing-webmaster/docs/BING-WEBMASTER-SETUP.mdnew file mode 100644index 0000000..204ce6e--- /dev/null+++ b/extensions/bing-webmaster/docs/BING-WEBMASTER-SETUP.md@@ -0,0 +1,53 @@+# Bing Webmaster Tools + IndexNow extension setup++## What this gives you++1. **Bing Webmaster Tools API**: inbound links, crawl stats, search+ keywords, and competitor link comparison via+ `scripts/bing_webmaster.py` (already shipped with claude-seo).+2. **IndexNow URL submission** for Bing, Yandex, Seznam, Naver via+ `scripts/indexnow_submit.py`. The single POST hits all four+ engines.+3. A unified `seo-bing` skill that routes the right command at the+ right script.++## Install++```bash+./extensions/bing-webmaster/install.sh+.\extensions\bing-webmaster\install.ps1+```++You'll be prompted for:++- Bing Webmaster Tools API key (https://www.bing.com/webmasters/api)+- IndexNow host key (any random 32+ char string)+- IndexNow keyLocation URL (must serve the key file at that URL)++Both groups can be left blank if you only want one. The installer+writes only the env vars you provide.++## IndexNow setup checklist++1. Generate a key: `openssl rand -hex 32`+2. Save the key to a file at the **root** of your site, named `<key>.txt`,+ served at `https://example.com/<key>.txt`. The file body is the key.+3. Run:+ ```+ /seo bing verify-indexnow+ ```+ The verifier fetches your keyLocation URL and confirms the body+ matches the key — the #1 onboarding mistake.++## Microsoft Copilot citation++Microsoft Copilot pulls citations from the Bing index. Pages that+aren't in Bing aren't citable. IndexNow gets a page into Bing+within minutes vs. Bing's organic crawl which can take days. For+new content launches this is a meaningful indexing speed win.++## Uninstall++```bash+./extensions/bing-webmaster/uninstall.sh+```diff --git a/extensions/bing-webmaster/install.ps1 b/extensions/bing-webmaster/install.ps1new file mode 100644index 0000000..63b3251--- /dev/null+++ b/extensions/bing-webmaster/install.ps1@@ -0,0 +1,30 @@+$ErrorActionPreference = "Stop"+if (-not (Get-Command python -ErrorAction SilentlyContinue)) { throw "Python 3 required" }+$SkillDir = Join-Path $HOME ".claude/skills"+$SettingsJson = Join-Path $HOME ".claude/settings.json"+if (-not (Test-Path (Join-Path $SkillDir "seo"))) { throw "claude-seo not installed" }+$BingKey = (Read-Host "Bing Webmaster Tools API key" -AsSecureString)+$IdxKey = Read-Host "IndexNow host key (32+ chars)"+$IdxLoc = Read-Host "IndexNow keyLocation URL"+$BingPlain = [System.Net.NetworkCredential]::new("", $BingKey).Password+$SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path+$SkillTarget = Join-Path $SkillDir "seo-bing"+New-Item -ItemType Directory -Path $SkillTarget -Force | Out-Null+Copy-Item (Join-Path $SourceDir "skills/seo-bing/SKILL.md") (Join-Path $SkillTarget "SKILL.md") -Force+$py = @"+import json, os, sys, tempfile+path, bing, idx_key, idx_loc = sys.argv[1:5]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except: data = {}+env = data.setdefault('env', {})+if bing: env['BING_WEBMASTER_API_KEY'] = bing+if idx_key: env['INDEXNOW_KEY'] = idx_key+if idx_loc: env['INDEXNOW_KEY_LOCATION'] = idx_loc+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or '.', prefix='.settings.', suffix='.json')+with os.fdopen(fd, 'w') as fh: json.dump(data, fh, indent=2)+os.replace(tmp, path)+"@+$py | python - $SettingsJson $BingPlain $IdxKey $IdxLoc+Write-Host "Done."diff --git a/extensions/bing-webmaster/install.sh b/extensions/bing-webmaster/install.shnew file mode 100755index 0000000..b00a53c--- /dev/null+++ b/extensions/bing-webmaster/install.sh@@ -0,0 +1,59 @@+#!/usr/bin/env bash+# Claude SEO — Bing Webmaster + IndexNow extension installer.+#+# Wires the existing scripts/bing_webmaster.py and indexnow_submit.py into+# a discoverable seo-bing skill and stores the Bing Webmaster Tools API+# key + IndexNow host key in ~/.claude/settings.json.+#+# Microsoft Copilot citations are fed by the Bing index, making this the+# canonical extension for "AI search visibility outside Google".+set -euo pipefail++main() {+ SKILL_DIR="${HOME}/.claude/skills"+ SETTINGS_JSON="${HOME}/.claude/settings.json"++ echo "════════════════════════════════════════"+ echo "║ Claude SEO — Bing Webmaster + IndexNow║"+ echo "════════════════════════════════════════"++ command -v python3 >/dev/null 2>&1 || { echo "✗ Python 3 required."; exit 1; }+ [ ! -d "${SKILL_DIR}/seo" ] && { echo "✗ claude-seo base not installed."; exit 1; }++ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"++ read -rsp "Bing Webmaster Tools API key (https://www.bing.com/webmasters/api): " BING_KEY+ echo+ read -rp "IndexNow host key (32+ chars, you'll publish this at /<key>.txt): " INDEXNOW_KEY+ read -rp "IndexNow keyLocation URL (https://example.com/<key>.txt): " INDEXNOW_LOC++ [ -z "${BING_KEY}" ] && [ -z "${INDEXNOW_KEY}" ] && {+ echo "✗ Provide at least one of: Bing API key, IndexNow key."; exit 1;+ }++ mkdir -p "${SKILL_DIR}/seo-bing"+ cp "${SOURCE_DIR}/skills/seo-bing/SKILL.md" "${SKILL_DIR}/seo-bing/SKILL.md"++ python3 - "${SETTINGS_JSON}" "${BING_KEY}" "${INDEXNOW_KEY}" "${INDEXNOW_LOC}" <<'PY'+import json, os, sys, tempfile+path, bing, idx_key, idx_loc = sys.argv[1:5]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except json.JSONDecodeError: data = {}+env = data.setdefault("env", {})+if bing: env["BING_WEBMASTER_API_KEY"] = bing+if idx_key: env["INDEXNOW_KEY"] = idx_key+if idx_loc: env["INDEXNOW_KEY_LOCATION"] = idx_loc+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or ".", prefix=".settings.", suffix=".json")+with os.fdopen(fd, "w") as fh: json.dump(data, fh, indent=2)+os.chmod(tmp, 0o600); os.replace(tmp, path)+print(f"✓ Wrote Bing + IndexNow env to {path}")+PY++ echo+ echo "Done. Verify your IndexNow key is published:"+ echo " python scripts/indexnow_submit.py --host example.com \\"+ echo " --key \$INDEXNOW_KEY --key-location \$INDEXNOW_KEY_LOCATION --verify-only"+}+main "$@"diff --git a/extensions/bing-webmaster/skills/seo-bing/SKILL.md b/extensions/bing-webmaster/skills/seo-bing/SKILL.mdnew file mode 100644index 0000000..0c257a8--- /dev/null+++ b/extensions/bing-webmaster/skills/seo-bing/SKILL.md@@ -0,0 +1,47 @@+---+name: seo-bing+description: Bing Webmaster Tools + IndexNow extension. Microsoft Copilot citations are fed by the Bing index; this skill makes Bing visibility, link data, and IndexNow URL submission first-class.+metadata:+ version: "1.9.9"+compatibility: "Requires BING_WEBMASTER_API_KEY and (optionally) INDEXNOW_KEY in ~/.claude/settings.json env. Run extensions/bing-webmaster/install.sh to configure."+---++# seo-bing++The non-Google indexing surface. Google still rejects IndexNow (per+Gary Illyes, multiple SOTR episodes 2024-2025), so this skill is+specifically for **Bing/Yandex/Seznam/Naver indexing** and+**Microsoft Copilot AI citation** (which pulls from the Bing index).++## Prerequisites++- Run `extensions/bing-webmaster/install.sh` or `install.ps1`.+- A Bing Webmaster Tools API key.+- Optional: an IndexNow host key (32+ chars) published at the URL+ declared as `INDEXNOW_KEY_LOCATION`.++## Routing++| Command | Underlying script |+|---|---|+| `/seo bing links <url>` | `python scripts/bing_webmaster.py links <url>` |+| `/seo bing compare <urlA> <urlB>` | `python scripts/bing_webmaster.py compare <urlA> <urlB>` |+| `/seo bing submit <url>` (single URL) | `python scripts/indexnow_submit.py --host ... --urls <url>` |+| `/seo bing submit-batch <file>` | `python scripts/indexnow_submit.py --urls-file <file>` |+| `/seo bing verify-indexnow` | `python scripts/indexnow_submit.py --verify-only` |++## When this skill applies++- The user is publishing new pages and wants Microsoft Copilot+ citation eligibility (Bing index ingestion).+- The user wants to nudge Bing/Yandex/Seznam/Naver indexing for fresh+ URLs.+- The user is doing competitor backlink analysis and wants Bing's+ unique link data (Bing tracks links Google's API doesn't surface).++## Cross-skill delegation++- For Google indexing (very different model — sitemap-driven, no+ IndexNow), use `seo-google indexing`.+- For multi-source backlink confidence weighting, fall back to+ `seo-backlinks` which already integrates Bing + Moz + CC.diff --git a/extensions/bing-webmaster/uninstall.sh b/extensions/bing-webmaster/uninstall.shnew file mode 100755index 0000000..f9ca245--- /dev/null+++ b/extensions/bing-webmaster/uninstall.sh@@ -0,0 +1,21 @@+#!/usr/bin/env bash+set -euo pipefail+SKILL_DIR="${HOME}/.claude/skills/seo-bing"+SETTINGS_JSON="${HOME}/.claude/settings.json"+[ -d "${SKILL_DIR}" ] && rm -rf "${SKILL_DIR}" && echo "✓ Removed ${SKILL_DIR}"+if [ -f "${SETTINGS_JSON}" ]; then+ python3 - "${SETTINGS_JSON}" <<'PY'+import json, os, sys, tempfile+path = sys.argv[1]; data = json.load(open(path))+env = data.get("env", {})+removed = []+for k in ("BING_WEBMASTER_API_KEY", "INDEXNOW_KEY", "INDEXNOW_KEY_LOCATION"):+ if k in env:+ env.pop(k); removed.append(k)+if removed:+ fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path), prefix=".settings.", suffix=".json")+ with os.fdopen(fd, "w") as fh: json.dump(data, fh, indent=2)+ os.chmod(tmp, 0o600); os.replace(tmp, path)+ print(f"✓ Cleared {', '.join(removed)}")+PY+fidiff --git a/extensions/profound/docs/PROFOUND-SETUP.md b/extensions/profound/docs/PROFOUND-SETUP.mdnew file mode 100644index 0000000..2955efd--- /dev/null+++ b/extensions/profound/docs/PROFOUND-SETUP.md@@ -0,0 +1,36 @@+# Profound extension setup++Profound (https://tryprofound.com) tracks brand mentions across LLMs as+a time-series — the complement to SE Ranking's on-demand sampling.++## Install++```bash+./extensions/profound/install.sh # Linux / macOS+.\extensions\profound\install.ps1 # Windows+```++Stores `PROFOUND_API_KEY` in `~/.claude/settings.json` env block, mode 0o600.++## Verify++```+/seo profound citations "Claude SEO"+```++## Uninstall++```bash+./extensions/profound/uninstall.sh+```++## When to use Profound vs. SE Ranking++| Use Profound | Use SE Ranking |+|---|---|+| Trend analysis (week-over-week brand mention drift) | Single-shot SoV measurement |+| ChatGPT + Perplexity deep coverage | All 5 platforms in one call |+| Alerts on citation rate change | Competitor-keyword gap analysis |++The two are complementary, not redundant. Install both for full AI+visibility coverage; install one if budget-constrained.diff --git a/extensions/profound/install.ps1 b/extensions/profound/install.ps1new file mode 100644index 0000000..3574a1d--- /dev/null+++ b/extensions/profound/install.ps1@@ -0,0 +1,26 @@+$ErrorActionPreference = "Stop"+if (-not (Get-Command python -ErrorAction SilentlyContinue)) { throw "Python 3 required" }+$SkillDir = Join-Path $HOME ".claude/skills"+$SettingsJson = Join-Path $HOME ".claude/settings.json"+if (-not (Test-Path (Join-Path $SkillDir "seo"))) { throw "claude-seo not installed" }+$Key = Read-Host "Profound API key" -AsSecureString+$Plain = [System.Net.NetworkCredential]::new("", $Key).Password+$SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path+$SkillTarget = Join-Path $SkillDir "seo-profound"+New-Item -ItemType Directory -Path $SkillTarget -Force | Out-Null+Copy-Item (Join-Path $SourceDir "skills/seo-profound/SKILL.md") `+ (Join-Path $SkillTarget "SKILL.md") -Force+$py = @"+import json, os, sys, tempfile+path, key = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except: data = {}+data.setdefault('env', {})['PROFOUND_API_KEY'] = key+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or '.', prefix='.settings.', suffix='.json')+with os.fdopen(fd, 'w') as fh: json.dump(data, fh, indent=2)+os.replace(tmp, path)+"@+$py | python - $SettingsJson $Plain+Write-Host "Done."diff --git a/extensions/profound/install.sh b/extensions/profound/install.shnew file mode 100755index 0000000..e61418e--- /dev/null+++ b/extensions/profound/install.sh@@ -0,0 +1,45 @@+#!/usr/bin/env bash+# Claude SEO — Profound (LLM citation tracker) extension installer.+#+# Profound tracks brand citation rates across major LLMs and exposes+# them as structured time-series. Pairs with seo-seranking (which+# samples mention rates) for triangulated AI visibility data.+set -euo pipefail++main() {+ SKILL_DIR="${HOME}/.claude/skills"+ SETTINGS_JSON="${HOME}/.claude/settings.json"++ echo "════════════════════════════════════════"+ echo "║ Claude SEO — Profound extension ║"+ echo "════════════════════════════════════════"++ command -v python3 >/dev/null 2>&1 || { echo "✗ Python 3 required."; exit 1; }+ [ ! -d "${SKILL_DIR}/seo" ] && { echo "✗ claude-seo base not installed."; exit 1; }++ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"++ read -rsp "Profound API key: " PROFOUND_KEY+ echo+ [ -z "${PROFOUND_KEY}" ] && { echo "✗ No key provided."; exit 1; }++ mkdir -p "${SKILL_DIR}/seo-profound"+ cp "${SOURCE_DIR}/skills/seo-profound/SKILL.md" "${SKILL_DIR}/seo-profound/SKILL.md"++ python3 - "${SETTINGS_JSON}" "${PROFOUND_KEY}" <<'PY'+import json, os, sys, tempfile+path, key = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except json.JSONDecodeError: data = {}+data.setdefault("env", {})["PROFOUND_API_KEY"] = key+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or ".", prefix=".settings.", suffix=".json")+with os.fdopen(fd, "w") as fh: json.dump(data, fh, indent=2)+os.chmod(tmp, 0o600); os.replace(tmp, path)+print(f"✓ Wrote env.PROFOUND_API_KEY to {path}")+PY++ echo "Done. Try: /seo profound citations brandname"+}+main "$@"diff --git a/extensions/profound/skills/seo-profound/SKILL.md b/extensions/profound/skills/seo-profound/SKILL.mdnew file mode 100644index 0000000..edf3467--- /dev/null+++ b/extensions/profound/skills/seo-profound/SKILL.md@@ -0,0 +1,42 @@+---+name: seo-profound+description: Profound LLM citation tracker (extension). Time-series brand citation rates across ChatGPT, Perplexity, and other LLMs. Pairs with seo-seranking for triangulated AI visibility coverage.+metadata:+ version: "1.9.9"+compatibility: "Requires a Profound API key (set PROFOUND_API_KEY by running extensions/profound/install.sh)."+---++# seo-profound++Profound is purpose-built for LLM brand-mention tracking. While+SE Ranking samples prompts on demand, Profound continuously polls and+publishes time-series so trend deltas (week-over-week, month-over-month)+are first-class.++## Prerequisites++- Run `extensions/profound/install.sh` or `install.ps1`.+- Profound API key.+- Before any tool call, check `~/.claude/settings.json` has `env.PROFOUND_API_KEY`.++## Routing++| Command | Purpose |+|---|---|+| `/seo profound citations <brand>` | Current citation rate per LLM + 30-day trend |+| `/seo profound prompts <brand>` | Top prompts that surface (or fail to surface) the brand |+| `/seo profound competitors <brand>` | Brands cited alongside `brand` for the same prompts |+| `/seo profound alerts <brand>` | Spike/drop alerts vs. 7-day baseline |++## Output conventions++- Cite Profound on every metric: "Profound (live, confidence 0.90)".+- Profound covers ChatGPT + Perplexity natively; for Gemini / AI+ Overviews / AI Mode coverage, defer to `seo-seranking`.+- For Google AI Overviews citation rate, also cross-reference+ `seo-dataforseo` AI visibility tools when available.++## Cross-skill delegation++- For end-to-end AI search audit (passage citability + brand mentions + platform-specific tuning), hand back to `seo-geo`.+- For prompt-set design + AI Cleanup pattern detection in cited content, fall back to `seo-content`.diff --git a/extensions/profound/uninstall.sh b/extensions/profound/uninstall.shnew file mode 100755index 0000000..ec62ef7--- /dev/null+++ b/extensions/profound/uninstall.sh@@ -0,0 +1,17 @@+#!/usr/bin/env bash+set -euo pipefail+SKILL_DIR="${HOME}/.claude/skills/seo-profound"+SETTINGS_JSON="${HOME}/.claude/settings.json"+[ -d "${SKILL_DIR}" ] && rm -rf "${SKILL_DIR}" && echo "✓ Removed ${SKILL_DIR}"+if [ -f "${SETTINGS_JSON}" ]; then+ python3 - "${SETTINGS_JSON}" <<'PY'+import json, os, sys, tempfile+path = sys.argv[1]; data = json.load(open(path))+if "PROFOUND_API_KEY" in data.get("env", {}):+ data["env"].pop("PROFOUND_API_KEY")+ fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path), prefix=".settings.", suffix=".json")+ with os.fdopen(fd, "w") as fh: json.dump(data, fh, indent=2)+ os.chmod(tmp, 0o600); os.replace(tmp, path)+ print("✓ Cleared env.PROFOUND_API_KEY")+PY+fidiff --git a/extensions/seranking/docs/SERANKING-SETUP.md b/extensions/seranking/docs/SERANKING-SETUP.mdnew file mode 100644index 0000000..cc3743e--- /dev/null+++ b/extensions/seranking/docs/SERANKING-SETUP.md@@ -0,0 +1,41 @@+# SE Ranking extension setup++SE Ranking's API exposes traditional SEO data (SERP, backlinks,+competitors) PLUS AI Share-of-Voice across 5 AI platforms — the+single largest "AI citation" coverage of any vendor in 2026.++## Install++```bash+./extensions/seranking/install.sh # Linux / macOS+.\extensions\seranking\install.ps1 # Windows+```++The installer prompts for an API key (hidden input), copies+`SKILL.md` into `~/.claude/skills/seo-seranking/`, and writes+`env.SERANKING_API_KEY` into `~/.claude/settings.json` with mode 0o600.++## Get an API key++https://seranking.com/api — pricing is unit-based; the AI visibility+endpoint costs ~5 units per query (1 per platform).++## Verify++```+/seo seranking ai-visibility "Claude SEO"+```++Expected output: percentages per platform (ChatGPT, Gemini, Perplexity,+AI Overviews, AI Mode) with sample-size confidence notes.++## Rotate key++Re-run the installer; it overwrites `env.SERANKING_API_KEY` atomically+(tempfile + replace) without touching other settings.++## Uninstall++```bash+./extensions/seranking/uninstall.sh+```diff --git a/extensions/seranking/install.ps1 b/extensions/seranking/install.ps1new file mode 100644index 0000000..45c647f--- /dev/null+++ b/extensions/seranking/install.ps1@@ -0,0 +1,39 @@+# Claude SEO — SE Ranking extension installer (Windows / PowerShell).+$ErrorActionPreference = "Stop"++if (-not (Get-Command python -ErrorAction SilentlyContinue)) {+ throw "Python 3 is required."+}++$SkillDir = Join-Path $HOME ".claude/skills"+$SettingsJson = Join-Path $HOME ".claude/settings.json"++if (-not (Test-Path (Join-Path $SkillDir "seo"))) {+ throw "claude-seo base plugin not installed."+}++$Key = Read-Host "SE Ranking API key" -AsSecureString+$Plain = [System.Net.NetworkCredential]::new("", $Key).Password+if (-not $Plain) { throw "No key provided." }++$SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path+$SkillTarget = Join-Path $SkillDir "seo-seranking"+New-Item -ItemType Directory -Path $SkillTarget -Force | Out-Null+Copy-Item -Path (Join-Path $SourceDir "skills/seo-seranking/SKILL.md") `+ -Destination (Join-Path $SkillTarget "SKILL.md") -Force++$pyScript = @"+import json, os, sys, tempfile+path, key = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except: data = {}+data.setdefault('env', {})['SERANKING_API_KEY'] = key+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or '.', prefix='.settings.', suffix='.json')+with os.fdopen(fd, 'w') as fh:+ json.dump(data, fh, indent=2)+os.replace(tmp, path)+"@+$pyScript | python - $SettingsJson $Plain+Write-Host "Done. Try: /seo seranking ai-visibility brandname"diff --git a/extensions/seranking/install.sh b/extensions/seranking/install.shnew file mode 100755index 0000000..55860be--- /dev/null+++ b/extensions/seranking/install.sh@@ -0,0 +1,59 @@+#!/usr/bin/env bash+# Claude SEO — SE Ranking extension installer.+#+# SE Ranking's strength for v2: AI Share-of-Voice tracking across+# ChatGPT, Gemini, Perplexity, AI Overviews, and AI Mode. The gap+# analysis ranks this as the highest-impact new extension because no+# other vendor offers a single MCP/API surface for all 5 AI platforms.+#+# Prereq: SE Ranking API key. Get one at https://seranking.com/api+set -euo pipefail++main() {+ SKILL_DIR="${HOME}/.claude/skills"+ SETTINGS_JSON="${HOME}/.claude/settings.json"++ echo "════════════════════════════════════════"+ echo "║ Claude SEO — SE Ranking extension ║"+ echo "════════════════════════════════════════"++ command -v python3 >/dev/null 2>&1 || { echo "✗ Python 3 required."; exit 1; }++ if [ ! -d "${SKILL_DIR}/seo" ]; then+ echo "✗ claude-seo base plugin not installed."+ exit 1+ fi++ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"++ read -rsp "SE Ranking API key: " SR_KEY+ echo+ [ -z "${SR_KEY}" ] && { echo "✗ No key provided."; exit 1; }++ mkdir -p "${SKILL_DIR}/seo-seranking"+ cp "${SOURCE_DIR}/skills/seo-seranking/SKILL.md" "${SKILL_DIR}/seo-seranking/SKILL.md"+ echo "✓ Installed skill: ${SKILL_DIR}/seo-seranking/SKILL.md"++ mkdir -p "$(dirname "${SETTINGS_JSON}")"+ python3 - "${SETTINGS_JSON}" "${SR_KEY}" <<'PY'+import json, os, sys, tempfile+path, key = sys.argv[1], sys.argv[2]+data = {}+if os.path.exists(path):+ try: data = json.load(open(path))+ except json.JSONDecodeError: data = {}+data.setdefault("env", {})["SERANKING_API_KEY"] = key+fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path) or ".", prefix=".settings.", suffix=".json")+with os.fdopen(fd, "w") as fh:+ json.dump(data, fh, indent=2)+os.chmod(tmp, 0o600)+os.replace(tmp, path)+print(f"✓ Wrote env.SERANKING_API_KEY to {path}")+PY++ echo+ echo "Done. Try: /seo seranking ai-visibility brandname"+ echo "Full docs: extensions/seranking/docs/SERANKING-SETUP.md"+}++main "$@"diff --git a/extensions/seranking/skills/seo-seranking/SKILL.md b/extensions/seranking/skills/seo-seranking/SKILL.mdnew file mode 100644index 0000000..4eeef7e--- /dev/null+++ b/extensions/seranking/skills/seo-seranking/SKILL.md@@ -0,0 +1,51 @@+---+name: seo-seranking+description: SE Ranking AI visibility analyst (extension). Tracks AI Share-of-Voice across ChatGPT, Gemini, Perplexity, AI Overviews, and AI Mode in a single query. Highest-impact new extension per the v2 gap analysis — no other vendor covers all 5 AI platforms in one API.+metadata:+ version: "1.9.9"+compatibility: "Requires an SE Ranking API key (set SERANKING_API_KEY by running extensions/seranking/install.sh)."+---++# seo-seranking++Live AI visibility tracking via the SE Ranking REST API.++## Prerequisites++- Run `extensions/seranking/install.sh` (or `install.ps1`).+- An SE Ranking API key (https://seranking.com/api).+- Before any call, verify `SERANKING_API_KEY` is present in `~/.claude/settings.json` under `env.`. If absent, tell the user to run the installer.++## Routing++| Command | Purpose |+|---|---|+| `/seo seranking ai-visibility <brand>` | Share-of-voice for `brand` across ChatGPT, Gemini, Perplexity, AI Overviews, AI Mode |+| `/seo seranking serp <keyword>` | Top 100 organic positions + SERP features |+| `/seo seranking backlinks <url>` | Backlink profile (alternative free-tier to Ahrefs / DataForSEO) |+| `/seo seranking competitors <url>` | Top 10 organic competitors and shared-keyword gaps |++## AI Share-of-Voice scoring++SE Ranking samples each AI platform's responses for brand mentions+across a configurable prompt set. The scorer is the same logic used+by Profound / Peec AI but bundled into one MCP/API. Output fields:++- `chatgpt_sov`: % of sampled prompts where the brand appears in the response.+- `gemini_sov`: same, against Google Gemini.+- `perplexity_sov`: same, against Perplexity.+- `ai_overviews_sov`: brand citation rate inside Google AI Overviews.+- `ai_mode_sov`: brand citation rate inside Google AI Mode (US English first).++Report each as a percentage with a confidence note based on sample size.++## Cost guardrails++SE Ranking API uses unit accounting. Single AI visibility query is+~5 units (1 per platform). Use `scripts/dataforseo_costs.py` to log+spend across vendors.++## Cross-skill delegation++- For traditional backlinks + content audit, fall back to `seo-backlinks` / `seo-content`.+- For platform-specific deep-dives (ChatGPT only, Perplexity only), prefer the dedicated `seo-geo` skill which has Brand Mention Correlation guidance.diff --git a/extensions/seranking/uninstall.sh b/extensions/seranking/uninstall.shnew file mode 100755index 0000000..9acf340--- /dev/null+++ b/extensions/seranking/uninstall.sh@@ -0,0 +1,19 @@+#!/usr/bin/env bash+set -euo pipefail+SKILL_DIR="${HOME}/.claude/skills/seo-seranking"+SETTINGS_JSON="${HOME}/.claude/settings.json"+[ -d "${SKILL_DIR}" ] && rm -rf "${SKILL_DIR}" && echo "✓ Removed ${SKILL_DIR}"+if [ -f "${SETTINGS_JSON}" ]; then+ python3 - "${SETTINGS_JSON}" <<'PY'+import json, os, sys, tempfile+path = sys.argv[1]+data = json.load(open(path))+env = data.get("env", {})+if "SERANKING_API_KEY" in env:+ env.pop("SERANKING_API_KEY")+ fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path), prefix=".settings.", suffix=".json")+ with os.fdopen(fd, "w") as fh: json.dump(data, fh, indent=2)+ os.chmod(tmp, 0o600); os.replace(tmp, path)+ print(f"✓ Cleared env.SERANKING_API_KEY from {path}")+PY+fidiff --git a/extensions/unlighthouse/docs/UNLIGHTHOUSE-SETUP.md b/extensions/unlighthouse/docs/UNLIGHTHOUSE-SETUP.mdnew file mode 100644index 0000000..9d7ce61--- /dev/null+++ b/extensions/unlighthouse/docs/UNLIGHTHOUSE-SETUP.md@@ -0,0 +1,45 @@+# Unlighthouse extension setup++[Unlighthouse](https://unlighthouse.dev) is an MIT-licensed multi-page+Lighthouse runner that produces a single aggregate report. No API+quota, no credentials, no network egress beyond crawling the target.++## Install++```bash+./extensions/unlighthouse/install.sh+.\extensions\unlighthouse\install.ps1+```++The installer:++1. Verifies Python 3 + Node 18+.+2. Pre-warms `unlighthouse-cli@^0.13` via `npx --yes`.+3. Copies the `seo-unlighthouse` skill into `~/.claude/skills/`.++No API keys, no settings.json mutation.++## Verify++```+/seo unlighthouse https://example.com --max-routes 5+```++## When to use Unlighthouse vs. PageSpeed Insights++| Use Unlighthouse | Use PSI |+|---|---|+| Site has 100s of pages and you want every one audited | Single-URL focused audit |+| Offline / restricted environment | Field data from real Chrome users (CrUX) |+| CI-driven regression check post-deploy | Quick CLI/web-form check |+| Free / no quota concern | PSI quota OK for small sites |++PSI uses CrUX field data when available (real users); Unlighthouse+runs Lighthouse lab tests locally. For trustworthy CWV measurement+on production traffic, prefer PSI / CrUX.++## Uninstall++```bash+./extensions/unlighthouse/uninstall.sh+```diff --git a/extensions/unlighthouse/install.ps1 b/extensions/unlighthouse/install.ps1new file mode 100644index 0000000..19b7f9a--- /dev/null+++ b/extensions/unlighthouse/install.ps1@@ -0,0 +1,12 @@+$ErrorActionPreference = "Stop"+if (-not (Get-Command python -ErrorAction SilentlyContinue)) { throw "Python 3 required" }+if (-not (Get-Command npx -ErrorAction SilentlyContinue)) { throw "Node 18+ / npx required" }+$SkillDir = Join-Path $HOME ".claude/skills"+if (-not (Test-Path (Join-Path $SkillDir "seo"))) { throw "claude-seo not installed" }+$SourceDir = Split-Path -Parent $MyInvocation.MyCommand.Path+$SkillTarget = Join-Path $SkillDir "seo-unlighthouse"+New-Item -ItemType Directory -Path $SkillTarget -Force | Out-Null+Copy-Item (Join-Path $SourceDir "skills/seo-unlighthouse/SKILL.md") `+ (Join-Path $SkillTarget "SKILL.md") -Force+& npx --yes --package=unlighthouse-cli@^0.13 unlighthouse-ci --help *> $null+Write-Host "Done."diff --git a/extensions/unlighthouse/install.sh b/extensions/unlighthouse/install.shnew file mode 100755index 0000000..14b57d4--- /dev/null+++ b/extensions/unlighthouse/install.sh@@ -0,0 +1,30 @@+#!/usr/bin/env bash+# Claude SEO — Unlighthouse extension installer.+#+# Wraps the existing scripts/unlighthouse_run.py into a discoverable+# seo-unlighthouse skill. No API keys — Unlighthouse is fully local,+# MIT-licensed, runs on top of Lighthouse via npx.+set -euo pipefail++main() {+ SKILL_DIR="${HOME}/.claude/skills"++ echo "════════════════════════════════════════"+ echo "║ Claude SEO — Unlighthouse ║"+ echo "════════════════════════════════════════"++ command -v python3 >/dev/null 2>&1 || { echo "✗ Python 3 required."; exit 1; }+ command -v npx >/dev/null 2>&1 || { echo "✗ Node 18+ / npx required."; exit 1; }+ [ ! -d "${SKILL_DIR}/seo" ] && { echo "✗ claude-seo base not installed."; exit 1; }++ SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" >/dev/null 2>&1 && pwd)"++ echo "→ Pre-warming unlighthouse-cli..."+ npx --yes --package=unlighthouse-cli@^0.13 unlighthouse-ci --help >/dev/null 2>&1 || true++ mkdir -p "${SKILL_DIR}/seo-unlighthouse"+ cp "${SOURCE_DIR}/skills/seo-unlighthouse/SKILL.md" "${SKILL_DIR}/seo-unlighthouse/SKILL.md"+ echo "✓ Installed skill: ${SKILL_DIR}/seo-unlighthouse"+ echo "Done. Try: /seo unlighthouse https://example.com"+}+main "$@"diff --git a/extensions/unlighthouse/skills/seo-unlighthouse/SKILL.md b/extensions/unlighthouse/skills/seo-unlighthouse/SKILL.mdnew file mode 100644index 0000000..5f4eca8--- /dev/null+++ b/extensions/unlighthouse/skills/seo-unlighthouse/SKILL.md@@ -0,0 +1,47 @@+---+name: seo-unlighthouse+description: Multi-page Lighthouse audit via the MIT-licensed Unlighthouse CLI. Free-tier alternative to running PageSpeed against every URL on a site — no API quota burn, runs locally.+metadata:+ version: "1.9.9"+compatibility: "Requires Node 18+ and the unlighthouse-cli npm package. Run extensions/unlighthouse/install.sh to pre-warm."+---++# seo-unlighthouse++Run Lighthouse against every URL on a site (up to a configurable cap)+and aggregate the results. Useful when:++- PageSpeed Insights' free quota (25k QPD) isn't enough for a large site.+- You want offline / local CWV measurement (CI integration, restricted environments).+- You need a quick site-wide regression check after a deploy.++## Prerequisites++- Run `extensions/unlighthouse/install.sh` (no API key needed).+- Node 18+ on `$PATH`.++## Routing++| Command | Effect |+|---|---|+| `/seo unlighthouse <url>` | Mobile audit, up to 200 routes, JSON+HTML report in a temp dir |+| `/seo unlighthouse <url> --device desktop` | Desktop form factor |+| `/seo unlighthouse <url> --max-routes 50 --output-dir ./reports` | Cap + persist |++All flags forward to `scripts/unlighthouse_run.py` which handles+url_safety pre-flight and subprocess timeout management.++## Output handling++The wrapper reads `ci-result.json` from the Unlighthouse output dir and+returns it parsed. Aggregate fields:++- `score.performance` (median across audited routes)+- `score.accessibility`, `score.bestPractices`, `score.seo`+- Per-route breakdown is available in `<output_dir>/ci-result.json`++## Cross-skill delegation++- For single-URL field data (CrUX), use `seo-google psi` / `seo-google crux`.+- For LCP subpart decomposition on slow pages, use the+ `scripts/lcp_subparts.py` workflow (Phase C).diff --git a/extensions/unlighthouse/uninstall.sh b/extensions/unlighthouse/uninstall.shnew file mode 100755index 0000000..934481d--- /dev/null+++ b/extensions/unlighthouse/uninstall.sh@@ -0,0 +1,5 @@+#!/usr/bin/env bash+set -euo pipefail+SKILL_DIR="${HOME}/.claude/skills/seo-unlighthouse"+[ -d "${SKILL_DIR}" ] && rm -rf "${SKILL_DIR}" && echo "✓ Removed ${SKILL_DIR}"+echo "Done. (Nothing to remove from settings.json — Unlighthouse has no keys.)"diff --git a/scripts/parasite_risk.py b/scripts/parasite_risk.pynew file mode 100755index 0000000..152337d--- /dev/null+++ b/scripts/parasite_risk.py@@ -0,0 +1,252 @@+#!/usr/bin/env python3+"""+Parasite-SEO risk scanner.++Per Google's 2024-11-19 policy clarification, "no amount of first-party+involvement alters the third-party nature" of a section. Section-level+manual actions hit Forbes Advisor, CNN Underscored, and WSJ Buy Side+within hours of the clarification. The risk pattern is now a Critical+finding to surface in any audit of an established editorial domain.++This scanner crawls a small set of representative URLs on a site,+classifies each into a content "topic", and flags subfolders where+the topic diverges from the site's primary corpus. Three signals:++ 1. **Third-party authorship density** — bylines containing words like+ "Partner Content", "Sponsored", "Advertising", "Brand Studio".+ 2. **Commercial-intent skew vs. site primary corpus** — affiliate+ code in outbound links, "Buy now" CTAs, price comparison tables,+ coupons.+ 3. **Topical drift between subfolders** — root corpus is editorial+ but a single subfolder reads as pure commerce.++The output is **advisory**: the scanner cannot determine the actual+contractual relationship between the site and the content producer.+But it identifies the patterns Google's policy targets so the+audit user can investigate.++Inputs+======+A list of URLs from one host. Typically obtained by sampling+sitemaps or running `seo-sitemap`'s URL extractor.++Output+======+Per-subfolder risk: high/medium/low/unknown plus the contributing+signals. The script does not score the whole site — section-level+risk is the operational unit (per Google's policy).+"""++from __future__ import annotations++import argparse+import json+import os+import re+import sys+from collections import Counter, defaultdict+from typing import Iterable+from urllib.parse import urlparse++_SCRIPTS_DIR = os.path.dirname(os.path.abspath(__file__))+if _SCRIPTS_DIR not in sys.path:+ sys.path.insert(0, _SCRIPTS_DIR)+from url_safety import URLSafetyError, safe_requests_get # noqa: E402+++# Indicators of third-party authored content. Each adds 1 hit per page.+_THIRD_PARTY_BYLINE_PATTERNS = (+ r"\bPartner\s+Content\b",+ r"\bSponsored\s+Content\b",+ r"\bSponsored\s+by\b",+ r"\bBrand\s+Studio\b",+ r"\bIn\s+Partnership\s+With\b",+ r"\bAdvertisement\b",+ r"\bAdvertorial\b",+ r"\bPaid\s+Post\b",+ r"\bPromoted\b",+ r"\bPaid\s+Content\b",+)+_THIRD_PARTY_RE = re.compile("|".join(_THIRD_PARTY_BYLINE_PATTERNS), re.IGNORECASE)+++# Commercial-intent signals. Each adds 1 hit per page.+_COMMERCE_PATTERNS = (+ r"\bBuy\s+Now\b",+ r"\bShop\s+Now\b",+ r"\bAdd\s+to\s+Cart\b",+ r"\bCompare\s+Prices\b",+ r"\bBest\s+\w+\s+Deals?\b",+ r"\bPromo\s+Code\b",+ r"\bCoupon\b",+ r"\bDiscount\s+Code\b",+ r"\bAffiliate\s+Disclosure\b",+)+_COMMERCE_RE = re.compile("|".join(_COMMERCE_PATTERNS), re.IGNORECASE)+++# Outbound affiliate-link signatures. Each adds 1 hit per outbound link.+_AFFILIATE_LINK_RE = re.compile(+ r"\b(?:tag=|aff_id=|affid=|partnerid=|ref_=|utm_source=|utm_campaign=)",+ re.IGNORECASE,+)+++def _subfolder(url: str) -> str:+ """Return the first path segment of a URL as the section key."""+ path = urlparse(url).path or "/"+ parts = [p for p in path.split("/") if p]+ return f"/{parts[0]}/" if parts else "/"+++def _audit_page(url: str, html: str) -> dict:+ third_party_hits = len(_THIRD_PARTY_RE.findall(html))+ commerce_hits = len(_COMMERCE_RE.findall(html))+ affiliate_link_hits = len(_AFFILIATE_LINK_RE.findall(html))+ return {+ "url": url,+ "third_party_hits": third_party_hits,+ "commerce_hits": commerce_hits,+ "affiliate_link_hits": affiliate_link_hits,+ }+++def _classify(rows: list[dict]) -> dict:+ """Aggregate signals per subfolder and emit a risk label."""+ by_section: dict[str, list[dict]] = defaultdict(list)+ for row in rows:+ by_section[_subfolder(row["url"])].append(row)++ report: dict[str, dict] = {}+ for section, pages in by_section.items():+ n = len(pages)+ third_party_rate = sum(p["third_party_hits"] for p in pages) / n+ commerce_rate = sum(p["commerce_hits"] for p in pages) / n+ affiliate_rate = sum(p["affiliate_link_hits"] for p in pages) / n++ flags: list[str] = []+ risk = "low"++ if third_party_rate >= 1.0:+ flags.append("third-party-authorship-density")+ if commerce_rate >= 2.0:+ flags.append("commercial-intent-skew")+ if affiliate_rate >= 3.0:+ flags.append("affiliate-density")++ if "third-party-authorship-density" in flags:+ risk = "high"+ elif "commercial-intent-skew" in flags and "affiliate-density" in flags:+ risk = "high"+ elif flags:+ risk = "medium"++ report[section] = {+ "page_count": n,+ "third_party_hits_per_page": round(third_party_rate, 2),+ "commerce_hits_per_page": round(commerce_rate, 2),+ "affiliate_link_hits_per_page": round(affiliate_rate, 2),+ "flags": flags,+ "risk": risk,+ "sample_urls": [p["url"] for p in pages[:3]],+ }++ # Cross-section drift: if one section has > 2x the *mean* commerce+ # rate of the site, flag it as drift even when its own absolute+ # threshold is below. Mean is more useful than median for the+ # common "1 outlier section, N quiet sections" pattern. The+ # absolute threshold above still catches sections that are bad on+ # their own merits.+ rates = [v["commerce_hits_per_page"] for v in report.values() if v["page_count"] > 0]+ if rates:+ mean_rate = sum(rates) / len(rates)+ for section, row in report.items():+ if mean_rate > 0 and row["commerce_hits_per_page"] > 2 * mean_rate:+ if "commercial-intent-drift" not in row["flags"]:+ row["flags"].append("commercial-intent-drift")+ if row["risk"] == "low":+ row["risk"] = "medium"++ return report+++def scan(urls: Iterable[str], *, timeout: int = 20) -> dict:+ rows: list[dict] = []+ errors: list[dict] = []+ for url in urls:+ try:+ resp = safe_requests_get(url, timeout=timeout, allow_redirects=True)+ rows.append(_audit_page(resp.url, resp.text))+ except URLSafetyError as exc:+ errors.append({"url": url, "error": f"url_safety: {exc}"})+ except Exception as exc: # noqa: BLE001 — surface every transport error+ errors.append({"url": url, "error": str(exc)})++ sections = _classify(rows)+ severities = Counter(v["risk"] for v in sections.values())+ overall_risk = "high" if severities.get("high", 0) > 0 else (+ "medium" if severities.get("medium", 0) > 0 else "low"+ )++ return {+ "pages_audited": len(rows),+ "errors": errors,+ "by_section": sections,+ "summary": dict(severities),+ "overall_risk": overall_risk,+ }+++def main() -> int:+ parser = argparse.ArgumentParser(+ description="Parasite-SEO risk scanner (Google site-reputation policy)."+ )+ parser.add_argument(+ "urls", nargs="*",+ help="URLs to audit. Mix freely with --urls-file.",+ )+ parser.add_argument(+ "--urls-file",+ help="Path to a file with one URL per line.",+ )+ parser.add_argument("--json", action="store_true")+ args = parser.parse_args()++ targets: list[str] = list(args.urls)+ if args.urls_file:+ from pathlib import Path+ for line in Path(args.urls_file).read_text(encoding="utf-8").splitlines():+ line = line.strip()+ if line and not line.startswith("#"):+ targets.append(line)++ if not targets:+ print("Error: pass URLs via positional args or --urls-file.",+ file=sys.stderr)+ return 2++ result = scan(targets)++ if args.json:+ json.dump(result, sys.stdout, indent=2)+ sys.stdout.write("\n")+ else:+ print(f"Overall risk: {result['overall_risk']}")+ print(f"Pages audited: {result['pages_audited']}")+ if result["errors"]:+ print(f"Errors: {len(result['errors'])}")+ print()+ for section, row in result["by_section"].items():+ print(f" Section {section} ({row['page_count']} pages) "+ f"risk={row['risk']}")+ print(f" third-party/page: {row['third_party_hits_per_page']}")+ print(f" commerce/page: {row['commerce_hits_per_page']}")+ print(f" affiliate/page: {row['affiliate_link_hits_per_page']}")+ if row["flags"]:+ print(f" flags: {', '.join(row['flags'])}")++ return 0 if result["overall_risk"] != "high" else 1+++if __name__ == "__main__":+ sys.exit(main())diff --git a/skills/seo-geo/references/llmstxt-evidence.md b/skills/seo-geo/references/llmstxt-evidence.mdnew file mode 100644index 0000000..43981aa--- /dev/null+++ b/skills/seo-geo/references/llmstxt-evidence.md@@ -0,0 +1,51 @@+# `/llms.txt` — evidence-based reframe (May 2026)++## TL;DR++`/llms.txt` is **not currently consumed by any major AI search system**.+Generate one anyway as low-cost optionality, but do not present it as a+ranking or citation lever in any claude-seo report.++## Primary-source evidence++| Source | Date | What they said |+|---|---|---|+| **John Mueller** (Google) — Reddit + Bluesky | 2025 | "No AI system currently uses llms.txt." Compared the file to deprecated meta keywords. |+| **Gary Illyes** (Google) — Search Central Live | July 2025 | Google has no plans to support llms.txt. |+| **SE Ranking** — 300k-domain study | November 2025 | Among the 50 most AI-cited domains, **only one** had an `/llms.txt`. |+| **OtterlyAI** — server-log audit | 2025 | **0.1%** of AI-bot traffic targets `/llms.txt` (84 of 62,100 requests). |+| **Anthropic, Stripe, Cloudflare, NVIDIA** — published files | 2024–2025 | All publish `llms.txt`. **None** have stated their crawlers consume third-party `llms.txt` files. |++## Where it does matter++`llms.txt` is increasingly consumed by **AI coding agents** (Cursor,+Continue, Cline, Claude Code) when loading per-library documentation.+Mintlify auto-generates `/llms.txt` and `/llms-full.txt` for thousands+of developer-docs sites. For a developer-tooling site, publishing+`llms.txt` is a net win — it helps agents quote the docs accurately.++For a non-developer business site, the value is purely defensive: zero+cost, possible future-optionality if a major AI provider eventually+adopts it.++## How claude-seo treats `llms.txt`++- `seo-geo` audits **report presence** of `/llms.txt` and `/llms-full.txt`.+- The audit notes whether the file is well-formed (Mintlify-style markdown).+- The audit explicitly does **not** assign citation-ranking weight to it.+- If the user asks to generate one, claude-seo produces a minimal valid+ example and a banner stating "no major LLM provider has confirmed+ consumption as of May 2026; ship for optionality, not for citation".++## When this guidance changes++Update this file (and the seo-geo audit copy) when:++- Any major AI search system (Google AI Overviews, ChatGPT Search,+ Perplexity, Bing Copilot) publishes documentation confirming+ `llms.txt` consumption.+- OtterlyAI or SE Ranking publish a follow-up study showing a measurable+ inflection in `/llms.txt` request rate.+- John Mueller / Gary Illyes / equivalent retract their 2025 statements.++Last verified: 2026-05-17.diff --git a/tests/test_parasite_risk_and_extensions.py b/tests/test_parasite_risk_and_extensions.pynew file mode 100644index 0000000..fe64bb4--- /dev/null+++ b/tests/test_parasite_risk_and_extensions.py@@ -0,0 +1,172 @@+"""+Tests for the v2 Checkpoint 5 deliverables:+ scripts/parasite_risk.py+ extensions/<name>/ (structure check for all 5 new extensions)+ skills/seo-geo/references/llmstxt-evidence.md (evidence file exists)+"""++from __future__ import annotations++import os+import stat+import sys+from pathlib import Path++import pytest++_REPO_ROOT = Path(__file__).resolve().parents[1]+_SCRIPTS = _REPO_ROOT / "scripts"+if str(_SCRIPTS) not in sys.path:+ sys.path.insert(0, str(_SCRIPTS))++import parasite_risk # noqa: E402+++# ---------------------------------------------------------------------------+# parasite_risk+# ---------------------------------------------------------------------------+++def _row(url: str, *, third=0, commerce=0, affiliate=0) -> dict:+ return {+ "url": url,+ "third_party_hits": third,+ "commerce_hits": commerce,+ "affiliate_link_hits": affiliate,+ }+++def test_subfolder_extraction() -> None:+ assert parasite_risk._subfolder("https://news.example.com/reviews/x") == "/reviews/"+ assert parasite_risk._subfolder("https://news.example.com/") == "/"+ assert parasite_risk._subfolder("https://news.example.com") == "/"+++def test_classify_flags_high_risk_review_section() -> None:+ rows = [+ _row("https://news.example.com/reviews/a", commerce=5, affiliate=12),+ _row("https://news.example.com/reviews/b", commerce=6, affiliate=14),+ _row("https://news.example.com/world/u", commerce=0, affiliate=0),+ ]+ report = parasite_risk._classify(rows)+ assert report["/reviews/"]["risk"] == "high"+ assert "commercial-intent-skew" in report["/reviews/"]["flags"]+ assert "affiliate-density" in report["/reviews/"]["flags"]+ assert report["/world/"]["risk"] == "low"+++def test_classify_flags_high_on_third_party_authorship() -> None:+ rows = [+ _row("https://example.com/partner/a", third=2),+ _row("https://example.com/partner/b", third=3),+ ]+ report = parasite_risk._classify(rows)+ assert report["/partner/"]["risk"] == "high"+ assert "third-party-authorship-density" in report["/partner/"]["flags"]+++def test_classify_drift_detection() -> None:+ rows = [+ _row("https://example.com/news/a", commerce=0),+ _row("https://example.com/news/b", commerce=0),+ _row("https://example.com/about/x", commerce=0),+ _row("https://example.com/contact/y", commerce=0),+ _row("https://example.com/deals/p", commerce=1), # below 2.0 absolute+ ]+ report = parasite_risk._classify(rows)+ assert "commercial-intent-drift" in report["/deals/"]["flags"]+ # Drift bumps a low-risk section to medium even when its absolute+ # commerce rate is below the 2.0 hard threshold (1.0 here vs. the+ # 0.25 site-wide mean = 4x mean drift).+ assert report["/deals/"]["risk"] in ("medium", "high")+++def test_audit_page_counts_pattern_hits() -> None:+ html = (+ "<p>Partner Content from Acme</p>"+ "<a href='https://amzn.to/3xyz?tag=aff123'>Buy Now</a>"+ "<a href='https://example.com/x?utm_source=affil'>compare prices</a>"+ )+ row = parasite_risk._audit_page("https://x.example/", html)+ assert row["third_party_hits"] >= 1+ assert row["commerce_hits"] >= 1+ assert row["affiliate_link_hits"] >= 1+++# ---------------------------------------------------------------------------+# Extension structural integrity+# ---------------------------------------------------------------------------+++ "name,skill_dir",+ [+ ("ahrefs", "seo-ahrefs"),+ ("seranking", "seo-seranking"),+ ("profound", "seo-profound"),+ ("bing-webmaster", "seo-bing"),+ ("unlighthouse", "seo-unlighthouse"),+ ],+)+def test_extension_has_install_skill_and_docs(name: str, skill_dir: str) -> None:+ base = _REPO_ROOT / "extensions" / name+ assert (base / "install.sh").is_file(), f"{name}/install.sh missing"+ assert (base / "install.ps1").is_file(), f"{name}/install.ps1 missing"+ assert (base / "skills" / skill_dir / "SKILL.md").is_file(), (+ f"{name}/skills/{skill_dir}/SKILL.md missing"+ )+ assert (base / "uninstall.sh").is_file(), f"{name}/uninstall.sh missing"+ docs_dir = base / "docs"+ assert docs_dir.is_dir(), f"{name}/docs/ missing"+ # At least one *-SETUP.md file in docs.+ assert any(p.suffix == ".md" for p in docs_dir.iterdir()), (+ f"{name}/docs/ has no Markdown file"+ )+++ "name", ["ahrefs", "seranking", "profound", "bing-webmaster", "unlighthouse"],+)+def test_extension_install_script_is_executable(name: str) -> None:+ install = _REPO_ROOT / "extensions" / name / "install.sh"+ mode = install.stat().st_mode+ assert mode & stat.S_IXUSR, f"{name}/install.sh must be executable for chmod"+++ "name,skill_dir",+ [+ ("ahrefs", "seo-ahrefs"),+ ("seranking", "seo-seranking"),+ ("profound", "seo-profound"),+ ("bing-webmaster", "seo-bing"),+ ("unlighthouse", "seo-unlighthouse"),+ ],+)+def test_extension_skillmd_has_required_frontmatter(+ name: str, skill_dir: str,+) -> None:+ skillmd = (_REPO_ROOT / "extensions" / name / "skills"+ / skill_dir / "SKILL.md")+ text = skillmd.read_text(encoding="utf-8")+ head = text.split("---", 2)[1] if text.startswith("---") else ""+ assert f"name: {skill_dir}" in head, f"{name}: frontmatter name must be {skill_dir}"+ assert "description:" in head, f"{name}: missing description"+ assert "metadata:" in head, f"{name}: missing metadata block"+ assert 'version: "1.9.9"' in head, f"{name}: SKILL.md must declare version 1.9.9 (until 2.0.0 bump)"+++# ---------------------------------------------------------------------------+# llms.txt evidence reference+# ---------------------------------------------------------------------------+++def test_llmstxt_evidence_file_exists_and_cites_primary_sources() -> None:+ path = _REPO_ROOT / "skills" / "seo-geo" / "references" / "llmstxt-evidence.md"+ assert path.is_file()+ text = path.read_text(encoding="utf-8")+ for source in ("John Mueller", "Gary Illyes", "SE Ranking", "OtterlyAI"):+ assert source in text, f"evidence file must cite {source}"+ # Must explicitly state non-consumption.+ assert "not currently consumed" in text.lower() \+ or "no AI system" in text.lower()