Translates code from one programming language to another, handling syntax, libraries, frameworks, and complex codebases with intelligent mapping between languages.
This skill has safety concerns that you should review before use. Some patterns were detected that may pose a risk.Safety score: 60/100.
KillerSkills scans all public content for safety. Use caution before installing or executing flagged content.
A comprehensive skill for translating code between programming languages while preserving functionality, logic, and best practices.
1. **Analyze the Source Code**: Parse the source code to understand its structure, dependencies, and logic
2. **Identify Language and Frameworks**: Detect the source language and any frameworks used
3. **Map Dependencies**: Find equivalent libraries and frameworks in the target language
4. **Translate the Code**: Convert syntax, patterns, and logic to the target language
5. **Apply Language Conventions**: Ensure the translated code follows target language best practices
6. **Generate Documentation**: Provide the translated code with comments explaining key mappings and changes
**Basic Translation:**
```
translate this Python function to JavaScript:
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
```
**Framework Translation:**
```
convert this Express.js route to Flask:
app.get('/users/:id', (req, res) => {
const userId = req.params.id;
res.json({id: userId, name: 'John'});
});
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/code-translator-v20/raw