script-translator

Translates code between Stata, Python, and R while preserving logic and structure.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/AndreaMentasti/Claude-Setup---Wyss-Members --skill script-translator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-translator
Source: https://github.com/AndreaMentasti/Claude-Setup---Wyss-Members/tree/main/.claude/skills/script-translator
Command: npx skills add https://github.com/AndreaMentasti/Claude-Setup---Wyss-Members --skill script-translator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translates code between Stata, Python, and R with fidelity, preserving logic and structure line-for-line.

Core Features & Use Cases

  • Line-by-line translation that preserves structure and variable names.
  • Detects source/target language pairs and handles ambiguity with prompts when needed.
  • Flags non-direct equivalents for manual review and preserves statistical methods.

Quick Start

Provide the source script and target language to translate, and I will return a faithful cross-language translation.

Frequently Asked Questions about script-translator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate Stata do-files to Python or R scripts?

Translate Stata do-files to Python or R by providing the source script and target language. The tool preserves logic, structure, variable names, and statistical methods line-for-line for unambiguous language pairs.

Can I convert Python data analysis scripts to R while preserving variable names?

Convert Python data analysis scripts to R while preserving variable names and data handling logic. The translation maps code line-by-line to maintain the original structure and statistical methods.

What happens when there is no direct equivalent for a Stata command in R?

When there is no direct equivalent for a Stata command in R, the translation process flags the non-direct equivalent for manual review to ensure statistical fidelity.

Does the code translation tool handle ambiguous source languages automatically?

The code translation tool handles ambiguous source languages by detecting source and target pairs, prompting for clarification when needed to ensure an accurate line-by-line translation.

What is the best way to convert R code to Stata without changing the statistical methods?

Convert R code to Stata without changing statistical methods by applying fixed translation rules that preserve data handling and logic structure line-for-line.