- Home
- Skills
- Marketing & SEO
- Hreflang Tag Generator & Checker for Multilingual Sites
Works with the AI Agents you already use
Hreflang Tag Generator & Checker for Multilingual Sites
Builds hreflang tags, an XML sitemap and HTTP Link headers from a CSV of language versions, and checks saved pages or a sitemap for wrong codes like en-UK or jp, missing return links, x-default and canonical conflicts.
$7.99
Hreflang Tag Generator & Checker for Multilingual Sites
Example session with this skill installed
Generate hreflang tags for three versions of my homepage: English (global), Japanese, and Simplified Chinese for Singapore. The URLs are https://site.com/, https://site.com/ja/, and https://site.com/zh-sg/.
- Read your context and instructions
- Compiled the hreflang tag generator
I have generated the hreflang annotations for your homepage group. The configuration includes the x-default fallback for the English global version and uses the specific zh-SG code for the Singapore market.
Hreflang Configuration
| Version | URL | Hreflang Code | Role |
|---|---|---|---|
| Global / English | https://site.com/ | en, x-default | Primary/Fallback |
| Japanese | https://site.com/ja/ | ja | Regional |
| Chinese (SG) | https://site.com/zh-sg/ | zh-Hans-SG | Regional (Script + Region) |
HTML Head Tags
<link rel="alternate" hreflang="x-default" href="https://site.com/" />
<link rel="alternate" hreflang="en" href="https://site.com/" />
<link rel="alternate" hreflang="ja" href="https://site.com/ja/" />
<link rel="alternate" hreflang="zh-Hans-SG" href="https://site.com/zh-sg/" />
Sitemap XML Snippet
<url>
<loc>https://site.com/</loc>
<xhtml:link rel="alternate" hreflang="x-default" href="https://site.com/"/>
<xhtml:link rel="alternate" hreflang="en" href="https://site.com/"/>
<xhtml:link rel="alternate" hreflang="ja" href="https://site.com/ja/"/>
<xhtml:link rel="alternate" hreflang="zh-Hans-SG" href="https://site.com/zh-sg/"/>
</url>
Next steps
- Self-Reference Check: Ensure each of these pages contains the full set of links including itself.
Canonical Alignment: Verify that https://site.com/zh-sg/ has a self-referencing canonical tag and does not point to the English version.
3.
Baidu Optimization: For the Chinese version, ensure <html lang="zh-SG"> is set, as Baidu ignores these hreflang tags.
Connects securely to your tools. The creator never sees your data.
About this skill
Hreflang tells search engines which language or country version of a page to show, and one wrong code or missing return link can make them ignore the whole set. This skill builds the annotations from a simple sheet and checks what is already on your site, with extra care for Chinese, Japanese and Korean markets.
What it does
- Code planner: picks valid codes (ISO 639-1 language, optional script, ISO 3166-1 region), including zh-Hans, zh-Hant, zh-TW, zh-HK, ja and ko, and explains when to use x-default.
- Generator: a standard-library Python script turns a CSV of page groups into head link tags for every page, an XML sitemap with xhtml:link alternates, and HTTP Link headers for PDFs.
- Checker: reads saved HTML pages and/or your sitemap and flags invalid codes (en-UK, jp, cn, es-419), missing self-references, non-reciprocal return links, incomplete sets, missing x-default, relative URLs, duplicate languages, and HTML vs sitemap conflicts.
- Canonical conflicts: catches translations canonicalized to another language and alternates that point to non-canonical URLs.
- Translation flags: html lang mismatches, Simplified text on Traditional pages and the reverse, Japanese pages with no kana, and titles left untranslated.
- Other engines: plain notes on Baidu (no hreflang support), Naver, Bing and Yandex, plus site structure advice for ccTLDs, subfolders and subdomains.
How it works
- List your language versions in a CSV (group, URL, code) or save your live pages.
- Run the build or check command; the skill explains each finding.
- Paste the tags, sitemap or headers into your site and re-check.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Marketing & SEO.
Works from a CSV, saved HTML files and sitemap files; it does not crawl your site, fetch URLs or read Search Console. Translation checks are simple heuristics and need a native speaker's review. Correct hreflang helps engines show the right version but there is no ranking guarantee.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 12 days ago
- Accounts
Sitemaps
- Software
Python 3
Permissions
Allowed Hosts