Communityライティング&編集github.com

MoonshotAI/translate-docs

バイリンガルユーザードキュメントを`docs/zh/`と`docs/en/`間で翻訳・同期し、`docs/AGENTS.md`に定義されたソースオブトゥルースルールに従います。

translate-docs とは?

このスキルは、`docs/zh/`と`docs/en/`の2つのロケールで管理されているバイリンガルユーザードキュメントを同期・翻訳するために設計されています。どちらかのロケールのファイルが更新された際、他方のロケールのミラーリングされたファイルをページ単位・セクション単位で最新の状態に保ちます。特に、各ページのソースオブトゥルースが英語か中国語かを`docs/AGENTS.md`のルールに基づいて判断し、正確に翻訳します。Markdown構造(見出し、リスト、コードブロック、コールアウト)を維持しながら、専門用語は`docs/AGENTS.md`の用語テーブルに厳密に従い、見出しや句読点のルールも適用します。このスキルは、インクリメンタルな更新を行う`gen-docs`とリリース前監査を行う`audit-docs`の両方から呼び出されるため、継続的なドキュメント品質管理に不可欠です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MoonshotAI/kimi-code/tree/main/.agents/skills/translate-docs

Installed? Explore more ライティング&編集 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ドキュメント翻訳

概要

このリポジトリでは、docs/zh/ と docs/en/ にバイリンガルのユーザードキュメントを格納しています。このスキルは、いずれかのロケールが更新された後、ページごとに2つのロケールを同期します。

このスキルは、gen-docs(インクリメンタル更新)と audit-docs(リリース前の完全監査)の両方から呼び出され、ロケールミラーの同期を維持します。

前提条件

以下のいずれかが欠けている場合は、処理を停止し、続行する前にユーザーに報告してください。

  • docs/zh/ と docs/en/ のミラー化されたディレクトリ構造。
  • docs/AGENTS.md — 用語テーブル、タイポグラフィルール、およびソースオブトゥルースルール。

ロケール同期ルール

  • 変更ログ(release-notes/changelog.md):英語がソースです。中国語に翻訳します。
  • 破壊的変更(release-notes/breaking-changes.md):英語がソースです。中国語に翻訳します。
  • その他すべてのページ:docs/en/ と docs/zh/ はミラーペアです。どちらかの側が変更された後、同じ変更内で他方のロケールを更新します。

非変更ログページがいずれかのロケールで変更された場合は、リリース前にミラーを同期します。英語の変更ログが変更された場合は、中国語の変更ログを同期します。

ワークフロー

  1. 同期が必要なものを検出する

    • git diff main..HEAD --stat docs/ — どのファイルが変更されたかを確認します
    • docs/en/ または docs/zh/ 配下の変更された各ファイルについて、他方のロケールのミラー(同じ相対パス)を見つけます。
  2. ページごと、セクションごとに翻訳する

    • 見出し階層、リスト構造、コードブロック、コールアウトブロック、リンクターゲットを2つのバージョン間で同一に保ちます。
    • 専門用語について不明な点がある場合は、推測するのではなく、実際のコードを読んで動作を確認します。
  3. docs/AGENTS.md の用語とタイポグラフィルールを適用する

    • 用語テーブルを厳密に使用します。翻訳をでっち上げたり、同義語を使用したりしないでください。
    • 英語のH2+では文の先頭だけ大文字(文頭大文字)を使用します(用語テーブルに従い、固有名詞は除く)。
    • 中国語のタイポグラフィ:全角句読点(,。;:?!())、中国語とASCII(英字/数字/インラインコード/リンク)の間にスペースを入れます。
    • コールアウトタイトル(::: tip / ::: warning / ::: info / ::: danger)は、docs/AGENTS.md の短い中国語ラベルを使用します。
  4. 検証する

    • git diff docs/ — 用語のずれや句読点の後退をスキャンします。
    • 利用可能であればドキュメントビルドを実行し(pnpm --filter docs run build または同等のもの)、リンク切れやMarkdownエラーを検出します。

ルールと規約

  • 一方的な修正をしない:変更されたロケールに不明瞭または不正確な記述がある場合は、最初にそちらを修正します。ミラーのみを修正しないでください。
  • 言葉だけでなくスタイルに合わせる:中国語のドキュメントは語り口調(docs/AGENTS.md の文体例を参照)を使用します。中国語ではその口調を維持し、英語では文頭大文字の見出しと簡潔な英語スタイルを維持します。
  • コードブロックと識別子はそのままにする:コード、コマンド名、フラグ名、ファイルパスは翻訳しないでください。
  • 公開例:翻訳中に実際の内部エンドポイント、キー名、アカウント名、サービス名を導入しないでください。両方のロケールで、example.com、example.test、YOUR_API_KEY などの中立的なプレースホルダーに保持するか、置き換えてください。

よくある間違い

  • 対象言語での表現が不自然に感じられるため、ミラーのみを書き換える — 最初に変更されたロケールを修正し、その後同期します。
  • 英語の見出しをタイトルケースにしてしまう(H2+では文頭大文字のみ許可)。
  • 中国語の文字とインラインコードまたは英単語の間にスペースを入れるのを忘れる。
  • 用語テーブルに記載されている固有名詞(Wire、MCP、ACP、JSON、OAuth、macOS、uv など)を翻訳する。
  • 一方の方向のみを更新し、他方のロケールを古いままにする — diff でフラグが立てられたすべてのページを必ず完了させてください。
  • 中立的な example プレースホルダーを使用する代わりに、実際の内部値をミラーにコピーする。

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

MoonshotAI/agent-core-dev

Use when developing in packages/agent-core-v2 (the DI × Scope agent engine) — adding or modifying a domain Service, choosing a LifecycleScope, wiring DI dependencies, splitting a domain across scopes, owning or migrating a config section, gating behavior behind an experimental flag, raising coded errors, working on the permission system, writing DI/Scope tests, porting business logic from agent-core (v1) to v2, triaging a main-branch commit against v2, or exposing a v2 domain over server-v2 while keeping the /api/v1 wire contract compatible with released clients. Self-contained guide organized by development stage (orient → design → implement → test → verify) plus align workflows for v1→v2 migration, main-branch commit triage, and server-v2 wire exposure; each file carries the rules, examples, and red lines for its step.

MoonshotAI/agent-core-review

Use ONLY for code review and test write/review guidance in `packages/agent-core-v2` (the DI × Scope agent engine). Does NOT apply to the legacy `packages/agent-core` or to any other package — for those, do not load this skill. Groups the review and testing lenses used for agent-core-v2 — `slop` (single-level-of-abstraction / layered error-handling review, invoked only on explicit request) and `test` (contract-driven per-test rules for both authoring and reviewing tests). Apply the sub-skill that matches the task; do not apply `slop` unprompted.

MoonshotAI/consolidate

Apply an approved sub-skill grouping by moving user-specified skills into a parent bundle, with timestamped backups of every modified directory.

MoonshotAI/gen-changesets

Use when generating changesets in the kimi-code repository, including package bump selection, internal package and CLI bundle handling, bump levels, major confirmation, and English changelog wording.

MoonshotAI/gen-docs

Update Kimi Code CLI user documentation after meaningful code changes that affect product behavior or user experience.

MoonshotAI/kimi-datasource

Universal data-source assistant. Use this skill when the user wants external structured data such as stocks, financial reports, technical indicators, A-share/HK/US markets, global macroeconomics, Chinese enterprise registry information, arXiv papers, Google Scholar results, or Chinese laws/regulations and judicial cases. This plugin exposes tools via MCP server `plugin-kimi-datasource_data`; call them in the flow `mcp__plugin-kimi-datasource_data__get_data_source_desc` → `mcp__plugin-kimi-datasource_data__call_data_source_tool`.

MoonshotAI/pre-changelog

Use before merging a kimi-code release PR to preview the user-facing CLI changelog in Chinese. Reads the changelog that changesets pre-generated in the release PR, then reuses sync-changelog's strip / classify / translate logic to render a Chinese preview. Writes no files.

MoonshotAI/review

Analyze the available skill set and recommend candidate groups that could be consolidated into sub-skill bundles. Read-only — proposes a plan, does not move files.

MoonshotAI/slop

Invoke only when the user explicitly asks to review code through the "single level of abstraction / layered error handling" lens — a function does only its own layer's business logic while errors are handled above or below. The agent reports detections, raw-count measurements, and move directions. Apply only when the user explicitly requests this lens.

MoonshotAI/sub-skill

Discover and reorganize the skill inventory into hierarchical sub-skill bundles. Use when the user asks to review, group, or consolidate skills into a parent bundle.

MoonshotAI/sync-changelog

Use after a release succeeds, when maintainers need to sync apps/kimi-code/CHANGELOG.md into docs/en/release-notes/changelog.md and docs/zh/release-notes/changelog.md, then open a PR on a dedicated branch.

MoonshotAI/test

Use when writing or reviewing tests, or when asked how to write a good single test. Encodes the per-test rules behind the "test the contract / responsibility, not the implementation" principle — name and structure one behavior per `it`, drive through the public surface, stub only true external boundaries, control time and config via documented knobs, and keep tests clear, isolated, and refactor-resilient. The same rules drive both authoring (write mode) and auditing existing tests (review mode).

MoonshotAI/write-tui

Use when writing or modifying the kimi-code terminal UI in apps/kimi-code/src/tui — components, dialogs/selectors, slash commands, themes, streaming render, or the KimiTUI controllers. Covers the architecture, where new features go, test placement, the theme system mechanics, and the dialog interaction/visual spec (DESIGN.md).

関連スキル