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(report): stop labelling unsevered category findings as "Info" too
Agrici Danielab358cde4cb0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex df52dcc..ac56615 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0invalid JSON, while a malformed literal in plain HTML is still reported.- The JSON-LD hook accepts the schema.org `@context` with a trailing slash, inlist form, and in `{"@vocab": ...}` object form.+- `google_report.py` no longer labels a plain-string finding as "Info" in the+ executive summary's critical-issues box or in the full-audit category+ findings; the "Info" prefix/badge now appears only when the finding is a+ dict that carries an explicit `severity`.## [2.2.6] - 2026-09-10diff --git a/scripts/google_report.py b/scripts/google_report.pyindex bbbb525..e4d0f54 100644--- a/scripts/google_report.py+++ b/scripts/google_report.py@@ -1129,14 +1129,21 @@ def _build_full_audit_categories(data, section_num=2):lines.append(' <h4>Findings</h4>')for finding in findings:title = escape(_finding_title(finding))- severity = escape(_finding_severity(finding))desc = escape(_finding_description(finding))recommendation = ""if isinstance(finding, dict) and finding.get("recommendation"):recommendation = escape(str(finding["recommendation"]))- severity_class = _rating_css_class(severity)lines.append(' <div class="action-item medium">')- lines.append(f' <h4>{title} <span class="{severity_class}">{severity}</span></h4>')+ # Only label a severity when the finding actually carries one. Plain-string+ # findings have no severity, and _finding_severity() falls back to "Info" --+ # which would badge every entry as "Info" (see the executive-summary fix for+ # the same shape). Dict-shaped findings with an explicit severity keep it.+ if isinstance(finding, dict) and finding.get("severity"):+ severity = escape(str(finding["severity"]))+ severity_class = _rating_css_class(severity)+ lines.append(f' <h4>{title} <span class="{severity_class}">{severity}</span></h4>')+ else:+ lines.append(f' <h4>{title}</h4>')if desc:lines.append(f' <p>{desc}</p>')if recommendation:diff --git a/tests/test_google_report_full_audit.py b/tests/test_google_report_full_audit.pyindex b60d2b6..097b23c 100644--- a/tests/test_google_report_full_audit.py+++ b/tests/test_google_report_full_audit.py@@ -154,3 +154,70 @@ def test_full_audit_html_includes_summary_categories_and_roadmap(tmp_path: Path)assert "Action Plan" in htmlassert "Phase 1: Indexing Fixes" in htmlassert "Content Quality" in html+++# --- unsevered ("Info"-prefix) findings -------------------------------------+#+# summary.top_findings and category.findings are documented as plain arrays+# (seo-audit/SKILL.md), so the common case is a list of strings. Both+# _build_executive_summary and _build_full_audit_categories must render a+# plain-string finding without inventing an "Info" severity, while a dict+# finding that carries an explicit severity keeps its prefix/badge.+++def test_executive_summary_plain_string_finding_has_no_info_prefix() -> None:+ data = {+ "summary": {+ "health_score": 70,+ "top_findings": ["Thin service pages"],+ }+ }++ html = google_report._build_executive_summary("example.com", "2026-01-01", data, "full")++ assert "Thin service pages" in html+ assert "Info:" not in html+++def test_executive_summary_dict_finding_keeps_explicit_severity() -> None:+ data = {+ "summary": {+ "health_score": 70,+ "top_findings": [{"title": "Canonical mismatch", "severity": "Critical"}],+ }+ }++ html = google_report._build_executive_summary("example.com", "2026-01-01", data, "full")++ assert "<strong>Critical:</strong> Canonical mismatch" in html+++def test_full_audit_categories_plain_string_finding_has_no_info_badge() -> None:+ data = {+ "categories": [+ {+ "name": "Technical SEO",+ "findings": ["Thin service pages"],+ }+ ]+ }++ html = google_report._build_full_audit_categories(data)++ assert "<h4>Thin service pages</h4>" in html+ assert "Info" not in html+++def test_full_audit_categories_dict_finding_keeps_explicit_severity() -> None:+ data = {+ "categories": [+ {+ "name": "Technical SEO",+ "findings": [{"title": "Canonical mismatch", "severity": "Critical"}],+ }+ ]+ }++ html = google_report._build_full_audit_categories(data)++ assert '<h4>Canonical mismatch <span class="status-warn">Critical</span></h4>' in html