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(drift): preserve IPv6 authorities in normalized URLs
Afloat1c54e6e4d1df
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 648be42..dd976c2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Fixed++- Preserve brackets around IPv6 hosts when normalizing drift baseline URLs.+## [2.5.0] - 2026-10-22Security and accuracy fixes from a full audit, and Claude Desktop installs again.diff --git a/scripts/drift_baseline.py b/scripts/drift_baseline.pyindex 41599cc..1a1b5a5 100644--- a/scripts/drift_baseline.py+++ b/scripts/drift_baseline.py@@ -63,9 +63,9 @@ def normalize_url(url: str) -> str:if (scheme == "http" and port == 80) or (scheme == "https" and port == 443):port = None- netloc = hostname+ netloc = f"[{hostname}]" if ":" in hostname else hostnameif port:- netloc = f"{hostname}:{port}"+ netloc = f"{netloc}:{port}"# Sort query params and strip UTMquery_params = parse_qs(parsed.query, keep_blank_values=True)diff --git a/tests/test_drift_url_normalization.py b/tests/test_drift_url_normalization.pynew file mode 100644index 0000000..e43c0dc--- /dev/null+++ b/tests/test_drift_url_normalization.py@@ -0,0 +1,36 @@+"""URL identity must remain valid when drift targets use IPv6 literals."""++import sys+from pathlib import Path+from urllib.parse import urlparse++import pytest++sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts"))++from drift_baseline import normalize_url, url_hash # noqa: E402+++ ("url", "expected"),+ [+ ("HTTPS://[2001:DB8::1]:443/page/", "https://[2001:db8::1]/page"),+ ("http://[2001:db8::1]:8080/", "http://[2001:db8::1]:8080/"),+ ("http://[2001:db8::1]:80/", "http://[2001:db8::1]/"),+ ],+)+def test_normalization_keeps_ipv6_authority_parseable(url, expected):+ normalized = normalize_url(url)+ assert normalized == expected+ assert urlparse(normalized).hostname == "2001:db8::1"+ assert normalize_url(normalized) == normalized+++def test_ipv6_default_port_and_tracking_parameters_share_a_baseline():+ assert url_hash("https://[2001:db8::1]:443/page/?utm_source=test") == url_hash(+ "https://[2001:db8::1]/page"+ )+++def test_ipv6_custom_ports_keep_distinct_baselines():+ assert url_hash("https://[2001:db8::1]:8443/") != url_hash("https://[2001:db8::1]/")