Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

article-translator文章翻译者

Agent Skill

article-translator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

188

周安装

8

GitHub Stars

公开资料未说明

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:article-translator(文章翻译者)
来源仓库:https://github.com/foreveryh/deeptoai-skills
仓库路径:skills/article-translator
安装命令:
npx skills add https://github.com/foreveryh/deeptoai-skills --skill article-translator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/foreveryh/deeptoai-skills --skill article-translator

简介

article-translator 专为 MDX/Markdown 技术文档设计,提供准确的多语言翻译能力。

  • 它能保护代码块不变、保留技术术语、兼容 Fumadocs 组件,并支持文化语境适配。
  • 可与 fumadocs-article-importer 和 skill-article-publisher 配合使用形成完整工作流。
  • 安装前应检查是否具备读取源文件和写入翻译结果所需的权限。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

技术文档翻译 Skill

专为 MDX/Markdown 技术文档设计的翻译 skill。

核心特性

  • MDX 兼容 - 正确处理 bold/italic 空格,避免渲染错误
  • 代码块保护 - 代码和命令完全不变
  • 技术术语保留 - API、SDK、React 等保持英文
  • Fumadocs 优化 - 适配 Fumadocs 组件和格式

与其他 Skills 配合

推荐工作流:

fumadocs-article-importer (下载文章)
         ↓
translator (翻译内容) ← 你在这里
         ↓
skill-article-publisher (发布)

调用时机:

  • article-importer 在 Step 7 自动调用
  • 或手动触发翻译已有文档

This skill enables accurate, context-aware translation between languages while preserving:

  • Technical terminology
  • Code blocks and syntax
  • Markdown formatting
  • Cultural appropriateness
  • Original tone and intent

Translation Workflow

Step 1: Analyze Source Content

Before translating:

  1. Identify the source language (if not explicitly provided)
  2. Understand the content type (technical documentation, article, UI text, etc.)
  3. Note any technical terms, code blocks, or special formatting
  4. Determine the appropriate tone and style

Step 2: Perform Translation

Apply professional translation principles:

Accuracy:

  • Preserve the exact meaning of the original text
  • Maintain technical accuracy, especially for domain-specific content
  • Keep numerical values, dates, and proper nouns appropriate for the target locale

Fluency:

  • Produce natural, idiomatic text in the target language
  • Avoid literal word-for-word translation
  • Use appropriate sentence structure for the target language

Format Preservation:

  • Keep all Markdown syntax exactly as-is (headings, lists, links, etc.)
  • Preserve code blocks completely unchanged
  • Maintain image references and paths
  • Keep HTML/JSX tags and attributes unchanged
  • CRITICAL for MDX - Bold/Italic spacing:

- Always add a space after **bold** or *italic* before the next character - Example: **Text:** word → Ensure space after the second ** - Correct: **粗体:** 文字 (space after **) - Wrong: **粗体:**文字 (no space, will break MDX rendering) - This is especially important for non-Latin languages (Chinese, Korean, Japanese) - Apply to all bold/italic patterns: **...**, *...*, __...__, _..._

Technical Terms:

  • For widely recognized technical terms (API, HTTP, Git), keep in English or use standard translations
  • For product names and brand names, keep original
  • Use target language conventions for technical documentation

Step 3: Language-Specific Guidelines

Chinese (Simplified - zh):

  • Use simplified Chinese characters (简体中文)
  • Technical terms: Keep English when widely used (e.g., API, SDK) or use standard Chinese translations
  • Punctuation: Use Chinese punctuation (。、,!?) for text, but keep English punctuation in code
  • Tone: Professional and clear, use 您 for formal contexts

French (fr):

  • Use proper French accents (é, è, à, ô, etc.)
  • Technical terms: Use standard French translations when they exist (e.g., "ordinateur" not "computer")
  • Tone: Maintain formal "vous" unless context clearly indicates informal tone
  • Numbers: Use French formatting (space for thousands: 1 000 not 1,000)

Korean (ko):

  • Use appropriate honorific level (formal 합니다 style for documentation)
  • Technical terms: Common terms stay in English, but use Korean for general concepts
  • Tone: Professional and respectful
  • Mixed script: Acceptable to mix Korean with English technical terms

English (en):

  • Use clear, professional English
  • Follow US spelling conventions unless specified otherwise
  • Technical terms: Use industry-standard terminology
  • Tone: Professional but accessible

Step 4: Translation Integrity Check (Critical!)

⚠️ 防止 "中文显示英文" 问题:

检查清单(翻译后必须验证):

# 1. 检查文件是否真的被翻译(不是复制英文)
# 对比中英文文件的前 100 个字符
diff <(head -c 100 content/docs/en/article.mdx) \
     <(head -c 100 content/docs/zh-CN/article.mdx)

# 如果输出为空,说明中文版是直接复制的!
# 必须重新翻译

自动检测未翻译内容:

# 检测中文文件中是否包含英文段落
grep -E '\b(is|the|and|to|for|with|from)\b' content/docs/zh-CN/article.mdx

# 如果有大量匹配,说明翻译不完整

常见问题:

问题原因解决方案
中文显示英文直接复制英文文件使用 article-translator 重新翻译
部分未翻译只翻译了部分段落检查并翻译所有段落
标题未翻译忘记翻译 frontmatter翻译 title 和 description

必须验证的字段:

---
title: 必须翻译
description: 必须翻译
---

Step 5: MDX Safety Rules (Critical!)

MDX 特殊字符处理(必须遵守):

字符问题解决方案示例
<被解析为 JSX 标签使用 < 或替换为文字<5%<5%under 5%
>被解析为 JSX 标签使用 > 或替换为文字>80%>80%over 80%
{ }被解析为 JSX 表达式使用 { } 或避免使用{variable}{variable}
&HTML 实体冲突使用 &A & BA & B

图片文件名规则(重要!):

❌ 错误:img-1.png, screenshot-10.png(MDX 会解析 -1, -10)
✅ 正确:img01.png, screenshot10.png, openclaw01.png(无连字符+数字)

翻译后自检清单:

- [ ] 所有 `<` 已替换为 `<` 或 "under/less than"
- [ ] 所有 `>` 已替换为 `>` 或 "over/more than"
- [ ] 图片文件名不含连字符+数字(img-1 → img01)
- [ ] 代码块保持原样(包括注释)
- [ ] Frontmatter 格式正确
- [ ] Markdown 链接和图片引用正确

Step 5: Quality Check

Before delivering translation:

  1. Verify all code blocks remain unchanged
  2. Check that Markdown formatting is preserved
  3. Ensure technical terms are handled consistently
  4. Confirm the translation reads naturally in the target language
  5. Validate that links, images, and references still work
  6. Run MDX safety check (Step 4)

Output Format

Present translations clearly:

For single translations: Provide the translated text directly, maintaining all original formatting.

For multiple languages: Use clear section headers to separate each language:

## English (en)
[Translated content]

## 中文 (zh)
[Translated content]

## Français (fr)
[Translated content]

## 한국어 (ko)
[Translated content]

Special Cases

Code Comments

  • Translate comments inside code blocks only if explicitly requested
  • Default: Keep code (including comments) unchanged

Mixed Content

  • For content mixing multiple languages, preserve the intentional multilingual parts
  • Only translate what should be translated

Cultural References

  • Adapt idioms and cultural references to equivalent concepts in target language
  • When no equivalent exists, provide a culturally neutral translation that preserves meaning

Acronyms and Abbreviations

  • Keep widely-known acronyms in original form (HTML, CSS, API, REST, etc.)
  • Spell out and translate acronyms specific to the source language

Examples

Example 1: Technical Documentation

Source (en):

# Getting Started

Install the package using npm:

\`\`\`bash
npm install my-package
\`\`\`

The API provides three endpoints for data retrieval.

Target (zh):

# 快速开始

使用 npm 安装该包:

\`\`\`bash
npm install my-package
\`\`\`

该 API 提供三个数据检索端点。

Example 2: Preserving Technical Terms

Source (en): "The React component uses hooks for state management."

Target (zh): "该 React 组件使用 hooks 进行状态管理。"

Target (fr): "Le composant React utilise des hooks pour la gestion d'état."

Target (ko): "React 컴포넌트는 상태 관리를 위해 hooks를 사용합니다."

Example 3: Markdown Preservation

Source:

> **Note:** This is important.

See [documentation](https://example.com) for details.

Translation maintains exact same structure:

> **注意:** 这很重要。

详情请参阅[文档](https://example.com)。

Best Practices

  1. Context is key: Understanding the content type and audience improves translation quality
  2. Consistency: Use the same translation for recurring terms throughout a document
  3. Natural flow: Prioritize readability in the target language over literal translation
  4. Preserve intent: Maintain the original purpose and tone of the content
  5. Ask when uncertain: If target language or specific terminology is unclear, ask for clarification

Notes

  • This skill uses Claude's native multilingual capabilities, no external translation APIs required
  • Translation quality benefits from understanding the full context of the content
  • For very large documents, consider translating section by section to maintain quality
  • Always preserve code, links, and formatting exactly as they appear in the source

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.98%
按下载量换算23

Claude

30.6%
按下载量换算20

Cursor

16.94%
按下载量换算11

Gemini CLI

8.81%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills