← ClaudeAtlas

generating-hreflanglisted

Use when setting up international and multilingual SEO — configuring hreflang alternate tags, XML sitemap language alternates, x-default fallbacks, and multi-region targeting. Enforces Google's strict bidirectional reciprocity rule, ISO 639-1 language and ISO 3166-1 region validation, and generates framework-native code (Next.js, Astro, SvelteKit) or sitemap entries. Triggers on "hreflang", "multilingual SEO", "multi-language sitemap", "international SEO", "x-default", "localize site for SEO", "alternate language tags", or when expanding a site to multiple locales.
benskamps/seo-superpower · ★ 1 · Web & Frontend · score 67
Install: claude install-skill benskamps/seo-superpower
# Generating & Configuring Hreflang ## Overview Hreflang tells search engines which language and regional version of a page to serve based on the searcher's locale. In multilingual setups, misconfigured hreflang tags cause duplicate content cannibalization, wrong-region SERP rankings, and lost international traffic. Google's hreflang parser is strict and unforgiving: **if alternate links are not bidirectional (reciprocal), Google completely ignores them** [1]. Furthermore, modern AI search engines (ChatGPT, Perplexity, Claude) inspect locale-specific canonicals and alternates to attribute region-specific citations. The job: map alternate URLs, enforce reciprocal linkage and `x-default`, validate language/region codes against ISO standards, and generate clean HTML tags, XML sitemap blocks, or framework metadata. --- ## The Four Non-Negotiable Hreflang Laws 1. **Bidirectional Reciprocity is Mandatory:** - If Page A (`https://example.com/en`) specifies Page B (`https://example.com/es`) as its Spanish alternate, Page B **must** specify Page A as its English alternate. - If reciprocity is broken anywhere in the chain, Google discards the tags for both pages [1]. 2. **Self-Referential Links are Required:** - Every page's alternate set must include an alternate link pointing to itself with its own language tag. 3. **`x-default` Fallback Must Be Defined:** - Always include an `x-default` tag pointing to a generic global landing page, language selector, or default l