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) into a target locale while preserving code blocks, IDs, and technical structure. Covers scaffolding, frontmatter setup, prose translation, code preservation, and freshness tracking. Use when localizing content for a new language, updating stale translations after source changes, or batch-transl…
Independent GitHub snapshot · Automated classification · Original documentation governs
Translate English source content into a target locale, preserving technical accuracy and structural integrity.
skills, agents, teams, or guidescreate-r-package)de, zh-CN, ja, es)1.1. Determine the source file path:
skills/<id>/SKILL.mdagents/<id>.mdteams/<id>.mdguides/<id>.md1.2. Read the entire source file to understand context, structure, and content.
1.3. Identify sections that must stay in English:
name, tools, model, priority, skills list entries, allowed-tools, tags, domain, language)<!-- CONFIG:START --> / <!-- CONFIG:END --> blocks in teams期待結果: Full understanding of source content with clear mental separation of translatable prose vs preserved technical content.
失敗時: If source file is not found, verify the ID exists in the registry. Check for typos in the content type or ID.
2.1. Run the scaffolding script:
npm run translate:scaffold -- <content-type> <id> <locale>
2.2. If the file already exists, read it to check whether it needs updating (stale) or is already current.
2.3. Verify the scaffolded file has translation frontmatter fields:
locale — matches target localesource_locale — ensource_commit — current git short hashtranslator — attribution stringtranslation_date — today's date期待結果: Scaffolded file at i18n/<locale>/<content-type>/<id>/SKILL.md (or .md for other types) with correct frontmatter.
失敗時: If the scaffold script fails, create the directory manually with mkdir -p and copy the source file. Add frontmatter fields manually.
3.1. Translate the description field in the YAML frontmatter into the target locale.
3.2. For skills, the description is inside the top-level frontmatter. For agents/teams/guides, it is also in the top-level frontmatter.
3.3. Keep the translation concise — match the length and style of the original.
期待結果: Description field contains an idiomatic translation that accurately conveys the original meaning.
失敗時: If the description is ambiguous, keep it closer to literal translation rather than risk misinterpretation.
4.1. Translate all prose content section by section:
4.2. Preserve these elements exactly as-is:
backtick-wrapped)**Expected:** and **On failure:** markers (translate the label, keep the structure)4.3. For skills, translate the standardized section names:
4.4. For agents, translate:
4.5. For teams, translate:
4.6. For guides, translate:
期待結果: All prose sections translated idiomatically. Code blocks identical to English source. Cross-references use English IDs.
失敗時: If uncertain about a technical term, keep the English term with a parenthetical translation. Example: "Staging-Bereich (Staging Area)" in German.
5.1. Confirm the translated file has the same number of sections as the source.
5.2. For skills, verify all required sections are present:
name, description, allowed-tools, metadata5.3. Verify code blocks are identical to the English source (diff the fenced blocks).
5.4. Check line count: skills must be ≤ 500 lines.
5.5. Verify name field matches the English source exactly (it is the ID, never translated).
期待結果: Structurally valid translated file that passes validation.
失敗時: Compare section-by-section with the English source. Restore any missing sections.
5.5.1. 翻訳ファイルの本文から 3 つの散文段落をサンプリングする。異なるセクションから段落を選ぶ — 見出し、コードブロック、フロントマターを除く。
5.5.2. サンプリングした各段落が、英語ではなく対象言語で書かれていることを確認する。
5.5.3. サンプリングした段落がまだ英語の場合、翻訳は不完全である。ステップ 4 に戻り、続行する前に残りの英語散文を翻訳する。
期待される結果: サンプリングした 3 つの散文段落がすべて対象言語で書かれており、本文が翻訳されていることが確認される — 見出しとフロントマターだけでなく。
失敗時: 英語散文が残っているセクションを特定する。ステップ 6 に進む前にそれらを翻訳する。
6.1. Write the complete translated content to the target path using the Write or Edit tool.
6.2. Verify the file exists at the expected path:
i18n/<locale>/skills/<id>/SKILL.mdi18n/<locale>/agents/<id>.mdi18n/<locale>/teams/<id>.mdi18n/<locale>/guides/<id>.md期待結果: Translated file written to disk at the correct path.
失敗時: Check directory exists. Create with mkdir -p if needed.
i18n/<locale>/<type>/<id>name field matches English source exactlylocale field matches target localesource_commit field is set to a valid git short hashnpm run validate:translations reports no issues for this filename field: The name field is the canonical ID. Never translate it.metadata.tags stay in English for cross-locale consistency.source_commit: Without this field, freshness tracking breaks. Always include it.