agentleFS
ZachArticulateVZachArticulateV/designer-pro-and-seo/skills/seo-hreflang/SKILL.md

seo-hreflang

Skill10 starsChanged 28 days agoMITView on GitHub

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

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use seo-agentic, seo-flow and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AgriciDanielSkill

    seo-agentic

    Audit and fix agent readiness: the Lighthouse Agentic Browsing fraction, accessibility tree for agents, robots.txt and Content-Signal for AI agents, WAF treatment of agent traffic, llms.txt, Markdown delivery, ai-catalog.json, /.well-known discovery files, and WebMCP tools. Use when the user asks whether AI agents can use or browse the site, or about llms.txt or WebMCP. Exclude AI citability and brand signals (seo-geo) and commerce protocol depth (seo-ecommerce).

    Also in 4 projects that use this

  • timruebenachSkill

    seo-flow

    FLOW framework integration — evidence-led SEO using the Find → Leverage → Optimize → Win loop. Surfaces stage-specific AI prompts from the FLOW knowledge base (41 prompts, CC BY 4.0). Use when user says "FLOW", "FLOW framework", "seo flow", "evidence-led SEO", "find leverage optimize win", or wants stage-specific SEO prompts.

    Also in 8 projects that use this

  • timruebenachSkill

    seo-maps

    Maps intelligence for local SEO — geo-grid rank tracking, GBP profile auditing via API, review intelligence across Google/Tripadvisor/Trustpilot, cross-platform NAP verification (Google/Bing/Apple/OSM), competitor radius mapping, and LocalBusiness schema generation from API data. Three-tier capability: free (Overpass + Geoapify), DataForSEO (full intelligence), DataForSEO + Google (maximum coverage). Use when user says "maps", "geo-grid", "rank tracking", "GBP audit", "review velocity", "competitor radius", "maps analysis", "local rank tracking", "Share of Local Voice", or "SoLV".

    Also in 8 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Validate one page's set: when only a single page is available:

    line 44
  2. Distinctive:

    Don't audit hreflang on single-locale sites.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.