Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Converts Python source files to idiomatic, compilable Go code. Handles type mappings, standard library translations, and control flow structures. Outputs formatted Go code with diagnostics for unsupported features.
Eliminates the mechanical portion of a Python-to-Go migration by handling type mapping and import translation automatically, leaving only the logic that genuinely requires human judgment.
When to use it
- Porting a Python microservice to Go for lower latency
- Migrating a CLI tool from Python to a statically-typed binary
- Batch-converting utility scripts before a language migration
- Checking which parts of a Python module can be auto-translated
- Generating a Go starting point from a Python prototype
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: convert myscript.py to Go
- 1Parse myscript.py using the Python AST parser
- 2Map Python types to Go equivalents via type_mapper rules
- 3Resolve Python standard library imports to Go counterparts
- 4Emit formatted Go source code with inline comments
- 5Report any unsupported constructs to stderr with error codes
A compilable output.go file with idiomatic Go code and a diagnostic summary of any skipped features
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.