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(windows): PowerShell 5.1 uninstall and Windows-only test failures
Agrici Danieldd424703168b
diff --git a/scripts/content_quality.py b/scripts/content_quality.pyindex 3c6b088..b2c0221 100644--- a/scripts/content_quality.py+++ b/scripts/content_quality.py@@ -294,7 +294,23 @@ def analyse(text: str) -> dict:return result+def _configure_utf8() -> None:+ """Read stdin and write stdout as UTF-8 regardless of the console codec.++ Windows consoles default to a legacy code page, which cannot encode CJK+ text and would raise UnicodeEncodeError on the first non-Latin character.+ """+ for stream in (sys.stdin, sys.stdout, sys.stderr):+ reconfigure = getattr(stream, "reconfigure", None)+ if reconfigure:+ try:+ reconfigure(encoding="utf-8", errors="replace")+ except (ValueError, OSError):+ pass++def main() -> int:+ _configure_utf8()parser = argparse.ArgumentParser(description="QRG-aligned content quality scorer.")diff --git a/tests/test_banana_setup_mcp_atomic_write.py b/tests/test_banana_setup_mcp_atomic_write.pyindex d6ff453..ca8e960 100644--- a/tests/test_banana_setup_mcp_atomic_write.py+++ b/tests/test_banana_setup_mcp_atomic_write.py@@ -24,6 +24,8 @@ def _load_module(monkeypatch, home: Path):must be patched before exec_module runs."""monkeypatch.setenv("HOME", str(home))+ # Path.home() reads USERPROFILE on Windows, not HOME.+ monkeypatch.setenv("USERPROFILE", str(home))spec = importlib.util.spec_from_file_location("banana_setup_mcp", REPO_ROOT / "extensions/banana/scripts/setup_mcp.py")diff --git a/tests/test_content_quality.py b/tests/test_content_quality.pyindex d4a7b07..aa1ecba 100644--- a/tests/test_content_quality.py+++ b/tests/test_content_quality.py@@ -201,9 +201,11 @@ def test_content_quality_cjk_human_output_notes_partial_coverage() -> None:"""The CLI's human-readable summary must call out partial CJK coverage."""script = Path(__file__).resolve().parents[1] / "scripts" / "content_quality.py"text = "사주팔자는 태어난 연월일시를 천간과 지지로 옮긴 여덟 글자입니다. " * 5+ # CJK input and output must not go through the Windows locale codec.+ env = {**os.environ, "PYTHONIOENCODING": "utf-8"}result = subprocess.run([sys.executable, str(script)],- input=text, capture_output=True, text=True,+ input=text, capture_output=True, encoding="utf-8", errors="replace", env=env,)assert result.returncode in (0, 1)assert "not directly comparable" in result.stdoutdiff --git a/tests/test_schema_hook_detection.py b/tests/test_schema_hook_detection.pyindex 6dc35e4..11f7a02 100644--- a/tests/test_schema_hook_detection.py+++ b/tests/test_schema_hook_detection.py@@ -28,7 +28,13 @@ VALID = '{"@context":"https://schema.org","@type":"Organization","name":"Exampledef _run(tmp_path: Path, filename: str, head: str) -> subprocess.CompletedProcess:target = tmp_path / filenametarget.write_text(f"<html><head>{head}</head><body></body></html>", encoding="utf-8")- return subprocess.run([sys.executable, str(HOOK), str(target)], capture_output=True, text=True)+ # The hook prints emoji markers as UTF-8; decode explicitly, because on+ # Windows text=True uses cp1252 and a decode error inside the pipe reader+ # thread leaves stdout as None.+ return subprocess.run(+ [sys.executable, str(HOOK), str(target)],+ capture_output=True, encoding="utf-8", errors="replace",+ )# --- false negatives -------------------------------------------------------diff --git a/tests/test_schema_hook_redos.py b/tests/test_schema_hook_redos.pyindex 3c16d69..b0b7e85 100644--- a/tests/test_schema_hook_redos.py+++ b/tests/test_schema_hook_redos.py@@ -19,7 +19,8 @@ def test_unclosed_script_tag_with_many_apostrophes_finishes_quickly(tmp_path: Paresult = subprocess.run([sys.executable, str(HOOK), str(page)],capture_output=True,- text=True,+ encoding="utf-8",+ errors="replace",timeout=20,)assert time.monotonic() - started < 5, "hook took too long: possible catastrophic backtracking"diff --git a/uninstall.ps1 b/uninstall.ps1index bb751e5..f6466f8 100644--- a/uninstall.ps1+++ b/uninstall.ps1@@ -19,8 +19,8 @@ function Write-Color($Color, $Text) {}function Main {- $SkillDir = Join-Path $env:USERPROFILE ".claude" "skills"- $AgentDir = Join-Path $env:USERPROFILE ".claude" "agents"+ $SkillDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "skills"+ $AgentDir = Join-Path (Join-Path $env:USERPROFILE ".claude") "agents"Write-Color Cyan "=== Uninstalling claude-seo ==="Write-Host ""