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.

fix(ci): Windows-portable Matomo writer test; match any end-tag suffix

Agrici Daniele77e783e38ee
diff --git a/scripts/nlp_analyze.py b/scripts/nlp_analyze.py
index f87ad00..55f2ce4 100644
--- a/scripts/nlp_analyze.py
+++ b/scripts/nlp_analyze.py
@@ -281,8 +281,8 @@ def analyze_url(
except ImportError:
# Fallback: regex-based text extraction
import re
- text = re.sub(r"<script[^>]*>.*?</script\s*>", "", html, flags=re.DOTALL | re.IGNORECASE)
- text = re.sub(r"<style[^>]*>.*?</style\s*>", "", text, flags=re.DOTALL | re.IGNORECASE)
+ text = re.sub(r"<script[^>]*>.*?</script[^>]*>", "", html, flags=re.DOTALL | re.IGNORECASE)
+ text = re.sub(r"<style[^>]*>.*?</style[^>]*>", "", text, flags=re.DOTALL | re.IGNORECASE)
text = re.sub(r"<[^>]+>", " ", text)
text = re.sub(r"\s+", " ", text).strip()
diff --git a/tests/test_matomo_report.py b/tests/test_matomo_report.py
index 691f89b..7c1c51a 100644
--- a/tests/test_matomo_report.py
+++ b/tests/test_matomo_report.py
@@ -893,7 +893,7 @@ def test_installer_writer_survives_a_dropped_optional_argument(tmp_path):
str(ROOT / "scripts" / "matomo_auth.py"),
"https://analytics.example.com"], # no site-ID argument
capture_output=True, text=True,
- env={**os.environ, "HOME": str(home), "CLAUDE_SEO_SECRET": SECRET_TOKEN},
+ env={**os.environ, "HOME": str(home), "USERPROFILE": str(home), "CLAUDE_SEO_SECRET": SECRET_TOKEN},
)
assert proc.returncode == 0, proc.stderr
stored = json.loads((home / ".config" / "claude-seo" / "matomo.json").read_text())