← 返回 Skills 市场
skill-to-cn
作者
Zhou Chang
· GitHub ↗
· v1.0.0
· MIT-0
124
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install skill-to-cn
功能描述
将任意技能汉化为中文版本。当用户要求"汉化技能"、"翻译技能"、"把XX技能翻译成中文"、"创建技能的中文版"时触发。输入原始技能路径(如 ~/.claude/skills/X/),输出汉化后的技能目录(~/.claude/skills/X-cn/)。
安全使用建议
This skill is coherent with its goal (translating a skill tree into Chinese), but exercise caution before using it on real or sensitive skills. Key points to consider:
- Backup first: create a copy of the source skill directory before running the script or let the script write to a custom output path. Test on a non-critical skill first.
- Review the script: the provided Python script modifies comments and docstrings (it converts triple-quoted docstrings into commented lines), which can remove runtime docstrings (__doc__) and may change program behavior or affect tools that rely on docstrings.
- Avoid secrets: do not point the tool at directories that may contain credentials, tokens, or other sensitive files — the process will read and copy all files under the given path.
- Use --no-translate for an initial dry run: the script supports copying the structure without performing translation; use that to verify the produced skeleton before automatic text substitution.
- Inspect translations before use: the SKILL.md requires the model to write back translated files. Review the translated files manually (especially scripts) before enabling or distributing the translated skill.
- Symlink/path caution: the script resolves paths and may follow symlinks; ensure the supplied path is correct to avoid operating on unexpected locations.
If you need stronger guarantees (no code mutation, only translate docs), request a version that restricts translations to documentation files (README, SKILL.md, references) and does not alter code files or docstrings.
功能分析
Type: OpenClaw Skill
Name: skill-to-cn
Version: 1.0.0
The 'skill-to-cn' bundle is a utility designed to localize Claude Code skills into Chinese. It uses a Python script (scripts/translate_skill.py) to copy a source skill's directory structure and mark text content (Markdown, code comments, and YAML metadata) for translation, followed by instructions in SKILL.md for the AI agent to perform the actual translation. The code uses standard filesystem operations and lacks any indicators of data exfiltration, malicious execution, or persistence.
能力评估
Purpose & Capability
Name, description, and included script align: the skill's goal is to produce a Chinese copy of another skill and the bundle contains a script that walks a skill directory, marks translatable items, and copies files into a <name>-cn target. No extra credentials, binaries, or unrelated dependencies are requested.
Instruction Scope
SKILL.md explicitly instructs Claude to read every generated target file, find all '[待翻译]' markers and replace them with translated text, and write back files. That requires full read/write access to arbitrary files in the specified skill directory. The script also transforms Python docstrings into comment lines (losing runtime docstrings), and the agent is given wide discretion about how to translate text (including translating program output and prompts). There are no safety checks, sandboxing, or explicit instructions to avoid altering executable logic. This broad file mutation scope could unintentionally break code or alter behavior; if source files contain sensitive data, they will be read and written.
Install Mechanism
Instruction-only skill with no install spec and a local Python script. No network downloads or external install steps are present. This is a low-risk install mechanism from the package-delivery perspective.
Credentials
The skill asks for no environment variables, credentials, or config paths. It operates on filesystem paths supplied by the user (defaulting to ~/.claude/skills/<skill>/), which is appropriate for its stated purpose. However, because it reads arbitrary files under the provided path, users should avoid targeting directories that contain secrets or unrelated sensitive data.
Persistence & Privilege
always:false and no system-wide configuration changes are requested. The skill creates a sibling -cn directory for the translated skill and preserves file permissions. It does not request permanent/global privileges or modify other skills' configurations in its code.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install skill-to-cn - 安装完成后,直接呼叫该 Skill 的名称或使用
/skill-to-cn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Release v1.0.0 from GitHub
元数据
常见问题
skill-to-cn 是什么?
将任意技能汉化为中文版本。当用户要求"汉化技能"、"翻译技能"、"把XX技能翻译成中文"、"创建技能的中文版"时触发。输入原始技能路径(如 ~/.claude/skills/X/),输出汉化后的技能目录(~/.claude/skills/X-cn/)。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 124 次。
如何安装 skill-to-cn?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill-to-cn」即可一键安装,无需额外配置。
skill-to-cn 是免费的吗?
是的,skill-to-cn 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
skill-to-cn 支持哪些平台?
skill-to-cn 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 skill-to-cn?
由 Zhou Chang(@zhouchang1988)开发并维护,当前版本 v1.0.0。
推荐 Skills