协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
translate-content【开发与工程】Translate 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. Verwenden wenn localizing content for a new language, updating stale translations nach source changes, or …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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. Bestimmen die Quelle Dateipfad:
skills/<id>/SKILL.mdagents/<id>.mdteams/<id>.mdguides/<id>.md1.2. Lesen the entire Quelldatei to understand context, structure, and content.
1.3. Identifizieren sections that must stay in English:
name, tools, model, priority, skills list entries, allowed-tools, tags, domain, language)<!-- CONFIG:START --> / <!-- CONFIG:END --> blocks in teamsErwartet: Full understanding of source content with clear mental separation of translatable prose vs preserved technical content.
Bei Fehler: If Quelldatei ist nicht found, verify the ID exists in the registry. Pruefen auf typos in the content type or ID.
2.1. Ausfuehren the scaffolding script:
npm run translate:scaffold -- <content-type> <id> <locale>
2.2. If die Datei already exists, read it to check whether it needs updating (stale) or is already current.
2.3. Verifizieren the scaffolded file has translation frontmatter fields:
locale — matches target localesource_locale — ensource_commit — current git short hashtranslator — attribution stringtranslation_date — today's dateErwartet: Scaffolded file at i18n/<locale>/<content-type>/<id>/SKILL.md (or .md for other types) with correct frontmatter.
Bei Fehler: If the scaffold script fails, create das Verzeichnis manuell with mkdir -p and copy die Quelle file. Hinzufuegen frontmatter fields manuell.
3.1. Translate the description field in the YAML frontmatter into das Ziel 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.
Erwartet: Description field contains an idiomatic translation that accurately conveys the original meaning.
Bei Fehler: If the description is ambiguous, keep it closer to literal translation anstatt 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:
Erwartet: All prose sections translated idiomatically. Code blocks identical to English source. Cross-references use English IDs.
Bei Fehler: If uncertain about a technical term, keep the English term with a parenthetical translation. Example: "Staging-Bereich (Staging Area)" in German.
5.1. Bestaetigen the translated file has the same number of sections as die Quelle.
5.2. For skills, verify all required sections are present:
name, description, allowed-tools, metadata5.3. Verifizieren code blocks are identical to the English source (diff the fenced blocks).
5.4. Check line count: skills muss ≤ 500 lines.
5.5. Verifizieren name field matches the English source exactly (it is the ID, never translated).
Erwartet: Structurally valid translated file that passes validation.
Bei Fehler: Vergleichen section-by-section with the English source. Wiederherstellen any missing sections.
5.5.1. Probeentnahme von 3 Prosa-Absaetzen aus dem Hauptteil der uebersetzten Datei. Absaetze aus verschiedenen Abschnitten auswaehlen — keine Ueberschriften, Codeblöcke oder Frontmatter.
5.5.2. Bestaetigen dass jeder Prosa-Absatz in der Zielsprache geschrieben ist, nicht auf Englisch.
5.5.3. Wenn ein Prosa-Absatz noch auf Englisch ist, ist die Uebersetzung unvollstaendig. Zu Schritt 4 zurueckkehren und die verbleibende englische Prosa uebersetzen, bevor fortgefahren wird.
Erwartet: Alle 3 Prosa-Absatzproben sind in der Zielsprache, was bestaetigt dass der Textteil uebersetzt wurde — nicht nur Ueberschriften und Frontmatter.
Bei Fehler: Identifizieren welche Abschnitte noch englische Prosa enthalten. Diese uebersetzen bevor mit Schritt 6 fortgefahren wird.
6.1. Schreiben the complete translated content to das Ziel path using the Schreiben or Bearbeiten tool.
6.2. Verifizieren die Datei exists at the expected path:
i18n/<locale>/skills/<id>/SKILL.mdi18n/<locale>/agents/<id>.mdi18n/<locale>/teams/<id>.mdi18n/<locale>/guides/<id>.mdErwartet: Translated file written to disk at the correct path.
Bei Fehler: Check directory exists. Erstellen 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.