# Hreflang international

> Hreflang international is an open-source agent skill for marketing and seo. Checks and plans hreflang language and country versions so search engines show the right. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/RomeoSEO/seo-skills/tree/main/skills/hreflang-international
- **Repository:** https://github.com/romeoseo/seo-skills
- **GitHub stars:** 15
- **License:** MIT
- **Skill name:** hreflang-international
- **Collection:** https://github.com/RomeoSEO/seo-skills
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/RomeoSEO/seo-skills/tree/HEAD/skills/hreflang-international)
- [License: MIT](https://github.com/RomeoSEO/seo-skills/tree/HEAD/skills/hreflang-international)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [SEO hreflang](https://ai-powered.com/skills/seo-hreflang): SEO hreflang is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-coreyhaines31): SEO audit is an open-source agent skill for marketing and seo.
- [Technical SEO audit](https://ai-powered.com/skills/technical-seo-audit): Technical SEO audit is an open-source agent skill for marketing and seo.
- [SEO audit edho ferdian](https://ai-powered.com/skills/seo-audit-edho-ferdian): SEO audit edho ferdian is an open-source agent skill for marketing and seo.
- [Site migration check](https://ai-powered.com/skills/site-migration-check): Site migration check is an open-source agent skill for marketing and seo.
- [Internal linking plan](https://ai-powered.com/skills/internal-linking-plan): Internal linking plan is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-zeitlos): SEO audit is an open-source agent skill for marketing and seo.
- [SEO audit](https://ai-powered.com/skills/seo-audit-seite-sh): SEO audit is an open-source agent skill for marketing and seo.

---
Source: https://ai-powered.com/skills/hreflang-international
