mcpField
W
web-article-translator

web-article-translator

github.com/spacezephyrDocuments34061 installsUpdated 31w ago
Repository

About web-article-translator

web-article-translator is a skill that translates online articles into Chinese and saves them as Markdown files. It preserves the original structure and image links, while adapting the translation style to the article type.

Key features

  1. 01Fetch webpage content with webReader
  2. 02Translate online articles into Chinese
  3. 03Preserve Markdown structure and code blocks
  4. 04Retain source image links
  5. 05Save translations using a specified filename format
  6. 06Report file path, word count, and image count

Use cases

  1. 01Translate an online article into Chinese Markdown
  2. 02Save a technical article translation with image references
  3. 03Preserve original headings, lists, and code blocks

MCP support

The workflow uses mcp__web_reader__webReader to retrieve article content, then saves the translation as a Markdown file.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/spacezephyr/myskill --skill web-article-translator

After installing, type/web-article-translatorin Claude Code to confirm it loaded.

Details

From the project README

Web Article Translator

Overview

翻译在线文章为中文,并将结果保存为 Markdown 格式文件,保留原文的图片链接。

Workflow

1. 获取网页内容

使用 mcp__web_reader__webReader 工具获取文章内容:

  • 设置 return_format 为 markdown
  • 设置 retain_images 为 true
  • 保留原始图片链接
2. 翻译内容

将获取的 Markdown 内容翻译为中文:

  • 翻译原则:保持原文风格,根据原文类型(新闻、技术文档、博客等)自动调整翻译风格
  • 专业术语:技术术语首次出现时保留英文原文在括号中,后续可直接使用中文
  • 可读性:确保翻译合理、流畅、易懂
  • 格式保留:保持原有的 Markdown 结构(标题、列表、代码块等)
3. 保存文件

将翻译后的内容保存为 Markdown 文件:

  • 文件名格式:translated-{标题}.md 或 translated-article-{日期时间}.md
  • 保存到当前工作目录
  • 保留所有图片引用链接
4. 输出确认

完成翻译后,告知用户:

  • 文件保存路径
  • 翻译字数统计
  • 图片数量(如果有)

Example Usage

用户请求:

翻译这篇文章 https://example.com/article

执行流程:

  1. 使用 webReader 工具获取 URL 内容
  2. 翻译 Markdown 内容为中文
  3. 保存到 translated-article.md
  4. 告知用户完成情况

Comments

Markdown supported