Code Converter is a skill that translates source code across Python, TypeScript, JavaScript, and Go while maintaining idiomatic integrity rather than performing a literal character-for-character substitution. It analyzes code logic and remaps constructs to the target language’s natural patterns: Python list comprehensions become TypeScript .map() calls, Go structs are transformed into Python classes, and naming conventions such as snake_case and camelCase are adapted automatically.
When converting to TypeScript, the skill generates proper types instead of falling back to ‘any’, keeping the output type-safe. Standard library calls are remapped to their target-language equivalents — for example, Python’s os.path maps to the Node.js path module, and json maps to the JavaScript JSON global. Async/await patterns and error-handling idioms are also translated according to the conventions of the destination language.
Comments and documentation are preserved through the conversion so that existing inline documentation carries over rather than being discarded. This makes it suitable for porting a library, migrating a microservice, or onboarding into an unfamiliar language by studying a converted version of familiar code.
The skill is scoped to the four listed languages. It is not intended for lower-level languages such as C, Rust, or Java, and it does not perform runtime testing or guarantee that the output is production-ready without human review.