Localization Pass 标志

Localization Pass

社区
XuanRanL
localization-pass

7-dimension locale adaptation (currency / units / spelling-dialect / idioms / regulations / tone / date-format) + multilingual audit (translation coverage matrix / hreflang validation / SEO parity / freshness check). Triggered when state.brief.target_market_locale != en-US, or via /locale-audit on existing multilingual directory.

概览

发布者XuanRanL
代码仓库loamwright-SEO-Skill
技能名称localization-pass
星标数
52
复刻数
9
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 XuanRanL 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Localization Pass AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/optimize/localization-pass
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/subskills/optimize/localization-pass .claude/skills/localization-pass
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Localization Pass,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Localization Pass。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Localization Pass 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Localization Pass · 7-Dimension Adaptation + Multilingual Audit

Single-article locale adaptation OR portfolio-wide multilingual quality audit.

When to invoke

  • During /article pipeline when state.brief.target_market_locale != "en-US"
  • /locale-audit <directory> — portfolio audit of existing multilingual content
  • After /article translation runs to verify per-language SEO parity
  • /locale-check workspace/{task}/draft.md — single-file dialect check

Mode 1 · Per-article dialect gate + 7-dimension adaptation

Wired v3.35 (2026-07-04): the dialect check is now the mandatory locale-spelling-check orchestrator stage — it runs on EVERY article (including en-US, where its production value is catching en-GB spellings leaking from model training data: "colour/organise/whilst" in en-US prose is an AI-tell). The executor existed since v5.0 with zero invocations (Rule 6). Evidence + thresholds: references/seo/serp-feature-value-2026.md §5.

Applied during the Optimize phase; the FULL 7-dimension adaptation applies when the target locale differs from US-English defaults.

The 7 dimensions

#DimensionExample transformation
1Currency$199 → £169 / €189 / ¥21,000
2Unitsinches → cm, lb → kg, miles → km, °F → °C
3Spelling dialectcolor → colour, organize → organise, customize → customise
4Idioms"drop the ball" (US) → "let the side down" (UK) / direct translation (non-EN)
5RegulationsFTC → ASA (UK) / ACCC (AU) / KSA (KR) / 消费者权益保护法 (CN)
6ToneUS casual → UK formal / JP polite (敬語) / DE direct
7Date formatMM/DD/YYYY → DD/MM/YYYY / YYYY-MM-DD / 令和7年

Workflow

bash
# Step 1 (WIRED, mandatory stage — runs automatically in the pipeline):
python -m scripts.lint.spelling_dialect_check --workspace {task_id} --json
# Resolves target dialect from state.brief.target_market_locale (en-US default).
# Exempt zones: References/Further Reading tail, blockquotes, code, link URLs,
# Capitalized mid-sentence proper nouns ("Labour Party", "Centre for ...").
# Gate: FAIL at drift_count >= 3 (systemic drift); 1-2 hits = warnings.
# Output: workspace/{task}/locale-spelling-lint.json (passed flag enforced by
# the orchestrator, run_pipeline._GATE_STAGES, and the pre-publish gate).

# Step 2 (repair, when the gate FAILs): apply drift_words[].use_instead
# replacements directly (deterministic word swaps — surgical Edit, cheapest
# route), then the freshness rule re-runs Step 1 automatically.
# NOTE (correction, v3.35): the pre-v3.35 claim that "the humanizer agent
# handles the locale layer" was FALSE — the humanizer has no locale code. For
# non-English locales the dialect gate no-ops and the 7-dimension adaptation
# below remains an LLM editing task guided by references/localization/{locale}.md.

# Legacy single-file form (manual diagnostics):
python -m scripts.lint.spelling_dialect_check --input {path}.md --target en-UK --json

Per-locale references (loaded on demand)

  • references/localization/{locale}.md — currency / units / regulation / cultural per market
  • references/localization/spelling/en-{US,UK,AU,CA,NZ}.md — 5 English dialect mappings

Currently supported locales (with detail-level references):

  • en-US (default), en-UK, en-AU, en-CA, en-NZ
  • de, fr, es, it, pt, nl
  • jp, kr, cn, tw, hk, sg

For new locales: ship with skeleton reference + flag for user to fill domain-specific knowledge.

Mode 2 · /locale-audit <directory> — multilingual quality control

Audits a directory of multilingual content for completeness, consistency, hreflang correctness, meta-tag parity, freshness.

Phase 1: Discovery

  1. Scan target directory. Group blog posts by language using:
    • Subdirectory names (en/, de/, fr/)
    • Frontmatter lang and translatedFrom fields
    • hreflang-map.json if present
  2. Build content matrix mapping which post exists in which languages
  3. Detect source language (most common translatedFrom target, or sourceLanguage field in hreflang-map.json)

Phase 2: Completeness audit

Translation coverage matrix:

| Post (EN) | DE | FR | ES | JA |
|-----------|----|----|----|----|
| how-to-avoid-ai-slop | ok | ok | missing | missing |
| content-marketing-2026 | ok | missing | ok | missing |

Coverage: 60% (6 of 10 expected translations present)
Missing: 4 translations needed

Phase 3: Content parity audit

For every post that exists in multiple languages:

CheckWhatSeverity
Section countSame number of H2 + H3 sectionsCritical
FAQ countSame number of FAQ itemsHigh
Image countSame number of imagesHigh
Chart countSame number of charts (SVG figures)High
Word count ratioWithin expected band (DE +20-30%, JA -20%, ES +10%)Medium
Link countSimilar internal + external link countsMedium
Citation capsule countSame number per H2 across versionsMedium
Frontmatter parityAll required fields per versionHigh

Flag every significant deviation as an issue.

Phase 4: SEO parity audit

For every language version verify:

ElementCheckSeverity
Title tagPresent, correct length for languageCritical
Meta descriptionPresent, correct length, contains a statCritical
lang attribute / frontmatter langPresent, valid ISO 639-1Critical
Schema inLanguageMatches langHigh
Schema translationOfWorkPoints to source URLHigh
Alt textTranslated (no English alt in non-EN posts)High
SlugLocalized (no English slug in non-EN posts)Medium
TagsLocalizedMedium
KeywordsLocalizedMedium

Phase 5: Hreflang audit

If hreflang-tags.html, hreflang-sitemap.xml, or hreflang-map.json exists:

CheckWhatSeverity
Self-referencingEach page references itselfCritical
Return tagsEvery relationship bidirectionalCritical
x-defaultPresent, points to source languageCritical
Language codesValid ISO 639-1 (with optional region)High
URL consistencySame protocol, trailing-slash conventionMedium
CompletenessEvery language version representedHigh

If no hreflang files exist: critical gap. Offer regeneration via translate skill.

Phase 6: Freshness audit

For posts with translatedDate frontmatter:

CheckWhatSeverity
Source updated after translationSource modified after translatedDateCritical
Translation older than 90 daysMay need refreshMedium
lastUpdated mismatch across versionsVersions out of syncMedium
File mtime newer than translatedDateContent changed without frontmatter updateWarning

Emit actionable commands per stale file:

3 translations are stale:
- de/ki-trends-2026.md (source updated 2 days ago)
  → Run: /translate en/ai-trends-2026.md --to de
- fr/ki-trends-2026.md (source updated 2 days ago)
  → Run: /translate en/ai-trends-2026.md --to fr
- es/tendencias-ia-2026.md (translation >90 days old)
  → Run: /translate en/ai-trends-2026.md --to es

Phase 7: Report

Output to projects/{slug}/locale-audit-{date}.md:

markdown
## Multilingual content audit report

### Summary
- Posts audited: [N] across [N] languages
- Overall health: [score] / 100
- Critical issues: [N]
- Warnings: [N]

### Translation coverage
[Matrix from Phase 2]

### Issues found

#### Critical
- [Issue with file references]

#### Warnings
- [Issue with file references]

#### Passed
- [Checks that passed]

### Prioritized fixes
1. [Highest-impact action]
2. [...]

### Stale-translation alerts
[Runnable commands from Phase 6]

### Quick fixes
- Run `/translate <file> --to <missing-langs>` for [N] missing translations
- Run `/multilingual` to regenerate hreflang assets
- Run `/locale <file> --locale <code>` for weak cultural adaptations

Error handling

ScenarioAction
Empty directory"No blog posts found in [path]"
Only one language presentReport coverage, suggest target languages
No hreflang filesFlag as critical gap, offer regeneration
Unrecognized file formatSkip with warning
Reference file missing for target localeFall back to nearest variant + warn

Locale-specific quirks (high-leverage examples)

German (de): 20-30% longer than English; preserve compound nouns (Marketingautomatisierung); use Sie (formal) by default unless brand voice says otherwise.

Japanese (ja): 20% shorter than English; 敬語 (formal) for B2B; consider character-level character counting not byte counting; date format YYYY-MM-DD or 令和N年.

French (fr): Espace insécable before ; ? ! :, after «»; numbers use comma decimal (3,14 not 3.14); EUR uses €.

Simplified Chinese (cn): ~50% shorter than English; full-width punctuation in body, half-width in code; date YYYY-MM-DD or YYYY年MM月DD日; avoid Taiwan-specific vocabulary.

Traditional Chinese (tw / hk): Same as cn but full-width punctuation throughout + Traditional characters + region-specific vocabulary.

Cost

For typical article localization (US → UK / non-EN):

  • 1× Claude Opus pass through 7 dimensions: ~$0.15
  • Spell/dialect lint runs: free
  • WebFetch for cultural references if needed: free
  • Total: ~$0.15 per locale

For audit mode (no rewriting):

  • Pure deterministic checks: free
  • Optional LLM summary at end: ~$0.05

See also

  • references/localization/{locale}.md — per-market detail
  • scripts/lint/spelling_dialect_check.py — verification linter
  • subskills/optimize/humanizer/SKILL.md — voice + purpose system used during adaptation

常见问题

Localization Pass AI 技能有什么作用?

7-dimension locale adaptation (currency / units / spelling-dialect / idioms / regulations / tone / date-format) + multilingual audit (translation coverage matrix / hreflang validation / SEO parity / freshness check). Triggered when state.brief.target_market_locale != en-US, or via /locale-audit on existing multilingual directory.

为什么在 TypingMind 中使用 Localization Pass?

因为您只需安装一次,就能搭配任何模型使用。Localization Pass 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Localization Pass?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/optimize/localization-pass。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Localization Pass?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Localization Pass 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Localization Pass 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Localization Pass AI 技能免费吗?

是的。XuanRanL 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇