来源信息
- 仓库
- brycewang-stanford/Auto-Empirical-Research-Skills
- 最近来源活动
- 2026年4月3日 02:07
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 3,291
- 分支
- 432
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
菜单
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill r-reproducibility-guide命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
中英双语学术降 AIGC / bilingual academic de-AIGC skill. Removes AI-generated writing signatures from empirical papers in economics, management, and the social sciences — in both English and Chinese. Covers Turnitin AI, GPTZero, Originality.ai on the English side and 知网 AMLC, 万方, 维普 on the Chinese side. Uses a six-step loop (intake → audit → claim-evidence check → differentiated rewrite → five-dimension self-score → cold-reader recheck) with two pattern libraries (22 English + 17 Chinese patterns), section-by-section strategies for empirical papers, and hard protections that keep every number, coefficient, and citation intact.
Use when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an explicitly approved Kaggle write/delete operation through the official CLI.
基于 SOC 职业分类
| name | r-reproducibility-guide |
| description | Create reproducible research workflows with R and RMarkdown/Quarto |
| metadata | {"openclaw":{"emoji":"🔁","category":"tools","subcategory":"code-exec","keywords":["R programming","RMarkdown","reproducibility","Quarto","renv","computational reproducibility"],"source":"wentor-research-plugins"}} |
A skill for creating fully reproducible research workflows in R using RMarkdown, Quarto, package management with renv, and project organization best practices. Covers literate programming, environment management, automated reporting, and sharing reproducible analyses.
my-research-project/
README.md
my-project.Rproj # RStudio project file
renv.lock # Package versions (managed by renv)
renv/ # renv library directory
data/
raw/ # Untouched original data
processed/ # Cleaned, analysis-ready data
R/
01-clean.R # Data cleaning functions
02-analyze.R # Analysis functions
03-visualize.R # Plotting functions
utils.R # Helper functions
analysis/
main-analysis.Rmd # Primary analysis notebook
supplementary.Rmd # Supplementary analyses
output/
figures/ # Generated plots
tables/ # Generated tables
manuscript.pdf # Compiled document
Makefile # Reproducible build commands
1. Raw data is read-only (never modify original data files)
2. All processing steps are scripted (no manual spreadsheet edits)
3. Generated outputs can be deleted and recreated from source
4. Package versions are locked with renv
5. Random seeds are set for all stochastic operations
6. Paths are relative to project root (never absolute)
---
title: "Analysis of Treatment Effects"
author: "Jane Smith"
date: "`r Sys.Date()`"
output:
pdf_document:
toc: true
number_sections: true
html_document:
toc: true
code_folding: hide
bibliography: references.bib
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
echo = TRUE,
message = FALSE,
warning = FALSE,
fig.width = 7,
fig.height = 5,
dpi = 300
)
library(tidyverse)
library(broom)
set.seed(42)
```
# Introduction
This analysis examines the effect of treatment on outcomes
[@smith2024].
# Methods
```{r load-data}
df <- read_csv("data/processed/study_data.csv")
glimpse(df)
```
# Results
```{r model}
model <- lm(outcome ~ treatment + age + gender, data = df)
tidy(model, conf.int = TRUE)
```
```{r fig-main, fig.cap="Treatment effect on primary outcome."}
ggplot(df, aes(x = treatment, y = outcome, fill = treatment)) +
geom_boxplot() +
theme_minimal() +
labs(x = "Group", y = "Outcome Score")
```
---
title: "Analysis Report"
format:
html:
code-fold: true
toc: true
pdf:
documentclass: article
execute:
echo: true
warning: false
---
Quarto supports R, Python, Julia, and Observable JS in a single document, making it ideal for multilingual research workflows.
# Initialize renv in your project
renv::init()
# Install packages as usual
install.packages("tidyverse")
install.packages("lme4")
# Snapshot current package versions
renv::snapshot()
# Restore environment from lockfile (on a new machine)
renv::restore()
def explain_renv() -> dict:
"""
Explain the renv reproducibility workflow.
"""
return {
"init": "Creates project-local library and renv.lock",
"snapshot": (
"Records exact package versions (name, version, source) "
"into renv.lock. Commit this file to Git."
),
"restore": (
"Installs exact package versions from renv.lock on any machine. "
"Collaborators run renv::restore() to match your environment."
),
"benefits": [
"Each project has isolated package versions",
"No conflicts between projects",
"Exact reproducibility months or years later",
"renv.lock is a text file that diffs cleanly in Git"
]
}
# Makefile for reproducible analysis
all: output/manuscript.pdf
data/processed/clean_data.csv: data/raw/study_data.csv R/01-clean.R
Rscript R/01-clean.R
output/figures/figure1.pdf: data/processed/clean_data.csv R/03-visualize.R
Rscript R/03-visualize.R
output/manuscript.pdf: analysis/main-analysis.Rmd data/processed/clean_data.csv
Rscript -e "rmarkdown::render('analysis/main-analysis.Rmd', output_dir='output')"
clean:
rm -rf output/figures/* output/manuscript.pdf data/processed/*
# _targets.R
library(targets)
tar_option_set(packages = c("tidyverse", "broom"))
list(
tar_target(raw_data, read_csv("data/raw/study_data.csv")),
tar_target(clean_data, clean_dataset(raw_data)),
tar_target(model, fit_model(clean_data)),
tar_target(report, {
rmarkdown::render("analysis/main-analysis.Rmd")
"output/manuscript.pdf"
})
)
The targets package tracks dependencies between pipeline steps and only reruns steps whose inputs have changed, saving time on large analyses.
| Method | Effort | Reproducibility |
|---|---|---|
| GitHub repo + renv.lock | Low | Good (requires R installation) |
| Docker container | Medium | Excellent (full environment) |
| Binder (mybinder.org) | Low | Good (browser-based, no install) |
| Code Ocean capsule | Medium | Excellent (certified reproducibility) |
Always include a README with instructions for reproducing the analysis: required software, how to install dependencies (renv::restore), how to run the pipeline (make all), and expected runtime.