hreflang
What it does
This skill checks that a site with several languages or regions tells search engines how its pages relate. It is for site owners who publish in more than one language.
When to use it
- ✓When your site has the same page in English, French and other languages.
- ✓When search results show the wrong language version to users.
- ✓When you add a new language or region to an existing site.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hreflang/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you add the right language tags so French users see the French page?”
5 new skills a week. 1 minute to read.
How it works
The agent checks for hreflang tags that link each language version to the others, including an x-default fallback. It also checks that the links go both ways and use the correct language codes.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Add hreflang tags for multilingual sites
Without hreflang, users searching in French might see your English page—proper implementation ensures the right language version appears in search results for each region.
Quick Reference
- hreflang tells search engines which language version to show users
- Always include x-default for fallback/language selector pages
- Must be reciprocal—all pages must link to all variations
- Use ISO 639-1 language codes and ISO 3166-1 Alpha-2 regions
Check
Check if this multilingual website properly implements hreflang tags for language and regional targeting.
Fix
Add appropriate hreflang tags to indicate language and regional variations of this page.
Explain
Explain how hreflang tags help search engines serve the correct language version to users in different regions.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Add hreflang tags for multilingual sites. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
FAQ
What is x-default?
It is a fallback tag for pages that suit any visitor, such as a language selector page.
Why must the links go both ways?
The skill says every version must link to all the others, otherwise search engines may ignore the tags.
Which codes are used?
The skill uses ISO 639-1 language codes and ISO 3166-1 Alpha-2 region codes.
Details
Original description by the author
Use when auditing metadata, crawlability, structured data, or indexability related to Add hreflang tags for multilingual sites. Verify the rendered HTML and HTTP response rather than relying only on source files.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2869
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.