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.
chore(v1.9.9-prep): drift cleanup + tightened CI guards (no version bump) (#93)
Agrici.Daniel7b677e33e0ea
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 5268e19..8b196f6 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -5,13 +5,18 @@"name": "AgriciDaniel"},"metadata": {- "description": "Comprehensive SEO analysis plugin for Claude Code. 25 sub-skills covering technical SEO, E-E-A-T, content briefs, schema markup, GEO, local SEO, semantic clustering, e-commerce SEO, international SEO, and PDF reporting."+ "description": "Comprehensive SEO analysis plugin for Claude Code. 25 sub-skills and 18 sub-agents covering technical SEO, E-E-A-T, content briefs, schema markup, GEO, local SEO, semantic clustering, e-commerce SEO, international SEO, and PDF reporting."},"plugins": [{"name": "claude-seo","source": "./","description": "Comprehensive SEO analysis plugin for Claude Code. 25 sub-skills (21 core + 1 orchestrator + 1 framework integration + 2 extension mirrors) and 18 sub-agents (15 core + 1 framework integration + 2 extension mirrors) covering technical SEO, content quality (E-E-A-T), content briefs, schema markup, image optimization, GEO/AEO, backlinks, local SEO, maps intelligence, semantic topic clustering, SXO, SEO drift monitoring, e-commerce SEO, international SEO with cultural profiles, FLOW framework integration, Google API integration, and PDF reporting.",+ "author": {+ "name": "AgriciDaniel",+ "email": "[email protected]",+ "url": "https://github.com/AgriciDaniel"+ },"category": "marketing","homepage": "https://claude-seo.md","keywords": [diff --git a/AGENTS.md b/AGENTS.mdindex d89b1c9..835131a 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -106,7 +106,7 @@ skills/ # 25 sub-skills (auto-discovered)seo-competitor-pages/ # Competitor pagesseo-dataforseo/ # DataForSEO (extension)seo-image-gen/ # AI images (extension)-agents/ # 17 subagents+agents/ # 18 subagentsscripts/ # 30 Python scriptsschema/ # JSON-LD templatesextensions/ # Optional add-ons (DataForSEO, Firecrawl, Banana, ASO)diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e4fda27..b5d3168 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -77,8 +77,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- This release rolls forward two commits that landed on main after the v1.9.7tag was cut:- `8514999`: marketplace metadata polish (added `category: "marketing"`,- `author.email`, `homepage: https://claude-seo.md`, and a 14-keyword array- to the marketplace.json plugin entry)+ `homepage: https://claude-seo.md`, and a 14-keyword array to the+ marketplace.json plugin entry). The `author` object for the plugin entry+ was intentionally scoped here too but did not land in this commit; it+ lands in v1.9.9 (issue #92).- `66a7485`: em-dash sweep on user-visible AGENTS.md and CHANGELOG.mdBoth were intentionally scoped at v1.9.7 but landed post-tag. v1.9.8 capturesthem properly.diff --git a/extensions/banana/skills/seo-image-gen/SKILL.md b/extensions/banana/skills/seo-image-gen/SKILL.mdindex 7fe727b..ed92190 100644--- a/extensions/banana/skills/seo-image-gen/SKILL.md+++ b/extensions/banana/skills/seo-image-gen/SKILL.md@@ -7,7 +7,7 @@ license: MITcompatibility: "Requires nanobanana MCP server"metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.8"category: seo---diff --git a/extensions/dataforseo/skills/seo-dataforseo/SKILL.md b/extensions/dataforseo/skills/seo-dataforseo/SKILL.mdindex cc35124..1b8aa02 100644--- a/extensions/dataforseo/skills/seo-dataforseo/SKILL.md+++ b/extensions/dataforseo/skills/seo-dataforseo/SKILL.md@@ -15,7 +15,7 @@ license: MITcompatibility: "Requires DataForSEO MCP server"metadata:author: AgriciDaniel- version: "1.9.0"+ version: "1.9.8"category: seo---diff --git a/extensions/firecrawl/skills/seo-firecrawl/SKILL.md b/extensions/firecrawl/skills/seo-firecrawl/SKILL.mdindex c6cb7ee..ddd16bd 100644--- a/extensions/firecrawl/skills/seo-firecrawl/SKILL.md+++ b/extensions/firecrawl/skills/seo-firecrawl/SKILL.md@@ -11,7 +11,7 @@ license: MITcompatibility: "Requires Firecrawl MCP server"metadata:author: AgriciDaniel- version: "1.7.2"+ version: "1.9.8"category: seo---diff --git a/skills/seo-audit/SKILL.md b/skills/seo-audit/SKILL.mdindex f2b13e1..9ff56d7 100644--- a/skills/seo-audit/SKILL.md+++ b/skills/seo-audit/SKILL.md@@ -6,7 +6,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-backlinks/SKILL.md b/skills/seo-backlinks/SKILL.mdindex 51de837..2662f06 100644--- a/skills/seo-backlinks/SKILL.md+++ b/skills/seo-backlinks/SKILL.md@@ -7,7 +7,7 @@ license: MITcompatibility: "Free: Common Crawl + verify always available. Optional: Moz API, Bing Webmaster (free signup). Premium: DataForSEO extension."metadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-cluster/SKILL.md b/skills/seo-cluster/SKILL.mdindex 0c0232d..9a43aa9 100644--- a/skills/seo-cluster/SKILL.md+++ b/skills/seo-cluster/SKILL.md@@ -14,7 +14,7 @@ license: MITmetadata:author: AgriciDanieloriginal_author: "Lutfiya Miller (Pro Hub Challenge Winner)"- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-competitor-pages/SKILL.md b/skills/seo-competitor-pages/SKILL.mdindex 9b19930..0c9479d 100644--- a/skills/seo-competitor-pages/SKILL.md+++ b/skills/seo-competitor-pages/SKILL.md@@ -11,7 +11,7 @@ argument-hint: "[url or generate] [competitor]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-content/SKILL.md b/skills/seo-content/SKILL.mdindex ff1d87b..5e2b3cc 100644--- a/skills/seo-content/SKILL.md+++ b/skills/seo-content/SKILL.md@@ -9,7 +9,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-dataforseo/SKILL.md b/skills/seo-dataforseo/SKILL.mdindex f65fa3e..1b8aa02 100644--- a/skills/seo-dataforseo/SKILL.md+++ b/skills/seo-dataforseo/SKILL.md@@ -15,7 +15,7 @@ license: MITcompatibility: "Requires DataForSEO MCP server"metadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-drift/SKILL.md b/skills/seo-drift/SKILL.mdindex d737a4b..ad335f1 100644--- a/skills/seo-drift/SKILL.md+++ b/skills/seo-drift/SKILL.md@@ -12,7 +12,7 @@ license: MITmetadata:author: AgriciDanieloriginal_author: "Dan Colta (Pro Hub Challenge)"- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-ecommerce/SKILL.md b/skills/seo-ecommerce/SKILL.mdindex 759ccbf..b747b1e 100644--- a/skills/seo-ecommerce/SKILL.md+++ b/skills/seo-ecommerce/SKILL.md@@ -14,7 +14,7 @@ compatibility: "Enhanced with DataForSEO Merchant API (optional)"metadata:author: AgriciDanieloriginal_author: "Matej Marjanovic (Pro Hub Challenge)"- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-flow/SKILL.md b/skills/seo-flow/SKILL.mdindex fa6565e..ab0f884 100644--- a/skills/seo-flow/SKILL.md+++ b/skills/seo-flow/SKILL.md@@ -11,7 +11,7 @@ argument-hint: "[stage] [url|topic]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-geo/SKILL.md b/skills/seo-geo/SKILL.mdindex fb8be6b..34c34ac 100644--- a/skills/seo-geo/SKILL.md+++ b/skills/seo-geo/SKILL.md@@ -13,7 +13,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-google/SKILL.md b/skills/seo-google/SKILL.mdindex 144fe47..3dadb1c 100644--- a/skills/seo-google/SKILL.md+++ b/skills/seo-google/SKILL.md@@ -14,7 +14,7 @@ argument-hint: "[command] [url|property]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-hreflang/SKILL.md b/skills/seo-hreflang/SKILL.mdindex 873db1c..7a62c34 100644--- a/skills/seo-hreflang/SKILL.md+++ b/skills/seo-hreflang/SKILL.md@@ -10,7 +10,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-image-gen/SKILL.md b/skills/seo-image-gen/SKILL.mdindex af76046..ed92190 100644--- a/skills/seo-image-gen/SKILL.md+++ b/skills/seo-image-gen/SKILL.md@@ -7,7 +7,7 @@ license: MITcompatibility: "Requires nanobanana MCP server"metadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-images/SKILL.md b/skills/seo-images/SKILL.mdindex dcb01ed..c130ecd 100644--- a/skills/seo-images/SKILL.md+++ b/skills/seo-images/SKILL.md@@ -12,7 +12,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-local/SKILL.md b/skills/seo-local/SKILL.mdindex 0f4100d..9efe558 100644--- a/skills/seo-local/SKILL.md+++ b/skills/seo-local/SKILL.md@@ -15,7 +15,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-maps/SKILL.md b/skills/seo-maps/SKILL.mdindex 229a2f6..d731a1c 100644--- a/skills/seo-maps/SKILL.md+++ b/skills/seo-maps/SKILL.md@@ -16,7 +16,7 @@ license: MITcompatibility: "DataForSEO MCP for Tier 1+, Google Maps API for Tier 2"metadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-page/SKILL.md b/skills/seo-page/SKILL.mdindex 0eb2bcf..6073ceb 100644--- a/skills/seo-page/SKILL.md+++ b/skills/seo-page/SKILL.md@@ -10,7 +10,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-plan/SKILL.md b/skills/seo-plan/SKILL.mdindex 17c7734..8e1c6c7 100644--- a/skills/seo-plan/SKILL.md+++ b/skills/seo-plan/SKILL.md@@ -11,7 +11,7 @@ argument-hint: "[business-type]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-programmatic/SKILL.md b/skills/seo-programmatic/SKILL.mdindex 4a5dbee..42ec781 100644--- a/skills/seo-programmatic/SKILL.md+++ b/skills/seo-programmatic/SKILL.md@@ -11,7 +11,7 @@ argument-hint: "[url or plan]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-schema/SKILL.md b/skills/seo-schema/SKILL.mdindex 1bdf4b6..f07e5a0 100644--- a/skills/seo-schema/SKILL.md+++ b/skills/seo-schema/SKILL.md@@ -9,7 +9,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-sitemap/SKILL.md b/skills/seo-sitemap/SKILL.mdindex b7c203f..7d5d81b 100644--- a/skills/seo-sitemap/SKILL.md+++ b/skills/seo-sitemap/SKILL.md@@ -9,7 +9,7 @@ argument-hint: "[url or generate]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-sxo/SKILL.md b/skills/seo-sxo/SKILL.mdindex 1b75894..c12ae6b 100644--- a/skills/seo-sxo/SKILL.md+++ b/skills/seo-sxo/SKILL.md@@ -13,7 +13,7 @@ license: MITmetadata:author: AgriciDanieloriginal_author: "Florian Schmitz (Pro Hub Challenge)"- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo-technical/SKILL.md b/skills/seo-technical/SKILL.mdindex 4dbebae..d77229b 100644--- a/skills/seo-technical/SKILL.md+++ b/skills/seo-technical/SKILL.md@@ -10,7 +10,7 @@ argument-hint: "[url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---diff --git a/skills/seo/SKILL.md b/skills/seo/SKILL.mdindex 5ab8743..d5e5e8e 100644--- a/skills/seo/SKILL.md+++ b/skills/seo/SKILL.md@@ -6,7 +6,7 @@ argument-hint: "[command] [url]"license: MITmetadata:author: AgriciDaniel- version: "1.9.6"+ version: "1.9.8"category: seo---@@ -17,8 +17,9 @@ metadata:**Scripts:** Located at the plugin root `scripts/` directory.Comprehensive SEO analysis across all industries (SaaS, local services,-e-commerce, publishers, agencies). Orchestrates 21 specialized sub-skills and 18 subagents-(+ 3 optional extension sub-skills: seo-dataforseo, seo-firecrawl, and seo-image-gen).+e-commerce, publishers, agencies). Orchestrates 24 sub-skills (21 core + 1 framework+integration + 2 extension mirrors) and 18 sub-agents. A separate optional Firecrawl+extension is also installable (see "Optional Extensions" below).## Quick Reference@@ -31,6 +32,7 @@ e-commerce, publishers, agencies). Orchestrates 21 specialized sub-skills and 18| `/seo images <url or optimize>` | Image SEO: on-page audit, SERP analysis, file optimization || `/seo technical <url>` | Technical SEO audit (9 categories) || `/seo content <url>` | E-E-A-T and content quality analysis |+| `/seo content-brief <topic or url>` | Generate detailed SEO content brief with target keywords, outline, internal links || `/seo geo <url>` | AI Overviews / Generative Engine Optimization || `/seo plan <business-type>` | Strategic SEO planning || `/seo programmatic [url\|plan]` | Programmatic SEO analysis and planning |@@ -171,32 +173,43 @@ Weighted aggregate of all categories:## Sub-Skills-This skill orchestrates 21 specialized sub-skills (+ 3 extensions):+This skill orchestrates 24 sub-skills (21 core + 1 framework integration + 2 extension+mirrors). The orchestrator itself (`seo`) is the 25th in `skills/`, but does not+orchestrate itself, so it is not enumerated below.1. **seo-audit** -- Full website audit with parallel delegation2. **seo-page** -- Deep single-page analysis3. **seo-technical** -- Technical SEO (9 categories)4. **seo-content** -- E-E-A-T and content quality-5. **seo-schema** -- Schema markup detection and generation-6. **seo-images** -- Image optimization, SERP analysis, file optimization-7. **seo-sitemap** -- Sitemap analysis and generation-8. **seo-geo** -- AI Overviews / GEO optimization-9. **seo-plan** -- Strategic planning with templates-10. **seo-programmatic** -- Programmatic SEO analysis and planning-11. **seo-competitor-pages** -- Competitor comparison page generation-12. **seo-hreflang** -- Hreflang/i18n SEO audit, cultural profiles, content parity-13. **seo-local** -- Local SEO (GBP, NAP, citations, reviews, local schema, multi-location)-14. **seo-maps** -- Maps intelligence (geo-grid, GBP audit, reviews, competitor radius)-15. **seo-google** -- Google SEO APIs (GSC, PageSpeed, CrUX, Indexing API, GA4)-16. **seo-backlinks** -- Backlink profile analysis (free: Moz, Bing, CC; premium: DataForSEO)-17. **seo-cluster** -- SERP-based semantic clustering (contributed by Lutfiya Miller)-18. **seo-sxo** -- Search Experience Optimization (contributed by Florian Schmitz)-19. **seo-drift** -- SEO drift monitoring (contributed by Dan Colta)-20. **seo-ecommerce** -- E-commerce SEO intelligence (contributed by Matej Marjanovic)-21. **seo-firecrawl** -- Full-site crawling and site mapping via Firecrawl MCP (extension)-22. **seo-dataforseo** -- Live SEO data via DataForSEO MCP (extension)-23. **seo-image-gen** -- AI image generation for SEO assets via Gemini (extension)-24. **seo-flow** -- FLOW framework integration (Find → Leverage → Optimize → Win, 41 AI prompts, CC BY 4.0)+5. **seo-content-brief** -- Detailed SEO content brief generation (contributed by puneetindersingh)+6. **seo-schema** -- Schema markup detection and generation+7. **seo-images** -- Image optimization, SERP analysis, file optimization+8. **seo-sitemap** -- Sitemap analysis and generation+9. **seo-geo** -- AI Overviews / GEO optimization+10. **seo-plan** -- Strategic planning with templates+11. **seo-programmatic** -- Programmatic SEO analysis and planning+12. **seo-competitor-pages** -- Competitor comparison page generation+13. **seo-hreflang** -- Hreflang/i18n SEO audit, cultural profiles, content parity+14. **seo-local** -- Local SEO (GBP, NAP, citations, reviews, local schema, multi-location)+15. **seo-maps** -- Maps intelligence (geo-grid, GBP audit, reviews, competitor radius)+16. **seo-google** -- Google SEO APIs (GSC, PageSpeed, CrUX, Indexing API, GA4)+17. **seo-backlinks** -- Backlink profile analysis (free: Moz, Bing, CC; premium: DataForSEO)+18. **seo-cluster** -- SERP-based semantic clustering (contributed by Lutfiya Miller)+19. **seo-sxo** -- Search Experience Optimization (contributed by Florian Schmitz)+20. **seo-drift** -- SEO drift monitoring (contributed by Dan Colta)+21. **seo-ecommerce** -- E-commerce SEO intelligence (contributed by Matej Marjanovic)+22. **seo-dataforseo** -- Live SEO data via DataForSEO MCP (extension mirror)+23. **seo-image-gen** -- AI image generation for SEO assets via Gemini (extension mirror)+24. **seo-flow** -- FLOW framework integration (Find -> Leverage -> Optimize -> Win, 41 AI prompts, CC BY 4.0)++### Optional Extensions++The following ship in `extensions/` rather than `skills/` and require a separate+installer to activate (see each extension's `install.sh`/`install.ps1`):++- **seo-firecrawl** -- Full-site crawling and site mapping via Firecrawl MCP. Install+ via `extensions/firecrawl/install.sh` (Unix) or `extensions/firecrawl/install.ps1`+ (Windows). Once installed, invoke via `/seo firecrawl <command>`.## Subagents@@ -216,9 +229,9 @@ For parallel analysis during audits:- `seo-sxo` -- Page-type mismatch, user stories, persona scoring (always in full audits)- `seo-drift` -- Baseline comparison (conditional: drift baseline exists for URL)- `seo-ecommerce` -- Product schema, marketplace intel (conditional: e-commerce detected)+- `seo-flow` -- FLOW framework prompts (conditional: spawned for content strategy workflows)- `seo-dataforseo` -- Live SERP, keyword, backlink, local SEO data (extension, optional)- `seo-image-gen` -- SEO image audit and generation plan (extension, optional)-- `seo-firecrawl` -- Full-site crawl and site mapping (extension, optional; used by audit for URL discovery)## Error Handlingdiff --git a/tests/test_manifest_consistency.py b/tests/test_manifest_consistency.pyindex 0b0129b..9a96020 100644--- a/tests/test_manifest_consistency.py+++ b/tests/test_manifest_consistency.py@@ -183,6 +183,180 @@ def test_install_scripts_default_tag_matches_plugin_version():)+def _extract_section(text: str, heading: str) -> str:+ """Return the body of a `## <heading>` section, up to the next H2 heading or EOF."""+ pattern = rf"^## {re.escape(heading)}\b.*?(?=^## |\Z)"+ m = re.search(pattern, text, re.MULTILINE | re.DOTALL)+ return m.group(0) if m else ""+++def test_orchestrator_sub_skills_list_matches_disk():+ """skills/seo/SKILL.md Sub-Skills numbered list must equal set(skills/*) minus orchestrator itself.++ Background: v1.9.8 CI guard checks README/CLAUDE/AGENTS but not the orchestrator's+ own canonical-phrasing source. PR #92 surfaced that the orchestrator had stale "21+ specialized" claims and the list included seo-firecrawl (extension-only). This+ guard closes that gap.+ """+ text = (REPO_ROOT / "skills" / "seo" / "SKILL.md").read_text()+ section = _extract_section(text, "Sub-Skills")+ listed_list = re.findall(r"^\d+\.\s+\*\*(seo-[a-z-]+)\*\*", section, re.MULTILINE)+ assert len(listed_list) == len(set(listed_list)), (+ f"Duplicate entries in Sub-Skills list: "+ f"{[n for n in listed_list if listed_list.count(n) > 1]}"+ )+ listed = set(listed_list)+ on_disk = {+ d.name for d in (REPO_ROOT / "skills").iterdir()+ if d.is_dir() and (d / "SKILL.md").is_file()+ }+ # The orchestrator (`seo`) does not list itself.+ # seo-firecrawl is documented separately in an Optional Extensions subsection+ # because it lives only in extensions/, not in skills/.+ expected = on_disk - {"seo"}+ assert listed == expected, (+ f"Sub-Skills list != skills/ dir. "+ f"Missing from list: {sorted(expected - listed)}. "+ f"Extra in list: {sorted(listed - expected)}."+ )+++def test_orchestrator_subagents_list_matches_disk():+ """skills/seo/SKILL.md Subagents bullet list must equal set(agents/seo-*.md), no duplicates.++ Background: same drift pattern as Sub-Skills. Codex round 3 review surfaced that+ the Subagents list was missing seo-flow (file on disk) and included seo-firecrawl+ (no agent file on disk).+ """+ text = (REPO_ROOT / "skills" / "seo" / "SKILL.md").read_text()+ section = _extract_section(text, "Subagents")+ listed_list = re.findall(r"^- `(seo-[a-z-]+)`", section, re.MULTILINE)+ assert len(listed_list) == len(set(listed_list)), (+ f"Duplicate entries in Subagents list: "+ f"{[n for n in listed_list if listed_list.count(n) > 1]}"+ )+ listed = set(listed_list)+ on_disk = {+ p.stem for p in (REPO_ROOT / "agents").iterdir()+ if p.is_file() and p.suffix == ".md" and p.name.startswith("seo-")+ }+ assert listed == on_disk, (+ f"Subagents list != agents/ dir. "+ f"Missing from list: {sorted(on_disk - listed)}. "+ f"Extra in list: {sorted(listed - on_disk)}."+ )+++def _extract_frontmatter(text: str) -> str:+ """Return the YAML frontmatter block (between the first two `---` lines).++ Returns the body between the delimiters (exclusive), or empty string if no+ frontmatter present. Scoping the regex search to this block prevents a+ fenced code example or later doc snippet from satisfying a metadata check.+ """+ m = re.match(r"^---\s*\n(.*?)\n---\s*\n", text, re.DOTALL)+ return m.group(1) if m else ""+++def test_skill_metadata_versions_match_plugin_json():+ """Every SKILL.md metadata.version must equal plugin.json version (with community allowlist).++ Covers in-tree skills/*/SKILL.md and extension-mirror copies under+ extensions/*/skills/*/SKILL.md. Community contributions can be allowlisted+ to keep their own version cadence.++ Implementation note: parses the YAML frontmatter block specifically so that+ a fenced code example or later doc snippet showing `version: "x"` cannot+ satisfy the assertion after metadata.version has been removed from frontmatter.+ """+ # Community-contributed skills that maintain their own version cadence.+ # Each entry: skill name -> expected literal version string.+ COMMUNITY_OVERRIDES = {"seo-content-brief": "1.0.0"}++ plugin = json.loads(PLUGIN_JSON.read_text())+ expected_default = plugin["version"]+ errors = []++ candidates = list((REPO_ROOT / "skills").glob("*/SKILL.md")) + list(+ (REPO_ROOT / "extensions").glob("*/skills/*/SKILL.md")+ )+ for skill_md in candidates:+ skill_name = skill_md.parent.name+ rel = skill_md.relative_to(REPO_ROOT)+ text = skill_md.read_text()+ frontmatter = _extract_frontmatter(text)+ if not frontmatter:+ errors.append(f"{rel} has no YAML frontmatter block")+ continue+ # metadata.version is nested under `metadata:` and indented by 2 spaces+ match = re.search(+ r'^ version:\s*"([^"]+)"', frontmatter, re.MULTILINE+ )+ if not match:+ errors.append(f"{rel} has no metadata.version in frontmatter")+ continue+ actual = match.group(1)+ expected = COMMUNITY_OVERRIDES.get(skill_name, expected_default)+ if actual != expected:+ errors.append(f"{rel}: version is {actual}, expected {expected}")++ assert not errors, "Skill metadata.version drift:\n " + "\n ".join(errors)+++def test_marketplace_metadata_and_author_parity():+ """marketplace.json metadata.description includes both counts; plugin entry author parities plugin.json.++ Background: v1.9.8 release notes claimed `author.email` was added in commit 8514999+ but verification showed only owner.name existed. v1.9.9 corrects this and adds a+ guard so marketplace.json metadata.description + plugin entry author stay in sync+ with plugin.json.+ """+ plugin = json.loads(PLUGIN_JSON.read_text())+ mp = json.loads(MARKETPLACE_JSON.read_text())++ desc = mp["metadata"]["description"]+ desc_sub_skills = re.search(r"(\d+)\s+sub-skills", desc)+ desc_sub_agents = re.search(r"(\d+)\s+sub-agents", desc)+ assert desc_sub_skills, (+ f"marketplace.json metadata.description missing sub-skills count: {desc!r}"+ )+ assert desc_sub_agents, (+ f"marketplace.json metadata.description missing sub-agents count: {desc!r}"+ )++ plugin_desc = plugin["description"]+ plugin_sub_skills_match = re.search(r"(\d+)\s+sub-skills", plugin_desc)+ plugin_sub_agents_match = re.search(r"(\d+)\s+sub-agents", plugin_desc)+ assert plugin_sub_skills_match, "plugin.json description has no sub-skills count"+ assert plugin_sub_agents_match, "plugin.json description has no sub-agents count"++ assert desc_sub_skills.group(1) == plugin_sub_skills_match.group(1), (+ f"marketplace.json metadata.description claims {desc_sub_skills.group(1)} "+ f"sub-skills but plugin.json claims {plugin_sub_skills_match.group(1)}"+ )+ assert desc_sub_agents.group(1) == plugin_sub_agents_match.group(1), (+ f"marketplace.json metadata.description claims {desc_sub_agents.group(1)} "+ f"sub-agents but plugin.json claims {plugin_sub_agents_match.group(1)}"+ )++ plugin_entry = mp["plugins"][0]+ assert "author" in plugin_entry, (+ "marketplace.json plugin entry must have an author object"+ )+ p_author = plugin["author"]+ m_author = plugin_entry["author"]+ # Exact parity for all 3 fields (name, email, url) — drift in any field+ # signals a metadata sync miss+ for field in ("name", "email", "url"):+ p_val = p_author.get(field)+ m_val = m_author.get(field)+ assert p_val, f"plugin.json author.{field} must be non-empty (was: {p_val!r})"+ assert m_val == p_val, (+ f"marketplace plugin entry author.{field} {m_val!r} != "+ f"plugin.json author.{field} {p_val!r}"+ )++def test_canonical_math_adds_up():"""The canonical phrasing's parenthetical breakdown must sum to the headline count."""plugin = json.loads(PLUGIN_JSON.read_text())