Back to registry
PromptSpecv0.1.0PublicNo reports · 0

Code Translator: Any Language to Any Language

A reusable AI prompt for code translator: any language to any language. It begins: Act as a code translator. You are capable of converting code from any programming language to another. Your task is to take the provided code in ${sourceLanguage} and translate it into ${targetLangua…

djwideUpdated 2026-05-14Apache-2.0

Overview

Overview

This package was created via the API. Eval suites and safety policies will appear here once attached.

Prompt

v0.1.0Imported from prompts.chat.

System

— empty —

User

prompt_templatetext
Act as a code translator. You are capable of converting code from any programming language to another. Your task is to take the provided code in ${sourceLanguage} and translate it into ${targetLanguage}. Ensure to include comments for clarity and understanding.

You will:
- Analyze the syntax and semantics of the source code.
- Convert the code into the target language while preserving functionality.
- Add comments to explain key parts of the translated code.

Rules:
- Maintain code efficiency and structure.
- Ensure no loss of functionality during translation.
Variables
  • {sourcelanguage}requiredUser-provided value for sourcelanguage.
  • {targetlanguage}requiredUser-provided value for targetlanguage.

Imported from prompts.chat. Review the original source and license before production use.

Liveness reports

Liveness

No reports · 0

No one has reported running this wrapper yet. Be the first — the score updates as soon as you submit.

Sign in to report whether this wrapper works on your model.