Skip to content
Agentmart
Submit a tool

stats-integrity

Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation.

Skill by Garhorne0813

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/garhorne0813-stats-integrity

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation. Use whenever running regression, hypothesis tests, or reading Stata (.dta) / SPSS (.sav) data. Flags integrity risks; never certifies the analysis is sound.

Use cases: data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/stats-integrity

What's inside

Skill name
stats-integrity
Description
Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation. Use whenever running regression, hypothesis tests, or reading Stata (.dta) / SPSS (.sav) data. Flags integrity risks; never certifies the analysis is sound.
License
Apache-2.0
Instructions
78 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • stats_integrity_check.py

SKILL.md (first lines)

# Analysis integrity

Your job is to **run analyses and surface raw output**, and to **withhold
interpretation the design doesn't support**. The decisive risk is not a crashing
script — it is a confident, provocative misreading of a correct number.

## Execute — don't interpret

- Report the **estimate and its uncertainty** — coefficients, standard errors,
  confidence intervals, test statistics, p-values, N — exactly as the software
  produced them.
- Do **not** volunteer causal claims. Regression and correlation are
  **associational**. Say "X is associated with Y", not "X causes / drives /
  leads to / increases Y", unless the *design* (RCT, IV, DiD, RDD, panel FE
  with a credible identification strategy) supports it — and then name the
  design.
- Do not tell the user what they want to hear. If the result is null or
  ambiguous, say so plainly.
- Report **effect sizes** alongside p-values. A tiny effect with p < 0.001 is
  still tiny.

## Reproducible execution (fixed seeds + traceability)

- Any randomised step (bootstrap, permutation, train/test split, resampling,
  MCMC) **must fix a seed**: `np.random.seed(...)`, `random_state=...`, or R
  `set.seed(...)`.
- Use `np.random.seed(42)` or `random_state=42` as the default. State the seed
  value in the output.
- Every numeric claim in a report must be traceable to a **script + line +
  output** (provenance records this automatically when you write files).

## Stata / SPSS / R round-trip

Read proprietary formats with real libraries — never transcribe numbers from
memory. `.dta` and `.sav` round-trip through R (base `foreign` / `haven`) or
pandas; use a fixed seed so estimates reproduce exactly:

```r
df <- foreign::read.dta("data.dta")   # or haven::read_dta / haven::read_sav
set.seed(1)
m <- lm(y ~ x, data = df)
summary(m)                            # report coef + Std. Error verbatim
```

```python
import pandas as pd
df = pd.read_stata("data.dta")        # or pd.read_spss("data.sav")
```

Report the coefficient **and** its standard error; if you compute the same model
two ways (e.g., pandas vs R), confirm they match to the printed precision.

## Run the integrity gate

The deterministic gate ships beside this SKILL.md. Run it on the workspace (or
named files) before you report results:

```bash
python skills/stats-integrity/stats_integrity_check.py [files...]
```

It prints one ` ```review ` fenced JSON block covering:

- **stats · interpretation** — causal or provocative language over an
  association in a report.
- **stats · prereg** — a predictor or interaction the code runs that a
  preregistration plan (`preregistration.md` / `analysis_plan.*` / `prereg.*`
  in the workspace) never named — a HARKing path.
- **stats · seed** — a randomised analysis with no fixed seed.

## Reporting

Copy the ` ```review ` block as the **last thing** in your message — the app
renders it as dismissible reviewer cards. Never tell the user the analysis is
"correct", "sound", or that a relationship is causal from observational data —
the gate checks specific risks only.

From Garhorne0813/pi-science, Apache-2.0.

More from Garhorne0813/pi-science

Signals

Stars
1
Forks
1
Open issues
15
Last commit (this folder)
Jul 19, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Garhorne0813

Cite this page

stats-integrity skill. Agent Mart. https://agentmart.dev/skills/garhorne0813-stats-integrity (last updated 2026-10-24)