Analytical Method Validation Planner
K-Dense-AI/scientific-agent-skills
Plans, runs, and documents analytical method validation, verification, or transfer studies under ICH Q2(R2)/Q14, USP, ICH M10, CLSI EP, or ISO/IEC 17025.
A skill your agent uses when planning how many patients or cases a study needs before data collection (power analysis, IRB justification).
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Aperivue/medsci-skills calc-sample-size --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/calc-sample-size .claude/skills/calc-sample-size && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .claude/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-sizeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Aperivue/medsci-skills calc-sample-size --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/calc-sample-size .agents/skills/calc-sample-size && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .agents/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Aperivue/medsci-skills calc-sample-size --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/calc-sample-size .cursor/skills/calc-sample-size && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .cursor/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Aperivue/medsci-skills.git --path skills/calc-sample-size--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Aperivue/medsci-skills calc-sample-size --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/calc-sample-size .gemini/skills/calc-sample-size && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .gemini/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Aperivue/medsci-skills calc-sample-sizeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/calc-sample-size .github/skills/calc-sample-size && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .github/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Aperivue/medsci-skills --skill calc-sample-size -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Aperivue/medsci-skills calc-sample-size --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Aperivue/medsci-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/calc-sample-size .opencode/skills/calc-sample-size && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "calc-sample-size" agent skill from https://github.com/Aperivue/medsci-skills/tree/main/skills/calc-sample-size into .opencode/skills/calc-sample-size/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "calc-sample-size", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
calc-sample-sizeA skill your agent uses when planning how many patients or cases a study needs before data collection (power analysis, IRB justification).
Calc Sample Size is an agent skill from Aperivue/medsci-skills. Use when planning how many patients or cases a study needs before data collection (power analysis, IRB justification). Walks a decision tree to the right test and returns reproducible R/Python code and IRB-ready justification text. Analyzing collected data is /analyze-stats.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including reference files (for example `references/formulas.md`, `references/justification_examples.md` and `references/mrmc_reader_study_sample_size.md`).
It sits in Research & Science, covering Experimental design. It works with Python. The repository describes itself as: Agent Skills for medical research — literature search, reporting-guideline & citation checks, statistics, publication figures, submission. Works with Claude Code, Codex, Cursor &… The licence is MIT.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 3b14ae2. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
psychologie.hhu.deFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Calc Sample Size loads about 2.9k tokens when it runs, and up to ~27k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 1,159 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from Aperivue/medsci-skills at commit 3b14ae2, republished under its MIT licence (© Aperivue). 1,159 words, ~2,908 tokens.
.claude/skills/calc-sample-size/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.Walk the user through this tree one question at a time; do not assume answers. Reader studies, segmentation and model-comparison designs sit outside the tree: see Tests 14–17.
What is your primary outcome?
|
+-- Binary (yes/no, positive/negative)
| |
| +-- Paired data (same subjects, two methods)?
| | +-- YES --> [5] McNemar test
| | +-- NO --> How many groups?
| | +-- 2 groups, superiority --> [4] Two-proportion comparison (chi-square)
| | +-- 2 groups, non-inferiority --> [10] Non-inferiority / equivalence
| | +-- Multivariable model --> single-predictor hypothesis test? --> [9] Logistic regression
| | --> clinical prediction / AI model for use?
| | +-- developing the model --> [12] Prediction-model development (Riley)
| | +-- externally validating --> [13] External-validation (Riley)
| |
+-- Continuous (measurement, score)
| |
| +-- How many groups?
| +-- 2 groups --> [6] Independent t-test
| +-- 3+ groups --> [8] One-way ANOVA
|
+-- Time-to-event (survival, recurrence)
| |
| +-- Two groups, unadjusted --> [7] Log-rank test
| +-- Multivariable / adjusted HR --> [7] Log-rank (Schoenfeld) + [11] Cox EPV
|
+-- Agreement (inter-rater, reproducibility)
| |
| +-- Continuous measurements --> [2] ICC
| +-- Categorical ratings --> [3] Kappa
|
+-- Diagnostic accuracy (Se, Sp, AUC precision)
|
+--> [1] Diagnostic accuracy (precision-based)Once the test is chosen, read ${CLAUDE_SKILL_DIR}/references/formulas.md § Test N — the
parameter table with defaults, the effect-size interpretation, the formula, R/Python code and the
methodological reference.
| # | Test | Use when |
|---|---|---|
| 1 | Diagnostic accuracy — Se/Sp precision | desired 95% CI half-width for sensitivity or specificity |
| 2 | ICC agreement (Walter 1998 test; Bonett 2002 CI width) | inter-/intra-rater agreement on continuous measurements (tumor size, angle) |
| 3 | Kappa agreement (Donner & Eliasziw 1992; needs the trait prevalence) | agreement on categorical ratings (BI-RADS category, lesion present/absent) |
| 4 | Two-proportion comparison (chi-square) | two independent groups (AI vs conventional detection rate) |
| 5 | McNemar (paired proportions) | paired binary outcomes (two readers on the same cases, before/after) |
| 6 | Independent t-test | means in two independent groups (lesion size, malignant vs benign) |
| 7 | Survival / log-rank (Schoenfeld events, then patients) | time-to-event between two groups |
| 8 | One-way ANOVA | means across 3+ independent groups |
| 9 | Logistic regression (Peduzzi EPV + Hsieh 1998, continuous or binary predictor) | multivariable binary outcome, single-predictor hypothesis test |
| 10 | Non-inferiority / equivalence | new method not worse than standard by more than a pre-specified margin, or equivalent within it |
| 11 | Cox regression EPV | multivariable Cox model — enough events for stable estimates |
formulas.md § Margin selection).Each has its own reference file (parameters, method, reporting); read it once the test is chosen.
pmsampsize).pmvalsampsize); ≥ 100 events and ≥ 100 non-events is only a floor.
For Tests 12–13 read ${CLAUDE_SKILL_DIR}/references/prediction_model_sample_size.md.J × cases from pilot/literature variance components with RJafroc / MRMCaov / iMRMC (do not
hand-roll the OR algebra) and report the J × N power grid. Read
${CLAUDE_SKILL_DIR}/references/mrmc_reader_study_sample_size.md.n ≈ (1.96·SD/δ)² from the pilot SD of per-case Dice, sized on the worst
structure; CI by patient-level bootstrap (BCa). This is precision; a comparison is Test 16. Read
${CLAUDE_SKILL_DIR}/references/segmentation_metric_sample_size.md.n = ((z₁₋α/₂ + z₁₋β)·SD_Δ/Δ)² (a CI sized to just exclude zero has ~50% power), not
each model's precision; for > 2 models pre-specify one primary contrast or pay the
family-wise correction; a ranking claim needs multiple seeds. Read
${CLAUDE_SKILL_DIR}/references/multi_model_comparison_sample_size.md.DE ≈ 1 + (m−1)ρ holds
only when each case has its own readers — the same readers on every case (crossed) add a reader term
more cases cannot shrink; bounding failures at ≤ 1% needs ~300 clean cases (rule of three). Read
${CLAUDE_SKILL_DIR}/references/segmentation_acceptability_sample_size.md.Do not compute adaptive trials (group-sequential, sample size re-estimation), cluster-randomized trials (design effect, ICC-based inflation), Bayesian sample size determination, crossover designs, or multi-endpoint correction (mention Bonferroni if asked, but do not compute corrected sample sizes). Say the design is beyond this skill and point to G*Power (free, https://www.psychologie.hhu.de/gpower), PASS, or a biostatistician.
When the dataset already exists, formal power analysis is often impractical. Offer:
${CLAUDE_SKILL_DIR}/references/observational_cohort.md and report
event budget / confidence-interval precision instead of forcing a prospective recruitment-style
power calculation.total exams in period × prevalence × (1 − exclusion rate) = expected N.
Ask for the annual exam volume for the modality, study period, prevalence and exclusion rate. This
gives a realistic upper bound for N.${CLAUDE_SKILL_DIR}/references/justification_examples.md § Retrospective.Use a formal calculation (Phase 3) even for a retrospective study when a subset is enrolled prospectively, the primary analysis tests a hypothesis (not just estimation), the journal's Instructions for Authors require a power analysis, or the IRB requires it.
formulas.md or the test's reference file; any other reference needs a DOI/PMID confirmed via
/search-lit, otherwise mark it [UNVERIFIED - NEEDS MANUAL CHECK]. Mark an effect size,
clinical definition or threshold you could not confirm [VERIFY].protocol/sample_size_justification.md and the scripts as
protocol/sample_size_calc.R / .py: /write-protocol and /write-paper embed that text
verbatim, so the numbers are never retyped.If a parameter is uncertain or the effect-size estimate is vague, flag it and offer a table of N across plausible values (e.g., varying effect size, or power from 0.80 to 0.90).
Always structure the final output as follows:
## Sample Size Calculation Report
### Study Design
[1-2 sentence summary of the design and test selected]
### Parameters
| Parameter | Value | Source |
|-----------|-------|--------|
| ... | ... | user / literature / convention |
### Result
- **Required sample size**: N = [value]
- **With [X]% attrition adjustment**: N_adj = [value]
### R Code (Reproducible)
```r
# [complete, self-contained R script]
# Dependencies: [list packages]
# Run: Rscript sample_size_calc.R# [complete, self-contained Python script]
# Dependencies: [list packages]
# Run: python sample_size_calc.pyA sample of [N] participants is required to detect [effect description] with [power]% power at a [one/two]-sided significance level of [alpha], assuming [key assumptions]. Accounting for an estimated [X]% attrition rate, we plan to enroll [N_adj] participants. This calculation is based on [formula/method reference].
[Cohen's benchmark classification + clinical meaning in the context of this study]
The IRB text must state N; name the test and its formula source; give every assumed parameter
(effect size, alpha, power); state the attrition adjustment and final enrollment target; cite the
methodological reference (e.g., "Schoenfeld, 1981"); and use formal, third-person language. Read
`${CLAUDE_SKILL_DIR}/references/justification_examples.md` for per-design exemplars when writing it.© Aperivue, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 10 other files (references) in skills/calc-sample-size of Aperivue/medsci-skills.
Open the folder on GitHubat commit 3b14ae2
Calc Sample Size next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Calc Sample Size this skillAperivue/medsci-skills | 329 | — | ~2.9k | Automated safety check: Pass | MIT | |
| Analytical Method Validation PlannerK-Dense-AI/scientific-agent-skills | 48k | 1 repos | ~4.9k | Automated safety check: Notes | MIT | |
| Light Experiment CodingLight0305/Light-skills | 641 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Bio Experimental Design Multiple TestingGPTomics/bioSkills | 1.2k | 1 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Adaptyvmajiayu000/claude-skill-registry | 666 | 1 repos | ~1.9k | Automated safety check: Notes | MIT | |
| Meta Forest Binary Plotaipoch/medical-research-skills | 2k | — | ~2.1k | Automated safety check: Pass | MIT |
K-Dense-AI/scientific-agent-skills
Plans, runs, and documents analytical method validation, verification, or transfer studies under ICH Q2(R2)/Q14, USP, ICH M10, CLSI EP, or ISO/IEC 17025.
Light0305/Light-skills
Builds the code for a frozen research experiment test-first, with leakage controls, seed handling and saved evidence so results can be rerun and audited.
GPTomics/bioSkills
Controls error rates across thousands of simultaneous tests in genomics discovery using false-discovery-rate methods (Benjamini-Hochberg 1995; Benjamini-Yekutieli 2001 for arbitrary dependence…
majiayu000/claude-skill-registry
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval.
aipoch/medical-research-skills
Generate meta-analysis forest plots for binary classification data.
yushui2022/MathModel-Skill
Builds a scoring-aligned outline for a mathematical modeling paper and a model selection plan with baseline, improvement and validation experiments.
Aperivue/medsci-skills
A skill your agent uses when validating or evaluating a trained medical-imaging model.
Aperivue/medsci-skills
A skill your agent uses when turning a folder of research PDFs into Obsidian notes, even if Obsidian is not named.
Aperivue/medsci-skills
A skill your agent uses when building or auditing a radiomics or tabular clinical-ML prediction model with a classical learner (LASSO, SVM, random forest, XGBoost and similar).
Aperivue/medsci-skills
A skill your agent uses when checking whether a manuscript's references are real.
Aperivue/medsci-skills
A skill your agent uses when a clinical CSV/Excel dataset needs profiling and cleaning before analysis (missing values, outliers, duplicates, type mismatches).
Aperivue/medsci-skills
A skill your agent uses when checking a radiology or medical AI study design before drafting or submission.
Works with
Categories
A skill your agent uses when planning how many patients or cases a study needs before data collection (power analysis, IRB justification). Calc Sample Size is an agent skill from Aperivue/medsci-skills. Use when planning how many patients or cases a study needs before data collection (power analysis, IRB justification).
Calc Sample Size fits situations like: planning how many patients; cases a study needs before data collection (power analysis; IRB justification).
Run `npx skills add Aperivue/medsci-skills --skill calc-sample-size -a claude-code`. Or copy the skill folder (skills/calc-sample-size in Aperivue/medsci-skills) into .claude/skills/calc-sample-size in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Aperivue/medsci-skills --skill calc-sample-size -a codex`. Or copy the skill folder (skills/calc-sample-size in Aperivue/medsci-skills) into .agents/skills/calc-sample-size in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Aperivue/medsci-skills --skill calc-sample-size -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/calc-sample-size, .gemini/skills/calc-sample-size, .github/skills/calc-sample-size and .opencode/skills/calc-sample-size in your project.
Going by SKILL.md and its folder, Calc Sample Size needs Python for the scripts in its folder. Our summary lists: Python 3.
SKILL.md names 1 domain. As links in the text: psychologie.hhu.de. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Calc Sample Size is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 24k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Calc Sample Size: Analytical Method Validation Planner (K-Dense-AI/scientific-agent-skills, 48k stars), Light Experiment Coding (Light0305/Light-skills, 641 stars), Bio Experimental Design Multiple Testing (GPTomics/bioSkills, 1.2k stars) and Adaptyv (majiayu000/claude-skill-registry, 666 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Aperivue (a GitHub organization) maintains it in Aperivue/medsci-skills, which has 329 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on October 5, 2026.
Source: Aperivue/medsci-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.