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: linear-time JSON depth scan, restore 2.4.1 changelog bullet
Agrici Daniel8d6909829b5c
diff --git a/.github/workflows/windows-smoke.yml b/.github/workflows/windows-smoke.ymlindex ba3d2f8..801f5c8 100644--- a/.github/workflows/windows-smoke.yml+++ b/.github/workflows/windows-smoke.yml@@ -144,7 +144,9 @@ jobs:$python = (($cfg | Where-Object { $_ -match '^executable\s*=' }) -split '=', 2)[1].Trim()$version = (($cfg | Where-Object { $_ -match '^version\s*=' }) -split '=', 2)[1].Trim()if ($version -notmatch '^3\.(1[1-4])\.') { throw "Installer chose unsupported Python $version" }- if ($env:CLAUDE_SEO_PYTHON -and ((Resolve-Path $python).Path -ne (Resolve-Path $env:CLAUDE_SEO_PYTHON).Path)) {+ # pyvenv.cfg records the realpath, so compare against the override's realpath.+ $override = if ($env:CLAUDE_SEO_PYTHON) { & $env:CLAUDE_SEO_PYTHON -c "import os, sys; print(os.path.realpath(sys.executable))" }+ if ($override -and ($python -ne $override.Trim())) {throw "Installer ignored CLAUDE_SEO_PYTHON ($python)"}Write-Host "Installer chose Python $version at $python"@@ -241,6 +243,19 @@ jobs:with:python-version: "3.11"+ - name: Report the image's default Python+ shell: powershell+ run: |+ # Shows whether this run exercised the out-of-range fallback. Only a+ # notice: setup-python's 3.11 is also on PATH, so install succeeds+ # either way, and the image decides what 'py -3' is.+ $default = (& py -3 -c "import sys; print('%d.%d' % sys.version_info[:2])" 2>$null)+ if ($default -match '^3\.(1[1-4])$') {+ Write-Host "::notice::py -3 is $default (in range); the fallback path was not exercised."+ } else {+ Write-Host "::notice::py -3 is $default (out of range); the installer must skip it."+ }+- name: Prepare isolated user profileshell: powershellrun: |@@ -287,7 +302,9 @@ jobs:$python = (($cfg | Where-Object { $_ -match '^executable\s*=' }) -split '=', 2)[1].Trim()$version = (($cfg | Where-Object { $_ -match '^version\s*=' }) -split '=', 2)[1].Trim()if ($version -notmatch '^3\.(1[1-4])\.') { throw "Installer chose unsupported Python $version" }- if ($env:CLAUDE_SEO_PYTHON -and ((Resolve-Path $python).Path -ne (Resolve-Path $env:CLAUDE_SEO_PYTHON).Path)) {+ # pyvenv.cfg records the realpath, so compare against the override's realpath.+ $override = if ($env:CLAUDE_SEO_PYTHON) { & $env:CLAUDE_SEO_PYTHON -c "import os, sys; print(os.path.realpath(sys.executable))" }+ if ($override -and ($python -ne $override.Trim())) {throw "Installer ignored CLAUDE_SEO_PYTHON ($python)"}Write-Host "Installer chose Python $version at $python"diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9c7dc1e..ce72559 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -65,13 +65,13 @@ can set `CLAUDE_SEO_PYTHON`; `/seo setup` then rebuilds the runtime once.range (on Windows, `py -3` picks the newest installed Python, which can be3.15) and fall back to the newest supported one, and `install.ps1` now honors`CLAUDE_SEO_PYTHON`. `/seo setup` refuses an unsupported interpreter with a- clear message, and `/seo doctor` reports it.+ clear message.- `requirements.txt` sets `pillow>=13.0.0` (it arrives through matplotlib andWeasyPrint).- CI runs ruff, tests Python 3.11, 3.12 and 3.14, audits dependencies on both3.11 and 3.14, pins GitHub Actions to commit SHAs, and no longer exposes- `GH_TOKEN` to install steps. The Windows smoke test covers both a pinned- `CLAUDE_SEO_PYTHON` and a runner whose default Python is too new.+ `GH_TOKEN` to install steps. The Windows smoke test covers a pinned+ `CLAUDE_SEO_PYTHON` and the installer's own interpreter choice.- SECURITY.md and PRIVACY.md describe what the code does, including whichcalls go to fixed vendor hosts and how to verify a signed release tag.@@ -90,6 +90,10 @@ can set `CLAUDE_SEO_PYTHON`; `/seo setup` then rebuilds the runtime once.### Security+- `agentic_check.py` rejects a well-known or ARD document nested deeper than+ 256 levels before parsing it. On Python 3.14 the JSON parser's limit follows+ the machine's stack size, so the same hostile document could pass on one+ machine and fail on another.- **Google sign-in is bound to its run.** The OAuth flow now sends a random`state` and a PKCE S256 challenge, and the exchange sends the matching`code_verifier`. The local redirect server waits up to 300 s for the request@@ -240,10 +244,8 @@ as third-party instead of being stated as fact.- Six reference files over 200 lines were split at section boundaries intosibling files, with no content removed.- Em dashes removed from skills, agents, scripts, extensions and docs.-- `agentic_check.py` rejects a well-known or ARD document nested deeper than- 256 levels before parsing it. On Python 3.14 the JSON parser's limit follows- the machine's stack size, so the same hostile document could pass on one- machine and fail on another.+- Python 3.10 reaches end of life in October 2026; the docs now recommend+ 3.11 or newer. The floor is unchanged in this patch.- `google_report.py` PDFs, `lcp_subparts.py` text output and the installerbanners no longer print em dashes; `gsc_inspect.py` flags the deprecated`mobile_usability` field. The README v2.2.1 note now dates the Agenticdiff --git a/scripts/url_safety.py b/scripts/url_safety.pyindex b1a5cdc..bd8a443 100644--- a/scripts/url_safety.py+++ b/scripts/url_safety.py@@ -882,7 +882,9 @@ def read_bounded(response, max_bytes: int) -> tuple[bytes, bool]:# on one machine and raise on another; check depth first for one answer.MAX_JSON_DEPTH = 256-_JSON_DEPTH_TOKEN_RE = re.compile(r'"(?:[^"\\]|\\.)*"|[\[\]{}]')+# The closing quote is optional so an unterminated string ends the scan in one+# pass; requiring it made hostile input like '"\\' * n take quadratic time.+_JSON_DEPTH_TOKEN_RE = re.compile(r'"(?:[^"\\]|\\[\s\S])*"?|[\[\]{}]')def json_depth_exceeds(text: str, max_depth: int = MAX_JSON_DEPTH) -> bool:diff --git a/tests/test_hostile_inputs.py b/tests/test_hostile_inputs.pyindex 04ed99b..e70e7b0 100644--- a/tests/test_hostile_inputs.py+++ b/tests/test_hostile_inputs.py@@ -63,6 +63,15 @@ def test_json_depth_scan_skips_brackets_inside_strings():assert not json_depth_exceeds(json.dumps({"a": [[]]}), max_depth=3)+def test_json_depth_scan_is_linear_on_unterminated_strings():+ import time++ from url_safety import json_depth_exceeds+ start = time.monotonic()+ assert not json_depth_exceeds('"\\' * 1_000_000)+ assert time.monotonic() - start < 2.0++def test_ucp_profile_hostile_shapes_do_not_crash():assert ucp_check.parse_profile(DEEP)["issues"]profile = {"ucp": {"version": "2026-08-25", "services": {"dev.ucp.shopping": [