R-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

Custom licenceAuto-check passedData & Analytics

Install R Python Translation

skills CLI
$ npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill r-python-translation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install brycewang-stanford/Auto-Empirical-Research-Skills r-python-translation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/r-python-translation .claude/skills/r-python-translation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
r-python-translation
GitHub stars
4.5k
Token cost
~5.5k tokens
SKILL.md length
1,827 words
Files
11 (incl. references)
Skills in repo
369
Repo updated
First seen
Licence
Custom licence

At a glance

R-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

  • Works in 5 steps: R user auditing DAAF Python code and… → Agent annotating code with R-equivalent… → R user learning Python for data analysis… → …
  • User has R background
  • SKILL.md covers What This Skill Does, How to Use This Skill, Quick Decision Trees and Package Mapping Overview, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

R Python Translation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. R-to-Python translation for data analysis. Maps R packages (tidyverse, ggplot2, fixest, survey, sf, plm) to Python equivalents (polars, plotnine, pyfixest, svy, geopandas). Use when user has R background or requests R-equivalent code comments.

Its SKILL.md is about 5.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `references/causal-inference.md`, `references/external-resources.md` and `references/gotchas.md`).

It sits in Data & Analytics, covering Translation, Geospatial analysis and Technical documentation. It works with Python and Polars. The repository describes itself as: 🔬 A curated collection of 23,000+ agent skills for empirical research across 8 social science disciplines. | 精选 23,000+ AI Agent 技能库,覆盖8大社会科学学科的实证研究。CoPaper.AI…

When your agent uses it

  • User has R background
  • Requests R-equivalent code comments

Example prompts

  • “/r-python-translation”

Requirements

  • Python 3
  • Docker

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. R user auditing DAAF Python code and needing to understand what operations are being performed
  2. Agent annotating code with R-equivalent comments for an R-background researcher
  3. R user learning Python for data analysis and needing a conceptual bridge
  4. Translating a specific R operation or idiom to its Python equivalent
  5. Understanding where R tools have no direct Python equivalent (and what the workaround is)

What it can do on your machine

Read from SKILL.md and the folder at commit 9fa87d8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

R Python Translation loads about 5.5k tokens when it runs, and up to ~65k if it reads all its reference files. Until then it costs about 66 tokens; SKILL.md has 1,827 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~5.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~65k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,827 words (~5,486 tokens).

“R-to-Python translation reference for quantitative social science data analysis. Maps R ecosystem packages (tidyverse/dplyr, ggplot2, fixest, survey, sf, plm, lme4, marginaleffects, rdrobust) to DAAF Python equivalents (polars, plotnine, pyfixest, statsmodels, linearmodels, svy, geopandas). Use when user mentions R/RStudio background, requests…”

— opening of SKILL.md by brycewang-stanford, Custom licence
name
r-python-translation
metadata.audience
research-coders
metadata.domain
research-methodology
metadata.skill-last-updated
2026-03-28

Read the full SKILL.md on GitHub

Files

SKILL.md and 10 other files (references) in skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/r-python-translation of brycewang-stanford/Auto-Empirical-Research-Skills.

  • SKILL.md
  • references/causal-inference.md
  • references/external-resources.md
  • references/gotchas.md
  • references/paradigm-differences.md
  • references/polars-dplyr.md
  • references/polars-strings-dates-factors.md
  • references/regression-modeling.md
  • references/survey-spatial-ml.md
  • references/visualization.md
  • references/workflow-environment.md

Open the folder on GitHubat commit 9fa87d8

Compare with similar skills

R Python Translation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

R Python Translation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
R Python Translation this skillbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~5.5kAutomated safety check: PassCustom licence
Hybrid-Engine Data Analysiscode-yeongyu/oh-my-openagent70k—~1.4kAutomated safety check: PassCustom licence
Python Executorcortega26/chile-hub1132 repos~1.5kAutomated safety check: PassMIT
Pandas ProJeffallan/claude-skills12k1 repos~1.5kAutomated safety check: PassMIT
GeoPandas Spatial Analysisdavila7/claude-code-templates32k10 repos~1.8kAutomated safety check: PassMIT
Optimuskgmims-harvard/OptimusKG146—~1.9kAutomated safety check: PassMIT

Similar skills

  • Hybrid-Engine Data Analysis

    code-yeongyu/oh-my-openagent

    Analyzes CSV, Parquet and JSON data with DuckDB, Polars, numpy and matplotlib, preferring a persistent kernel over repeated one-shot processes.

    70k GitHub stars~1.4k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Python Executor

    cortega26/chile-hub

    Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh).

    113 GitHub starsUsed in 2 repos~1.5k tokens
    Data & AnalyticsAuto-check passed
  • Pandas Pro

    Jeffallan/claude-skills

    Handles pandas DataFrame work: cleaning, merging, groupby aggregation, pivots, time-series resampling and memory tuning, with checks on dtypes, shapes and nulls.

    12k GitHub starsUsed in 1 repo~1.5k tokens
    Data & AnalyticsAuto-check passed
  • GeoPandas Spatial Analysis

    davila7/claude-code-templates

    Handles vector geospatial data in Python with GeoPandas: reading shapefiles, GeoJSON and GeoPackage, reprojecting, spatial joins, overlays, clipping and maps.

    32k GitHub starsUsed in 10 repos~1.8k tokens
    Data & AnalyticsAuto-check passed
  • Optimuskg

    mims-harvard/OptimusKG

    Guide for using OptimusKG, the biomedical knowledge graph, through the optimuskg Python client.

    146 GitHub stars~1.9k tokensUpdated 15 days ago
    Data & AnalyticsAuto-check passed
  • Setup Workspace

    probabl-ai/skills

    Detect an existing ML workspace or scaffold a fresh one via python -m skoreskills scaffold --package <pkg.

    135 GitHub stars~1.5k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from brycewang-stanford/Auto-Empirical-Research-Skills

All 369 skills in this repo
  • Latex Paper En

    brycewang-stanford/Auto-Empirical-Research-Skills

    English LaTeX academic paper assistant for existing .tex projects.

    4.5k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Bayesian Workflow

    brycewang-stanford/Auto-Empirical-Research-Skills

    Opinionated Bayesian modeling workflow with PyMC and ArviZ. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.

    4.5k GitHub stars~3.5k tokensUpdated 2 days ago
    Auto-check passed
  • Five Questions

    brycewang-stanford/Auto-Empirical-Research-Skills

    Deeply analyze any empirical economics PDF using the five-question framework (五问框架): research question, identification strategy, core estimand, robustness logic, and scholarly contribution.

    4.5k GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check: notes
  • Kaggle Research

    brycewang-stanford/Auto-Empirical-Research-Skills

    A skill your agent uses when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an…

    4.5k GitHub stars~868 tokensUpdated 2 days ago
    Auto-check passed
  • Latex Thesis Zh

    brycewang-stanford/Auto-Empirical-Research-Skills

    Chinese LaTeX thesis assistant for existing .tex degree thesis projects (XeLaTeX/LuaLaTeX/latexmk).

    4.5k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Obsidian Project Memory

    brycewang-stanford/Auto-Empirical-Research-Skills

    This skill should be used when the user asks to maintain an Obsidian knowledge base for a research project, import an existing research repository into Obsidian, keep project memory or daily notes…

    4.5k GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about R Python Translation

What does R Python Translation do?

R-to-Python translation for data analysis. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. R Python Translation is an agent skill from brycewang-stanford/Auto-Empirical-Research-Skills. R-to-Python translation for data analysis.

When should I use R Python Translation?

R Python Translation fits situations like: user has R background; requests R-equivalent code comments.

How do I install R Python Translation in Claude Code?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill r-python-translation -a claude-code`. Or copy the skill folder (skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/r-python-translation in brycewang-stanford/Auto-Empirical-Research-Skills) into .claude/skills/r-python-translation in your project. Claude Code loads it when a task matches its description.

How do I install R Python Translation in Codex?

Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill r-python-translation -a codex`. Or copy the skill folder (skills/17-DAAF-Contribution-Community-daaf/dot-claude/skills/r-python-translation in brycewang-stanford/Auto-Empirical-Research-Skills) into .agents/skills/r-python-translation in your project. Codex loads it when a task matches its description.

Can I use R Python Translation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill r-python-translation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/r-python-translation, .gemini/skills/r-python-translation, .github/skills/r-python-translation and .opencode/skills/r-python-translation in your project.

What does R Python Translation need to run?

SKILL.md names no scripts, command-line tools or credentials: R Python Translation is instructions for the agent only. Our summary lists: Python 3; Docker.

Does R Python Translation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is R Python Translation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does R Python Translation use?

R Python Translation has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does R Python Translation use?

About 5.5k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 59k tokens, read only when the agent opens those files.

What are the alternatives to R Python Translation?

Skills that share tags, products or a category with R Python Translation: Hybrid-Engine Data Analysis (code-yeongyu/oh-my-openagent, 70k stars), Python Executor (cortega26/chile-hub, 113 stars), Pandas Pro (Jeffallan/claude-skills, 12k stars) and GeoPandas Spatial Analysis (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains R Python Translation?

brycewang-stanford (a GitHub user) maintains it in brycewang-stanford/Auto-Empirical-Research-Skills, which has 4,517 GitHub stars. The repository holds 369 skills in this directory. The repository was last updated on October 5, 2026.

Source: brycewang-stanford/Auto-Empirical-Research-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.