Hreflang Audit logo

Hreflang Audit

Community
popiliadam
hreflang-audit

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.

Overview

Publisherpopiliadam
Repositoryplatinum-seo-engine
Skill namehreflang-audit
Stars
26
Forks
3
Bundled files
Instructions only
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by popiliadam on GitHub. Read the source before you install it.

Installation

Install the Hreflang Audit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/discovery/hreflang-audit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/popiliadam/platinum-seo-engine.git /tmp/platinum-seo-engine
mkdir -p .claude/skills
cp -r /tmp/platinum-seo-engine/skills/discovery/hreflang-audit .claude/skills/hreflang-audit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Hreflang Audit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Hreflang Audit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Hreflang Audit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

hreflang-audit — discovery skill (GAP-T1, FREE)

hreflang / i18n governance per rules/tech-seo-governance.md R-125 (Cluster Reciprocity), R-126 (Code & x-default Validity), R-127 (Locale Consistency, config ↔ site). Computes the reciprocity graph from hreflang_all.csv, validates codes + x-default, and joins return targets against internal_all indexability + canonicals_all — deeper, computed findings than SF's Issues-Overview "you have hreflang issues" (which already routes to the same robots_txt sheet via sf_issue_taxonomy keyword hreflang; no taxonomy change).

Single-language portfolio reality. The entire current portfolio is single-language (tr-TR / en-CA / en-NG). With zero hreflang annotations the audit returns verdict: NOT_APPLICABLE with empty findings and a rendered report — absence of hreflang is correct, not a defect. The skill fully validates clusters the moment a multi-language client signs.

Recommendation-only. The engine emits findings (master.xlsx#robots_txt, HF- prefix) + a report; the operator fixes the site (the engine has no <head>/sitemap write access and ships no hreflang generator — there is no multi-language client yet). The Excel write is behind the standard request_approval gate. No paid MCP (GSC index_inspect is optional spot-check only; there is no GSC hreflang surface).

Outputs

  • master.xlsx#robots_txt — HF-NNN findings (5-col: id/level/issue/detail/ resolution; level is severityEnum). Written via scripts/util/sheet_merge.merge_prefixed_rows(..., id_prefix="HF-") — idempotent re-runs, preserves sf_projection R-NNN and facet-nav FN- / robots-policy RP- rows. sf-import's transaction.replace wipes the sheet → re-run hreflang-audit after every sf-import (it is free and reads the same export dir).
  • outputs/reports/{date}-hreflang-audit.md — verdict + cluster count + findings table (+ a NOT_APPLICABLE note on single-language sites).
  • events.jsonl — append_provenance(source.kind="sf_csv", operation="project_excel", target_excel_sheet="robots_txt").

Body protocol

Mirrors tech-audit's shape minus the budget pre-flight (this skill is free).

  1. create_run — workflow_runner.create_run(skill="hreflang-audit", ...).
  2. read inputs — resolve latest sf-exports/{date}/raw/; read hreflang_all.csv (page Address + HTML hreflang N / HTML hreflang N URL columns), canonicals_all.csv, internal_all.csv (Indexability + Status + Canonical); read project.config.json[language.content_locale].
  3. transform (pure) —
    python
    from scripts.discovery import hreflang_audit_transform as hat
    out = hat.transform(hreflang_rows, canonical_rows, internal_rows, content_locale)
    Computes reciprocity (R-125), validates codes + x-default (R-126), checks config↔site locale consistency (R-127); joins return targets against indexability/canonical/status. Zero annotations + single locale → verdict: NOT_APPLICABLE, empty rows. The code validator is permissive (never RED on an exotic-but-valid code like zh-Hant-TW) but flags the documented uk→gb region mistake.
  4. request_approval — request_approval(...) ("N hreflang finding'i master.xlsx#robots_txt'ye yazalım mı?"); skill EXIT awaiting_approval.
  5. write_excel — on approve, sheet_merge.merge_prefixed_rows(master_xlsx, "robots_txt", out["robots_txt_rows"], id_prefix="HF-", run_id=..., project_slug=..., writer="hreflang-audit") (read-merge-write under one excel.lock via transaction.merge).
  6. render_report — render_template.py templates/reports/hreflang-audit.template.md → outputs/reports/{date}-hreflang-audit.md.
  7. provenance event — append_provenance(source.kind="sf_csv", operation="project_excel", target_excel_sheet="robots_txt", rows_written=len(rows)).
  8. complete — workflow_runner.complete(...) with string-typed outputs.

Optional live SF mode

Mirror tech-audit's use_sf_mcp_live branch (mcp__sf__sf_list_crawls → sf_load_crawl → sf_export_seo_element_urls for the Hreflang element) to source hreflang_all live; AMBER fallback to file-based on any SF MCP error (never hard fail). Default: file-based.

DURUR conditions

Stop and flag the manager — do not patch, do not fabricate.

  1. hreflang_all.csv missing — run sf-import first (or use live SF mode).
  2. hreflang_all.csv has rows but no recognisable HTML hreflang N columns (HreflangSchemaDriftError) — re-export with default data_fields or use live mode.
  3. master.xlsx#robots_txt row schema mismatch on write (RowSchemaError).
  4. PSEO_WORKSPACE_ROOT unset and no workspace_root arg.

NOT a DURUR: zero hreflang on a single-language site → NOT_APPLICABLE verdict with an empty finding set and a rendered report (the designed portfolio-wide hygiene pass).

Cross-references

  • Rules: rules/tech-seo-governance.md (R-125 / R-126 / R-127).
  • Transform: scripts/discovery/hreflang_audit_transform.py (transform, HreflangAuditError, HreflangSchemaDriftError).
  • Write path: scripts/util/sheet_merge.py (merge_prefixed_rows, prefix HF-).
  • Schemas: schemas/master-excel.schema.json#robots_txt (5-col + severityEnum), schemas/events.schema.json.
  • Template: templates/reports/hreflang-audit.template.md.
  • Command: commands/pseo-hreflang-audit.md.
  • Open question (report it, do not build): no language.alternates array exists in project-config.schema.json yet — defer until a real multi-language client signs.

Discipline checklist

  • Recommendation-only — engine never deploys; ships no hreflang generator (R-125).
  • Free — budget.uses_paid_mcp=false; no DFS; GSC index_inspect optional spot-check only.
  • Single-language PASS-trivial — zero hreflang + single locale → NOT_APPLICABLE (R-126).
  • Permissive codes — never RED on exotic-but-valid (zh-Hant-TW); flags documented uk→gb mistake (R-126).
  • Schema-first — frontmatter validates; HF- rows validate against master-excel.schema.json#robots_txt.
  • Plugin-agnostik — no slug literals; pure transform.
  • Idempotent write — merge_prefixed_rows re-lands the HF- namespace; foreign R-/FN-/RP- rows preserved.
  • Append-only — provenance via events_writer.

Frequently asked questions

What does the Hreflang Audit AI skill do?

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 (hr...

Why use Hreflang Audit on TypingMind?

Because you install it once and use it with any model. Hreflang Audit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Hreflang Audit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/popiliadam/platinum-seo-engine/tree/main/skills/discovery/hreflang-audit. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Hreflang Audit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Hreflang Audit?

As many as you like. As long as a model supports skills, you can use Hreflang Audit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Hreflang Audit AI skill free?

Yes. It is published on GitHub by popiliadam under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇