stats-integrity
Enforce statistical analysis integrity — execute-don't-interpret boundary, fixed random seeds, preregistration plan checks, and reproducible estimation.
Skill by Garhorne0813
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.
About
Use cases: data
Reviews
Write a reviewNo 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
- 0.587score
literature-review
Garhorne0813
Find, verify, and synthesize scientific literature with traceable citations.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
auto-research
Garhorne0813
Investigate scientific evidence with a lightweight literature workflow, or run bounded experiments with task-specific evaluation and reproducible checkpoints.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
latex-pdf
Garhorne0813
Generate LaTeX documents and compile them to PDF.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
single-cell-rna-qc
Garhorne0813
Quality-control single-cell RNA-seq count matrices — compute per-cell QC metrics (total counts, detected genes, mitochondrial fraction) and filter low-quality…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
scientific-problem-selection
Garhorne0813
Guide scientists through structured research problem selection — pitch new ideas, troubleshoot stuck projects, or make strategic research decisions.
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
publication-figures
Garhorne0813
Generate publication-grade scientific figures with a validated shared palette, consistent typography, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
traceability-review
Garhorne0813
Audit a scientific report, manuscript, or analysis in the workspace for traceability — resolving citations, flagging numbers with no source, and checking…
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
materials-phase-analysis
Garhorne0813
Analyze phase-diagram JSON and related composition data, explaining convex-hull stability, phase labels, and uncertainty without inventing missing…
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
figure-style
Garhorne0813
Create publication-ready scientific figures with data fidelity, legible labels, reproducible styling, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
pdf-explore
Garhorne0813
Explore an attached scientific PDF or report across multiple pages, extracting methods, values, figures, tables, and cited evidence with page-level references.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
figure-composer
Garhorne0813
Compose a multi-panel scientific figure from existing panel images, preserve panel labels and layout metadata, and run the artifact verifier after export.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
molecule-qc
Garhorne0813
Quality-check molecular structure files and SMILES for parseability, atom counts, valence warnings, and explicit missing or ambiguous fields.
SkillCFreshness: C★ 1Claude Code +9
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
- Repository
- github.com/Garhorne0813/pi-science
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Garhorne0813
- 0.587score
literature-review
Garhorne0813
Find, verify, and synthesize scientific literature with traceable citations.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
auto-research
Garhorne0813
Investigate scientific evidence with a lightweight literature workflow, or run bounded experiments with task-specific evaluation and reproducible checkpoints.
SkillAFreshness: A★ 1Claude Code +9 - 0.547score
scientific-problem-selection
Garhorne0813
Guide scientists through structured research problem selection — pitch new ideas, troubleshoot stuck projects, or make strategic research decisions.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
single-cell-rna-qc
Garhorne0813
Quality-control single-cell RNA-seq count matrices — compute per-cell QC metrics (total counts, detected genes, mitochondrial fraction) and filter low-quality…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
latex-pdf
Garhorne0813
Generate LaTeX documents and compile them to PDF.
SkillBFreshness: B★ 1Claude Code +9 - 0.497score
publication-figures
Garhorne0813
Generate publication-grade scientific figures with a validated shared palette, consistent typography, and render-time quality checks.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
stats-integrity skill. Agent Mart. https://agentmart.dev/skills/garhorne0813-stats-integrity (last updated 2026-10-24)