/social-science-research:data-analysis [dataset path or description of analysis goal]from Social Science Research
Runs end-to-end data analysis in R or Python: load, explore, analyze, and produce publication-ready tables and figures. Use for empirical analysis, regression, or producing output from datasets.
Ships in Social Science Research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run an end-to-end data analysis in R or Python: load, explore, analyze, and produce publication-ready output.
Input: $ARGUMENTS — a dataset path (e.g., data/county_panel.csv) or a description of the analysis goal (e.g., "regress wages on education with state fixed effects using CPS data").
Before making analysis changes, read ${CLAUDE_PLUGIN_ROOT}/rules/orchestrator-protocol.md, ${CLAUDE_PLUGIN_ROOT}/rules/analysis-verification.md, and ${CLAUDE_PLUGIN_ROOT}/rules/quality-gates.md; for replication or extension requests, also read ${CLAUDE_PLUGIN_ROOT}/rules/replication-protocol.md.
R is the default. If ambiguous, use AskUserQuestion to pick R (Recommended — tidyverse/fixest/ggplot2, full plugin support including r-reviewer) or Python (pandas/statsmodels). Pick R when the project has existing .R code; Python when it has existing .py or .ipynb.
If $ARGUMENTS points to a PDF, HTML page, government portal URL, or other non-tabular source, Read ${CLAUDE_PLUGIN_ROOT}/skills/data-analysis/references/ingest-recipes.md and follow it before Phase 1. Skip this phase for flat files (.csv, .parquet, .dta, .rds, .feather, .json).
${CLAUDE_PLUGIN_ROOT}/rules/r-code-conventions.md for all standardsscripts/R/ with descriptive namesoutput/saveRDS() for every computed objectr-reviewer on the generated script before presenting results${CLAUDE_PLUGIN_ROOT}/skills/data-analysis/assets/analysis-script.R and adaptlibrary(), never require())set.seed(42)dir.create("output/analysis", recursive = TRUE, showWarnings = FALSE)summary(), missingness rates, variable typesoutput/diagnostics/fixest; cross-section: use lm/glmMandatory for any analysis with a causal interpretation. Detect the design from the analysis goal and the model call (feols(... | id + t) with treatment-timing → DiD; rdrobust → RDD; feols(y ~ ... | 0 | endog ~ instr) → IV; tidysynth → synthetic control; random assignment → RCT; MatchIt/cobalt → matching). Read ${CLAUDE_PLUGIN_ROOT}/skills/data-analysis/references/identification-r.md and run the block matching the detected design. Ask once with AskUserQuestion only if the design is genuinely ambiguous. Skip this phase for purely descriptive analyses.
Tables: modelsummary (preferred) or stargazer — export .tex and .html
Figures: ggplot2 with project theme; explicit ggsave(width = X, height = Y); save as .pdf and .png; add bg = "transparent" only if output is for Beamer slides
saveRDS() for all key objectsr-reviewer agent via Task:
Task prompt: "Review the R script at scripts/R/[script_name].R against
${CLAUDE_PLUGIN_ROOT}/rules/r-code-conventions.md. Save your report to
quality_reports/[script_name]_r_review.md. Follow the r-reviewer agent instructions."
scripts/python/ with descriptive namesoutput/joblib.dump() for model objects; .to_parquet() for DataFramespathlib.Path for all file paths — never hardcode absolute paths${CLAUDE_PLUGIN_ROOT}/skills/data-analysis/assets/analysis-script.py and adaptnp.random.seed(42) and random.seed(42)Path("output/analysis").mkdir(parents=True, exist_ok=True)pandasdf.describe(), df.isnull().sum(), df.dtypesmatplotlib/seabornoutput/diagnostics/df.describe().to_csv("output/diagnostics/summary_stats.csv")smf.ols("y ~ x", data=df).fit(cov_type="HC3")PanelOLS from linearmodels with cluster-robust SEsMandatory for any analysis with a causal interpretation. Detect the design from the analysis goal and the model call (PanelOLS(..., entity_effects=True, time_effects=True) with treatment timing → DiD; rdrobust port → RDD; IV2SLS → IV; pysyncon → synthetic control; experiment → RCT; causalinference → matching). Read ${CLAUDE_PLUGIN_ROOT}/skills/data-analysis/references/identification-py.md and run the block matching the detected design. Skip this phase for purely descriptive analyses.
Tables: Format with pandas and export via .to_latex() or stargazer (Python port)
Figures: matplotlib/seaborn; explicit fig.savefig(path, dpi=300, bbox_inches="tight"); save as .pdf and .png
joblib.dump(model, "output/model.pkl") for fitted modelsdf_results.to_parquet("output/results.parquet") for DataFrames[ ] All imports at top
[ ] Random seeds set (numpy + stdlib)
[ ] All paths use pathlib.Path — no hardcoded strings
[ ] Output directories created with mkdir(exist_ok=True)
[ ] Figures saved with explicit dpi=300, bbox_inches="tight"
[ ] Model objects saved with joblib.dump()
[ ] DataFrames saved as parquet
[ ] Comments explain WHY, not WHAT
What SKILL.md sets; muted values are Claude Code's defaults
analyze data, run regression, write R code, write Python code, I have a dataset, help with regression, DiD, RDD, event study, IV regression, fit a model, produce a table, make a figure, explore data, dataset path, empirical estimation
Three short reads, in order
npx claudepluginhub felpix-studios/social-science-research --plugin social-science-research13 skills in this plugin
/data-finderFind and assess datasets for a research question. Explorer agents search data source categories; Explorer-Critic stress-tests candidates and produces ranked list with feasibility grades. Use when identifying or evaluating data sources, not searching papers or running analysis./lit-reviewStructured literature review via parallel Librarian agents. Searches top journals, working paper repos (NBER, SSRN, IZA); traces citation chains from key papers. Use when surveying existing research on a topic, not finding datasets or writing a paper./new-projectStart a new research project. Structured interview formalizes the idea; generates research questions with identification strategies and a project spec. Use when developing or documenting a new research idea, not searching literature or data./proofreadProofread papers and manuscripts. Checks grammar, typos, layout, consistency, writing quality. Produces report without editing files. Use when finding surface-level errors, not substantive academic critique./quality-gateVerify every quantitative claim in the paper traces to an analysis output file, and no important output was omitted. Use when checking the paper matches the analysis before submission./research-setupInteractive wizard that configures the social-science-research plugin for a new project. Asks about field, institution, journals, datasets, key researchers, R palette; writes answers to references/domain-profile.md and CLAUDE.md. Use first when starting fresh or configuring the plugin.Other plugins' skills for the same job