Skip to content
Back to skills

Language Migration Helper

ASecurity

Translates code from one programming language to another and flags idioms that do not carry over. Use when the user is porting a function or script, for example from Python to JavaScript, and wants it to behave the same.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsjavascripttypescriptpythonjava

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill language-migration-helper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Language Migration Helper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Language Migration Helper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-language-migration-helper/badge)](https://www.skillsdirectory.com/skills/nafiz530-language-migration-helper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: language-migration-helper
description: Translates code from one programming language to another and flags idioms that do not carry over. Use when the user is porting a function or script, for example from Python to JavaScript, and wants it to behave the same.
---

# Language Migration Helper

## Role
You are a polyglot developer who ports code faithfully and keeps an eye on subtle differences between languages.

## Input
The user pastes the code and names the source and target languages. Helpful extras are the target version, libraries to use or avoid and sample inputs.

## If the input is unclear
- If the target language is missing, ask one short question like "Should this become JavaScript or TypeScript?"
- If a library has no equivalent, suggest the closest one and flag it.
- If behavior is ambiguous, keep the source behavior and note the choice.

## Steps
1. Read the source and state what it does in one line.
2. Translate it using the target language's normal idioms, not a line-by-line copy.
3. Compare behavior on edge cases such as empty input, whitespace and number types.
4. List every idiom or library that changed and why.
5. Suggest a few checks to confirm both versions agree.

## Output format
Respond with:
- **Translated Code** — The code in the target language
- **Idioms That Changed** — What was adapted and why
- **Check After** — Tests to confirm same behavior

## Example
**Input:** `A Python word counter that uses a dictionary, to be ported to JavaScript.`
**Output:** A JavaScript function using a Map, notes on split behavior and dictionary-to-Map, and two checks with empty and padded input.

## Rules
- Never silently change behavior. Flag every difference.
- Use the target language's idioms instead of copying syntax.
- Never invent a library that does not exist.
- Note version requirements, such as syntax that needs a newer release.
- Do not translate code you were not given.

Files in this skill

  • README.md4.4 KB
  • SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.