Agent skill · Security

seo-hreflang

Hreflang and international SEO audit, validation, and generation. Detects common mistakes, validates language/region codes, and generates correct hreflang implementations. Use when user says "hreflang", "i18n SEO", "international SEO", "multi-language", "multi-region", or "language tags".

Infrasity-Labsgithub.com/Infrasity-LabsGitHub ↗
claude-codeMIT
Install
npx skills add Infrasity-Labs/dev-gtm-claude-skills --skill seo-hreflang --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 11 KB
Bundled scripts: none
Path: .claude/skills/seo-hreflang/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 97
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 - Required: designates the fallback page for unmatched languages/regions - Typically points to the language selector page or English version - Only one x-default per set of alternates - Must also have return tags from all other language versions ### 4. Language Code Validation - Must use ISO 639-1 two-letter codes (e.g., `en`, `fr`, `de`, `ja`) - Common errors: - `eng` instead of `en` (ISO 639-2, not valid for h

What's inside
Steps it walks through
  1. Validation Checks
  2. 1. Self-Referencing Tags
  3. 2. Return Tags
  4. 3. x-default Tag
  5. 4. Language Code Validation
  6. 5. Region Code Validation
  7. 6. Canonical URL Alignment
  8. 7. Protocol Consistency
  9. 8. Cross-Domain Support
  10. Common Mistakes
  11. Implementation Methods
  12. Method 1: HTML Link Tags
  13. Method 2: HTTP Headers
  14. Method 3: XML Sitemap (Recommended for large sites)
Ships with 4 files
  • references/content-parity.md
  • references/cultural-profiles.md
  • references/locale-formats.md
  • references/machine-translation-qa.md
More from dev-gtm-claude-skills
All skills →
About this skill
What does the seo-hreflang skill do?

Hreflang and international SEO audit, validation, and generation. Detects common mistakes, validates language/region codes, and generates correct hreflang implementations. Use when user says "hreflang", "i18n SEO", "international SEO", "multi-language", "multi-region", or "language tags".

How do I install it?

Run `npx skills add Infrasity-Labs/dev-gtm-claude-skills --skill seo-hreflang --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From Infrasity-Labs/dev-gtm-claude-skills, a repository with 97 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going