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(backlinks): remove the competing instruction to cap the score at 70/100

Sergio54f0e9b93882
diff --git a/skills/seo/references/free-backlink-sources.md b/skills/seo/references/free-backlink-sources.md
index 55aa2f7..fcf125c 100644
--- a/skills/seo/references/free-backlink-sources.md
+++ b/skills/seo/references/free-backlink-sources.md
@@ -30,8 +30,20 @@ When merging data from multiple sources, apply confidence weights to each metric
weighted_score = Σ(source_score × confidence × factor_weight) / Σ(confidence × factor_weight)
```
-When only Common Crawl is available, cap the maximum health score at 70/100 and note
-"limited to domain-level metrics" in the report.
+**When only Common Crawl is available, do not produce a health score at all.**
+Not a capped one, not an "approximate" one. Common Crawl supplies domain-level
+rank and presence signals only -- it carries none of the referring-domain quality,
+anchor, or toxicity data a health score claims to summarise, so any number derived
+from it reads as "this profile is weak" when the truth is "we have no data."
+
+Report `Not Assessed` in place of the score, surface the rank/presence data that
+Common Crawl *does* support as low-confidence findings, and note "limited to
+domain-level metrics" in the report. The same applies to any finding written with
+`source: not-assessed`.
+
+This is enforced, not advisory: `claude-seo run validate_backlink_report.py` fails
+a report (`status: FAIL`) that carries a number in either case. See the
+`seo-backlinks` skill's "MUST NOT: score what you did not measure" section.
## Source Details
diff --git a/tests/test_backlink_score_gate.py b/tests/test_backlink_score_gate.py
index c10e071..3241791 100644
--- a/tests/test_backlink_score_gate.py
+++ b/tests/test_backlink_score_gate.py
@@ -6,6 +6,7 @@ anyway. These tests pin it to something checkable.
from __future__ import annotations
+import re
import sys
from pathlib import Path
@@ -108,3 +109,36 @@ def test_source_score_consistency_runs_without_a_scoring_factors_block() -> None
assert result["status"] == "FAIL"
assert "source_score_consistency" in result["metadata"]["checks_run"]
+
+
+# ─── Repo-wide: no competing instruction to score unmeasured data ───────────
+
+FREE_SOURCES_REF = REPO_ROOT / "skills" / "seo" / "references" / "free-backlink-sources.md"
+
+
+def test_shared_reference_does_not_contradict_the_no_score_rule() -> None:
+ """The reference used to say 'cap the maximum health score at 70/100'.
+
+ That instructed a number in exactly the Common-Crawl-only case the skill
+ forbids, and gave the more actionable of the two competing instructions --
+ the likely reason the rule was violated despite being written down.
+ """
+ text = FREE_SOURCES_REF.read_text(encoding="utf-8")
+ assert "cap the maximum health score" not in text
+ assert "70/100" not in text
+ assert "do not produce a health score at all" in text
+ assert "Not Assessed" in text
+
+
+def test_no_skill_or_reference_instructs_capping_a_score_for_missing_data() -> None:
+ """Guard the whole class, not just the one line that was found."""
+ pattern = re.compile(
+ r"cap\s+(?:the\s+)?(?:maximum\s+)?[a-z ]*score\s+(?:at|to)\s+\d+",
+ re.I,
+ )
+ offenders = []
+ for root in (REPO_ROOT / "skills", REPO_ROOT / "agents"):
+ for path in root.rglob("*.md"):
+ if pattern.search(path.read_text(encoding="utf-8")):
+ offenders.append(str(path.relative_to(REPO_ROOT)))
+ assert not offenders, f"score-capping instruction reintroduced in: {offenders}"