Agent skill

code-translator-v2-majiayu000-claude-skill-regist

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/code-translator-v2-majiayu000-claude-skill-regist

SKILL.md

Morgus Skill: Code Translator v2.0

Description

This skill translates code from one programming language to another. It supports a wide range of languages and can handle complex codebases, including syntax, libraries, and frameworks.

Core Principles

  • Language Agnostic: Support for all major programming languages.
  • Syntax and Semantics: Translate not just the syntax, but also the underlying logic and semantics.
  • Library and Framework Mapping: Map equivalent libraries and frameworks between languages.

Step-by-Step Workflow

  1. Analyze the Source Code: Morgus parses the source code to understand its structure, dependencies, and logic.
  2. Identify Language and Frameworks: Morgus detects the source language and any frameworks used.
  3. Translate the Code: Morgus translates the code to the target language, mapping syntax, libraries, and frameworks.
  4. Generate the Translated Code: Morgus provides the translated code with comments and explanations.

Keyword Triggers

  • "translate this code to..."
  • "convert this Python to JavaScript"
  • "rewrite this in..."
  • "port this code to..."

Didn't find tool you were looking for?

Be as detailed as possible for better results