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(deps,tests): document the urllib3 2.8.0 advisories, guard tests/ for em dashes
Agrici Danield6edb46b8179
diff --git a/extensions/banana/scripts/setup_mcp.py b/extensions/banana/scripts/setup_mcp.pyindex 789631e..9183537 100755--- a/extensions/banana/scripts/setup_mcp.py+++ b/extensions/banana/scripts/setup_mcp.py@@ -64,11 +64,10 @@ def check_setup() -> bool:servers = settings.get("mcpServers", {})if MCP_NAME in servers:env = servers[MCP_NAME].get("env", {})- key = env.get("GOOGLE_AI_API_KEY", "")- masked = "..." + key[-4:] if len(key) > 12 else "(not set)"+ key_status = "set" if env.get("GOOGLE_AI_API_KEY") else "(not set)"print(f"MCP server '{MCP_NAME}' is configured.")print(f" Package: {MCP_PACKAGE}")- print(f" API Key: {masked}")+ print(f" API Key: {key_status}")model = env.get("NANOBANANA_MODEL")print(f" Model: {model if model else 'MCP package default'}")return Truediff --git a/extensions/banana/scripts/validate_setup.py b/extensions/banana/scripts/validate_setup.pyindex f620069..ed64f38 100755--- a/extensions/banana/scripts/validate_setup.py+++ b/extensions/banana/scripts/validate_setup.py@@ -92,11 +92,9 @@ def main() -> int:# 6. API key presentenv = mcp.get("env", {})- key = env.get("GOOGLE_AI_API_KEY", "")results.append(check("GOOGLE_AI_API_KEY is set",- bool(key),- f"...{key[-4:]}" if len(key) > 12 else "(empty or short)",+ bool(env.get("GOOGLE_AI_API_KEY")),))# 7. Model configureddiff --git a/requirements.txt b/requirements.txtindex 88c4027..b9f7a3b 100644--- a/requirements.txt+++ b/requirements.txt@@ -1,13 +1,15 @@# Claude SEO - Python Dependencies# Bounded version pinning with security-conscious minimums-# Last updated: October 22, 2026 (Python 3.11 floor, Pillow 13)+# Last updated: November 10, 2026 (urllib3 2.8.0 security floor, Dependabot floor bumps)beautifulsoup4>=4.15.0,<5.0.0 # No known CVEsrequests>=2.34.2,<3.0.0 # CVE-2024-47081, CVE-2024-35195 fixeslxml>=6.1.3,<7.0.0 # CVE-2025-24928 + additional libxml2 security patcheslxml_html_clean>=0.4.5,<1.0.0 # lxml 6 removed html.clean into this standalone packageplaywright>=1.63.0,<2.0.0 # CVE-2025-59288 fix (macOS)-urllib3>=2.8.0,<3.0.0 # High-severity urllib3 advisories GHSA-mf9v-mfxr-j63j, GHSA-qccp-gfcp-xxvc+urllib3>=2.8.0,<3.0.0 # High-severity urllib3 advisories GHSA-mf9v-mfxr-j63j, GHSA-qccp-gfcp-xxvc; 2.8.0 fixes+ # GHSA-8988-9cw3-xx77 (HTTPS proxy TLS settings ignored), GHSA-vxq7-64xx-v4gw (unbounded+ # chunk-size line buffering), GHSA-gh4c-6fx4-qh6g (chunked deflate infinite loop)# v2.0.0 Phase A: headless rendering across all agentstrafilatura>=2.2.0,<3.0.0 # Boilerplate-free content extraction (SPA-safe)diff --git a/tests/test_banana_key_masking.py b/tests/test_banana_key_masking.pyindex 7ad6f4b..a6b141a 100644--- a/tests/test_banana_key_masking.py+++ b/tests/test_banana_key_masking.py@@ -1,8 +1,9 @@-"""The banana setup checks show only the last four characters of the key.+"""The banana setup checks show no part of the key, only whether one is set.-They used to print the first eight as well, which for a Google AI key is the-fixed prefix plus four characters of the secret (CodeQL-py/clear-text-logging-sensitive-data).+They used to print the first eight characters and later the last four. Any+part of a secret in a log is flagged by CodeQL+(py/clear-text-logging-sensitive-data), so the output now says "set" or+"(not set)" and nothing else about the key."""from __future__ import annotations@@ -37,10 +38,10 @@ def _load(monkeypatch, home: Path, name: str):("setup_mcp", lambda m: m.check_setup()),("validate_setup", lambda m: m.main()),])-def test_only_the_last_four_key_characters_are_shown(monkeypatch, tmp_path, capsys, name, call):+def test_no_part_of_the_key_is_shown(monkeypatch, tmp_path, capsys, name, call):module = _load(monkeypatch, tmp_path, name)monkeypatch.setattr(sys, "argv", [name])call(module)out = capsys.readouterr().out- assert "...wxyz" in out+ assert FAKE_KEY[-4:] not in outassert FAKE_KEY[:8] not in outdiff --git a/tests/test_ga4_top_pages_errors.py b/tests/test_ga4_top_pages_errors.pyindex 4111e2a..23fa726 100644--- a/tests/test_ga4_top_pages_errors.py+++ b/tests/test_ga4_top_pages_errors.py@@ -1,4 +1,4 @@-"""GA4 热门落地页查询失败时必须保留错误。"""+"""A failed GA4 top landing pages query must keep its error."""from __future__ import annotationsdiff --git a/tests/test_indexing_notify.py b/tests/test_indexing_notify.pyindex e5e2b36..aeaedc6 100644--- a/tests/test_indexing_notify.py+++ b/tests/test_indexing_notify.py@@ -1,5 +1,5 @@"""-Tests for scripts/indexing_notify.py — the Google Indexing API helper.+Tests for scripts/indexing_notify.py: the Google Indexing API helper.Regression coverage for the over-quota warning. batch_notify truncates abatch larger than the daily quota and sets a warning saying the extra URLsdiff --git a/tests/test_no_em_dash.py b/tests/test_no_em_dash.pyindex 3f0b488..167d231 100644--- a/tests/test_no_em_dash.py+++ b/tests/test_no_em_dash.py@@ -4,9 +4,10 @@ The 2026-09-28 house-style pass removed every em dash from skills/, agents/,scripts/, schema/, data/, extensions/, docs/, README.md, CLAUDE.md andAGENTS.md, rewriting each into plain punctuation (comma, period, colon,parentheses or conjunction) so the codebase reads consistently. This test is-the regression gate: it fails if a future edit reintroduces one.+the regression gate: it fails if a future edit reintroduces one. tests/ joined+the gate on 2026-11-10, after two new test files shipped em dashes unseen.-Two kinds of exception exist:+Three kinds of exception exist:1. Paths that are synced upstream and hash-locked (skills/seo-flow/references/prompts/** and skills/seo-flow/references/flow-prompts.lock). Those files@@ -15,6 +16,10 @@ Two kinds of exception exist:character class in a regex that detects or strips em dashes, and onegenerated-file header string that must keep matching the (excluded,hash-locked) lock file it writes.+3. Test files that predate the tests/ gate (LEGACY_TEST_LINE_COUNTS). Each may+ keep the em dash lines it had, never more, and is delisted at zero.++En dashes (U+2013) are not gated yet."""from __future__ import annotations@@ -24,12 +29,14 @@ from pathlib import PathROOT = Path(__file__).resolve().parents[1]-# U+2014 EM DASH, written as an escape so this file itself carries no literal-# em dash character.-EM_DASH = "\u2014"-EN_DASH = "\u2013"+# U+2014 EM DASH and U+2013 EN DASH, built from code points so this file+# carries neither the characters nor their escapes and is scanned like any+# other test file.+EM_DASH = chr(0x2014)+EN_DASH = chr(0x2013)# Escaped forms that still render an em dash in generated HTML, PDF or text.-ESCAPED_FORMS = ("—", "—", "\\u2014")+# Each is split in two so the line that defines them does not match itself.+ESCAPED_FORMS = ("&" + "mdash;", "&#" + "8212;", "\\u" + "2014")TARGET_PREFIXES = ("skills/",@@ -39,6 +46,7 @@ TARGET_PREFIXES = ("data/","extensions/","docs/",+ "tests/",)TARGET_FILES = {"README.md", "CLAUDE.md", "AGENTS.md"}@@ -62,6 +70,22 @@ ALLOWLIST = {),}+# Test files that already carried em dashes when tests/ joined the gate, with+# the number of offending lines in each. The numbers may only fall: lower one+# when a file is cleaned up and delete the entry when it reaches zero.+LEGACY_TEST_LINE_COUNTS = {+ "tests/test_gbp_lint_and_polish.py": 2,+ "tests/test_manifest_consistency.py": 3,+ "tests/test_metadata_template.py": 4,+ "tests/test_parasite_risk_and_extensions.py": 1,+ "tests/test_phase_j_executable.py": 5,+ "tests/test_portability.py": 2,+ "tests/test_render_page.py": 8,+ "tests/test_sync_flow.py": 3,+ "tests/test_technical_depth.py": 7,+ "tests/test_url_safety.py": 2,+}+def _tracked_target_files() -> list[str]:out = subprocess.run(@@ -85,20 +109,27 @@ def _tracked_target_files() -> list[str]:return files+def _em_dash_hits(rel: str) -> list[str]:+ try:+ text = (ROOT / rel).read_text(encoding="utf-8")+ except (UnicodeDecodeError, OSError):+ return []+ hits = []+ for lineno, line in enumerate(text.splitlines(), 1):+ if EM_DASH not in line and not any(form in line for form in ESCAPED_FORMS):+ continue+ if (rel, line) in ALLOWLIST:+ continue+ hits.append(f"{rel}:{lineno}: {line.strip()}")+ return hits++def test_no_em_dash_in_tracked_target_files() -> None:hits = []for rel in _tracked_target_files():- path = ROOT / rel- try:- text = path.read_text(encoding="utf-8")- except (UnicodeDecodeError, OSError):- continue- for lineno, line in enumerate(text.splitlines(), 1):- if EM_DASH not in line and not any(form in line for form in ESCAPED_FORMS):- continue- if (rel, line) in ALLOWLIST:- continue- hits.append(f"{rel}:{lineno}: {line.strip()}")+ file_hits = _em_dash_hits(rel)+ if len(file_hits) > LEGACY_TEST_LINE_COUNTS.get(rel, 0):+ hits.extend(file_hits)assert not hits, "em dash (U+2014, or an escape that renders one) found outside the allowlist:\n" + "\n".join(hits)@@ -114,6 +145,12 @@ def test_allowlist_entries_still_present() -> None:assert not missing, "allowlisted line(s) no longer found, update ALLOWLIST:\n" + "\n".join(missing)+def test_legacy_test_baseline_is_not_stale() -> None:+ """A cleaned-up test file must leave the baseline so it is fully gated again."""+ clean = [rel for rel in LEGACY_TEST_LINE_COUNTS if not _em_dash_hits(rel)]+ assert not clean, "no em dash left, remove from LEGACY_TEST_LINE_COUNTS:\n" + "\n".join(clean)++def test_excluded_paths_are_still_excluded_for_a_reason() -> None:"""The FLOW prompt mirror is upstream-synced and hash-locked; sanity-check it exists."""lock = ROOT / "skills/seo-flow/references/flow-prompts.lock"diff --git a/tests/test_preload_check.py b/tests/test_preload_check.pyindex 2c5c1af..9d4012b 100644--- a/tests/test_preload_check.py+++ b/tests/test_preload_check.py@@ -1,5 +1,5 @@"""-Tests for scripts/preload_check.py — the Speculation Rules / preload auditor.+Tests for scripts/preload_check.py: the Speculation Rules / preload auditor.Regression coverage for non-object speculationrules bodies: ``json.loads``accepts a bare array, string, or ``null`` (all valid JSON), so thediff --git a/tests/test_pyproject_metadata.py b/tests/test_pyproject_metadata.pyindex f19c55e..86a10fd 100644--- a/tests/test_pyproject_metadata.py+++ b/tests/test_pyproject_metadata.py@@ -37,13 +37,15 @@ def test_requirements_keep_security_and_compatibility_floors() -> None:"""Floors may rise (Dependabot bumps) but never fall below these minimums."""text = (REPO_ROOT / "requirements.txt").read_text(encoding="utf-8")minimums = {- "lxml": (6, 1, 1),+ "lxml": (6, 1, 3),"lxml_html_clean": (0, 4, 5), # advisories fixed in 0.4.4 and 0.4.5- "urllib3": (2, 7, 0),+ "playwright": (1, 63, 0),+ "urllib3": (2, 8, 0), # three advisories fixed only in 2.8.0"numpy": (2, 2, 6),"pillow": (13, 0, 0), # 28 advisories fixed only in 13.0.0+ "google-auth": (2, 58, 1),"google-auth-httplib2": (0, 4, 0),- "google-ads": (25, 0, 0),+ "google-ads": (33, 0, 0),}for package, minimum in minimums.items():assert _floor(text, package) >= minimum, f"{package} floor is below {minimum}"