All skills

Seo Hreflang

Hreflang and international SEO audit, validation, and generation. Detects common mistakes, validates language/region codes, and generates correct h…

Claude skills9 min read

By AgriciDaniel/claude-seo, MIT licence. Shared here with credit.

Hreflang & International SEO

Validate existing hreflang implementations or generate correct hreflang tags for multi-language and multi-region sites. Supports HTML, HTTP header, and XML sitemap implementations.

Validation Checks

1. Self-Referencing Tags

  • Every page must include an hreflang tag pointing to itself
  • The self-referencing URL must exactly match the page's canonical URL
  • Missing self-referencing tags cause Google to ignore the entire hreflang set

2. Return Tags

  • If page A links to page B with hreflang, page B must link back to page A
  • Every hreflang relationship must be bidirectional (A→B and B→A)
  • Missing return tags invalidate the hreflang signal for both pages
  • Check all language versions reference each other (full mesh)

3. x-default Tag

Free, for your email

Unlock the full skill and get it by email

The rest opens right here, and a copy comes to your inbox too. One email unlocks every guide and every skill. Use your real address.

Unlocks: 4. Language Code Validation · 5. Region Code Validation · 5b. Geo-targeting signal hierarchy · 5c. Region-specific Search units (EEA, South Africa, Türkiye) · 6. Canonical URL Alignment · 7. Protocol Consistency · 8. Cross-Domain Support · Common Mistakes

No spam. Reply "unsubscribe" any time and I delete your address.