Install
$ agentstack add skill-hainrixz-claude-seo-ai-seo-headings-structure ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
seo-headings-structure (M7c)
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.
Audits
Working from the PageSnapshot (rendered_dom if present, else raw_html):
- Single H1: exactly one `` per page. Zero H1s, or multiple H1s, are both findings.
- No skipped levels: nesting descends one level at a time (an `
may be followed by, not directly by`). Build the outline and flag any jump. - Descriptive text: each heading names its section in human terms — flag empty headings, headings used purely for visual styling, and generic placeholders ("Section 1", "Welcome").
- Semantic landmarks: detect `
,,,,,; flag when headings live inside non-semanticsoup or when more than one` exists. - Outline ↔ landmark agreement: sectioning elements should carry their own heading; orphan landmarks and headings outside any landmark are findings.
Good heading structure feeds AI answer-block extraction: clear H2/H3 boundaries map to candidate quotable passages.
Fixes
- Heading-level restructuring — re-leveling H2-H6 to remove skips or to nest correctly (fixable: proposed). This alters the visual hierarchy, so it requires per-item accept; emit a
fix_previewdiff, never an auto-write. - Add a single missing H1 — when the page has no H1, propose one sourced from the populated `
/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. - Wrap in semantic landmarks — recommending `
/` 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.
Verification
- Method:
dom_assert. Re-parse the snapshot, rebuild the outline, and assert the specific condition (one H1, no level skip, landmark present). - Offline reproduce:
node ${CLAUDE_SKILL_DIR}/../../scripts/parse-html.mjs --url(or--file) — returns theheadingsblock (countsper level,h1_count, andskipped_levels), which counts H1s and walks the H1-H6 tree for skipped levels. - When the rendered DOM tier is required but unavailable (heading injected client-side and only
raw_htmlis present), status isneeds_api, never a falsepass.
Findings
Emit findings per schema/finding.schema.json. Examples:
M7c.h1.multiple— more than one `on the page (statusfail, severity 3,fixable: proposed, axissearch, confidenceestablished).evidence.observedquotes each H1's text and selector;verification.reproduceis theparse-html.mjscommand above (inspecth1_count`).M7c.outline.skipped_level— an `followed directly by an(statusfail, severity 3,fixable: proposed, axissearch, confidencedirectional).evidence.observed` quotes the two adjacent headings and their levels.M7c.landmark.no_main— no `element; primary content sits ins (statuswarn, severity 3,fixable: advisory, axissearch, confidencedirectional`).
Each finding carries evidence.observed quoting the page verbatim and a runnable verification.reproduce; expected_impact is banded + confidence-tagged (no naked percentages).
Honesty
- Heading keyword stuffing does not buy ranking — write headings for the reader; clarity is the signal, not keyword density. Don't recommend cramming terms into H1/H2.
- Multiple H1s are valid HTML5 and modern parsers/AI tolerate them; the real cost is a muddied outline, so treat as severity 3
directional, not a critical failure. Skipped heading levels are primarily an accessibility/structure concern — frame impact honestly (directional) rather than promising a ranking lift.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Hainrixz
- Source: Hainrixz/claude-seo-ai
- License: MIT
- Homepage: https://tododeia.com
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.