New to Claude Skills? Learn how to install them →

agricidaniel on GitHub

Search Experience Optimization

Free

Align your content with user intent and SERP expectations.

Get this skill

Free · Opens the source repo

What Search Experience Optimization does

Search Experience Optimization (SXO) is a skill designed to enhance the effectiveness of your web pages by aligning them with both SEO best practices and user experience needs. Unlike traditional SEO audits that focus solely on technical aspects, SXO emphasizes the importance of page type alignment with Google’s search results. This means that even if your page is technically sound, it may not rank well if it does not match the expected page type for a given keyword. For instance, if Google displays primarily product pages for a keyword, a blog post will struggle to compete, regardless of its optimization level.

The SXO skill operates through a detailed analysis pipeline. It starts by fetching the target URL and extracting essential data such as the title, headings, and schema markup. Then, it performs a backwards analysis of Google’s SERPs for the target keyword, classifying the top results by page type and content format. This analysis helps identify any mismatches between the page type of your content and the dominant types in the SERP, allowing you to understand why your page may not be ranking as expected.

Additionally, SXO derives user stories from SERP signals, which can inform content creation and optimization strategies. By understanding the intent behind user queries and the barriers they face, you can create more targeted and effective content. The skill also includes a scoring system that evaluates your page against various dimensions such as content depth, UX signals, and schema markup, providing actionable insights for improvement.

This skill is particularly useful for content creators, SEO specialists, and web developers looking to enhance their content’s visibility and relevance in search results. By leveraging SXO, you can ensure that your pages not only meet technical SEO standards but also resonate with user intent, ultimately improving your chances of ranking higher in search results.

When to use it

Use this skill when you want to analyze a webpage's alignment with search intent and improve its ranking potential.

When not to use it

This skill may not be suitable for basic SEO audits focused solely on technical aspects without considering user experience and intent.

What you can build with it

Improving Blog Posts

Use SXO to analyze a blog post's alignment with SERP expectations and receive recommendations on how to restructure it for better ranking.

Optimizing Product Pages

Analyze product pages to ensure they meet user intent and SERP standards, enhancing their chances of ranking higher.

Creating Targeted Content

Leverage user stories derived from SXO analysis to create content that addresses specific user needs and search intent.

How to install Search Experience Optimization

View source

1. Install with the skills CLI

npx skills add agricidaniel/claude-seo/seo-sxo --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by agricidaniel

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

CommandPurpose
/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 scripts/render_page.py --mode auto (SPA-aware and SSRF-safe)
  2. Parse with scripts/parse_html.py 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 TypeSERP ExpectsSeverityRecommendation
Blog PostProduct PagesCRITICALCreate dedicated product page
Blog PostComparisonHIGHRestructure as comparison with matrix
ProductInformationalHIGHAdd educational content layer
Landing PageTool/CalculatorHIGHBuild interactive tool component
Service PageLocal ResultsMEDIUMAdd location signals + local schema
Any type match-ALIGNEDFocus 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:

DimensionWhat to CompareScore
Page TypeTarget type vs SERP dominant type0-15
Content DepthWord count, heading depth, topic coverage0-15
UX SignalsCTA clarity, above-fold content, mobile layout0-15
Schema MarkupPresent vs expected structured data types0-15
Media RichnessImages, video, interactive elements vs SERP norm0-15
Authority SignalsE-E-A-T markers, social proof, credentials0-15
FreshnessLast updated, date signals, content recency0-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

FindingHand 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

ErrorAction
URL fetch failsReport error, suggest checking URL accessibility
No keyword provided or detectedAsk user to provide target keyword
WebSearch returns <5 resultsProceed 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-renderedNote limitation, use available HTML content
DataForSEO cost exceeds thresholdFall back to WebSearch, notify user

Quality Checklist

Before delivering results, verify:

  • Target URL was fetched via scripts/render_page.py --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

Frequently asked questions about Search Experience Optimization

Similar skills