Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
lingzhi227 avatar

Data Analysis

  • 1.5k installs
  • 255 repo stars
  • Updated February 27, 2026
  • lingzhi227/agent-research-skills

data-analysis is an agent skill that generates statistically reviewed analysis code with p-values, effect sizes, and confidence intervals for experimental research data.

About

The data-analysis skill produces rigorous statistical analysis code for research papers from CSV, JSON, pickle, or experiment log inputs plus a stated hypothesis. It structures generated Python with import, load, dataset preparation, descriptive statistics, preprocessing, analysis, and pickle export sections. A four-round review cycle checks code flaws, data handling, per-table sanity, and cross-table consistency using prompts from bundled reference files. Helper scripts stat_summary.py and format_pvalue.py recommend tests by data type, run group comparisons, and format p-values as stars or LaTeX. Allowed packages are pandas, numpy, scipy, statsmodels, sklearn, and pickle. Test selection covers t-tests, Mann-Whitney, ANOVA, chi-square, correlation, and regression variants matched to variable types. Rules require p-values on every test, confounder control, string-based column access, and never hallucinating results. Downstream skills include table-generation, figure-generation, and backward-traceability. Use when developers need reproducible analysis code and reviewed outputs for paper experiments.

  • Four-round review covers code flaws, data handling, per-table checks, and cross-table consistency.
  • stat_summary.py recommends tests, compares groups, and outputs effect sizes with significance stars.
  • Structured code sections from IMPORT through SAVE ADDITIONAL RESULTS for reproducible pipelines.
  • Test selection table maps data types to t-tests, Mann-Whitney, ANOVA, chi-square, and regression.
  • Every nominal result must include uncertainty via CI, STD, or p-value per skill rules.

Data Analysis by the numbers

  • 1,532 all-time installs (skills.sh)
  • +45 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #154 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

data-analysis capabilities & compatibility

Capabilities
four round statistical code review · automated test recommendation by data type · group comparison with effect sizes · p value formatting to stars or latex · structured reproducible analysis sections
Use cases
research · data analysis · documentation
From the docs

What data-analysis says it does

Generate statistical analysis code with 4-round review.
SKILL.md
Every nominal value must have uncertainty (CI, STD, or p-value)
SKILL.md
npx skills add https://github.com/lingzhi227/agent-research-skills --skill data-analysis

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.5k
repo stars255
Security audit2 / 3 scanners passed
Last updatedFebruary 27, 2026
Repositorylingzhi227/agent-research-skills

How do I write correct statistical tests and reviewed analysis code for experimental results in a research paper?

Generate statistical analysis code with four-round review for experimental datasets, hypothesis tests, and publication-ready p-values and effect sizes.

Who is it for?

Developers analyzing experimental datasets for papers who need test selection, multi-round code review, and formatted significance reporting.

Skip if: Skip for raw data collection pipelines or visualization-only tasks without hypothesis testing.

When should I use this skill?

User analyzes experimental data for a paper, needs statistical comparisons, or asks for p-values and effect sizes from CSV results.

What you get

Reviewed Python analysis code with appropriate tests, formatted p-values, effect sizes, and consistency-checked result tables.

  • Review round reports
  • Flagged calculation list
  • Statistical flaw summary

By the numbers

  • Implements a 4-round structured code review system extracted from data-to-paper and AgentLaboratory

Files

SKILL.mdMarkdownGitHub ↗

Data Analysis

Generate rigorous statistical analysis code with multi-round review.

Input

  • $0 — Data source (CSV, JSON, pickle, or experiment logs)
  • $1 — Research goal or hypothesis to test

References

  • 4-round code review prompts: ~/.claude/skills/data-analysis/references/review-prompts.md

Scripts

Statistical summary and comparison

python ~/.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.

Format p-values

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.

Workflow

Step 1: Generate Analysis Code

Structure the code with these sections: 1. # IMPORT — pandas, numpy, scipy, statsmodels, sklearn 2. # LOAD DATA — Load from original data files 3. # DATASET PREPARATIONS — Missing values, units, exclusion criteria 4. # DESCRIPTIVE STATISTICS — Summary tables if needed 5. # PREPROCESSING — Dummy variables, normalization 6. # ANALYSIS — Statistical tests per hypothesis 7. # SAVE ADDITIONAL RESULTS — Extra results to pickle

Step 2: 4-Round Code Review

1. Round 1 — Code Flaws: Mathematical/statistical errors, wrong calculations, trivial tests 2. Round 2 — Data Handling: Missing values, units, preprocessing, test choice 3. Round 3 — Per-Table: Sensible values, measures of uncertainty, missing data 4. Round 4 — Cross-Table: Completeness, consistency, missing variables

Step 3: Produce Results

  • Every nominal value must have uncertainty (CI, STD, or p-value)
  • Statistical tests must be appropriate for the data type
  • Results must match actual data — never hallucinate

Allowed Packages

pandas, numpy, scipy, statsmodels, sklearn, pickle

Statistical Test Selection

Data TypeTest
Two groups, normalIndependent t-test
Two groups, non-normalMann-Whitney U
Paired samplesPaired t-test / Wilcoxon
Multiple groupsANOVA / Kruskal-Wallis
CategoricalChi-square / Fisher's exact
CorrelationPearson / Spearman
RegressionOLS / Logistic / Mixed effects

Rules

  • Always report p-values for statistical tests
  • Account for relevant confounding variables
  • Use inherent package functionality (e.g., formula = "y ~ a * b" for interactions)
  • Do not manually implement available statistical functions
  • Access dataframes using string-based column names, not integer indices

Related Skills

  • Upstream: experiment-code, experiment-design
  • Downstream: table-generation, figure-generation, backward-traceability
  • See also: math-reasoning

Related skills

Forks & variants (2)

Data Analysis has 2 known copies in the catalog totaling 20 installs. They canonicalize to this original listing.

How it compares

Use data-analysis for multi-round statistical code audits; use generic linters when you only need syntax or style checks.

FAQ

What does data-analysis produce?

Structured Python analysis code with statistical tests, four-round review, and formatted p-values plus effect sizes for research outputs.

When should I use data-analysis?

When generating or reviewing statistical analysis code for experimental data with hypotheses to test for publication.

Is data-analysis safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.