← 返回 Skills 市场
litousteven

Translate TXT

作者 litousteven · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
85
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install smart-translate-txt
功能描述
Translate text files using OpenAI-compatible APIs (e.g. SiliconFlow, DeepSeek, OpenAI). Use when the user wants to: translate a txt file, translate text to C...
安全使用建议
This skill appears to do exactly what it says: it will send the contents of the input .txt file to whichever OpenAI‑compatible API you configure, so only provide an API key for a provider you trust and avoid translating sensitive or confidential documents with third‑party services. Note the registry metadata omits the required TRANSLATE_API_KEY even though SKILL.md and the scripts expect it — check the skill source before use (source/homepage are unknown). If you prefer to keep data local, run translations through a private endpoint (use --base-url) or avoid installing the skill. Finally, confirm where the .env file will be stored (~/.comate/skills/translate-txt/.env) and consider its filesystem permissions or removing the key after use.
功能分析
Type: OpenClaw Skill Name: smart-translate-txt Version: 1.0.1 The skill bundle is a legitimate tool for translating text files using OpenAI-compatible APIs. The code in `scripts/translate.py` implements a sophisticated translation strategy involving keyword extraction and sliding-window context without any signs of malicious intent, data exfiltration, or unauthorized execution. The `setup.sh` script safely manages local configuration in a `.env` file, and the `SKILL.md` instructions are consistent with the tool's stated purpose.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The name/description match the implemented behavior: a Python translator that sends text to an OpenAI‑compatible chat endpoint. The only required secret (an API key) is appropriate for this purpose. Minor inconsistency: the registry metadata reports "Required env vars: none" while SKILL.md and the code require TRANSLATE_API_KEY (and allow other optional env vars); this is likely a metadata omission rather than malicious.
Instruction Scope
SKILL.md instructs the agent to configure the API key (setup.sh) and run scripts/translate.py on an input file. The runtime instructions and code only read the local .env and the input file(s), chunk text, call the configured API endpoint, and write the translated output. There are no instructions to read unrelated files or exfiltrate environment/config beyond sending the input to the configured remote API (which is expected for a translation skill). Note: a provided sample (test.txt) contains copyrighted text — not a security issue for the code, but something to be aware of when testing.
Install Mechanism
No install spec or external downloads are used. The skill is instruction + included scripts (setup.sh and translate.py). setup.sh writes a .env in the skill directory; no remote installers, no archived downloads, and no unusual filesystem locations are created.
Credentials
The code requires a single service credential (TRANSLATE_API_KEY) and optionally accepts TRANSLATE_BASE_URL, TRANSLATE_MODEL, etc. That is proportionate to translating via an external API. Important: translating a file necessarily transmits its contents to the configured remote service — if the data is sensitive, the user should only use trusted providers or an internal endpoint.
Persistence & Privilege
The skill does not request system-wide privileges, does not set always:true, and does not modify other skills' configs. It persists configuration only to its own .env file under the skill directory (normal behavior).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install smart-translate-txt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /smart-translate-txt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
No visible changes in this version (1.0.1); the skill content and configuration remain the same.
v1.0.0
init. name: translate-txt description: | Translate text files using OpenAI-compatible APIs (e.g. SiliconFlow, DeepSeek, OpenAI). Use when the user wants to: translate a txt file, translate text to Chinese or other languages, batch translate documents, or convert foreign language txt files to Chinese. Triggers: 翻译txt文件, 翻译文本, translate txt, translate file, 文件翻译, txt翻译.
元数据
Slug smart-translate-txt
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Translate TXT 是什么?

Translate text files using OpenAI-compatible APIs (e.g. SiliconFlow, DeepSeek, OpenAI). Use when the user wants to: translate a txt file, translate text to C... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 85 次。

如何安装 Translate TXT?

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

Translate TXT 是免费的吗?

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

Translate TXT 支持哪些平台?

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

谁开发了 Translate TXT?

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

💬 留言讨论