SuperAPI AI Directory

article-translate

Writing & research

View repository

Updated 11-10 04:23

About this skill

Full translation (article-translate)

Translate article.md into article.zh.md. This istranslation, not rewriting: not a sentence deleted, not a sentence added; the structure corresponds block by block with the original. To extract or summarize, use the article-rewrite。

parameter:$ARGUMENTS

Input

article.md. If a link, file, or video is given, first use article-fetch / video-transcript to fetch the original text (see ../article2media/references/pipeline.md). By default, translate into Simplified Chinese; when the user wants another language, use the corresponding code for the filename (article.en.md), with the same rules.

1. Understand the original

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

Tells you how many blocks there are in total (paragraphs, headings, list items, table cells, image captions…), and how many words. Thenread the whole thing oncethrough the original.

2. Translate

Read references/translate-guide.md, then write <目录>/article.zh.md:

  • front matter: copy all fields from the original;title replace with the Chinese title; add lang: "zh"、translated_from: "article.md"、source_title: "<原标题>"。
  • body: translate block by block; the block types and order stay unchanged—one original paragraph is one translated paragraph, one list item is one list item, table rows and columns stay unchanged,# 标题 replace that line with the Chinese title.
  • Preserve as-is: code blocks, image ![…](地址), link addresses, and the original spellings of people's names and brand names (you may add a Chinese gloss in parentheses on first occurrence).
  • Wherever bold or italics appear in the original, add them to the corresponding words in the translation.
  • It's fine to finish a long text in several passes (write the first half, then append with editing), but do not summarize to save effort.

3. Check

node ${CLAUDE_SKILL_DIR}/scripts/translate.mjs check <目录>/article.md <目录>/article.zh.md
  • ✗ (block count mismatch, a block type changed, code or image addresses altered) must be fixed until there are 0 errors.
  • ⚠ Check each one: "looks untranslated", "much shorter than other paragraphs (possible omission)", "number not found". If it really is a name, a link, or a number written in Chinese characters, it can be kept; explain when delivering.

4. Deliver

  • When used alone:article.zh.md the absolute path of , the block count ("42 / 42 blocks correspond"), the check results, and the proper nouns you kept in the original.
  • In a composition (foreign-content reposting, original-text cards): pass article.zh.md to the next capability—for formatting purposes it is the "original text", formatted according to the rule of not changing a single character. State the source as "translated from <author>'s <platform> article 'original title'".
  • Before publicly posting a translation of someone else's article, remind the user to confirm authorization.