agentleFS
threerocksthreerocks/article2media/skills/article-translate/SKILL.md

article-translate

Skill345 starsChanged 6 days agoMITView on GitHub

全文翻译:把一篇外文文章(多为英文 X 长文、网页、逐字稿)完整译成中文 article.zh.md——不删减、不总结、不改写结构,标题、段落、列表、引用、表格、图片与原文逐块对应,代码和链接原样保留;脚本检查块数和结构是否一致、有没有漏译、没翻译或丢了数字。译文可以直接交付,也可以接原文长图、原文卡片、公众号排版(外文搬运)。Use when the user wants an article translated in full (翻译这篇、全文翻译、译成中文、搬运外文文章、英文转中文发公众号/小红书), or when an article2media original-text layout gets a source in another language than the reader's.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. wanggang316/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository11 other files it gives its agents.

The file

Files
SKILL.md

全文翻译(article-translate)

路径约定:文中的 ${CLAUDE_SKILL_DIR} 指本 SKILL.md 所在的目录。宿主没有替换这个变量时(命令里原样出现 ${CLAUDE_SKILL_DIR}),把它换成这个目录的绝对路径再运行;../<名字>/ 指同级的另一个 skill 目录。

把 article.md 译成 article.zh.md。这是翻译,不是改写:一句不删、一句不加,结构与原文逐块对应。要提炼、总结,用 article-rewrite。

参数:$ARGUMENTS

输入

article.md。给的是链接、文件或视频时,先用 article-fetch / video-transcript 取原文(见 ../article2media/references/pipeline.md)。默认译成简体中文;用户要别的语言时,文件名用对应代码(article.en.md),规则相同。

1. 看清原文

node ${CLAUDE_SKILL_DIR}/scripts/translate.mjs stats <目录>/article.md

告诉你一共多少块(段落、标题、列表项、表格单元、图注……)、多少词。然后完整读一遍原文。

2. 翻译

读 references/translate-guide.md,然后写 <目录>/article.zh.md:

  • front matter:复制原文的全部字段;title 换成中文标题;加 lang: "zh"、translated_from: "article.md"、source_title: "<原标题>"。
  • 正文:逐块翻译,块的种类和顺序不变——原文一段就是译文一段,一个列表项就是一个列表项,表格行列不变,# 标题 那行换成中文标题。
  • 原样保留:代码块、图片 ![…](地址)、链接地址、人名和品牌名的原文写法(可以首次出现时括注中文)。
  • 原文里粗体、斜体在哪,译文对应的词也加上。
  • 长文分几次写完没关系(先写前半,再用编辑追加),但不能为了省事概括。

3. 检查

node ${CLAUDE_SKILL_DIR}/scripts/translate.mjs check <目录>/article.md <目录>/article.zh.md
  • ✗(块数不一致、某块类型变了、代码或图片地址被改)必须修,直到 0 个错误。
  • ⚠ 逐条看:「像是没翻译」「比其他段短很多(可能漏译)」「数字没找到」。确实是名字、链接或把数字写成了汉字的,可以保留,交付时说明。

4. 交付

  • 单独使用时:article.zh.md 的绝对路径、块数("42 / 42 块对应")、检查结果,以及你保留原文的专有名词。
  • 在组合里(外文搬运、原文卡片):把 article.zh.md 交给下一个能力——它对排版来说就是"原文",按一字不改的规则排。来源写明「译自 <作者> 的<平台>文章《原标题》」。
  • 翻译他人文章公开发布前,提醒用户确认授权。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.