brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
translate-contentTranslate agent-almanac content (skills, agents, teams, guides) → target locale, preserve code blocks, IDs, tech structure. Scaffolding, frontmatter setup, prose translation, code preservation, freshness tracking. Use → localize for new lang, update stale translations after src changes, batch-translate domain.
Independent GitHub snapshot · Automated classification · Original documentation governs
EN src → target locale, preserve tech accuracy + structural integrity.
skills, agents, teams, guidescreate-r-package)de, zh-CN, ja, es)1.1. Determine src path:
skills/<id>/SKILL.mdagents/<id>.mdteams/<id>.mdguides/<id>.md1.2. Read entire src to understand context, structure, content.
1.3. ID sections that stay in EN:
name, tools, model, priority, skills list entries, allowed-tools, tags, domain, language)<!-- CONFIG:START --> / <!-- CONFIG:END --> blocks in teamsGot: Full understanding w/ clear mental separation translatable prose vs preserved tech.
If err: Src not found → verify ID exists in registry. Check typos in content type | ID.
2.1. Run scaffolding script:
npm run translate:scaffold -- <content-type> <id> <locale>
2.2. File exists → read to check stale vs current.
2.3. Verify scaffolded has translation frontmatter:
locale — matches targetsource_locale — ensource_commit — current git short hashtranslator — attributiontranslation_date — todayGot: Scaffolded at i18n/<locale>/<content-type>/<id>/SKILL.md (or .md for others) w/ correct frontmatter.
If err: Scaffold script fails → create dir manually w/ mkdir -p + copy src. Add frontmatter manually.
3.1. Translate description field in YAML frontmatter → target locale.
3.2. Skills: top-level frontmatter. Agents/teams/guides: also top-level.
3.3. Concise — match length + style of original.
Got: Description field has idiomatic translation accurate to original meaning.
If err: Ambiguous → keep closer to literal vs risk misinterpretation.
4.1. Translate prose section by section:
4.2. Preserve exactly:
backtick-wrapped)**Expected:** + **On failure:** markers (translate label, keep structure)4.3. Skills: translate std section names:
4.4. Agents: translate:
4.5. Teams: translate:
4.6. Guides: translate:
Got: All prose translated idiomatically. Code blocks identical to EN src. Cross-refs use EN IDs.
If err: Uncertain tech term → keep EN w/ parenthetical translation. e.g. "Staging-Bereich (Staging Area)" in DE.
5.1. Same # sections as src.
5.2. Skills: verify all req sections:
name, description, allowed-tools, metadata5.3. Verify code blocks identical to EN src (diff fenced blocks).
5.4. Check line count: skills must be ≤ 500.
5.5. Verify name field matches EN src exact (= ID, never translated).
Got: Structurally valid file passes validation.
If err: Cmp section-by-section w/ EN src. Restore missing.
5.5.1. Sample 3 prose paragraphs from body. Diff sections — not headings, not code blocks, not frontmatter.
5.5.2. Confirm each in target lang, not EN.
5.5.3. Any in EN → translation incomplete. Return Step 4, translate remaining EN before continuing.
Got: All 3 sampled in target lang, body text translated — not just headings + frontmatter.
If err: ID which sections still EN prose. Translate before Step 6.
6.1. Write complete translated content to target path via Write | Edit.
6.2. Verify file at expected path:
i18n/<locale>/skills/<id>/SKILL.mdi18n/<locale>/agents/<id>.mdi18n/<locale>/teams/<id>.mdi18n/<locale>/guides/<id>.mdGot: Translated file written to disk at correct path.
If err: Check dir exists. Create w/ mkdir -p if needed.
i18n/<locale>/<type>/<id>name field matches EN src exactlocale field matches targetsource_commit set to valid git short hashnpm run validate:translations reports no issuesname field: name = canonical ID. Never translate.metadata.tags stay EN for cross-locale consistency.source_commit: Without → freshness tracking breaks. Always include.