Skip to content
Marketing
Skill

/seo-hreflang

Validates and generates hreflang annotations for international SEO. Checks language/region codes, self-reference, x-default, duplicates, and absolute URLs, and flags return-link reciprocity to verify; generates HTML alternate link tags and identifies HTTP Link header and XML

From plugin
designer-pro-and-seo
1045 skills13 agents4 MCP

Claude Code

$ npx -y skills add ZachArticulateV/designer-pro-and-seo --skill seo-hreflang --agent claude-code

SKILL.md

seo-hreflang.SKILL.md
name: seo-hreflang
description: Validates and generates hreflang annotations for international SEO. Checks language/region codes, self-reference, x-default, duplicates, and absolute URLs, and flags return-link reciprocity to verify; generates HTML alternate link tags and identifies HTTP Link header and XML sitemap placement. Trigger when the user says "hreflang", "i18n SEO", "international SEO", "multi-language", "multi-region", "language tags", or "regional SEO".

seo-hreflang

**Family:** seo **Status:** Stable

Purpose

Hreflang is one of the most-misimplemented SEO patterns. This skill validates and generates correct annotations and catches the mistakes that quietly break international ranking: invalid codes, missing self-reference, missing x-default, duplicates, and non-reciprocal return links.

Three valid signal locations: HTML `<link rel="alternate" hreflang>`, the HTTP `Link:` header, and XML sitemap `xhtml:link` entries.

Triggers

  • "hreflang" / "i18n seo" / "international seo"
  • "multi-language" / "multi-region" / "language tags" / "regional seo"

Inputs

  • Mode: validate | generate
  • Validate: the page's hreflang set (list of {hreflang, href}) + the page's own URL
  • Generate: a locale→URL map (+ optional x-default URL)

Steps

1. **Audit the whole cluster** (the step that matters — hreflang only works when every page lists every page, itself included, and every link is returned):

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/hreflang_tools.py" --cluster manifest.json   # {"https://site.com/": "en.html", ...}
   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/hreflang_tools.py" --cluster en.html fr.html de.html   # URLs from each page's canonical

Checks H1–H12: missing annotations, invalid codes (with fixes for `en-uk`, `jp`, `es-419` …), self-reference, x-default presence and consistency, absolute hrefs, **return links**, one code per URL, `<html lang>` agreement, and alternates that are noindex or canonicalized elsewhere (`references/seo-hreflang/cluster-rules.md`). 2. **Validate one page's set** when only a single page is available:

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/hreflang_tools.py" --validate cluster.json --self <this-page-url>

3. **Generate** a correct set:

   python3 "${CLAUDE_PLUGIN_ROOT}/scripts/seo/hreflang_tools.py" --generate --map locales.json --x-default https://site.com/

Emits the `<link rel="alternate">` tags to place on **every** alternate page, or to deliver via the `Link:` header / sitemap (sitemap alternates are checked by `sitemap_tools.py --validate`, codes S25/S26). 4. **Render** the findings by severity with fixes, or the generated blocks.

Outputs

  • Cluster report (codes, self-reference, return links, x-default, lang, noindex/canonical) with a score
  • Single-set validation report
  • Generated hreflang blocks for the chosen delivery method

Dependencies

  • `scripts/seo/hreflang_tools.py` (required) — Python 3.10+, standard library only
  • `references/seo-hreflang/cluster-rules.md` (required) — code rules, cluster checks, scoring

Notes

Conditional in `seo-audit` — only fires when multi-locale signals are present. Don't audit hreflang on single-locale sites.

Read more
@zacharticulatev
Ships withdesigner-pro-and-seo

A Claude Code plugin for the web-design + SEO workflow: research a niche, generate a coherent design system, write a complete build brief, build, run a pre-delivery QA gate, port the result into any CMS, and review on-page SEO.

1045 skills13 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10
Star history of ZachArticulateV/designer-pro-and-seo on GitHub, a chart by star-history.com

Other skills on designer-pro-and-seo.

More skills from other plugins.

seo

seo

Comprehensive SEO analysis for any website or business type. Full site audits, single-page analysis, technical SEO (crawlability,…

@agricidaniel@agricidanielInstall Skill
brag

brag

Turn the current project website into a short, polished, shareable launch video using Hyperframes. Use when someone says "/brag",…

brag3w21k
@latent-spaces@latent-spacesInstall Skill
geo-audit

geo-audit

Full website GEO+SEO audit with parallel subagent delegation. Orchestrates a comprehensive Generative Engine Optimization audit…

Questions about seo-hreflang.

Which coding agents can use seo-hreflang?
seo-hreflang installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.