← 返回 Skills 市场
jackzhenguo

book translate

作者 jackzhenguo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
443
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install book-translate
功能描述
使用平台内置文本翻译技能,对整本书或长文本进行自动分段翻译
使用说明 (SKILL.md)

📚 全书翻译 (Book Translator)

这个 Skill 可以将 整本书或长文本内容自动拆分并翻译

由于大模型存在 token 限制,本技能会:

  1. 读取整本书文本
  2. 自动拆分为多个小段
  3. 调用平台内置 文本翻译 Skill
  4. 将所有翻译结果合并
  5. 输出完整译文

适用于:

  • PDF 书籍
  • TXT 文本
  • 长文章
  • 电子书内容
  • 长报告

工作流程

完整流程如下:

1 读取书籍内容

Agent 获取用户提供的文本或文件内容。


2 自动拆分文本

为了避免超过模型 Token 限制,系统会将文本拆分为多个片段。

示例:

原始文本

Chunk 1
Chunk 2
Chunk 3
Chunk 4


3 调用平台内置翻译 Skill

对每个片段调用:

text_translate

示例调用:

text_translate( text=chunk, target_language="Chinese" )


4 合并翻译结果

所有翻译片段将被合并为完整译文:

translated_chunk1
translated_chunk2
translated_chunk3

最终输出:

完整翻译文本


使用方式

用户可以直接对 Agent 说:

请把这本书翻译成中文

或者:

translate this book to Chinese

如果用户提供文本:

把下面这本书翻译成中文: [书籍内容]

Agent 会自动执行:

  1. 读取文本
  2. 自动拆分
  3. 调用翻译
  4. 合并结果

支持的文件类型

本 Skill 可以处理:

TXT
PDF
Markdown
长文本

如果是 PDF:

Agent 需要先提取文本,再执行翻译。


分段翻译策略

为了保证稳定性,本 Skill 使用 自动分段翻译策略

推荐分段大小:

1000 - 2000 字符

流程示例:

长文本

拆分

chunk1
chunk2
chunk3

逐段翻译

合并

这样可以:

  • 防止 Token 超限
  • 提高翻译稳定性
  • 降低失败概率

翻译规则

调用翻译 Skill 时,遵循以下规则:

  1. 保留原文段落结构
  2. 不省略内容
  3. 不总结
  4. 忠实翻译原文
  5. 保留专有名词

示例流程

输入:

Translate this book into Chinese.

Agent 执行流程:

读取文本

拆分文本

调用 text_translate

翻译 chunk1
翻译 chunk2
翻译 chunk3

合并译文

输出完整翻译


示例输出

第一章:人工智能的起源

人工智能的概念最早可以追溯到……

第二章:机器学习的发展

随着计算能力的提升……


推荐使用场景

这个 Skill 适用于:

  • 翻译整本书
  • 翻译研究论文
  • 翻译技术文档
  • 翻译课程资料
  • 翻译长报告

注意事项

  1. 如果文本过长,系统会自动拆分。
  2. 如果翻译中断,可以重新继续。
  3. 翻译质量取决于所调用的大模型。
安全使用建议
This skill is coherent and lightweight — it only describes splitting provided text/files and calling the platform's built-in translation routine. Before installing, confirm how the platform handles PDF extraction (which tool is used) and whether the platform's text_translate keeps data within your trusted environment (to avoid unintended data sharing). Also be mindful of copyright or sensitive content when translating entire books; test first with a small non-sensitive file.
功能分析
Type: OpenClaw Skill Name: book-translate Version: 1.0.0 The skill bundle provides instructions for an AI agent to perform long-form text translation by splitting content into chunks and calling a built-in translation function. The logic described in SKILL.md is consistent with its stated purpose, and there are no indicators of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name and description match the runtime instructions: reading user-provided long text/files, chunking them, calling a platform text_translate skill, and reassembling results. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
Instructions stay within the stated purpose (read provided text/files, split, call text_translate, merge). One minor omission: PDF handling is mentioned but the SKILL.md does not specify how PDF text extraction is performed or which tool to use — this is a functional gap but not a security incoherence.
Install Mechanism
No install spec and no code files — instruction-only. This minimizes on-disk risk and is proportionate for the described functionality.
Credentials
The skill declares no environment variables, credentials, or config paths. That matches the simple behavior described and is proportionate.
Persistence & Privilege
Skill is not always-enabled and uses default invocation settings. It does not request persistent system-level presence or modification of other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install book-translate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /book-translate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
book-translate 1.0.0 - Initial release of the book-translator skill. - Enables automatic splitting and translation of entire books or long documents. - Supports TXT, PDF, Markdown, and other long text formats. - Utilizes a chunking strategy to avoid token limits and combines translated segments. - Retains original paragraph structure and faithfully translates all content. - Designed for translating books, research papers, technical documents, and lengthy reports.
元数据
Slug book-translate
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

book translate 是什么?

使用平台内置文本翻译技能,对整本书或长文本进行自动分段翻译. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 443 次。

如何安装 book translate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install book-translate」即可一键安装,无需额外配置。

book translate 是免费的吗?

是的,book translate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

book translate 支持哪些平台?

book translate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 book translate?

由 jackzhenguo(@jackzhenguo)开发并维护,当前版本 v1.0.0。

💬 留言讨论