agricidaniel/blog-translate
> Translate existing blog posts into one or more target languages with SEO-optimized localization. Produces native-quality translations that preserve markdown structure, frontmatter, schema JSON-LD, image and chart embeds, and citation capsules. Localizes keywords, meta tags, numbers, dates, currencies, and quote styles per locale. Flags machine-translation conversion; localize handles cultural adaptation after translation completes. Use when user says "translate blog", "blog translate", "uebersetzen", "traduire", "traducir", "translate post", "blog auf Deutsch", "blog en espanol".
npx skills add https://github.com/AgriciDaniel/claude-blog --skill blog-translate
Translates an existing blog post into one or more target languages. Unlike
generic translation, this skill produces SEO-optimized, publication-ready
content with localized keywords, meta tags, and culturally correct
formatting.
> Adapted from claude-blog-multilingual by Chris Mueller (Pro Hub Challenge,
> March 2026). Original: https://github.com/Chriss54/multilingual-int
Load on demand:
references/translation-rules.md, format preservation, number/date/currencyformats per locale, quote handling, quality criteria.
references/cultural-adaptation.md, cultural profiles per locale (DACH,Francophone, Hispanic, Japanese, custom). This file is shared with
blog-localize (do not duplicate).
against the project root/current working directory. Reject symlinked paths,
traversal outside the root, files over 10 MB, and binary files.
lang field.lang attribute.--to as comma-separated Google-compatiblehreflang tags (de, fr, es-MX, ja, pt-BR, zh-Hant).
If --to is missing, ask the user once: "Which languages should I
translate to? Provide hreflang tags such as de, fr, es-MX, ja, pt-BR."
blog-multilingual, blog-localize, and blog-locale-audit: ISO 639-1
language in lowercase, optional ISO 15924 script in title case, optional
ISO 3166-1 Alpha-2 region in uppercase. Reject invalid codes with a
suggestion (jp becomes "Did you mean ja for Japanese?"). Require a
region or explicit neutral mode for ambiguous language-only targets such as
es, pt, and zh. If a target equals the normalized source language,
skip it with a notice.
Extract the translatable surface:
title, description, tags, author (only whentranslatable, e.g. role labels, not personal names).
alt text and <figcaption> content.<text> and <tspan> content; preserve every SVG attribute (x,y, font-size, fill, transform).
Preserve unchanged:
executable code, or when the user explicitly asks for localized tutorial
comments.
[INTERNAL-LINK: ...]).translate Person, Organization, or Brand names, URLs, IDs, @id, or
sameAs).
Identify the primary and secondary keywords for Phase 3.
For each target language:
market. If yes (e.g., "Content Marketing" stays in German), keep it.
description, and H2 headings consistently.
Spawn the blog-translator agent (via Task) for each target language with:
references/translation-rules.md.coverage, and formatting. Reserve brand, legal, statistic, and cultural
substitutions for blog-localize.
Run agents in parallel when translating into multiple languages.
The agent returns the fully translated post in the same format as the input.
For each translated version:
lang: "de"
translatedFrom: "en"
translatedDate: "YYYY-MM-DD"
slug: "wie-man-ki-slop-vermeidet"
DE +30%, FR +15%, JA -20%, others see references/translation-rules.md).
translations/
{lang}/{localized-slug}.{ext}
When invoked from blog-multilingual, save into
multilingual/{lang}/{localized-slug}.{ext} instead.
Before writing, slugify {localized-slug} to lowercase ASCII with only
a-z, 0-9, and hyphens, rejecting empty or reserved names. Create the
language directory from the normalized hreflang code only. Resolve the
final path and require it to stay inside the intended output root; reject
symlinked output paths.
Scan the output for machine-translation artifacts before reporting done:
the reverse).
Flag every issue inline (file path, line number, fix suggestion). The
translator agent should re-pass any flagged passage before delivery.
## Translation complete: [Original title]
### Source
- Language: [source]
- File: [source path]
### Translations
| Language | File | Keywords adapted | Status |
|----------|------|------------------|--------|
| de | translations/de/{slug}.md | [N] | ok |
| fr | translations/fr/{slug}.md | [N] | ok |
### Quality checks
- Structural integrity: pass / fail per language
- Meta tags localized: pass / fail per language
- Numbers, dates, currencies formatted per locale: pass / fail
- Keywords localized: [N] keywords adapted
- Machine-translation artifacts flagged: [N] (see notes above)
### Next steps
- Run `/blog localize <file> --locale <code>` for cultural deep-adaptation.
- Run `/blog locale-audit translations/` to verify completeness.
- Use `/blog multilingual` to combine write, translate, localize, hreflang
in one command.
| Scenario | Action |
|----------|--------|
| Unsupported language code | Suggest the correct Google-compatible hreflang code |
| Source equals a target | Skip with "Source is already in [lang]" |
| File not found | Report error with suggested path |
| Translator agent timeout | Retry once, then report partial results |
| Binary or non-text file | Report error, suggest correct file |
/blog localize <file> --locale <code>/blog locale-audit <directory>/blog multilingual <topic> --languages <codes>Take agricidaniel/blog-translate from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.