Search Experience Optimization (SXO)

Search Experience Optimization: reads Google SERPs backwards to detect page-type mismatches, derives user stories from search intent signals, and scores pages from multiple persona perspectives.

How to use it

  1. Hit Copy SKILL.md — or use the Claude Code line below to get every file.
  2. Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
    ChatGPT: make a Project and paste it into Instructions.
    Neither? Paste it at the top of a new chat — it works for that chat.
  3. Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit AgriciDaniel/claude-seo/skills/seo-sxo#main ~/.claude/skills/seo-sxo

For one project only, change the path to .claude/skills/seo-sxo. This skill also uses render_page.py, parse_html.py — copying SKILL.md alone won't be enough. See the folder on GitHub.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text255 lines
seo-sxo/SKILL.md255 lines10.2 KBpushed 11d agoRawView on GitHub

Search Experience Optimization (SXO)

SXO bridges the gap between SEO (what Google rewards) and UX (what users need). Traditional SEO audits check technical health. SXO asks: "Does this page deserve to rank for this keyword based on what Google is actually rewarding in the SERP?"

Core Insight

A page can score 95/100 on technical SEO and still fail to rank because it is the wrong page type for the keyword. If Google shows 8 product pages and 2 comparison pages for your keyword, your blog post will never break through -- no matter how well-optimized it is.

Commands

Command Purpose
/seo sxo <url> Full SXO analysis (auto-detect keyword from page)
/seo sxo <url> <keyword> Full SXO analysis for a specific keyword
/seo sxo wireframe <url> Generate IST/SOLL wireframe with concrete placeholders
/seo sxo personas <url> Persona-only scoring (skip SERP analysis)

Execution Pipeline

Step 1: Target Acquisition

  1. Fetch the target URL via "${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run render_page.py <URL> --mode auto (SPA-aware and SSRF-safe)
  2. Parse with "${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run parse_html.py <URL> to extract: title, H1, meta description, headings hierarchy, word count, schema markup, CTAs, media elements
  3. If no keyword provided, extract primary keyword from title tag + H1 overlap
  4. Validate keyword is non-empty before proceeding

Step 2: SERP Backwards Analysis

Read references/page-type-taxonomy.md for classification rules.

  1. Search Google for the target keyword (WebSearch)
  2. For each of the top 10 organic results, record:
    • URL and domain authority tier (brand / niche authority / unknown)
    • Page type (classify using taxonomy)
    • Content format (long-form, listicle, how-to, comparison, tool, video)
    • Word count estimate (from snippet length and page structure)
    • Schema types present (from currently supported SERP features; exclude FAQ/HowTo)
    • Media signals (video carousel, image pack, thumbnail presence)
  3. Record SERP features present:
    • Featured snippet (paragraph / list / table / video)
    • People Also Ask (extract all visible questions)
    • Ads (top and bottom -- count and analyze ad copy themes)
    • Related searches (extract all)
    • Knowledge panel / local pack / shopping results
    • AI Overview presence and source types
  4. Calculate SERP consensus:
    • Dominant page type (>60% = strong consensus, 40-60% = mixed, <40% = fragmented)
    • Content depth expectations (average word count tier)
    • Schema expectation (most common structured data types)
    • Media expectations (video required? images critical?)

Step 3: Page-Type Mismatch Detection

This is the core SXO insight. Compare target page type against SERP consensus.

Mismatch severity levels:

Target Type SERP Expects Severity Recommendation
Blog Post Product Pages CRITICAL Create dedicated product page
Blog Post Comparison HIGH Restructure as comparison with matrix
Product Informational HIGH Add educational content layer
Landing Page Tool/Calculator HIGH Build interactive tool component
Service Page Local Results MEDIUM Add location signals + local schema
Any type match - ALIGNED Focus on content depth and UX

Classification rules:

  • Classify target page using references/page-type-taxonomy.md
  • Classify each SERP result using the same taxonomy
  • Flag mismatch if target type differs from SERP dominant type
  • If SERP is fragmented (no dominant type), note opportunity for differentiation

Step 4: User Story Derivation

Read references/user-story-framework.md for the full framework.

From SERP signals, derive user stories:

  1. PAA questions reveal knowledge gaps and concerns
  2. Ad copy themes reveal commercial triggers and value propositions
  3. Related searches reveal the search journey (what comes before/after)
  4. Featured snippet format reveals the expected answer structure
  5. AI Overview reveals what Google considers the definitive answer

For each signal cluster, generate a user story:

As a [persona derived from signal],
I want to [goal derived from query intent],
because [emotional driver from ad copy / PAA tone],
but I'm blocked by [barrier derived from PAA questions / related searches].

Generate 3-5 user stories covering the primary intent angles.

Step 5: Gap Analysis

Compare the target page against SERP expectations across 7 dimensions:

Dimension What to Compare Score
Page Type Target type vs SERP dominant type 0-15
Content Depth Word count, heading depth, topic coverage 0-15
UX Signals CTA clarity, above-fold content, mobile layout 0-15
Schema Markup Present vs expected structured data types 0-15
Media Richness Images, video, interactive elements vs SERP norm 0-15
Authority Signals E-E-A-T markers, social proof, credentials 0-15
Freshness Last updated, date signals, content recency 0-10

Total: 0-100 SXO Gap Score (lower = larger gap, higher = better alignment)

Step 6: Persona-Based Scoring

Read references/persona-scoring.md for methodology.

  1. Derive 4-7 personas from SERP intent signals:
    • Cluster PAA questions by theme
    • Segment ad copy by target audience
    • Map related searches to journey stages
  2. For each persona, score the target page on 4 dimensions (25 pts each):
    • Relevance: Does the page address this persona's need?
    • Clarity: Can this persona find their answer within 10 seconds?
    • Trust: Are there adequate trust signals for this persona?
    • Action: Is there a clear next step for this persona?
  3. Output persona cards with scores and specific improvement recommendations
  4. Sort recommendations by weakest persona first (biggest opportunity)

Step 7: Wireframe Generation (Optional)

Only execute when /seo sxo wireframe is invoked.

Read references/wireframe-templates.md for templates.

  1. Generate IST (current state) wireframe from parsed page structure
  2. Generate SOLL (target state) wireframe based on:
    • SERP consensus page type
    • Gap analysis findings
    • Persona scoring weaknesses
  3. Use ultra-concrete placeholders:
    • NOT: "Add a CTA here"
    • YES: "Add pricing CTA with annual savings badge below hero, linking to /pricing#enterprise"
  4. Output as semantic HTML section outline with annotations

DataForSEO Integration

If DataForSEO MCP tools are available:

  1. Before any API call, run cost estimate and confirm with user
  2. Use serp_organic_live_advanced for precise SERP data (positions, features, snippets)
  3. Use kw_data_google_ads_search_volume for search volume and competition metrics
  4. Fall back to WebSearch if DataForSEO unavailable -- note reduced precision in output

SXO Score vs SEO Health Score

The SXO score is separate from the main SEO Health Score.

  • SEO Health Score = technical compliance (crawlability, speed, schema, etc.)
  • SXO Gap Score = alignment between page and SERP expectations
  • A page can score 95 SEO + 30 SXO = technically perfect but strategically misaligned
  • Both scores should be reported together when both are available

Cross-Skill References

Finding Hand Off To
E-E-A-T gaps in persona scoring /seo content for deep E-E-A-T audit
Missing schema types /seo schema for generation
Local intent detected in SERP /seo local for GBP analysis
Content depth gaps /seo page for deep page analysis
Technical issues found during fetch /seo technical for full audit
Image/media gaps /seo images for optimization

Output Format

Full SXO Analysis

## SXO Analysis: [URL]
### Target Keyword: [keyword]

### 1. SERP Landscape
- Dominant page type: [type] ([confidence]% consensus)
- SERP features: [list]
- Content depth norm: [word count range]
- Schema expectation: [types]

### 2. Page-Type Alignment
- Your page type: [type]
- SERP expects: [type]
- Verdict: [ALIGNED | MISMATCH (severity)]
- Impact: [explanation]

### 3. User Stories (derived from SERP signals)
[3-5 user stories with source signals]

### 4. Gap Analysis (SXO Score: XX/100)
[7-dimension breakdown table]

### 5. Persona Scores
[4-7 persona cards with 4-dimension scores]

### 6. Priority Actions
[Ranked list: fix mismatch first, then weakest persona gaps]

### 7. Limitations
[What could not be assessed, data source notes]

Error Handling

Error Action
URL fetch fails Report error, suggest checking URL accessibility
No keyword provided or detected Ask user to provide target keyword
WebSearch returns <5 results Proceed with available data, note limited sample
SERP has no organic results (all ads) Note highly commercial SERP, analyze ad copy only
Target page is JavaScript-rendered Note limitation, use available HTML content
DataForSEO cost exceeds threshold Fall back to WebSearch, notify user

Quality Checklist

Before delivering results, verify:

  • Target URL was fetched via "${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run render_page.py <URL> --mode auto (not raw curl/fetch)
  • Page type classification uses taxonomy from references
  • At least 5 SERP results were analyzed
  • User stories cite specific SERP signals as evidence
  • Persona scores include concrete improvement suggestions
  • SXO score is clearly labeled as separate from SEO Health Score
  • Limitations section is present and honest
  • Cross-skill recommendations are included where relevant
1---
2name: seo-sxo
3description: >
4 Search Experience Optimization: reads Google SERPs backwards to detect page-type
5 mismatches, derives user stories from search intent signals, and scores pages
6 from multiple persona perspectives. Identifies why well-optimized pages fail
7 to rank by analyzing what Google rewards for each keyword. Use when user says
8 "SXO", "search experience", "page type mismatch", "SERP analysis", "user story",
9 "persona scoring", "why isn't my page ranking", "intent mismatch", or "wireframe".
10user-invocable: true
11argument-hint: "<url> [keyword]"
12license: MIT
13metadata:
14 author: AgriciDaniel
15 original_author: "Florian Schmitz (Pro Hub Challenge)"
16 version: "2.3.1"
17 category: seo
18---
19 
20# Search Experience Optimization (SXO)
21 
22SXO bridges the gap between SEO (what Google rewards) and UX (what users need).
23Traditional SEO audits check technical health. SXO asks: "Does this page deserve
24to rank for this keyword based on what Google is actually rewarding in the SERP?"
25 
26## Core Insight
27 
28A page can score 95/100 on technical SEO and still fail to rank because it is the
29**wrong page type** for the keyword. If Google shows 8 product pages and 2 comparison
30pages for your keyword, your blog post will never break through -- no matter how
31well-optimized it is.
32 
33## Commands
34 
35| Command | Purpose |
36|---------|---------|
37| `/seo sxo <url>` | Full SXO analysis (auto-detect keyword from page) |
38| `/seo sxo <url> <keyword>` | Full SXO analysis for a specific keyword |
39| `/seo sxo wireframe <url>` | Generate IST/SOLL wireframe with concrete placeholders |
40| `/seo sxo personas <url>` | Persona-only scoring (skip SERP analysis) |
41 
42## Execution Pipeline
43 
44### Step 1: Target Acquisition
45 
461. Fetch the target URL via `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run render_page.py <URL> --mode auto` (SPA-aware and SSRF-safe)
472. Parse with `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run parse_html.py <URL>` to extract: title, H1, meta description,
48 headings hierarchy, word count, schema markup, CTAs, media elements
493. If no keyword provided, extract primary keyword from title tag + H1 overlap
504. Validate keyword is non-empty before proceeding
51 
52### Step 2: SERP Backwards Analysis
53 
54Read `references/page-type-taxonomy.md` for classification rules.
55 
561. Search Google for the target keyword (WebSearch)
572. For each of the top 10 organic results, record:
58 - URL and domain authority tier (brand / niche authority / unknown)
59 - Page type (classify using taxonomy)
60 - Content format (long-form, listicle, how-to, comparison, tool, video)
61 - Word count estimate (from snippet length and page structure)
62 - Schema types present (from currently supported SERP features; exclude FAQ/HowTo)
63 - Media signals (video carousel, image pack, thumbnail presence)
643. Record SERP features present:
65 - Featured snippet (paragraph / list / table / video)
66 - People Also Ask (extract all visible questions)
67 - Ads (top and bottom -- count and analyze ad copy themes)
68 - Related searches (extract all)
69 - Knowledge panel / local pack / shopping results
70 - AI Overview presence and source types
714. Calculate SERP consensus:
72 - Dominant page type (>60% = strong consensus, 40-60% = mixed, <40% = fragmented)
73 - Content depth expectations (average word count tier)
74 - Schema expectation (most common structured data types)
75 - Media expectations (video required? images critical?)
76 
77### Step 3: Page-Type Mismatch Detection
78 
79This is the core SXO insight. Compare target page type against SERP consensus.
80 
81**Mismatch severity levels:**
82 
83| Target Type | SERP Expects | Severity | Recommendation |
84|-------------|-------------|----------|----------------|
85| Blog Post | Product Pages | CRITICAL | Create dedicated product page |
86| Blog Post | Comparison | HIGH | Restructure as comparison with matrix |
87| Product | Informational | HIGH | Add educational content layer |
88| Landing Page | Tool/Calculator | HIGH | Build interactive tool component |
89| Service Page | Local Results | MEDIUM | Add location signals + local schema |
90| Any type match | - | ALIGNED | Focus on content depth and UX |
91 
92**Classification rules:**
93- Classify target page using `references/page-type-taxonomy.md`
94- Classify each SERP result using the same taxonomy
95- Flag mismatch if target type differs from SERP dominant type
96- If SERP is fragmented (no dominant type), note opportunity for differentiation
97 
98### Step 4: User Story Derivation
99 
100Read `references/user-story-framework.md` for the full framework.
101 
102From SERP signals, derive user stories:
103 
1041. **PAA questions** reveal knowledge gaps and concerns
1052. **Ad copy themes** reveal commercial triggers and value propositions
1063. **Related searches** reveal the search journey (what comes before/after)
1074. **Featured snippet format** reveals the expected answer structure
1085. **AI Overview** reveals what Google considers the definitive answer
109 
110For each signal cluster, generate a user story:
111```
112As a [persona derived from signal],
113I want to [goal derived from query intent],
114because [emotional driver from ad copy / PAA tone],
115but I'm blocked by [barrier derived from PAA questions / related searches].
116```
117 
118Generate 3-5 user stories covering the primary intent angles.
119 
120### Step 5: Gap Analysis
121 
122Compare the target page against SERP expectations across 7 dimensions:
123 
124| Dimension | What to Compare | Score |
125|-----------|----------------|-------|
126| Page Type | Target type vs SERP dominant type | 0-15 |
127| Content Depth | Word count, heading depth, topic coverage | 0-15 |
128| UX Signals | CTA clarity, above-fold content, mobile layout | 0-15 |
129| Schema Markup | Present vs expected structured data types | 0-15 |
130| Media Richness | Images, video, interactive elements vs SERP norm | 0-15 |
131| Authority Signals | E-E-A-T markers, social proof, credentials | 0-15 |
132| Freshness | Last updated, date signals, content recency | 0-10 |
133 
134**Total: 0-100 SXO Gap Score** (lower = larger gap, higher = better alignment)
135 
136### Step 6: Persona-Based Scoring
137 
138Read `references/persona-scoring.md` for methodology.
139 
1401. Derive 4-7 personas from SERP intent signals:
141 - Cluster PAA questions by theme
142 - Segment ad copy by target audience
143 - Map related searches to journey stages
1442. For each persona, score the target page on 4 dimensions (25 pts each):
145 - **Relevance**: Does the page address this persona's need?
146 - **Clarity**: Can this persona find their answer within 10 seconds?
147 - **Trust**: Are there adequate trust signals for this persona?
148 - **Action**: Is there a clear next step for this persona?
1493. Output persona cards with scores and specific improvement recommendations
1504. Sort recommendations by weakest persona first (biggest opportunity)
151 
152### Step 7: Wireframe Generation (Optional)
153 
154Only execute when `/seo sxo wireframe` is invoked.
155 
156Read `references/wireframe-templates.md` for templates.
157 
1581. Generate IST (current state) wireframe from parsed page structure
1592. Generate SOLL (target state) wireframe based on:
160 - SERP consensus page type
161 - Gap analysis findings
162 - Persona scoring weaknesses
1633. Use ultra-concrete placeholders:
164 - NOT: "Add a CTA here"
165 - YES: "Add pricing CTA with annual savings badge below hero, linking to /pricing#enterprise"
1664. Output as semantic HTML section outline with annotations
167 
168## DataForSEO Integration
169 
170If DataForSEO MCP tools are available:
171 
1721. **Before any API call**, run cost estimate and confirm with user
1732. Use `serp_organic_live_advanced` for precise SERP data (positions, features, snippets)
1743. Use `kw_data_google_ads_search_volume` for search volume and competition metrics
1754. Fall back to WebSearch if DataForSEO unavailable -- note reduced precision in output
176 
177## SXO Score vs SEO Health Score
178 
179The SXO score is **separate** from the main SEO Health Score.
180 
181- SEO Health Score = technical compliance (crawlability, speed, schema, etc.)
182- SXO Gap Score = alignment between page and SERP expectations
183- A page can score 95 SEO + 30 SXO = technically perfect but strategically misaligned
184- Both scores should be reported together when both are available
185 
186## Cross-Skill References
187 
188| Finding | Hand Off To |
189|---------|-------------|
190| E-E-A-T gaps in persona scoring | `/seo content` for deep E-E-A-T audit |
191| Missing schema types | `/seo schema` for generation |
192| Local intent detected in SERP | `/seo local` for GBP analysis |
193| Content depth gaps | `/seo page` for deep page analysis |
194| Technical issues found during fetch | `/seo technical` for full audit |
195| Image/media gaps | `/seo images` for optimization |
196 
197## Output Format
198 
199### Full SXO Analysis
200 
201```
202## SXO Analysis: [URL]
203### Target Keyword: [keyword]
204 
205### 1. SERP Landscape
206- Dominant page type: [type] ([confidence]% consensus)
207- SERP features: [list]
208- Content depth norm: [word count range]
209- Schema expectation: [types]
210 
211### 2. Page-Type Alignment
212- Your page type: [type]
213- SERP expects: [type]
214- Verdict: [ALIGNED | MISMATCH (severity)]
215- Impact: [explanation]
216 
217### 3. User Stories (derived from SERP signals)
218[3-5 user stories with source signals]
219 
220### 4. Gap Analysis (SXO Score: XX/100)
221[7-dimension breakdown table]
222 
223### 5. Persona Scores
224[4-7 persona cards with 4-dimension scores]
225 
226### 6. Priority Actions
227[Ranked list: fix mismatch first, then weakest persona gaps]
228 
229### 7. Limitations
230[What could not be assessed, data source notes]
231```
232 
233## Error Handling
234 
235| Error | Action |
236|-------|--------|
237| URL fetch fails | Report error, suggest checking URL accessibility |
238| No keyword provided or detected | Ask user to provide target keyword |
239| WebSearch returns <5 results | Proceed with available data, note limited sample |
240| SERP has no organic results (all ads) | Note highly commercial SERP, analyze ad copy only |
241| Target page is JavaScript-rendered | Note limitation, use available HTML content |
242| DataForSEO cost exceeds threshold | Fall back to WebSearch, notify user |
243 
244## Quality Checklist
245 
246Before delivering results, verify:
247- [ ] Target URL was fetched via `"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo" run render_page.py <URL> --mode auto` (not raw curl/fetch)
248- [ ] Page type classification uses taxonomy from references
249- [ ] At least 5 SERP results were analyzed
250- [ ] User stories cite specific SERP signals as evidence
251- [ ] Persona scores include concrete improvement suggestions
252- [ ] SXO score is clearly labeled as separate from SEO Health Score
253- [ ] Limitations section is present and honest
254- [ ] Cross-skill recommendations are included where relevant
255 

Discussion

From GitHub

3 comments on 3 threads

Quick addendum: I'm aware there's a broader debate (see anthropics/claude-code#26179) that subagents shouldn't default to Opus/inherit since most focused, well-scoped subagent tasks do fine on Sonnet, and blanket-Opus wastes resources. I want to be clear that's not what I'm proposing here. This isn't "more Opus everywhere" — it's the opposite: keep Sonnet as the default for the 13 mechanical/extraction agents (backlinks, dataforseo, ecommerce, flow, google, image-gen, local, maps, performance, schema, sitemap, technical, visual), and only escalate the 5 agents whose job is genuinely open-endedread the rest

Alternatives

Also in SEO & keywords