用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/javimosch/open-claw-skills --skill python-to-go-converter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | python-to-go-converter |
| description | Automatically converts Python code to optimized Go code for performance-critical applications. |
This skill automatically converts Python source code to idiomatic, compilable Go code. It handles type mappings, import translations, and produces clean Go output suitable for performance-critical applications.
The skill is installed as part of an OpenClaw skill package. Ensure dependencies are met (Python 3.8+, go compiler in PATH).
python-to-go-converter convert <input.py> [--output <output.go>]
The skill exposes a single-turn execution model. Provide Python code as input, receive Go code as output.
# Convert a single file
python-to-go-converter convert examples/basic.py --output output.go
# Convert with diagnostics
python-to-go-converter convert myscript.py --verbose
The converter produces non-zero exit codes on failure and writes diagnostics to stderr. Common errors include:
See error_codes.json for the full error catalog.
scripts/converter.py — Main CLI and conversion orchestrationscripts/ast_parser.py — Python AST parsing and analysisscripts/go_generator.py — Go code emission and formattingscripts/type_mapper.py — Type system translation rulesscripts/import_handler.py — Import resolution and library mappingreferences/python_to_go_mappings.json — Feature mapping tablereferences/stdlib_equivalents.json — Standard library translationsreferences/error_codes.json — Error code definitionsexamples/ — Example conversions and test casestests/ — Unit tests and validation suiteTypical conversion times: small scripts (<100 LOC) < 1s; medium (500 LOC) ~2-3s; large codebases scale linearly. Conversion is CPU-bound on Python parsing and AST traversal.
For issues, feature requests, or contributions, refer to the skill repository.