AGENT SKILL

zudo-doc-translate

Translate zudo-doc documentation between English and Japanese with project-specific conventions.

License 许可
MIT
所属仓库
zudolab/zudo-doc
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
zudo-doc-translate
triggers
[ "translate", "翻訳", "i18n", "en to ja", "ja to en", "translate docs", "ドキュメント翻訳" ]
description
Translate zudo-doc documentation between English and Japanese with project-specific conventions.

03 SKILL.md 正文

zudo-doc Translation Skill

Translate documentation between English and Japanese following project-specific conventions.

i18n Structure

  • English docs: src/content/docs/ — routes at /docs/...
  • Japanese docs: src/content/docs-ja/ — routes at /ja/docs/...
  • Directory structures must mirror each other exactly (same filenames, same folder hierarchy)
  • Locale settings: locales in src/config/settings.ts
  • zfb i18n config: zfb.config.ts — English is the default locale and is served unprefixed, Japanese uses /ja/ (there is no prefixDefaultLocale option)

Translation Rules

Keep in English (do NOT translate)

  • Component names: <Note>, <Tip>, <Info>, <Warning>, <Danger>, <Tabs>, <TabItem>, <Details>
  • Code blocks — code is universal
  • File paths: src/content/docs/..., .claude/skills/..., etc.
  • CLI commands: pnpm dev, pnpm build, etc.
  • Technical terms that are standard in English (e.g., component, props, frontmatter, slug)
  • Frontmatter field keys (title, description, sidebar_position, category)

Translate

  • Frontmatter field values (e.g., the title value, the description value)
  • The title prop of admonition components (e.g., <Note title="注意">)
  • Prose content, headings, list items, table cells (except as noted below)

Table conventions

  • In tables with a "Required" column: use "Yes" / "No" directly, NOT "はい" / "いいえ" — Japanese conversational yes/no is unnatural in technical documentation

Internal links

  • Adjust link paths when translating:
    • En→Ja: /docs/getting-started → /ja/docs/getting-started
    • Ja→En: /ja/docs/getting-started → /docs/getting-started

File Naming

  • Japanese files use the same filenames as English (e.g., writing-docs.mdx)
  • Only the parent directory differs: docs/ vs docs-ja/
  • Example: src/content/docs/guides/writing-docs.mdx → src/content/docs-ja/guides/writing-docs.mdx

Workflow

En→Ja Translation

  1. Read the English source file from src/content/docs/
  2. Check if the corresponding Japanese file already exists in src/content/docs-ja/
    • If it exists, read it first — use it as a base and update from the English source rather than overwriting from scratch
    • If it does not exist, create the file at the equivalent path in src/content/docs-ja/
  3. Translate the content following the rules above
  4. Verify internal links point to /ja/docs/...

Ja→En Translation

  1. Read the Japanese source file from src/content/docs-ja/
  2. Check if the corresponding English file already exists in src/content/docs/
    • If it exists, read it first — use it as a base and update from the Japanese source rather than overwriting from scratch
    • If it does not exist, create the file at the equivalent path in src/content/docs/
  3. Translate the content following the rules above
  4. Verify internal links point to /docs/... (no /ja/ prefix)

Post-Translation Checks

  • Frontmatter keys are unchanged (only values translated)
  • All admonition component names remain in English
  • Code blocks are untouched
  • Internal links use the correct locale prefix
  • Directory structure mirrors the source language

04 同仓库更多 Skills

zudolab
zudolab/zudo-doc

zudo-doc-writing

Doc-writing and navigation-structure guide for this zudo-doc project. Consult BEFORE creating pages, adding categories, designing header navigation, or writing/editing mdx content under src/content/. Covers: reading the AUTHORING.md editorial policy and its four placement questions, when to run a structure review, plan-the-nav-tree-first workflow, tree vs note-tray categories, the recommended 3-level hierarchy (header → sidebar → nested), filesystem navigation as the default, linked versus heading-only category rows, category index pages, sidebar_position discipline, frontmatter schema, no-h1 rule, relative .mdx links, and admonition syntax. Triggered by 'write docs', 'add a page', 'create a page', 'add category', 'structure navigation', 'nav design', 'zudo-doc-writing'.

内容创作者写作与文案
★ 1
zudolab
zudolab/zudo-doc

zudo-doc-version-bump

Bump package version, update changelog and versioned docs snapshot (if those features are enabled), commit, tag, and create a GitHub release. Use when: (1) User says 'version bump', 'bump version', 'release', or 'zudo-doc-version-bump', (2) User wants to create a new release of this project.

★ 1
zudolab
zudolab/zudo-doc

zudo-doc-translate

Translate zudo-doc documentation between the locales configured in this project, with Japanese conventions applied only to the `ja` locale.

★ 1
zudolab
zudolab/zudo-doc

zudo-doc-design-system

Project-specific CSS and component rules for zudo-doc. Must be consulted before writing or editing CSS, zudo-wind utilities, color tokens, or component markup in this project. Covers: component-first strategy, design token system, three-tier color architecture, and palette index convention. Triggered by 'design system', 'zudo-doc-design-system', 'zudo-doc-css-wisdom' (old name).

设计师前端开发视觉设计
★ 1
zudolab
zudolab/zudo-doc

localized-shell

Fixture skill for localized generated resource routes.

★ 1
zudolab
zudolab/zudo-doc

zudo-doc-writing-rules

Doc-writing rules for zudo-doc content (mdx files under src/content/docs/ and src/content/docs-ja/). Consult before writing or editing doc content. Covers: no h1 in content, sidebar_position is mandatory, kebab-case file names, bilingual rule, linking conventions, and admonition syntax. Triggered by 'writing rules', 'zudo-doc-writing-rules', 'doc rule', 'mdx rule', 'write a doc', 'create a page'.

内容创作者写作与文案
★ 1