Aller au contenu
Skillsify
Retour au registre
SEOv1.0.1512 installations

hreflang-cluster-check

Validates hreflang and canonical clusters across a multilingual site. Use when the user asks why the wrong language ranks, reports hreflang errors in Search Console, or is launching a new locale.

SchémaAnalyseTrigger

Installation

npx skillsify add hreflang-cluster-check

hreflang échoue en silence : rien n'affiche d'erreur, c'est simplement la mauvaise langue qui se positionne. Cette skill énumère chaque variante linguistique d'une page représentative et vérifie les quatre modes de défaillance qui expliquent presque toutes les casses réelles — déclarations non réciproques, canonical inter-langues, x-default manquant ou dupliqué, et codes BCP-47 invalides. Les constats sont rapportés par URL, car un verdict au niveau du site n'est pas actionnable.

Rapport de qualité

Devrait se déclencher

  • Google shows the English page to Spanish users
  • Search Console reports hreflang no return tags
  • We are adding a French locale, check the setup
  • Why is the Arabic version not indexed?

Ne devrait pas se déclencher

  • Optimise this SQL query
  • Set up a CI pipeline

Fichiers

SKILL.md
---
name: hreflang-cluster-check
description: Validates hreflang and canonical clusters across a multilingual site. Use when the user asks why the wrong language ranks, reports hreflang errors in Search Console, or is launching a new locale.
---

# hreflang cluster check

## When to use this
The wrong language ranks, Search Console reports hreflang errors, or a new
locale is being launched.

## Procedure
1. Enumerate every locale and the URL pattern for each.
2. For one representative page, fetch **every** locale variant.
3. Check the four failure modes listed in [references/failure-modes.md](references/failure-modes.md).
4. Report per-URL, not per-site. "hreflang is broken" is not a finding.

## Rules
- Reciprocity is mandatory: if page A declares B, then B must declare A. A
  one-way declaration is ignored entirely by search engines.
- Every cluster needs exactly one `x-default`.
- Each locale variant must canonicalise to **itself**, never across locales.
  A cross-locale canonical removes the page from the index.
- Language codes must be valid BCP-47. `en-UK` is not a language code; `en-GB` is.
references/failure-modes.md
# The four hreflang failure modes

1. **Non-reciprocal** — A points at B, B does not point back. Search engines
   discard the whole relationship.
2. **Cross-locale canonical** — the Spanish page canonicalises to the English
   one, so the Spanish page never enters the index.
3. **Missing or duplicated x-default** — no fallback for unmatched locales, or
   two competing fallbacks.
4. **Invalid code** — a region used as a language, an underscore instead of a
   hyphen, or a non-existent subtag.

Skills associées

PerformanceVérifiée

core-web-vitals-audit

Audits a web application for Core Web Vitals regressions. Use when the user asks to check LCP, INP or CLS, investigate a Lighthouse score drop, or review front-end performance before a release.

1 284 installations · v1.2.0

TestsVérifiée

flaky-test-hunter

Finds and diagnoses flaky tests in a test suite. Use when tests pass locally but fail in CI, when a suite fails intermittently, or when the user asks to stabilise or de-flake their tests.

963 installations · v1.1.0

SécuritéVérifiée

dependency-risk-review

Reviews third-party dependencies for supply-chain and licence risk. Use when the user asks to audit dependencies, evaluate whether to add a package, review a lockfile diff, or check licence compatibility.

741 installations · v1.0.3