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: act on the independent review of the branch
Agrici Daniel6b44f5d94b83
diff --git a/CLAUDE.md b/CLAUDE.mdindex a192271..bfc475b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -246,7 +246,7 @@ Part of the Claude Code skill family:1. **Progressive Disclosure**: Metadata always loaded, instructions on activation, resources on demand2. **Industry Detection**: Auto-detect SaaS, e-commerce, local, publisher, agency-3. **Parallel Execution**: Full audits spawn up to 16 subagents simultaneously+3. **Parallel Execution**: Full audits spawn up to 17 subagents simultaneously4. **Extension System**: DataForSEO, Firecrawl, Banana, Ahrefs, SE Ranking, Profound, Bing Webmaster, and Unlighthouse extensions## Repository Topology (public + private)diff --git a/README.md b/README.mdindex 0db88d9..0facd2b 100644--- a/README.md+++ b/README.md@@ -18,7 +18,7 @@### Why Claude SEO- **AI-search first.** Aligned with [Google's AI Optimization Guide](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide). Question-based citability scoring, primary-source evidence on llms.txt, IPTC `TrainedAlgorithmicMedia` for AI-generated product images, agent-friendly page checks per [web.dev](https://web.dev/), and `/seo agentic` for agent readiness scored the way Lighthouse's Agentic Browsing category counts it.-- **Parallel execution.** Full site audits spawn up to 16 specialist agents simultaneously. Site-level audits complete in minutes rather than hours.+- **Parallel execution.** Full site audits spawn up to 17 specialist agents simultaneously. Site-level audits complete in minutes rather than hours.- **Falsifiable, not promotional.** Every recommendation carries the first-principle observation it rests on, its dependency relationships, an explicit "how would we know this failed?" check, and a leading indicator. See [Methodology](#methodology).### Real results@@ -299,9 +299,9 @@ Other audit outputs follow the same shape: `FULL-AUDIT-REPORT.md` (umbrella audi## Architecture-+-The plugin follows the [Agent Skills standard](https://docs.claude.com/en/docs/claude-code/skills) with a 3-layer architecture (directive, orchestration, execution). Skills and agents are auto-discovered from `skills/seo-*/` and `agents/seo-*.md`. The orchestrator (`skills/seo/SKILL.md`) handles industry detection (SaaS, local, ecommerce, publisher, agency), parallel sub-agent dispatch up to 16 simultaneously, and synthesis through the [10-principle framework](#methodology) before emitting the action plan. Full architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).+The plugin follows the [Agent Skills standard](https://docs.claude.com/en/docs/claude-code/skills) with a 3-layer architecture (directive, orchestration, execution). Skills and agents are auto-discovered from `skills/seo-*/` and `agents/seo-*.md`. The orchestrator (`skills/seo/SKILL.md`) handles industry detection (SaaS, local, ecommerce, publisher, agency), parallel sub-agent dispatch up to 17 simultaneously, and synthesis through the [10-principle framework](#methodology) before emitting the action plan. Full architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).## Methodologydiff --git a/assets/signal-flow.svg b/assets/signal-flow.svgindex 1a2f1fb..cec7a9b 100644--- a/assets/signal-flow.svg+++ b/assets/signal-flow.svg@@ -1,6 +1,6 @@<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1460 420" width="100%"preserveAspectRatio="xMidYMid meet" role="img"- aria-label="Claude SEO audit signal flow: /seo audit enters, crawls the site, fans out through the orchestrator to 26 sub-skills, up to 16 parallel audit agents, and AI-search analysis, converges through scoring, and ripens into a prioritized report.">+ aria-label="Claude SEO audit signal flow: /seo audit enters, crawls the site, fans out through the orchestrator to 26 sub-skills, up to 17 parallel audit agents, and AI-search analysis, converges through scoring, and ripens into a prioritized report."><title>Claude SEO audit signal flow</title><defs><filter id="glow" x="-70%" y="-70%" width="240%" height="240%"><feGaussianBlur stdDeviation="3.6"/></filter>@@ -32,6 +32,6 @@<text x="40" y="50" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="13" fill="#7d6857" letter-spacing="1.6">CLAUDE-SEO · AUDIT SIGNAL FLOW</text><path d="M177,212 L267,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M425,212 L501,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M659,212 C706,212 706,104 753,104" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M659,212 L748,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M659,212 C711,212 711,320 762,320" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M911,104 C957,104 957,212 1002,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M916,212 L1002,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M902,320 C952,320 952,212 1002,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/><path d="M1170,212 L1241,212" fill="none" stroke="#4a3a2e" stroke-width="1.4"/>- <g><rect x="47" y="181" width="130" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="47" y="181" width="130" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.000;0.020;0.130;1" values="0;0;0.95;0;0"/></rect><text x="112" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">/seo audit</text><text x="112" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">entry</text></g><g><rect x="267" y="181" width="158" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="267" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.090;0.140;0.250;1" values="0;0;0.95;0;0"/></rect><text x="346" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">crawl</text><text x="346" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">to 500 pages</text></g><g><rect x="501" y="181" width="158" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="501" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.250;0.300;0.410;1" values="0;0;0.95;0;0"/></rect><text x="580" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">seo/SKILL.md</text><text x="580" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">orchestrator</text></g><g><rect x="753" y="73" width="158" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="753" y="73" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="101" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">26 sub-skills</text><text x="832" y="121" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">modules</text></g><g><rect x="748" y="181" width="168" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="748" y="181" width="168" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">16 audit agents</text><text x="832" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">parallel</text></g><g><rect x="762" y="289" width="139" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="762" y="289" width="139" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="317" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">AI search</text><text x="832" y="337" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">GEO + LLMs</text></g><g><rect x="1002" y="181" width="168" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="1002" y="181" width="168" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.610;0.660;0.770;1" values="0;0;0.95;0;0"/></rect><text x="1086" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">scoring</text><text x="1086" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">weighted dims</text></g><g><rect x="1241" y="181" width="158" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="1241" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.750;0.800;0.910;1" values="0;0;0.95;0;0"/></rect><text x="1320" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">report</text><text x="1320" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">score · plan</text></g>+ <g><rect x="47" y="181" width="130" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="47" y="181" width="130" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.000;0.020;0.130;1" values="0;0;0.95;0;0"/></rect><text x="112" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">/seo audit</text><text x="112" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">entry</text></g><g><rect x="267" y="181" width="158" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="267" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.090;0.140;0.250;1" values="0;0;0.95;0;0"/></rect><text x="346" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">crawl</text><text x="346" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">to 500 pages</text></g><g><rect x="501" y="181" width="158" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="501" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.250;0.300;0.410;1" values="0;0;0.95;0;0"/></rect><text x="580" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">seo/SKILL.md</text><text x="580" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">orchestrator</text></g><g><rect x="753" y="73" width="158" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="753" y="73" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="101" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">26 sub-skills</text><text x="832" y="121" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">modules</text></g><g><rect x="748" y="181" width="168" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="748" y="181" width="168" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">17 audit agents</text><text x="832" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">parallel</text></g><g><rect x="762" y="289" width="139" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="762" y="289" width="139" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.410;0.460;0.570;1" values="0;0;0.95;0;0"/></rect><text x="832" y="317" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">AI search</text><text x="832" y="337" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">GEO + LLMs</text></g><g><rect x="1002" y="181" width="168" height="62" rx="12" fill="#241d17" stroke="#6f5a48" stroke-width="1.1"/><rect x="1002" y="181" width="168" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.610;0.660;0.770;1" values="0;0;0.95;0;0"/></rect><text x="1086" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#EAD9CC">scoring</text><text x="1086" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">weighted dims</text></g><g><rect x="1241" y="181" width="158" height="62" rx="12" fill="#2a2018" stroke="#D97757" stroke-width="1.7"/><rect x="1241" y="181" width="158" height="62" rx="12" fill="none" stroke="#D97757" stroke-width="2.6" filter="url(#glow)" opacity="0"><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.750;0.800;0.910;1" values="0;0;0.95;0;0"/></rect><text x="1320" y="209" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="18" font-weight="600" fill="#FFF3EC">report</text><text x="1320" y="229" text-anchor="middle" font-family="'JetBrains Mono','Cascadia Mono','Menlo',monospace" font-size="11" fill="#9c8675" letter-spacing="0.4">score · plan</text></g><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.038;0.158;1" keyPoints="0;0;1;1" path="M177,212 L267,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.028;0.058;0.138;0.158;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.020;0.140;1" keyPoints="0;0;1;1" path="M177,212 L267,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.010;0.040;0.120;0.140;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.158;0.318;1" keyPoints="0;0;1;1" path="M425,212 L501,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.148;0.178;0.298;0.318;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.140;0.300;1" keyPoints="0;0;1;1" path="M425,212 L501,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.130;0.160;0.280;0.300;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.338;0.478;1" keyPoints="0;0;1;1" path="M659,212 C706,212 706,104 753,104"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.328;0.358;0.458;0.478;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.320;0.460;1" keyPoints="0;0;1;1" path="M659,212 C706,212 706,104 753,104"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.310;0.340;0.440;0.460;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.338;0.478;1" keyPoints="0;0;1;1" path="M659,212 L748,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.328;0.358;0.458;0.478;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.320;0.460;1" keyPoints="0;0;1;1" path="M659,212 L748,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.310;0.340;0.440;0.460;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.338;0.478;1" keyPoints="0;0;1;1" path="M659,212 C711,212 711,320 762,320"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.328;0.358;0.458;0.478;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.320;0.460;1" keyPoints="0;0;1;1" path="M659,212 C711,212 711,320 762,320"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.310;0.340;0.440;0.460;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.518;0.678;1" keyPoints="0;0;1;1" path="M911,104 C957,104 957,212 1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.508;0.538;0.658;0.678;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.500;0.660;1" keyPoints="0;0;1;1" path="M911,104 C957,104 957,212 1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.490;0.520;0.640;0.660;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.518;0.678;1" keyPoints="0;0;1;1" path="M916,212 L1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.508;0.538;0.658;0.678;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.500;0.660;1" keyPoints="0;0;1;1" path="M916,212 L1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.490;0.520;0.640;0.660;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.518;0.678;1" keyPoints="0;0;1;1" path="M902,320 C952,320 952,212 1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.508;0.538;0.658;0.678;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.500;0.660;1" keyPoints="0;0;1;1" path="M902,320 C952,320 952,212 1002,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.490;0.520;0.640;0.660;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle><circle r="10" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.678;0.818;1" keyPoints="0;0;1;1" path="M1170,212 L1241,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.668;0.698;0.798;0.818;1" values="0;0;0.28;0.28;0;0"/></circle><circle r="5.5" fill="#D97757" filter="url(#glow)" opacity="0"><animateMotion dur="6.0s" repeatCount="indefinite" calcMode="linear" keyTimes="0;0.660;0.800;1" keyPoints="0;0;1;1" path="M1170,212 L1241,212"/><animate attributeName="opacity" dur="6.0s" repeatCount="indefinite" keyTimes="0;0.650;0.680;0.780;0.800;1" values="0;0;1;1;0;0"/><animate attributeName="r" values="5;6.5;5" dur="1.4s" repeatCount="indefinite"/></circle></svg>diff --git a/docs/COMMANDS.md b/docs/COMMANDS.mdindex 3611f67..8be38b2 100644--- a/docs/COMMANDS.md+++ b/docs/COMMANDS.md@@ -53,7 +53,7 @@ Full website SEO audit with parallel analysis.**What it does:**1. Crawls up to 500 pages2. Detects business type-3. Delegates to up to 16 specialist subagents in parallel (9 always-on + 7 conditional)+3. Delegates to up to 17 specialist subagents in parallel (9 always-on + 8 conditional)4. Generates SEO Health Score (0-100)5. Creates prioritized action plandiff --git a/extensions/banana/install.sh b/extensions/banana/install.shindex 567535b..57d94c9 100755--- a/extensions/banana/install.sh+++ b/extensions/banana/install.sh@@ -95,7 +95,7 @@ PY# Configure MCP serverecho "→ Configuring nanobanana-mcp server..."- # Credentials are passed as argv (never interpolated into the source string)+ # Credentials travel in the environment (never argv, never interpolated into the source string)# and the settings file is written atomically with 0600 permissions.CLAUDE_SEO_SECRET="${GOOGLE_AI_API_KEY}" python3 - "${MCP_CONFIG_FILE}" <<'PY'import json, os, sys, tempfilediff --git a/extensions/bing-webmaster/install.ps1 b/extensions/bing-webmaster/install.ps1index b32f4fe..66a04e9 100644--- a/extensions/bing-webmaster/install.ps1+++ b/extensions/bing-webmaster/install.ps1@@ -32,5 +32,9 @@ os.replace(tmp, path)"@$env:CLAUDE_SEO_SECRET = $BingPlain$env:CLAUDE_SEO_INDEXNOW_KEY = $IdxKey-try { $py | python - $SettingsJson $IdxLoc } finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue; Remove-Item Env:CLAUDE_SEO_INDEXNOW_KEY -ErrorAction SilentlyContinue }+try {+ $py | python - $SettingsJson $IdxLoc+ # A native command's non-zero exit does not throw, even with Stop.+ if ($LASTEXITCODE -ne 0) { throw "Nothing was saved (python exited $LASTEXITCODE). See the message above." }+} finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue; Remove-Item Env:CLAUDE_SEO_INDEXNOW_KEY -ErrorAction SilentlyContinue }Write-Host "Done."diff --git a/extensions/dataforseo/install.sh b/extensions/dataforseo/install.shindex 7ba6279..825b018 100755--- a/extensions/dataforseo/install.sh+++ b/extensions/dataforseo/install.sh@@ -112,7 +112,7 @@ main() {echo "→ Configuring MCP server..."FIELD_CONFIG_PATH="${SEO_SKILL_DIR}/dataforseo-field-config.json"- # Credentials are passed as argv (never interpolated into the source string)+ # Credentials travel in the environment (never argv, never interpolated into the source string)# and the settings file is written atomically with 0600 permissions.CLAUDE_SEO_USERNAME="${DFSE_USERNAME}" CLAUDE_SEO_SECRET="${DFSE_PASSWORD}" python3 - "${MCP_CONFIG_FILE}" "${FIELD_CONFIG_PATH}" <<'PY'import json, os, sys, tempfilediff --git a/extensions/firecrawl/install.sh b/extensions/firecrawl/install.shindex cbb9957..193c566 100755--- a/extensions/firecrawl/install.sh+++ b/extensions/firecrawl/install.sh@@ -84,7 +84,7 @@ main() {# Merge MCP config into ~/.claude.jsonecho "-> Configuring MCP server..."- # Credentials are passed as argv (never interpolated into the source string)+ # Credentials travel in the environment (never argv, never interpolated into the source string)# and the settings file is written atomically with 0600 permissions.CLAUDE_SEO_SECRET="${FIRECRAWL_API_KEY}" python3 - "${MCP_CONFIG_FILE}" <<'PY'import json, os, sys, tempfilediff --git a/extensions/matomo/install.ps1 b/extensions/matomo/install.ps1index 3e5b0d2..061e9b3 100644--- a/extensions/matomo/install.ps1+++ b/extensions/matomo/install.ps1@@ -59,5 +59,9 @@ matomo_auth.save_config({print('Wrote Matomo credentials to ' + matomo_auth.CONFIG_PATH)"@$env:CLAUDE_SEO_SECRET = $TokenPlain-try { $py | python - $MatomoAuth $MatomoUrl $SiteId } finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }+try {+ $py | python - $MatomoAuth $MatomoUrl $SiteId+ # A native command's non-zero exit does not throw, even with Stop.+ if ($LASTEXITCODE -ne 0) { throw "Nothing was saved (python exited $LASTEXITCODE). See the message above." }+} finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }Write-Host "Done. MATOMO_URL / MATOMO_API_TOKEN / MATOMO_SITE_ID still override the file."\ No newline at end of filediff --git a/extensions/profound/install.ps1 b/extensions/profound/install.ps1index 35de845..a384a16 100644--- a/extensions/profound/install.ps1+++ b/extensions/profound/install.ps1@@ -23,5 +23,9 @@ with os.fdopen(fd, 'w') as fh: json.dump(data, fh, indent=2)os.replace(tmp, path)"@$env:CLAUDE_SEO_SECRET = $Plain-try { $py | python - $SettingsJson } finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }+try {+ $py | python - $SettingsJson+ # A native command's non-zero exit does not throw, even with Stop.+ if ($LASTEXITCODE -ne 0) { throw "Nothing was saved (python exited $LASTEXITCODE). See the message above." }+} finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }Write-Host "Done."diff --git a/extensions/seranking/install.ps1 b/extensions/seranking/install.ps1index 3b50229..952e8ea 100644--- a/extensions/seranking/install.ps1+++ b/extensions/seranking/install.ps1@@ -36,5 +36,9 @@ with os.fdopen(fd, 'w') as fh:os.replace(tmp, path)"@$env:CLAUDE_SEO_SECRET = $Plain-try { $pyScript | python - $SettingsJson } finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }+try {+ $pyScript | python - $SettingsJson+ # A native command's non-zero exit does not throw, even with Stop.+ if ($LASTEXITCODE -ne 0) { throw "Nothing was saved (python exited $LASTEXITCODE). See the message above." }+} finally { Remove-Item Env:CLAUDE_SEO_SECRET -ErrorAction SilentlyContinue }Write-Host "Done. Try: /seo seranking ai-visibility brandname"diff --git a/scripts/agentic_check.py b/scripts/agentic_check.pyindex 1aa757a..857d2df 100644--- a/scripts/agentic_check.py+++ b/scripts/agentic_check.py@@ -178,7 +178,13 @@ def _decode(body: bytes, content_type: str) -> str:garbles UTF-8 robots.txt and llms.txt files, so the header is read here."""match = re.search(r"charset=[\"']?([\w.:-]+)", content_type, re.I)- encoding = match.group(1) if match else "utf-8"+ meta = re.search(rb"<meta[^>]+charset\s*=\s*[\"']?([\w.:-]+)", body[:4096], re.I)+ if match:+ encoding = match.group(1)+ elif meta:+ encoding = meta.group(1).decode("ascii", "ignore")+ else:+ encoding = "utf-8"try:text = body.decode(encoding, errors="replace")except LookupError:diff --git a/scripts/keywordseverywhere_api.py b/scripts/keywordseverywhere_api.pyindex 6f5ffca..cf6990e 100644--- a/scripts/keywordseverywhere_api.py+++ b/scripts/keywordseverywhere_api.py@@ -124,7 +124,22 @@ def get_rank(domains: list, api_key: str) -> dict:"metadata": {"source": "keywordseverywhere"},}- body = response.json()+ if response.status_code >= 300:+ return {+ "status": "error",+ "data": None,+ "error": f"HTTP {response.status_code}: unexpected redirect from the API",+ "metadata": {"source": "keywordseverywhere"},+ }+ try:+ body = response.json()+ except ValueError:+ return {+ "status": "error",+ "data": None,+ "error": f"HTTP {response.status_code}: response was not JSON",+ "metadata": {"source": "keywordseverywhere"},+ }results = body.get("results") or []ranks = [{diff --git a/tests/test_agentic.py b/tests/test_agentic.pyindex 60f7a23..250c9ee 100644--- a/tests/test_agentic.py+++ b/tests/test_agentic.py@@ -460,3 +460,8 @@ def test_agent_ux_falls_back_to_raw_html_without_a_renderer(monkeypatch):report = agent_ux_check.audit("https://e.test/")assert report["score_status"] == "unavailable" and report["score"] is Noneassert report["html_only_fallback"] is True and report["html_findings"]+++def test_decode_uses_meta_charset_when_the_header_has_none():+ body = '<html><head><meta charset="iso-8859-1"></head><body>Caf\xe9</body></html>'.encode("iso-8859-1")+ assert "Café" in ac._decode(body, "text/html")diff --git a/tests/test_extension_installer_injection.py b/tests/test_extension_installer_injection.pyindex 55d2ad2..b763a06 100644--- a/tests/test_extension_installer_injection.py+++ b/tests/test_extension_installer_injection.py@@ -99,3 +99,59 @@ def test_no_installer_passes_a_secret_on_the_command_line(rel: Path) -> None:args = line.split("python3 -", 1)[1]for word in ("KEY", "TOKEN", "PASSWORD", "SECRET"):assert word not in args.split("<<")[0].replace("CONFIG", ""), (rel, line)+++# PowerShell installers that feed a Python writer through a here-string.+PS1_WRITERS = {+ "extensions/profound/install.ps1": ([], "CLAUDE_SEO_SECRET"),+ "extensions/seranking/install.ps1": ([], "CLAUDE_SEO_SECRET"),+ "extensions/bing-webmaster/install.ps1": (["https://e.test/key.txt"], "CLAUDE_SEO_SECRET"),+}+++def _ps1_writer(rel: str) -> str:+ text = (ROOT / rel).read_text(encoding="utf-8")+ match = re.search(r'@"\n(.*?)\n"@', text, re.DOTALL)+ assert match, f"{rel}: no here-string writer"+ assert "$" not in match.group(1), f"{rel}: here-string would interpolate a $"+ return match.group(1)++[email protected]("rel", PS1_WRITERS)+def test_ps1_writer_reads_secret_from_env_and_never_clobbers(tmp_path: Path, rel: str) -> None:+ extra, env_name = PS1_WRITERS[rel]+ script = tmp_path / "writer.py"+ script.write_text(_ps1_writer(rel), encoding="utf-8")+ settings = tmp_path / "settings.json"+ env = {**os.environ, **BASE_ENV, env_name: "secret-value"}++ ok = subprocess.run([sys.executable, str(script), str(settings), *extra],+ env=env, capture_output=True, text=True, cwd=tmp_path)+ assert ok.returncode == 0, ok.stderr+ assert "secret-value" in settings.read_text(encoding="utf-8")++ original = '{"env": {"MINE": "1"}, broken'+ settings.write_text(original, encoding="utf-8")+ bad = subprocess.run([sys.executable, str(script), str(settings), *extra],+ env=env, capture_output=True, text=True, cwd=tmp_path)+ assert bad.returncode != 0 and "Nothing was changed" in bad.stderr+ assert settings.read_text(encoding="utf-8") == original++[email protected]("rel", [*PS1_WRITERS, "extensions/matomo/install.ps1"])+def test_ps1_installers_check_the_python_exit_code_and_keep_secrets_off_argv(rel: str) -> None:+ text = (ROOT / rel).read_text(encoding="utf-8")+ assert "$env:CLAUDE_SEO_SECRET = " in text+ assert "if ($LASTEXITCODE -ne 0) { throw" in text, f"{rel} would print Done after a refusal"+ for line in text.splitlines():+ if "| python -" in line:+ assert not re.search(r"\$(Plain|BingPlain|TokenPlain|IdxKey)\b", line), (rel, line)++[email protected]("rel", sorted(Path(ROOT, "extensions").glob("*/install.sh")))+def test_python_invocations_carry_no_secret_even_across_continuations(rel: Path) -> None:+ joined = rel.read_text(encoding="utf-8").replace("\\\n", " ")+ for line in joined.splitlines():+ if "python3 -" in line and "<<'PY'" in line:+ args = line.split("python3 -", 1)[1].split("<<", 1)[0]+ assert not re.search(r"KEY|TOKEN|PASSWORD|SECRET|USERNAME", args.replace("CONFIG", "")), (rel, line)diff --git a/tests/test_keywordseverywhere_api.py b/tests/test_keywordseverywhere_api.pyindex ec81d50..9421dc4 100644--- a/tests/test_keywordseverywhere_api.py+++ b/tests/test_keywordseverywhere_api.py@@ -153,3 +153,35 @@ def test_upstream_error_body_never_echoes_the_key(monkeypatch):result = ke.get_rank(["example.com"], api_key="opr_live_SECRET123")assert "opr_live_SECRET123" not in str(result)assert "<redacted>" in str(result.get("error", ""))++[email protected]("status,message", [(301, "unexpected redirect"), (200, "was not JSON")])+def test_redirects_and_non_json_bodies_get_a_clear_error(status, message) -> None:+ class Odd(FakeResponse):+ def json(self):+ raise ValueError("Expecting value: line 1 column 1")++ with patch.object(keywordseverywhere_api, "_post", return_value=Odd(status, {})):+ result = keywordseverywhere_api.get_rank(["example.com"], "opr_live_testkey")+ assert result["status"] == "error" and message in result["error"]+++def test_post_goes_through_a_pinned_session_without_following_redirects() -> None:+ calls = {}++ class Session:+ def post(self, url, **kwargs):+ calls.update(kwargs, url=url)+ return "resp"++ from contextlib import contextmanager++ @contextmanager+ def fake_session(url):+ calls["pinned"] = url+ yield Session()++ with patch.object(keywordseverywhere_api, "safe_requests_session", fake_session):+ assert keywordseverywhere_api._post(keywordseverywhere_api.KWE_BASE, json={}) == "resp"+ assert calls["pinned"] == keywordseverywhere_api.KWE_BASE+ assert calls["allow_redirects"] is False