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.

chore(lint): sort imports in cherry-picked tests and tidy the seo_updates CLI test

Agrici Daniel30f7667662f8
diff --git a/scripts/domain_history.py b/scripts/domain_history.py
index 80841ac..f116abd 100644
--- a/scripts/domain_history.py
+++ b/scripts/domain_history.py
@@ -68,7 +68,6 @@ if _SCRIPTS_DIR not in sys.path:
sys.path.insert(0, _SCRIPTS_DIR)
from url_safety import URLSafetyError, validate_url_strict # noqa: E402
-
_DATE_LABELS = {
"created": (
"creation date", "created on", "registered on", "registered",
diff --git a/tests/test_backlink_score_gate.py b/tests/test_backlink_score_gate.py
index 3241791..adab8cd 100644
--- a/tests/test_backlink_score_gate.py
+++ b/tests/test_backlink_score_gate.py
@@ -17,7 +17,6 @@ if _SCRIPTS not in sys.path:
import validate_backlink_report as vbr # noqa: E402
-
# ─── Backlink score gating ───────────────────────────────────────────────────
BACKLINKS_SKILL = REPO_ROOT / "skills" / "seo-backlinks" / "SKILL.md"
diff --git a/tests/test_content_quality.py b/tests/test_content_quality.py
index 7bd414c..4aedb1c 100644
--- a/tests/test_content_quality.py
+++ b/tests/test_content_quality.py
@@ -15,6 +15,7 @@ from __future__ import annotations
import json
import os
+import subprocess
import sys
from datetime import date
from pathlib import Path
@@ -322,8 +323,7 @@ def test_seo_updates_filter_by_year() -> None:
def test_seo_updates_cli_accepts_every_known_kind() -> None:
"""`--kind documentation` used to be rejected by argparse while the ledger used it."""
- import subprocess, sys
- script = REPO_ROOT / "scripts" / "seo_updates.py" if "REPO_ROOT" in globals() else Path(__file__).resolve().parents[1] / "scripts" / "seo_updates.py"
+ script = Path(__file__).resolve().parents[1] / "scripts" / "seo_updates.py"
for kind in seo_updates.KNOWN_KINDS:
result = subprocess.run(
[sys.executable, str(script), "--kind", kind, "--json", "--limit", "1"],
diff --git a/tests/test_gsc_query.py b/tests/test_gsc_query.py
index 57f93aa..abfcaef 100644
--- a/tests/test_gsc_query.py
+++ b/tests/test_gsc_query.py
@@ -8,7 +8,6 @@ from unittest.mock import patch
import pytest
-
REPO_ROOT = Path(__file__).resolve().parents[1]
_SCRIPTS = REPO_ROOT / "scripts"
if str(_SCRIPTS) not in sys.path:
diff --git a/tests/test_validate_backlink_report.py b/tests/test_validate_backlink_report.py
index 82c1219..0651398 100644
--- a/tests/test_validate_backlink_report.py
+++ b/tests/test_validate_backlink_report.py
@@ -5,7 +5,6 @@ from __future__ import annotations
import os
import sys
-
_SCRIPTS = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "scripts")
if _SCRIPTS not in sys.path:
sys.path.insert(0, _SCRIPTS)