Skip to content
Skill

Hreflang international

Checks and plans hreflang language and country versions so search engines show the right

Hreflang international is an open-source agent skill for marketing and seo. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
15
Last commit
License
MIT
Listing updated

Similar skills

About Hreflang international

This skill reviews how a site serves different languages and countries, or plans that setup for a new market. It walks the agent through mapping markets to URLs, weighing country domains against subfolders and subdomains, and validating language and region codes such as en-GB, de-AT and zh-Hant against common mistakes like en-UK or jp.

The agent checks each hreflang cluster for self-references, missing return links, targets that redirect or do not return 200, and canonicals that point away from the locale. It also looks at whether the HTML, HTTP header or sitemap methods agree, whether locales are reachable without cookies or Accept-Language, and whether each version is genuinely localized in content, currency, prices and legal text. The output is a prioritised fix list with URL pairs, plus a setup plan for new markets.

The skill is a Markdown instruction file with no scripts. It expects the agent to fetch pages, headers and sitemaps, and works best with a crawler export or Search Console data filtered by country when those are available.

When your agent uses it

Check or plan language and country versions of a site so search engines show each market the right page. Use for "hreflang errors", "Google shows the wrong country version", "set up a German site", "ccTLD vs subfolder", "x-default", or missing return links in hreflang tags.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the romeo-seo plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add RomeoSEO/seo-skills
/plugin install romeo-seo@romeoseo

Or copy only this skill to ~/.claude/skills/hreflang-international:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/hreflang-international &&
cp -R "$tmp/skills/hreflang-international" ~/.claude/skills/hreflang-international &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/hreflang-international inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/hreflang-international to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/hreflang-international &&
cp -R "$tmp/skills/hreflang-international" ~/.agents/skills/hreflang-international &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/hreflang-international inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/hreflang-international to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/hreflang-international &&
cp -R "$tmp/skills/hreflang-international" ~/.cursor/skills/hreflang-international &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/hreflang-international inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/RomeoSEO/seo-skills.git --path skills/hreflang-international

Or copy the folder to ~/.gemini/skills/hreflang-international yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/hreflang-international:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/hreflang-international &&
cp -R "$tmp/skills/hreflang-international" ~/.copilot/skills/hreflang-international &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/hreflang-international inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/RomeoSEO/seo-skills.git

Then copy seo-skills/skills/hreflang-international into your agent's skills folder as hreflang-international. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Language code validation
Checks ISO language, region and script codes and flags common mistakes such as uk for the United Kingdom.
Cluster integrity checks
Verifies self-references, return links, canonical targets and x-default use across each set of alternates.
URL structure guidance
Compares country domains, subfolders and subdomains for running several markets on one site.
Canonical and duplicate review
Spots locale pages canonicalised to one language and same-language regional pages that may be merged by Google.
Locale detection and redirect review
Tests that every locale URL loads directly without forced redirects based on IP or browser language.
Market setup plan
Produces a structured plan for launching a new language or country version.

Good for

  • Find missing return links in hreflang tags across a multilingual site
  • Fix Google showing the US page to UK visitors
  • Decide between ccTLDs and subfolders for a German launch
  • Validate hreflang codes such as en-GB and pt-BR on every template
  • Plan the URL structure and hreflang setup for a new market

Hreflang international FAQ

Does the skill change my site or redirects directly?

No. It says to draft any change to redirects, geo rules, CDN settings or templates and ask permission for that specific change first.

Which hreflang implementation methods does Hreflang international cover?

HTML link tags in the head, HTTP Link headers for PDFs and other non-HTML files, and XML sitemap xhtml:link entries. It advises using one method per set of URLs.

Does Hreflang international research keywords for each market?

It points keyword research to a separate skill, seo-opportunity-research, run for each market in its own language. It says not to invent search volumes.

Which tools does Hreflang international need?

It can work from view-source, browser DevTools and Search Console, and it improves with a crawler export such as Screaming Frog or Sitebulb.

How do I install Hreflang international in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/hreflang-international to use it in all your projects, or to .claude/skills/hreflang-international in one project. Or install the romeo-seo plugin, which includes it: /plugin marketplace add RomeoSEO/seo-skills, then /plugin install romeo-seo@romeoseo.

Does Hreflang international run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Hreflang international?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Hreflang international?

The closest alternatives to Hreflang international are SEO hreflang, SEO audit, Technical SEO audit, SEO audit edho ferdian and Site migration check.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from RomeoSEO/seo-skills

  1. Checks and sets up how AI crawlers, search bots and browsing agents reach your site

    • Open source
    • 15 GitHub stars
    • Marketing and SEO
  2. Finds and fixes what AI answer engines get wrong about a business, tracing claims

    • Open source
    • 15 GitHub stars
    • Marketing and SEO
  3. Restructures a page passage by passage so AI answer engines can quote it accurately

    • Open source
    • 15 GitHub stars
    • Marketing and SEO
  4. Finds the questions buyers ask AI assistants and maps each to the page to cite

    • Open source
    • 15 GitHub stars
    • Marketing and SEO
  5. Measures and improves how AI answer engines cite and recommend a brand

    • Open source
    • 15 GitHub stars
    • Marketing and SEO
  6. Diagnoses why store products are missing or misquoted in AI shopping answers and fixes

    • Open source
    • 15 GitHub stars
    • Marketing and SEO