/agent-skills:translate-sitefrom agent-skills
Translates multilingual site content using AI: Rosey locale JSON files (untranslated/stale entries) and per-locale content directories (MDX/MD with frontmatter). Use for filling missing translations, updating stale ones, or bulk-translating a locale.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Two translation systems can run on the same site, and this skill covers both:
| Part | What it holds | Section |
|---|---|---|
Rosey locale JSON (rosey/locales/{code}.json) | Shared UI and any page text tagged with data-rosey — nav, footer, headings, buttons, breadcrumbs, and (for non-split pages) whole page bodies | Part 1 |
Content collection files (blog_fr/, content_fr/ …) | Per-locale body content + frontmatter (title, description, alt text, page-builder text) that the SSG renders natively per locale | Part 2 |
Most Rosey sites only need Part 1. Only reach for Part 2 if the project actually has per-locale content directories: split-by-directory (the make-site-multilingual skill, Phase 8), or Hugo languages (its Hugo setups A and B). On a Rosey site, a split-by-directory page needs both: its body comes from a content collection file (Part 2), its shared UI from the locale JSON (Part 1). A Hugo site without Rosey (setup A) needs only Part 2.
This skill is written for AI coding agents, but the process works with any AI tool that reads and writes JSON.
value still equals original, and the entry wasn't deliberately kept)blog_fr/, blog_de/) need their bodies and frontmatter translatedrosey/locales/, and no per-locale content directories. Set it up with make-site-multilingual first.make-site-multilingual| File | Covers |
|---|---|
| SKILL.md (this file) | Which part applies, and why the file format suits AI translation |
| locale-files.md | Part 1, most sites need only this — rosey/locales/{code}.json |
| content-directories.md | Part 2 — per-locale content directories, only if the site is split-by-directory |
| scripts/README.md | The prepare/merge scripts both parts drive |
Rosey locale files are flat JSON with a predictable three-field structure per entry. That gives an agent three properties that make translation efficient and safe:
write-locales have value set to the source original. Comparing value to original instantly identifies what's untranslated; already-translated entries are left untouched. No diffing, no external state, no tracking database.git diff.nav:about, index:hero:title, blog:recent-posts), which disambiguates short strings ("More", "Back", "Home") without a screenshot.The data format is the state management: read a JSON file, find entries where value === original, translate them, write the file. The one exception is an entry deliberately left the same as its original (a brand name); merge-translation.mjs records those in rosey/translate-site-keep.json so they aren't offered again.
This section is a living document. When you discover new patterns, issues, or improvements while translating, ask the user before appending them here. See the repo README's Key conventions → Living documents.
content-directories.md (opens in a new tab)locale-files.md (opens in a new tab)scripts/README.md (opens in a new tab)scripts/frontmatter.mjs (opens in a new tab)scripts/merge-content-translation.mjs (opens in a new tab)scripts/merge-translation.mjs (opens in a new tab)scripts/prepare-content-translation.mjs (opens in a new tab)scripts/prepare-translation.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/brainstormingStructured design dialogue before CloudCannon work that has more than one sensible answer — a migration's editability tradeoffs, how to model a collection or page builder, restructuring content or config, or an ambiguous "make this work with CloudCannon". Explores intent and constraints, then presents a design for approval before implementation. Not for single well-defined tasks, clear bug fixes, or a detailed spec./cloudcannon-bookshopUse when a CloudCannon site uses Bookshop — `*.bookshop.yml` files, `@bookshop/*` packages, `_bookshop_name` keys, `bookshop:live`, or `partial "bookshop"` calls or `{% bookshop %}` tags. Covers how Bookshop works, maintaining a site that stays on it, and migrating it to editable regions./npx claudepluginhub cloudcannon/agent-skills --plugin agent-skillsOther plugins' skills for the same job