seo-hreflang

Validate and generate hreflang tags for HTML, HTTP headers, or XML sitemaps.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/chapter42/42-SEO-Skills --skill seo-hreflang-chapter42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: seo-hreflang
Source: https://github.com/chapter42/42-SEO-Skills/tree/main/skills/42-hreflang
Command: npx skills add https://github.com/chapter42/42-SEO-Skills --skill seo-hreflang-chapter42

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Validates and generates proper hreflang implementations for multilingual and multi-region sites to ensure correct language relationships and signals.

Core Features & Use Cases

  • Self-referencing tag validation on every URL and bidirectional return tags between language variants.

  • x-default handling and ISO language/region code validation, with protocol and canonical URL consistency checks.

  • hreflang generation for HTML, HTTP headers, or XML sitemaps, plus cross-domain support for multi-domain sites.

  • Use case: You operate a site with en-US, fr-FR, and de-DE versions and need to ensure all pages are correctly linked with hreflang attributes and a proper x-default page.

Quick Start

Provide the target URL and preferred output method to generate and validate hreflang tags.

Frequently Asked Questions about seo-hreflang

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate hreflang tags for a multilingual site?

Generate hreflang tags for a multilingual site by providing the target URL and preferred output method to validate and format attributes for HTML, HTTP headers, or XML sitemaps using correct ISO language and region codes.

Why does my hreflang implementation require bidirectional return tags?

Hreflang implementation requires bidirectional return tags because every URL must contain self-referencing tags and reciprocal links to all language variants to ensure search engines correctly validate language relationships and signals across pages.

How do I handle the x-default page in international SEO?

Handle the x-default page in international SEO by configuring a fallback URL for unmatched language preferences, ensuring proper x-default handling alongside validated ISO language and region codes and consistent cross-domain URLs.

Can I use cross-domain hreflang for multi-domain sites?

You can use cross-domain hreflang for multi-domain sites because the implementation explicitly supports multi-domain configurations, verifying protocol and canonical URL consistency while generating tags across HTML, HTTP headers, or sitemaps.

What is the best way to validate ISO language codes for hreflang?

The best way to validate ISO language codes for hreflang is to process target URLs through an automated validation that checks ISO language and region codes, self-referencing tags, and canonical URL consistency across all language versions.