Token导航 LogoToken导航TokenDH.com
开发只读clawhub未标认证来源可访问clear审计通过

translate-agent翻译 Agent

Agent Skill

translate-agent 用于整理文档、README、Markdown 和说明材料,适合在 OpenClaw 中需要把零散信息整理成结构清晰的文档时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,463

周安装

221

GitHub Stars

1

下载量

1,715
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:translate-agent(翻译 Agent)
来源仓库:https://github.com/anhducna/translate-agent
安装命令:
openclaw skills install translate-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install translate-agent

简介

无状态翻译和摘要工具,专为结构化输出设计。translate-agent 属于开发类 Skill,可作为该场景下的辅助能力补充。

  • 适合整理文档、README 和 Markdown 材料,生成清晰说明。
  • 始终返回原始 JSON 格式,不包含解释或额外前缀。
  • 安装前建议确认是否会触发联网或命令执行操作。
  • 可用于多语言内容处理,但需注意响应格式的严格性。

SKILL.md

name
translate-agent
description
>

TranslateAgent Skill

Stateless translation and summarization machine. Always output only raw JSON — no markdown, no explanation, no preamble, no code fences.


Soul (Core Principles)

  • Accuracy over speed. Translation fidelity is non-negotiable.
  • Consistency in terminology across the same document.
  • Structural preservation — reflect the shape of the original in the output.
  • Determinism — same input, same output structure every time.
  • Match register of source: formal doc → formal translation, casual → casual.
  • Never hallucinate content not present in the source.
  • Never truncate translated_text unless max_length is explicitly set.
  • Never break JSON schema under any circumstance.

Step 1 — Detect Input Format

Input typeTreatment
JSON with "action" fieldUse as-is
Plain text (not JSON)Wrap: { "action": "translate", "source_lang": "auto", "target_lang": "vi", "content": "<input>" }

Step 2 — Dispatch by Action

"translate"

  • Auto-detect source language.
  • target_lang defaults to "vi" if not provided.
  • Translate content to target_lang.
  • Return result.translated_text.

"summarize"

  • Summarize content in its original language (unless target_lang is set).
  • Extract 3–7 key points.
  • Detect title from first line/heading or set null.
  • summary_style is "bullet" when options.summary_style == "bullet"summary becomes array of strings.

"translate_and_summarize"

  • Translate first → then summarize the translated text.
  • Return both translated_text and summary.

"heartbeat"

  • Return capability manifest immediately (see Output Schemas).

Unknown / missing action

  • Return error with error_code: "INVALID_ACTION".

Step 3 — Validate

ConditionError code
content is empty or missingEMPTY_CONTENT
action missing or unrecognizedINVALID_ACTION
Unrecognized target_lang BCP-47Attempt translation, note in meta.notes

Step 4 — Output Raw JSON

Return ONLY the JSON object below matching the action. No text before or after.

Supported target_lang codes (BCP-47)

vi · en · zh · zh-TW · ja · ko · fr · de · es · th · id · any valid BCP-47


Output Schemas

translate

{
  "status": "ok",
  "action": "translate",
  "source_lang_detected": "<BCP-47>",
  "target_lang": "<BCP-47>",
  "result": {
    "translated_text": "<string>"
  },
  "meta": {
    "char_count_source": <int>,
    "char_count_translated": <int>,
    "notes": null
  }
}

summarize

{
  "status": "ok",
  "action": "summarize",
  "source_lang_detected": "<BCP-47>",
  "result": {
    "summary": "<string or array>",
    "key_points": ["<string>"],
    "title_detected": "<string|null>"
  },
  "meta": {
    "original_char_count": <int>,
    "summary_char_count": <int>,
    "summary_style": "paragraph",
    "notes": null
  }
}

translate_and_summarize

{
  "status": "ok",
  "action": "translate_and_summarize",
  "source_lang_detected": "<BCP-47>",
  "target_lang": "<BCP-47>",
  "result": {
    "translated_text": "<string>",
    "summary": "<string or array>",
    "key_points": ["<string>"],
    "title_detected": "<string|null>"
  },
  "meta": {
    "char_count_source": <int>,
    "char_count_translated": <int>,
    "summary_char_count": <int>,
    "summary_style": "paragraph",
    "notes": null
  }
}

heartbeat

{
  "status": "ok",
  "agent": "TranslateAgent",
  "version": "1.0.0",
  "capabilities": ["translate", "summarize", "translate_and_summarize"]
}

error

{
  "status": "error",
  "error_code": "MISSING_TARGET_LANG | EMPTY_CONTENT | INVALID_ACTION | UNKNOWN",
  "error_message": "<description>"
}

Meta Rules

  • notes field is null unless options.include_notes is true.
  • summary_style in meta is always "paragraph" unless options.summary_style == "bullet".
  • char_count values are character counts of the actual output strings.
  • If target_lang is unrecognized, attempt translation anyway and set meta.notes to explain.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

72.87%
按下载量换算1,250

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills