code-translation
Installation
SKILL.md
Code Translation
Systematic translation of code between programming languages while preserving correctness, adapting to idiomatic conventions of the target language, mapping library equivalents, handling type system differences, and verifying the translation through testing. This skill covers both small snippet translations and large-scale project migrations.
When to Use This Skill
Use this skill for:
- Porting a module or library from one language to another
- Converting code examples from documentation written in a different language
- Migrating a project from one technology stack to another (e.g., Java to Kotlin, Python 2 to Python 3, JavaScript to TypeScript)
- Adapting an algorithm implementation from a reference language to your project's language
- Translating test cases alongside production code
- Creating polyglot implementations that must behave identically across languages
Trigger phrases: "translate this code", "port to Python", "convert to JavaScript", "rewrite in Java", "translate from", "code migration", "language conversion", "port this function", "equivalent in", "same thing in Python"