lingzhi227/data-analysis
Generate statistical analysis code with 4-round review. Select appropriate statistical tests, interpret results, and produce analysis reports with p-values, effect sizes, and confidence intervals. Use when analyzing experimental data for a paper.
npx skills add https://github.com/lingzhi227/agent-research-skills --skill data-analysis
Generate rigorous statistical analysis code with multi-round review.
$0 — Data source (CSV, JSON, pickle, or experiment logs)$1 — Research goal or hypothesis to test~/.claude/skills/data-analysis/references/review-prompts.mdpython ~/.claude/skills/data-analysis/scripts/stat_summary.py --input results.csv --compare method --metric accuracy --output summary.json
python ~/.claude/skills/data-analysis/scripts/stat_summary.py --input results.csv --describe
Detects data types, recommends tests, runs comparisons, outputs effect sizes and significance stars. Requires numpy, scipy.
python ~/.claude/skills/data-analysis/scripts/format_pvalue.py --values "0.001 0.05 0.23" --format stars
python ~/.claude/skills/data-analysis/scripts/format_pvalue.py --csv results.csv --column pvalue --format latex
Formats p-values with stars, LaTeX notation, or plain text. Stdlib-only.
Structure the code with these sections:
# IMPORT — pandas, numpy, scipy, statsmodels, sklearn# LOAD DATA — Load from original data files# DATASET PREPARATIONS — Missing values, units, exclusion criteria# DESCRIPTIVE STATISTICS — Summary tables if needed# PREPROCESSING — Dummy variables, normalization# ANALYSIS — Statistical tests per hypothesis# SAVE ADDITIONAL RESULTS — Extra results to picklepandas, numpy, scipy, statsmodels, sklearn, pickle
| Data Type | Test |
|-----------|------|
| Two groups, normal | Independent t-test |
| Two groups, non-normal | Mann-Whitney U |
| Paired samples | Paired t-test / Wilcoxon |
| Multiple groups | ANOVA / Kruskal-Wallis |
| Categorical | Chi-square / Fisher's exact |
| Correlation | Pearson / Spearman |
| Regression | OLS / Logistic / Mixed effects |
formula = "y ~ a * b" for interactions)Take lingzhi227/data-analysis from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.