expand-site-languagelisted
Install: claude install-skill Fractera/Agent-Engineering-Infrastructure
# expand-site-language
The ONE way to take a site that already has content in one or two languages and **safely scale it
to another language**. Deterministic file operations, **NO code generation, NO external translation
API** (you are the translator — subscription rule). Self-sufficient: any single agent can do it.
## 🛑 Why a dedicated capability (do not improvise)
Adding a language to an **existing** site means creating a `_data/<lang>.ts` for **every** group and
**every** post, patching each `index.ts` + `group.ts`, and protecting SEO. **No other tool does this:**
- `owner_content_manage_collection` — `create page` refuses an existing page; `edit page` edits only
metadata and refuses a body/new locale. It **cannot** add a language to existing pages.
- `owner_template_update_group` — changes only the menu manifest's `languages`; it does **not** create
the per-page locale files → the language shows in the menu but the pages are broken.
- `compose-frozen-template` — re-composing a group **overwrites** existing content. Never use it to add
a language.
If you are tempted to reach for one of those to add a language: **stop and use this skill instead.**
## The model
- Languages are **build-time** (`NEXT_PUBLIC_SUPPORTED_LANGUAGES`). A language must be in the set
**before** you fan it out — add it via **manage-app-settings** first, then rebuild.
- Each post = `_data/{meta, en(base), <lang>(override), index}`. Each group = `_data/{en, <lang>, index,
group.ts}`. Th