The markup checks
Every page must link to itself, and every link must be returned: if A points to B, B must point to A, or the signal fails for both. Language codes must be ISO 639-1 (en rather than eng, ja rather than jp), regions ISO 3166-1 Alpha-2 (en-GB rather than en-uk, with no es-LA or EU). Hreflang belongs only on canonical URLs and must match them exactly, trailing slash and HTTPS included.
Severity and fixes
A missing self-reference or return tag is Critical. Invalid codes, hreflang on non-canonical URLs and a Google-selected canonical that differs from the declared one are High. HTTP/HTTPS mixing and trailing-slash mismatches are Medium. Using both HTML and sitemap at once is Low.
What Google does in each market
Check 9 lists, for each country, which URL in the set gets impressions and clicks, and flags versions with zero impressions in their own market. Because Search Console credits data to the Google-selected canonical, a folded regional page needs a live search from that country before a mismatch is reported. Without Search Console data the check is marked not run, with the exports needed.
Generating the tags
It detects languages from paths, subdomains, TLDs and the lang attribute, maps equivalent pages, validates codes, adds self-references and an x-default, then outputs code. HTML tags suit pages with under 50 variants, HTTP headers suit PDFs, and an XML sitemap suits large or cross-domain sites, split at 50,000 URLs or 50MB.
Optional deeper reviews
A content parity audit compares translations by page existence, H2/H3 structure, SEO elements, word count and freshness. A cultural adaptation review scores each version 0 to 100 on CTAs, trust signals and local formats, for example 1.000,00 on de-DE pages.
Rules it keeps
Thresholds and limits written into the skill, each with the reason behind it
Missing self-referencing tags cause Google to ignore the entire hreflang set
This is why a missing self-reference is rated Critical
If page A links to page B with hreflang, page B must link back to page A
A one-way link invalidates the hreflang signal for both pages
The UK code is en-GB, because en-uk is not a valid region code
An invalid region code is rated High and gets replaced with the valid ISO code, en-GB
If a page has rel=canonical pointing elsewhere, hreflang on that page is ignored
Hreflang only works on canonical URLs that match exactly
Country targeting in Search Console is never suggested, since hreflang is the lever left
The International Targeting report and manual setting were removed in 2022
What it needs and what comes back
You give it
- A page URL or the pasted head tags of each language version
- Search Console export of clicks and impressions by page and country
- Google-selected canonical for each version from URL Inspection
- A URL or content folder for a parity audit
It hands back
A validation report with a summary, a per-URL status table, a per-country market table and recommendations, followed by corrected HTML tags, HTTP headers or an hreflang sitemap
When it helps
- Your English page ranks in Germany although a German version exists
- You are launching a new language or country version of the site
- You moved to HTTPS or a new CMS and need to confirm the hreflang sets survived
Prompts to start with
Audit hreflang on example.com/de/pricing and every alternate it lists, then tell me what is broken and give me the fixed tags
Generate an hreflang sitemap for the en-US, en-GB, fr-FR and de-DE versions of our 400 product pages, with x-default pointing to the US version
Find out from this Search Console export by page and country why our UK page keeps showing in Australian results
Adding it to Claude
claude.ai
Download hreflang-audit.zip, upload it still zipped in Settings, Capabilities, Skills and ask for the job in a new chat, as Anthropic's help article on using skills in Claude shows
Claude Code
unzip hreflang-audit.zip -d ~/.claude/skills/To use it in one project only, move the folder inside the zip (it is called seo-hreflang) into that project's .claude/skills/, as the Claude Code skills docs describe
Inside the zip
- seo-hreflang/
- CHANGES.md3 KB
- SKILL.md24 KB
- references/
- content-parity.md4 KB
- cultural-profiles.md5 KB
- locale-formats.md3 KB
- machine-translation-qa.md3 KB
Questions
Will it change hreflang on my site?
No, it returns findings and code to paste into your pages or sitemap, and you or your developer deploy it
Can it tell whether Google actually uses my hreflang?
Partly, since valid markup is checked from the pages alone, while seeing which URL Google shows in each country needs Search Console data by page and country, and without that data the check is marked as not run