All skills
Skillintermediate
Use Case: Multi-Locale Content Generation
<div align="center">
Claude Code Knowledge Pack7/10/2026
Overview
<div align="center">
<div align="center">
š Home āŗ š Guides āŗ šÆ Use Cases āŗ Multi-Locale Generation
ā Production Code Review āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā Personal Assistant ā
</div>Use Case: Multi-Locale Content Generation
Source: AthenaKNW project architecture
Problem
Generate localized content for 200 locales:
- Primary locales set the standard
- Variants document differences
- Content must be unique (< 70% similarity)
Solution Architecture
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart TB
classDef wizard fill:#14b8a6,stroke:#0d9488,stroke-width:2px,color:#ffffff
classDef subagent fill:#ec4899,stroke:#db2777,stroke-width:2px,color:#ffffff
classDef checkpoint fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#ffffff
classDef state fill:#10b981,stroke:#059669,stroke-width:2px,color:#ffffff
CMD["𦓠/generate fr"] --> WIZARD["š§ Confirm Scope"]:::wizard
WIZARD -->|"ā User approves"| PRIMARY["š¦ Generate fr-FR"]:::subagent
PRIMARY --> CHECK1["š„ļø Checkpoint"]:::checkpoint
CHECK1 --> VARIANTS["𧬠Master-Clone Variants"]
subgraph ISOLATED["Isolated Contexts"]
V1["š¦ fr-CA"]:::subagent
V2["š¦ fr-BE"]:::subagent
V3["š¦ fr-CH"]:::subagent
end
VARIANTS --> V1 & V2 & V3
V1 & V2 & V3 --> CHECK2["š„ļø Validation"]:::checkpoint
CHECK2 --> DONE["ā
4 locales generated"]:::state
Patterns Used
| Stage | Pattern | Purpose |
|---|---|---|
| Entry | š§ Wizard Workflows | Confirm scope before generation |
| Primary | š¦ Orchestrator-Workers | Generate reference locale |
| Variants | 𧬠Master-Clone | Parallel, isolated generation |
| Throughout | š„ļø Multi-Window Context | Resume on interruption |
Key Constraints
ā ļø Variants use `differs_from: fr-FR` to document differences
ā ļø Each file must be standalone useful
ā ļø Similarity between same-language locales < 70%
Implementation
Slash Command
# .claude/commands/generate.md
---
description: Generate localization files for specified locales
argument-hint: [locale]
---
Generate localization files for: $ARGUMENTS
1. First, identify if this is a single locale or language cluster
2. Check LOCALES-200.csv for valid locales
3. If language cluster (e.g., "fr"), generate all related locales
4. Generate primary locale first, then variants
5. Validate similarity < 70%
Primary Generator Subagent
# .claude/agents/locale-generator.md
---
name: locale-generator
description: Generates primary locale content
tools: Read, Write, Grep, Glob
model: opus
permissionMode: acceptEdits
---
Generate comprehensive content for the specified locale.
This content serves as the reference for all variants.
Output structure:
- locale/{code}/content.md
- locale/{code}/metadata.yaml
Variant Generator
# .claude/agents/variant-generator.md
---
name: variant-generator
description: Generates locale variants based on primary
tools: Read, Write, Grep, Glob
model: sonnet
permissionMode: acceptEdits
---
Generate variant content that:
1. References primary locale as baseline
2. Documents specific differences
3. Is standalone useful
4. Maintains < 70% similarity
Workflow Flow
šāāļøš„ /generate fr
ā
ā¼
š§ Wizard: "Generate fr-FR, fr-CA, fr-BE, fr-CH?"
ā
[User confirms]
ā
ā¼
š¦ Generate fr-FR (primary)
ā
ā¼
š„ļø Checkpoint 1
ā
ā¼
āāāāāāāāā¼āāāāāāāā
ā ā ā
ā¼ ā¼ ā¼
š¦ fr-CA š¦ fr-BE š¦ fr-CH
ā
ā¼
š„ļø Validation Checkpoint
ā
ā¼
ā
4 locales generated
Checkpoint Structure
{
"workflow_id": "gen_fr_2025_001",
"language_cluster": "fr",
"primary_locale": "fr-FR",
"primary_status": "completed",
"variants": {
"fr-CA": "pending",
"fr-BE": "pending",
"fr-CH": "pending"
},
"current_phase": "variants",
"resume_point": "checkpoint_1"
}
<div align="center">
ā Production Code Review āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā Personal Assistant ā
</div>