# Hreflang audit

> Hreflang audit is an open-source agent skill for marketing and seo. Checks hreflang annotations on a site crawl for reciprocity, codes and x-default. 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/popiliadam/platinum-seo-engine/tree/main/skills/discovery/hreflang-audit
- **Repository:** https://github.com/popiliadam/platinum-seo-engine
- **GitHub stars:** 26
- **License:** AGPL-3.0
- **Skill name:** hreflang-audit
- **Collection:** https://github.com/popiliadam/platinum-seo-engine
- **Categories:** [marketing and SEO](https://ai-powered.com/categories/marketing-and-seo)
- **Listing updated:** 2026-12-04

## About

This skill reviews hreflang and multi-language SEO annotations using an existing Screaming Frog crawl export rather than fetching the site itself. It builds a reciprocity graph of alternate-language links, validates language and region codes, and checks that x-default is handled, then joins return targets against indexability, canonical and status data from the same crawl.

The workflow runs a pure transform over the hreflang, canonical and internal-URL exports, compares the site's declared content locale with what the pages actually declare, and writes findings with an HF- prefix to a robots_txt sheet in a project workbook after the user approves. It also renders a markdown report with a verdict. When a site has no hreflang annotations at all, the verdict is NOT_APPLICABLE rather than a failure. The skill is recommendation-only and does not change the site.

It expects a prepared crawl export folder, a project configuration file and a master spreadsheet, and it is written in Python with Markdown templates. An optional live mode can query Screaming Frog through MCP, with a fallback to the file-based path.

## When your agent uses it

> Use when: kullanıcı "hreflang audit", "hreflang denetimi", "i18n", "dil versiyonları", "uluslararası SEO", "x-default", "hreflang reciprocity", "tek-yönlü hreflang", "yanlış dil/bölge kodu", "en-UK" der ya da /pseo-hreflang-audit çağırır. Free (paid MCP yok) — SF hreflang export okur. Also use when: aktif projenin SF crawl export'u alındı (projects/{slug}/sf-exports/{date}/raw/hreflang_all.csv); çok-dilli bir müşteri imzalandı; bulgular master.xlsx#robots_txt'ye HF- prefix'li yazılacak. TEK DİLLİ portföyde (tr-TR / en-CA / en-NG) ucuz hijyen kontrolü: stray hreflang yoksa NOT_APPLICABLE (hreflang yokluğu doğru, kusur değil). Do not use when: faceted-nav / parametre denetimi (facet-nav-audit, ayrı); robots.txt/noindex lifecycle (robots-policy-audit, ayrı); SF export yok (sf-import önce, DURUR); master.xlsx yokken (init-project önce). NOT: motor hreflang ÜRETMEZ (çok-dilli istemci + platform write access yok) — sadece dener.

## What it can access

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

- [Instructions only, no scripts](https://github.com/popiliadam/platinum-seo-engine/tree/HEAD/skills/discovery/hreflang-audit)
- [License: AGPL-3.0](https://github.com/popiliadam/platinum-seo-engine/tree/HEAD/skills/discovery/hreflang-audit)

## Features

- **Reciprocity graph check:** Finds alternate-language links that do not point back to the source page.
- **Language code validation:** Flags invalid or mistaken region codes while accepting valid script-tagged codes.
- **x-default verification:** Checks the x-default fallback declaration across page clusters.
- **Indexability join:** Matches return targets against indexability, canonical and status data from the crawl.
- **Locale consistency check:** Compares the project's configured content locale with the locales pages declare.
- **Findings written to workbook:** Adds HF- prefixed rows to a robots_txt sheet after approval, without duplicating prior runs.

## Good for

- Audit hreflang tags after a Screaming Frog crawl of a multilingual site
- Find one-way hreflang links between language versions
- Check whether x-default is set correctly across language clusters
- Spot wrong language or region codes such as en-UK in hreflang tags
- Confirm that a single-language site has no stray hreflang annotations

## Install

### Claude Code

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

```sh
/plugin marketplace add popiliadam/platinum-seo-engine
/plugin install platinum-seo-engine@platinum-seo-marketplace
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/hreflang-audit &&
cp -R "$tmp/skills/discovery/hreflang-audit" ~/.claude/skills/hreflang-audit &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/hreflang-audit &&
cp -R "$tmp/skills/discovery/hreflang-audit" ~/.agents/skills/hreflang-audit &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/hreflang-audit &&
cp -R "$tmp/skills/discovery/hreflang-audit" ~/.cursor/skills/hreflang-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/hreflang-audit` 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/popiliadam/platinum-seo-engine.git --path skills/discovery/hreflang-audit
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/hreflang-audit &&
cp -R "$tmp/skills/discovery/hreflang-audit" ~/.copilot/skills/hreflang-audit &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git
```

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

## FAQ

### What input does the skill need?

It reads the hreflang, canonical and internal URL CSV exports from a Screaming Frog crawl stored in the project's sf-exports folder, plus the project configuration file and master workbook.

### Does Hreflang audit change the website?

No. It produces findings and a report only. The operator fixes the site, and the workbook write needs approval first.

### What happens on a site with no hreflang tags?

The verdict is NOT_APPLICABLE with an empty findings set and a rendered report, since the absence of hreflang is expected on a single-language site.

### Does Hreflang audit cost anything to run?

The skill is free and uses no paid MCP service; a Google Search Console inspection is only an optional spot-check.

### Should Hreflang audit run after every crawl import?

Yes. The sf-import step clears the robots_txt sheet, so the audit should be re-run after each import.

### How do I install Hreflang audit in Claude Code?

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

### Does Hreflang audit 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 audit?

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 audit?

The closest alternatives to Hreflang audit are Hreflang international, SEO hreflang, Internal links, Facet nav audit and SEO audit edho ferdian.

## Where this comes from

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

## Alternatives

- [Hreflang international](https://ai-powered.com/skills/hreflang-international): Hreflang international is an open-source agent skill for marketing and seo.
- [SEO hreflang](https://ai-powered.com/skills/seo-hreflang): SEO hreflang is an open-source agent skill for marketing and seo.
- [Internal links](https://ai-powered.com/skills/internal-links): Internal links is an open-source agent skill for marketing and seo.
- [Facet nav audit](https://ai-powered.com/skills/facet-nav-audit): Facet nav 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.
- [SEO audit](https://ai-powered.com/skills/seo-audit-coreyhaines31): SEO audit is an open-source agent skill for marketing and seo.
- [Schema audit](https://ai-powered.com/skills/schema-audit): Schema audit is an open-source agent skill for marketing and seo.
- [Refresh audit](https://ai-powered.com/skills/refresh-audit): Refresh audit is an open-source agent skill for marketing and seo.

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