본문으로 건너뛰기
cccskills
무료GitHub에 공개

stats-integrity

Use whenever you run statistical analysis for the social sciences (regression, hypothesis tests, econometrics) or read Stata (.dta) / SPSS (.sav) data in this workspace. Enforces an execute-don't-interpret boundary (surface estimates, don't volunteer causal claims), checks the analysis against a preregistration plan for HARKing, verifies reproducible seeds, and reproduces .dta/.sav estimates via R. Flags integrity risks; never certifies the analysis is sound.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.8 KB
  • stats_integrity_check.py10.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Analysis integrity (social science)

Social science's decisive risk is not a crashing script — it is a confident, provocative misreading of a correct number, silent p-hacking, and results that don't replicate. Your job here is to run analyses and surface raw output, and to withhold interpretation the design doesn't support.

Pepinsky's rule: use the agent for tasks that follow rules; do not use it for tasks that generate answers, arguments, or interpretations.

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 or "provocative" 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.

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(...).
  • 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:

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
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 (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:

python "$XDG_CONFIG_HOME/opencode/skills/stats-integrity/stats_integrity_check.py" [files...]

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

  • stats · interpretation — causal / 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.

Adding a check

Add a check_<name>(...) function in stats_integrity_check.py and call it from run(); each finding carries its own tag, so the app needs no change.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when a task needs an app on the user's own screen — a native desktop application (instrument control software, Origin, GraphPad, ImageJ, a reference manager, a spreadsheet), or a desktop browser window that needs window-level control. Read before the first `computer` call. Covers the observe-act-observe loop, why element indexes go stale, which action to prefer for which control, what "unverified" means and why it must never be reported as success, and the recovery for each error code. Not for page-level web automation (use the browser connector) and not for anything that can be done from the shell.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

Use ONLY when the user asks to check, validate, review or audit analysis code for scientific correctness, or when you are the reviewer agent running its checks. Never run it unprompted as part of ordinary analysis work. Covers physics, earth/geo, biology, chemistry, social science and bioprocess/fermentation. Runs a deterministic domain-correctness gate that catches code which runs but is scientifically wrong (unit/dimension mismatch, Euclidean distance on lat/lon without a CRS, 0-based/1-based coordinate and strand errors, impossible SMILES valence, uncorrected multiple comparisons, averaging a categorical code, unconstrained kinetic-parameter fits, kLa computed from raw DO instead of the driving force, arithmetic mean of raw CFU counts, ANOVA/Tukey with no assumption check, a curvature DOE design fit with a first-order model, an ML model fit across process scales with no correction). Surfaces structured findings; never claims the code is correct.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

Use BEFORE reading any data file that could be large (CSV/TSV, Parquet, HDF5, FITS, NetCDF, NDJSON, genomics FASTQ/FASTA/VCF/BAM, GRIB, ROOT, or big text/simulation logs like VASP OUTCAR). Returns a compact memory pointer — header/schema/shape/sample/key numbers — by introspection and sampling in bounded memory, so you never load a file bigger than the context window into the model. Reference data via the pointer; read specific ranges deterministically.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

modal-run

무료

Use when the user asks to run heavy or GPU work on Modal (the cloud compute platform) — writing a Modal function in the workspace, running it with the user's own `modal` CLI + token, and bringing results back. Data-to-compute for jobs too big for the laptop, without a Slurm cluster.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

my-skill

무료

A test skill that says hello. Use when you want to test skill loading or verify that the skill system is working.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

Use whenever you generate or review a chart, plot, table, or paper figure in this workspace, including work delegated by paper-writing, literature-survey, and experiment skills. Applies the Open Science publication style, enforces readable final-size layout for figures and tables, and rejects generic diagram-tool output as a publication figure. Interactive Plotly/HTML may be used for exploration, but paper delivery requires a static publication-ready export.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

ai4s-research/open-science1.9천2026년 10월 14일 업데이트

ai4s-research의 스킬 모두 보기

이 스킬의 문제 신고