Multiple Language Coder
БесплатноБез исполняемых скриптовНе проверенPolyglot code converter and language architect. Use when input contains mixed, ambiguous, pseudo, or multi-language code fragments (Python+JS syntax blends…
от jhauga1 052 установки в других каталогахОб этом скилле
Multi-Language Code Converter and Language Architect
Convert mixed, pseudo, or multi-language input into idiomatic production code, and select the right language(s) when none is dictated by the project.
When to Use This Skill
- Input mixes syntax from multiple languages (e.g.,
defandfunctionin the same block,this.next toself., semicolons mixed with indentation-based blocks) - Input is pseudocode or natural language describing behavior plus code fragments
- User asks to "convert", "port", "translate", or "rewrite" code into another language
- A new project is starting with no language chosen and the user wants a recommendation
- A specification mixes config (YAML/TOML), SQL, and procedural logic that must be split into the right files
Operating Phases
Work through these phases in order. Skip a phase only when its premise does not apply (e.g., skip Phase 2 if a target language is already obvious from the project or user).
Phase 1 — Detect Existing Context
Before choosing a language, scan for signals in this priority order:
- Explicit user instruction — Always wins. If the user says "in Rust", produce Rust.
- Project manifests —
package.json,pyproject.toml/requirements.txt,Cargo.toml,go.mod,*.csproj,pom.xml/build.gradle,Gemfile,composer.json,tsconfig.json. The first one found generally dictates the target. - Source file extensions — Dominant extension in the workspace (
.ts,.py,.rs,.go,.java,.cs,.rb,.cpp,.kt,.swift). - Open editor / active file — Match the language of the file the user is editing.
- Nothing found — Proceed to Phase 2.
Phase 2 — Select Language (New Projects Only)
Run this only when Phase 1 yields no target. Map the goal to a domain, then pick the best fit:
| Domain | Strong default | Alternatives |
|---|---|---|
| Systems / performance-critical | Rust | C++, Go, Zig |
| Web backend / API | TypeScript (Node) | Go, Python, Java, C#, Ruby |
| Web frontend / UI | TypeScript | JavaScript |
| Data / ML / AI | Python | R, Julia |
| Mobile (native) | Swift (iOS) / Kotlin (Android) | Dart/Flutter, React Native |
| Scripting / automation | Python | Bash (Unix), PowerShell (Windows) |
| Embedded / IoT | C / Rust | C++, MicroPython |
| Enterprise / type-heavy | Java / C# | TypeScript, Kotlin |
Decide single vs. polyglot:
- Frontend + backend → always two languages (TS frontend + backend of choice).
- Data pipeline + API → Python for data, Go/Node for API is a reasonable split.
- Otherwise prefer a single language — every additional language costs maintenance.
State the choice briefly (2–3 sentences per language) before writing code. Include one tradeoff the user should know.
Phase 3 — Parse the Mixed Input
For each fragment in the input:
- Classify — Which language(s) does the syntax most resemble? Tag fragments (Python-like, JS-like, SQL, shell, config, prose intent).
- Extract intent — What is this fragment trying to do? What flows in/out? What are the side effects?
- Flag ambiguities — If intent is genuinely unclear, list assumptions explicitly. If an assumption materially changes the output, ask before generating.
- Map — For each fragment, identify the idiomatic equivalent in the target language.
Phase 4 — Generate Code
- Use idiomatic syntax, formatting, and conventions for the target (PEP 8 for Python, rustfmt for Rust, gofmt for Go, Airbnb/standard for JS/TS, etc.).
- Apply the language's native error-handling pattern (exceptions,
Result, error returns, promises). Do not port one language's pattern into another. - Add types/type hints where the language supports or requires them.
- Produce runnable units (correct imports, package declarations, module headers) unless the input is clearly a snippet.
- If the input implies multiple files/modules, emit each as a separate labeled block.
- List required dependencies with install commands (
pip install …,npm install …,cargo add …).
Phase 5 — Respond in This Format
- Language decision (only if Phase 2 ran) — one short paragraph.
- Conversion notes — bullets covering: ambiguities, assumptions made, fragments that were restructured and why.
- Generated code — one labeled code block per file/module.
- Dependencies — install commands.
- Next steps (optional) — only if the input was a partial spec.
Gotchas
- Never silently drop input logic. If a fragment cannot be cleanly converted (e.g., Python's GIL-dependent threading patterns into JS), call it out in conversion notes and propose an equivalent — do not omit it.
- Never leave mixed syntax in output. If the output still contains
defandfunctiontogether,thisandselftogether, orprintandconsole.logtogether, the conversion has failed. Re-check before responding. - Do not auto-convert config/data files (JSON, YAML, TOML, XML). Treat them as
Установить Multiple Language Coder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Multiple Language Coder?
Polyglot code converter and language architect. Use when input contains mixed, ambiguous, pseudo, or multi-language code fragments (Python+JS syntax blends, SQL embedded in shell, natural-language specs with code snippets, cross-stack pipelines) that must be converted into clean, idiomatic, production-ready code in the appropriate target language. Also use when starting a new project with no language chosen yet — selects the best language(s) based on domain (systems, web backend, frontend, data/ML, mobile, scripting, embedded, enterprise) and explains the choice. Keywords: convert code, translate language, mixed syntax, pseudocode, polyglot, language selection, port code, rewrite in.
Как установить скилл Multiple Language Coder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Multiple Language Coder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic