← 返回 Skills 市场
207
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install api-translator
功能描述
將 API 文檔翻譯成繁體中文。輸入 API 文檔網址,輸出翻譯後的 API 說明。
使用说明 (SKILL.md)
API 文件翻譯助手
將 API 文檔翻譯成繁體中文(使用 LLM)。
使用方法
當用戶要求翻譯 API 文檔時:
- 使用
web_fetch工具抓取 API 文檔內容 - 將內容發送給 LLM 翻譯
- 輸出翻譯結果
翻譯 Prompt 模板
請將以下 API 文檔翻譯成繁體中文(台灣用語),保持 Markdown 格式和程式碼不變,只翻譯說明文字:
[API 文檔內容]
翻譯要求
- 保持 Markdown 格式
- 保持程式碼不變
- 只翻譯說明文字
- 使用台灣用語:
- 軟體 → 軟體
- 網路 → 網路
- 數據 → 資料
- 請求 → 請求
- 響應 → 回應
- 錯誤 → 錯誤
- 認證 → 驗證
- 授權 → 授權
- 終端 → 端點
增強功能 (v1.1.0)
支援格式
- HTML 網頁 (自動提取內容)
- JSON API 回應
- Markdown 文件
翻譯選項
| 參數 | 說明 |
|---|---|
| --format | 輸出格式 (markdown/json/txt) |
| --preserve-code | 是否保留程式碼 (預設 true) |
| --taiwan | 使用台灣用語 (預設 true) |
批次翻譯
支援多個 URL 批次翻譯:
翻譯以下 API 文檔:
- https://example.com/api/v1/docs
- https://example.com/api/v2/docs
範例
輸入: 用戶給你 https://platform.openai.com/docs/api-reference/introduction
輸出: 翻譯後的繁體中文 API 文檔
本技能由 OpenClaw 團隊開發
安全使用建议
This skill appears to do what it says (fetch a URL and prepare content for an LLM to translate), but review the following before installing:
- Confirm 'web_fetch' availability and provenance: both included scripts call the external command 'web_fetch' but the skill metadata does not declare it as a required binary or install step. Ensure your environment provides a trusted 'web_fetch' implementation or add an explicit dependency.
- Understand data flow: the skill will retrieve the full contents of any URL you supply and send it to the agent's LLM for translation. Do not use it on private/confidential API docs unless you are comfortable sending those documents to your LLM provider.
- Test in a sandbox: run the provided scripts in a controlled environment to verify behavior and to see exactly what is transmitted to the model/tooling.
- If you need offline or private translation, consider modifying the workflow to run a local translation model or to sanitize/redact sensitive fields before sending.
If you confirm 'web_fetch' is a trusted platform tool and you are comfortable with sending documents to your LLM, the skill is reasonably coherent; otherwise treat it as untrusted until those concerns are addressed.
功能分析
Type: OpenClaw Skill
Name: api-translator
Version: 1.1.0
The skill bundle is a legitimate tool designed to translate API documentation from a provided URL into Traditional Chinese. The scripts (api-translator.sh and api-translator.py) use a standard web_fetch utility to retrieve content and prepare a translation prompt for the LLM, with no evidence of data exfiltration, malicious execution, or harmful prompt injection instructions in SKILL.md.
能力评估
Purpose & Capability
Name/description match the behavior: the SKILL.md and scripts fetch a URL and prepare a translation prompt. However both scripts call the external command 'web_fetch' while the skill metadata lists no required binaries — a mismatch that could cause runtime failure or hide an undeclared dependency. Everything else (no unrelated creds or services) is consistent.
Instruction Scope
SKILL.md instructs the agent to fetch arbitrary API-doc URLs and send the content to the LLM for translation — this is within the stated purpose. Note: fetching arbitrary URLs means the skill will retrieve remote content and then send that content to an LLM; users should be aware this transmits document contents to whatever model/service the agent uses.
Install Mechanism
No install spec (instruction-only) which is low-risk. But two helper scripts are included that rely on 'web_fetch'; because there's no install or declared dependency, the runtime could fail or silently depend on a platform-provided 'web_fetch'. Confirm where 'web_fetch' comes from and that it is a trusted implementation.
Credentials
The skill requests no environment variables or credentials. That is proportionate for a translation-only tool. However the skill will send fetched document contents to the LLM — there is no credential leakage in the files, but sensitive documents will be transmitted to the model.
Persistence & Privilege
always:false and no install-time configuration changes are requested. The skill does not request elevated persistence or modify other skills/config—no privilege concerns found.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install api-translator - 安装完成后,直接呼叫该 Skill 的名称或使用
/api-translator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Version 1.1.0 introduces major enhancements to translation capabilities and format support:
- Now supports translating API documentation from HTML web pages, JSON API responses, and Markdown files.
- Adds batch translation for multiple URLs at once.
- Offers translation options for output format, code block preservation, and usage of Taiwan-specific terminology.
- Improves prompt template and translation requirements to ensure consistent, high-quality results.
- Enhanced overall usability and flexibility for a variety of API doc formats.
元数据
常见问题
Api Translator 是什么?
將 API 文檔翻譯成繁體中文。輸入 API 文檔網址,輸出翻譯後的 API 說明。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 207 次。
如何安装 Api Translator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install api-translator」即可一键安装,无需额外配置。
Api Translator 是免费的吗?
是的,Api Translator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Api Translator 支持哪些平台?
Api Translator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Api Translator?
由 ken(@dolphins1123)开发并维护,当前版本 v1.1.0。
推荐 Skills