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(metadata): match brand suffixes at word boundaries
Afloat3d1cfef21742
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 648be42..172a792 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Fixed++- Avoid flagging a brand suffix when its text only occurs inside a longer word in the description.+## [2.5.0] - 2026-10-22Security and accuracy fixes from a full audit, and Claude Desktop installs again.diff --git a/scripts/metadata_template.py b/scripts/metadata_template.pyindex 4bf12ea..fcd5a83 100644--- a/scripts/metadata_template.py+++ b/scripts/metadata_template.py@@ -226,7 +226,7 @@ def analyse(title: str, description: str, url: str | None = None) -> dict:if (_BRAND_MIN_CHARS <= len(brand) <= _BRAND_MAX_CHARSand brand_n- and brand_n in description_n+ and f" {brand_n} " in f" {description_n} "and not description.startswith(brand)):result["flags"].append("brand-suffix-in-description")diff --git a/tests/test_metadata_template.py b/tests/test_metadata_template.pyindex 039cdf5..e6d4baf 100644--- a/tests/test_metadata_template.py+++ b/tests/test_metadata_template.py@@ -192,6 +192,28 @@ def test_brand_named_first_in_description_is_not_a_leak() -> None:assert "brand_suffix_in_description" not in [s["id"] for s in result["signals"]]+ ("brand", "description"),+ [+ ("AI", "Compare product details and pricing in one place."),+ ("Art", "Discover smart tools for your next project."),+ ("Go", "Set clear goals and track your weekly progress."),+ ("Art Labs", "Explore smart labs built for hands-on learning."),+ ],+)+def test_brand_substring_inside_another_word_is_not_a_leak(brand, description):+ result = metadata_template.analyse(f"Product comparison guide | {brand}", description)+ assert "brand-suffix-in-description" not in result["flags"]+++def test_punctuation_delimited_brand_is_still_detected():+ result = metadata_template.analyse(+ "Product comparison guide | Art Labs",+ "Compare your options with (Art Labs), including pricing and features.",+ )+ assert "brand-suffix-in-description" in result["flags"]++def test_description_identical_to_title() -> None:title = "Complete Guide to Structured Data for Ecommerce Sites"result = metadata_template.analyse(title, title)