heading-structure-audit

heading-structure-audit is a skill for Claude Code, Codex from JakeLabate/Claude-SEO-Skills. It costs 94 tokens per session (1,464 once invoked), scanned A, original, MIT.

A website heading checker that reviews H1 to H6 headings, which organize page content for readers and search engines.

In plain words
What is it for?
Use it to review a whole website, a section, or selected pages and produce a report on heading structure, SEO, and accessibility issues.
Why use it?
It finds missing, repeated, empty, badly ordered, overly long, or duplicated headings that can hurt search visibility and make pages harder to use with accessibility tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review a whole website, a section, or selected pages and produce a report on heading structure, SEO, and accessibility issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jakelabate/claude-seo-skills/heading-structure-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JakeLabate/Claude-SEO-Skills --skill heading-structure-audit
Clone the repo
git clone --depth 1 https://github.com/JakeLabate/Claude-SEO-Skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for heading-structure-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/heading-structure-audit/github.svg)](https://agentmods.dev/skills/jakelabate/claude-seo-skills/heading-structure-audit)
Your own site
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/heading-structure-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/heading-structure-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for heading-structure-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/jakelabate/claude-seo-skills/heading-structure-audit"><img src="https://agentmods.dev/badge/skills/jakelabate/claude-seo-skills/heading-structure-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.01464
Opus 5 $0.00047 $0.00732
Sonnet 5 $0.00019 $0.00293
Haiku 4.5 $0.00009 $0.00146

Measured 12d ago against content hash cfe1cf65d6f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

heading-structure-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/audit_headings.py, scripts/extract_headings.py, scripts/fetch_pages.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/heading-structure-audit/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Heading Structure Audit

Audit the heading hierarchy (H1–H6) of a website and produce an actionable SEO and accessibility report.

When to use this skill

Use this skill when the user asks to:

  • Audit or analyze the heading tags or heading hierarchy of a website
  • Find pages with missing, empty, or multiple H1s
  • Find broken outlines: skipped heading levels (e.g., H2 jumping to H4) or pages that don't start at H1
  • Identify overly long or duplicated headings
  • Improve content structure, document outline, or accessibility of headings

Inputs to collect

Before starting, confirm with the user:

  1. Site URL or local files — a live site root URL (e.g., https://example.com), a sitemap URL, a list of URLs, or a local folder of HTML files.
  2. Scope — full site, a specific section (e.g., /blog/), or a list of URLs.
  3. Crawl limits — max pages (default 500) for live crawls.
  4. Long-heading threshold — character count above which a heading is "too long" (default 70).

Workflow

Step 1: Gather the page set and extract headings

  • If a sitemap is available (/sitemap.xml), it is used to get the canonical page list.
  • Otherwise, the crawler starts from the homepage following only same-host links.
  • For local HTML folders, all .html files are enumerated.

Use scripts/extract_headings.py to build a heading inventory:

python3 scripts/extract_headings.py https://example.com --max-pages 500 --output heading_inventory.json
# already crawled once (e.g. in a full SEO audit)? skip the crawl and reuse the shared cache:
# python3 scripts/fetch_pages.py https://example.com --output page_cache.json
# python3 scripts/extract_headings.py --from-cache page_cache.json --output heading_inventory.json

For every page the inventory records the <title> and the full list of headings in document order, each with its level (1–6) and trimmed text.

Step 2: Run the audit checks

Use scripts/audit_headings.py to run all audit checks against the inventory:

Read the full file on GitHub · 125 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 125 lines · 94 tokens per session scan A cfe1cf65d6f2

Subscribe to this mod's changes

heading-structure-audit is a skill published in the GitHub repository JakeLabate/Claude-SEO-Skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 94 tokens to every session and 1,464 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.