mcpField
C
convert-code

convert-code

github.com/cowork-osDevelopment51463 installsUpdated today
Repository

About convert-code

A skill for translating source code from one programming language to another while preserving its behavior. It produces converted code, migration notes, and any intentional semantic deviations.

Key features

  1. 01Convert source code between languages
  2. 02Preserve core logic and behavior
  3. 03Use idiomatic target-language patterns
  4. 04Provide migration notes
  5. 05Identify intentional semantic deviations

Use cases

  1. 01Translating a source file to a target language
  2. 02Porting code while retaining behavior
  3. 03Reviewing differences introduced during conversion

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cowork-os/cowork-os --skill convert-code

After installing, type/convert-codein Claude Code to confirm it loaded.

Details

From the project README

Convert Code

Purpose

Convert code from one language to another

Routing

  • Use when: Use when asked to translate source code from one language to another while preserving behavior.
  • Do not use when: Don't use when target language constraints, API semantics, or requirements are unclear.
  • Outputs: Converted source plus migration notes and any intentional semantic deviations.
  • Success criteria: Core logic and behavior stay equivalent, with idiomatic target-language usage.

Trigger Examples

Positive
  • Use the convert-code skill for this request.
  • Help me with convert code.
  • Use when asked to translate source code from one language to another while preserving behavior.
  • Convert Code: provide an actionable result.
Negative
  • Don't use when target language constraints, API semantics, or requirements are unclear.
  • Do not use convert-code for unrelated requests.
  • This request is outside convert code scope.
  • This is conceptual discussion only; no tool workflow is needed.

Parameters

NameTypeRequiredDescription
pathstringYesPath to the source file
targetLanguageselectYesTarget programming language

Runtime Prompt

  • Current runtime prompt length: 409 characters.
  • Runtime prompt is defined directly in ../convert-code.json.

Comments

Markdown supported