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(content): do not score a filler phrase inside a longer one
Rudy Celekli1d143bc126bb
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 648be42..689db91 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Fixed++- **A shorter filler phrase no longer scores inside a longer one.**+ `let's dive into` also matched `let's dive in`, so one sentence was two+ hits. On a 320-token page that moved `filler_score` from 25 to 50,+ `overall_quality` from 47 to 41, and raised the filler flag.+## [2.5.0] - 2026-10-22Security and accuracy fixes from a full audit, and Claude Desktop installs again.diff --git a/scripts/content_quality.py b/scripts/content_quality.pyindex 4351fdb..e5cd8b2 100644--- a/scripts/content_quality.py+++ b/scripts/content_quality.py@@ -188,9 +188,19 @@ def _detect_script(text: str) -> str | None:def _count_phrase_hits(text: str, patterns: Iterable[str]) -> list[str]:- """Return the patterns that appear at least once in ``text`` (case-insensitive)."""+ """Return the patterns that appear at least once as a whole phrase.++ Matching is case-insensitive. The phrase must not continue into another+ word, so ``let's dive in`` is not also a hit inside ``let's dive into``.+ Counting that prefix made one sentence two filler hits, which moved+ ``filler_score`` from 25 to 50 and raised the filler flag.+ """lowered = text.lower()- return [p for p in patterns if p in lowered]+ hits = []+ for pattern in patterns:+ if re.search(rf"(?<!\w){re.escape(pattern)}(?!\w)", lowered):+ hits.append(pattern)+ return hitsdef _repetition_score(tokens: list[str]) -> float:diff --git a/tests/test_content_quality.py b/tests/test_content_quality.pyindex b6e7b63..31a990c 100644--- a/tests/test_content_quality.py+++ b/tests/test_content_quality.py@@ -61,6 +61,22 @@ def test_content_quality_filler_heavy_text_scores_low() -> None:assert result["ai_pattern_score"] >= 40+def test_longer_filler_phrase_is_not_scored_twice() -> None:+ """``let's dive in`` is a prefix of ``let's dive into``. One sentence+ must not count as both, which pushes filler_score from 25 to 50 and+ raises the filler flag.+ """+ text = "Let's dive into the details of this topic today. " * 40+ result = content_quality.analyse(text)+ assert result["matches"]["filler"] == ["let's dive into"]+ assert result["filler_score"] == 25+ assert "filler" not in result["flags"]++ shorter = "Let's dive in and review the details of this topic today. " * 40+ short_result = content_quality.analyse(shorter)+ assert short_result["matches"]["filler"] == ["let's dive in"]++def test_content_quality_rich_content_scores_high() -> None:# 300+ tokens with specific numbers, named entities, no filler.text = (