/claude-seo-ai:seo-headings-structurefrom Claude SEO AI
Audits a web page's heading hierarchy (exactly one H1, no skipped levels, descriptive text) and HTML5 landmark usage for machine-readable outlines. Proposes fixes for heading structure and missing H1.
Ships in Claude SEO AI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A clean, single-rooted heading tree and proper semantic landmarks make a page's outline machine-readable — the same structure that AI engines use to extract answer blocks and that search engines use to understand content scope. Schema/entity context: references/schema-tier1.md.
Work from the PageSnapshot named in your dispatch envelope: read parsed from <run_dir>/pages/<slug>.json (headings[] with region, landmarks); Grep pages/<slug>.html for verbatim evidence; site artifacts live in <run_dir>/site/{robots.json,sitemaps.json,discovery.json}. Deterministic findings already emitted by audit.mjs are listed in <run_dir>/findings.deterministic.json — do not re-emit those ids; add model-judged findings only. If invoked directly with a URL/path and no snapshot exists, first run node "${CLAUDE_PLUGIN_ROOT}/scripts/snapshot.mjs" <target> --out "${CLAUDE_PLUGIN_DATA}/runs" and use the printed snapshot path.
Working from the PageSnapshot (parsed_rendered when render.used is not none, else parsed):
<h1> per page. Zero H1s, or multiple H1s, are both findings.<h2> may be followed by <h3>, not directly by <h4>). Build the outline and flag any jump.<main>, <article>, <section>, <nav>, <header>, <footer>; flag when headings live inside non-semantic <div> soup or when more than one <main> exists.Good heading structure feeds AI answer-block extraction: clear H2/H3 boundaries map to candidate quotable passages.
fix_preview diff, never an auto-write.<title>/og:title or the obvious page-title element (fixable: proposed, per-item accept — adding a visible heading is editorial). Never fabricate H1 text from thin content; ask the user if the source is ambiguous.<main>/<article> adoption is advisory (structural refactor the tool does not write).Mark each finding's fixable field consistent with schema/finding.schema.json (auto / proposed / advisory). Never fabricate a heading's text or invent an H1 from thin content — ask the user or leave a clearly-marked TODO placeholder.
dom_assert. Re-parse the snapshot, rebuild the outline, and assert the specific condition (one H1, no level skip, landmark present).node "${CLAUDE_PLUGIN_ROOT}/scripts/parse-html.mjs" --snapshot <pages/<slug>.json> (or --url <u> / --file <path>) — returns the headings block (counts per level, h1_count, and skipped_levels), which counts H1s and walks the H1-H6 tree for skipped levels.raw_html_path is present), status is needs_api, never a false pass.Emit findings per schema/finding.schema.json. Examples:
M7c.h1.multiple — more than one <h1> on the page (status fail, severity 3, fixable: proposed, axis search, confidence established). evidence.observed quotes each H1's text and selector; verification.reproduce is the parse-html.mjs command above (inspect h1_count).M7c.outline.skipped_level — an <h2> followed directly by an <h4> (status fail, severity 3, fixable: proposed, axis search, confidence directional). evidence.observed quotes the two adjacent headings and their levels.M7c.landmark.no_main — no <main> element; primary content sits in <div>s (status warn, severity 3, fixable: advisory, axis search, confidence directional).Each finding carries evidence.observed quoting the page verbatim and a runnable verification.reproduce; expected_impact is banded + confidence-tagged (no naked percentages).
directional, not a critical failure. Skipped heading levels are primarily an accessibility/structure concern — frame impact honestly (directional) rather than promising a ranking lift.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
34 skills in this plugin
/auditAudit a website or web codebase for SEO and AI-search (GEO/AEO) — produces two independent 0-100 scores (Search SEO + AI Visibility) plus a prioritized, evidence-backed report persisted on disk. Read-only; never writes to the project. Use when the user asks to audit, analyze, check, or score a site's SEO, structured data/schema, meta tags, Core Web Vitals, robots.txt, sitemaps, or AI discovery files, or how it ranks in Google and is cited by AI engines (ChatGPT, Perplexity, Google AI Overviews, Gemini, Claude)./compareCompare a site against its own baseline, against a staging deployment, against up to four competitors, or against the pages that already answer a query (content gap). Produces score, category, finding and structure deltas from persisted audit runs. Read-only. Use when the user asks what changed after a deploy, whether staging is worse than production, how they stack up against competitors, or what rivals cover that they do not./fixOpt-in fixer (the /claude-seo-ai:fix command). Applies the safe, deterministic SEO/AI-search fixes from a persisted audit to the user's site — meta viewport/charset/lang, JSON-LD, robots.txt AI directives, hreflang, sitemaps, OG/Twitter cards, image dimensions, canonical, AI discovery files — through the adapter that matches the platform (local files, Shopify theme/Admin, WordPress REST/WP-CLI, page APIs, or step-by-step instructions). Dry-run preview by default; writes only after explicit per-change confirmation. Runs only when the user invokes it — never auto-triggered./geoAnalyze and score only a page's AI-search visibility (GEO/AEO) — answer extractability, fact density, AI-crawler access and Google AI-feature snippet eligibility, entity linking, AI discovery files, and agent-readiness — and report an AI Visibility score with a citability breakdown, plus optional unscored probes (web-search presence, Search Console generative-AI impressions). Read-only. Use for "will AI engines cite this?", GEO/AEO, or ChatGPT/Perplexity/Google AI Overviews/Gemini optimization./scoreRecompute and display the two scores (Search SEO + AI Visibility) from a persisted audit run, without re-crawling. Use to re-show or refresh the scores after an audit, to score a specific run directory or host, or to score a saved findings JSON file./seo-agent-readinessAudit how well a page can be operated by AI agents and agentic browsers — semantic interactive controls (<button>/<a href> instead of div/span click handlers), named buttons and links, labeled form controls, no javascript: hrefs, primary content outside iframes, and WebMCP detection — following Google's generative-AI guidance and the web.dev agent-friendly websites guide. Module M22 "Agent-readiness". Feeds the AI Visibility score (weight 4, all directional).npx claudepluginhub hainrixz/claude-seo-ai --plugin claude-seo-aiOther plugins' skills for the same job