← ClaudeAtlas

hreflanglisted

Implement and audit hreflang for multi-language and multi-region sites using Google's localized versions rules: self-reference, reciprocal (return) links, fully-qualified URLs, x-default, language codes (ISO 639-1) with optional region codes (ISO 3166-1 Alpha 2), and the three equivalent methods (HTML link tags, HTTP headers, XML sitemap). Use when the user asks 'hreflang', 'multilingual SEO', 'wrong country version shows in Google', 'x-default', 'en-GB vs en-UK', 'hreflang return tag errors', 'international targeting', or 'translated pages compete'. Checks pages with the sitetiller page command (hreflang array) and a bundled script for reciprocity.
sitetiller/ai-visibility-skills · ★ 0 · AI & Automation · score 75
Install: claude install-skill sitetiller/ai-visibility-skills
# hreflang Goal: each language or regional version points to all its alternates and to itself, with valid codes and URLs, so Google can show the right version to the right user. hreflang helps Google choose between your own versions. It does not raise rankings by itself, and the Google documentation read here makes no ranking claim. ## Inputs - The list of localized URLs (or a page from each language), and which method the site uses. - For each version: language, optional region, and whether any fallback page exists (language selector or auto-redirect home page). ## Rules (from Google's localized versions documentation) | Rule | Detail | |---|---| | Methods | HTML `<link rel="alternate" hreflang="..." href="...">` in `<head>`, HTTP `Link:` header, or XML sitemap. Google calls the three "equivalent". One is enough; using all adds work and no search benefit | | Self-reference | each version lists itself, and the set of tags is the same on every version | | Reciprocal links | "If two pages don't both point to each other, the tags will be ignored." | | URLs | fully qualified with protocol (`https://example.com/de/`); protocol-relative and root-relative URLs are not valid | | Domains | alternates need not share a domain | | Language code | ISO 639-1 (two letters), for example `en`, `de`, `pt` | | Region code | optional, ISO 3166-1 Alpha 2, after the language: `en-GB`, `pt-BR`. A country code alone is invalid: `GB` by itself does nothing | | Reserved codes | `EU`, `UN` and `UK`