← Back to Skills Marketplace
dolphins1123

Api Translator

by ken · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
207
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install api-translator
Description
將 API 文檔翻譯成繁體中文。輸入 API 文檔網址,輸出翻譯後的 API 說明。
README (SKILL.md)

API 文件翻譯助手

將 API 文檔翻譯成繁體中文(使用 LLM)。

使用方法

當用戶要求翻譯 API 文檔時:

  1. 使用 web_fetch 工具抓取 API 文檔內容
  2. 將內容發送給 LLM 翻譯
  3. 輸出翻譯結果

翻譯 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 團隊開發

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install api-translator
  3. After installation, invoke the skill by name or use /api-translator
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug api-translator
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Api Translator?

將 API 文檔翻譯成繁體中文。輸入 API 文檔網址,輸出翻譯後的 API 說明。 It is an AI Agent Skill for Claude Code / OpenClaw, with 207 downloads so far.

How do I install Api Translator?

Run "/install api-translator" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Api Translator free?

Yes, Api Translator is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Api Translator support?

Api Translator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Api Translator?

It is built and maintained by ken (@dolphins1123); the current version is v1.1.0.

💬 Comments