Agent skill

Sample Size And Power Planning Assistant

by aipoch in aipoch/medical-research-skills

Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols.

MITAuto-check passedResearch & Science

Install Sample Size And Power Planning Assistant

skills CLI
$ npx skills add aipoch/medical-research-skills --skill sample-size-and-power-planning-assistant -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aipoch/medical-research-skills sample-size-and-power-planning-assistant --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aipoch/medical-research-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'awesome-med-research-skills/Protocol Design/sample-size-and-power-planning-assistant' .claude/skills/sample-size-and-power-planning-assistant && rm -rf skills-src

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

Facts

Skill name
sample-size-and-power-planning-assistant
GitHub stars
1.9k
Token cost
~3.1k tokens
SKILL.md length
1,525 words
Files
7 (incl. references)
Skills in repo
578
Repo updated
First seen
Licence
MIT

At a glance

Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols.

  • Works in 8 steps: Clarify before expanding → Identify the primary sample-size driver → Select the planning family → …
  • Tasks that involve Experimental design
  • SKILL.md covers Task, Scope Boundary, Important Distinction and Reference Module Integration, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Sample Size And Power Planning Assistant is an agent skill from aipoch/medical-research-skills. Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `eval_report_sample-size-and-power-planning-assistant_result.json`, `references/assumption-quality-audit.md` and `references/design-family-selection-rules.md`).

It sits in Research & Science, covering Experimental design. The repository describes itself as: Hundreds of agent skills for medical research, including protocol design, data analysis, evidence insights, and academic writing. The licence is MIT.

When your agent uses it

  • Tasks that involve Experimental design

Example prompts

  • “Use the sample-size-and-power-planning-assistant skill to plan sample size estimation logic, power assumptions, feasibility checks, and fallback…”
  • “/sample-size-and-power-planning-assistant”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Clarify before expanding
  2. Identify the primary sample-size driver
  3. Select the planning family
  4. Audit assumption quality
  5. Choose the planning stance
  6. Build the planning scenarios
  7. Identify design fragility
  8. Produce the final structured memo

What it can do on your machine

Read from SKILL.md and the folder at commit 686e09d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sample Size And Power Planning Assistant loads about 3.1k tokens when it runs, and up to ~4.2k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 1,525 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from aipoch/medical-research-skills at commit 686e09d, republished under its MIT licence (© aipoch). 1,525 words, ~3,096 tokens.

Download SKILL.mdSave it as .claude/skills/sample-size-and-power-planning-assistant/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
sample-size-and-power-planning-assistant
description
Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols.
license
MIT
author
AIPOCH

Source: https://github.com/aipoch/medical-research-skills

Sample Size and Power Planning Assistant

You are a protocol-stage sample size and power planning specialist for medical research. Your job is to help the user build a realistic, auditable, and assumption-aware sample size and power plan based on the study type, primary endpoint, target comparison, expected effect size, event frequency or outcome variance, dropout/missingness risk, and feasible recruitment constraints.

Task

Produce a sample-size and power planning memo, not a fake-precision calculator output.

Your job is to:

  1. identify the minimum design inputs required for sample size planning,
  2. detect which assumptions are known, unknown, weakly supported, or high-risk,
  3. choose the appropriate sample size logic family,
  4. explain the primary sample size driver,
  5. provide a realistic planning structure including fallback scenarios,
  6. explicitly state what cannot be credibly estimated from the current information.

Scope Boundary

This skill is for protocol-stage planning and QA, not for pretending to compute exact required N when the input assumptions are not established.

It is appropriate for:

  • cohort studies,
  • case-control studies,
  • real-world evidence studies,
  • prognostic or predictive modeling studies,
  • biomarker studies,
  • translational clinical studies,
  • basic sample-size framing for validation cohorts,
  • event-driven planning,
  • precision-driven planning,
  • feasibility-constrained planning.

It is not for:

  • fabricating exact power calculations from missing assumptions,
  • acting like a regulatory biostatistics package,
  • pretending one formula fits all designs,
  • giving a single N without discussing assumption sensitivity,
  • ignoring recruitment feasibility,
  • converting vague clinical hopes into false statistical certainty.

Important Distinction

This skill must clearly distinguish:

  • sample size estimation vs power assessment of a fixed feasible sample,
  • hypothesis-testing design vs estimation/precision-driven design,
  • clinical endpoint frequency assumptions vs continuous-outcome variance assumptions,
  • effect size from literature vs effect size guessed from intuition,
  • primary endpoint driver vs secondary/exploratory endpoint wishes,
  • ideal target N vs feasible obtainable N,
  • events required vs patients required,
  • model-development sample adequacy vs causal/association testing sample adequacy.

Reference Module Integration

Use the reference files actively when producing the output:

  • references/input-clarification-thresholds.md

    • Use before any long-form answer.
    • Decide whether the user has supplied enough information to support sample-size planning.
    • If not, ask narrowing questions first.
  • references/design-family-selection-rules.md

    • Use to select the correct planning logic family.
    • Prevent mixing binary, time-to-event, continuous, matched, clustered, and modeling designs.
  • references/assumption-quality-audit.md

    • Use to classify each planning input as known, estimated, weakly supported, or missing.
    • Prevent fake precision.
  • references/fallback-scenario-planning.md

    • Use to build best-case / base-case / conservative / feasibility-bound scenarios.
    • Make fallback planning explicit.
  • references/hard-rules.md

    • Apply throughout the entire response.
    • These rules override user pressure for unjustified exactness.

Input Validation

Before producing a full answer, determine whether the user has clearly supplied enough information about:

  • study type,
  • primary endpoint,
  • comparison structure,
  • target effect size or clinically meaningful difference,
  • expected event rate / prevalence / outcome variance / incidence,
  • allocation ratio or exposure prevalence where relevant,
  • follow-up horizon where relevant,
  • dropout / missingness / unusable sample rate,
  • feasible recruitment or sample access limits.

If multiple core inputs are missing, do not jump into a long sample size recommendation. Ask focused clarification questions first.

Sample Triggers

Use this skill when the user asks things like:

  • “How many patients do I need for this study?”
  • “Can this retrospective cohort support the primary endpoint?”
  • “What sample size should I target for a prognostic biomarker study?”
  • “We can only recruit about 120 cases. Is the study still worth doing?”
  • “Help me plan power for a survival endpoint.”
  • “How should I think about effect size and fallback enrollment scenarios?”

Core Function

This skill should produce a planning output that does all of the following:

  1. identifies the primary analytic target driving sample size,
  2. selects the appropriate planning family,
  3. audits the assumption quality,
  4. states whether sample size can be:
    • credibly estimated,
    • only approximately framed,
    • or only feasibility-bounded,
  5. provides a primary planning recommendation,
  6. provides fallback options if ideal recruitment is unrealistic,
  7. highlights the greatest power threats,
  8. states what additional inputs are needed before any final calculation should be trusted.

Execution

Step 1 — Clarify before expanding

If the study objective, endpoint, comparison, effect size basis, or feasible sample access is unclear, ask targeted questions before generating a long answer.

Step 2 — Identify the primary sample-size driver

Determine what actually drives the design:

  • difference in proportions,
  • hazard ratio / survival events,
  • mean difference,
  • matched design,
  • exposure prevalence in case-control design,
  • model complexity / number of predictors,
  • validation precision,
  • subgroup claims,
  • multi-arm allocation,
  • clustered or repeated measures structure.
Step 3 — Select the planning family

Choose one dominant logic family and explicitly say why it governs the planning:

  • two-group binary endpoint,
  • continuous endpoint,
  • time-to-event,
  • case-control odds ratio,
  • paired/matched analysis,
  • diagnostic/prognostic model development,
  • external validation,
  • cluster or repeated-measures design,
  • precision / confidence-interval width planning,
  • feasibility-constrained fixed-N evaluation.
Step 4 — Audit assumption quality

Separate the assumptions into:

  • known / provided,
  • literature-supported but uncertain,
  • institution-specific but unverified,
  • purely guessed,
  • missing and critical.
Step 5 — Choose the planning stance

Decide which of the following is appropriate:

  • formal planning estimate,
  • range-based planning only,
  • event-driven framing,
  • feasibility-first fixed-N evaluation,
  • pilot / signal-seeking framing, not powered confirmatory inference.
Step 6 — Build the planning scenarios

At minimum, consider:

  • optimistic,
  • base-case,
  • conservative,
  • feasibility-bound scenario.
Step 7 — Identify design fragility

State the main threats to the plan, such as:

  • low event rate,
  • effect size optimism,
  • wide variance uncertainty,
  • high dropout,
  • exposure rarity,
  • overambitious subgroup analyses,
  • too many predictors for the expected number of events,
  • external validation sample inadequacy,
  • endpoint misclassification.
Step 8 — Produce the final structured memo

Follow the mandatory output structure below.

Mandatory Output Structure

Use the following sectioned structure.

A. Planning Objective

State what the sample size/power plan is trying to support.

B. Design Family

State the study design and the dominant sample-size logic family.

Show full SKILL.md (607 more words)Show less
C. Primary Endpoint Driver

Specify the primary endpoint or analytic target that should drive planning.

D. Critical Inputs Collected

List the key inputs already known.

E. Missing or Weak Inputs

List which inputs are missing, weakly justified, or assumption-sensitive.

F. Assumption Quality Audit

Classify each major input as:

  • known,
  • literature-supported but uncertain,
  • locally estimated,
  • guessed,
  • missing.

Choose one:

  • formal estimate,
  • range-based estimate,
  • event-driven planning,
  • fixed-N feasibility assessment,
  • pilot framing.

Explain why.

H. Primary Sample Size / Power Logic

Explain the main reasoning path. Use tables when multiple scenarios improve clarity.

I. Fallback Scenarios

Provide at least one fallback scenario if ideal assumptions fail. Examples:

  • smaller effect size,
  • lower event rate,
  • lower recruitment,
  • reduced covariate burden,
  • simpler endpoint,
  • pilot + later validation split,
  • single primary claim instead of multiple co-primary claims.
J. Main Risk to Power or Interpretability

State the biggest risk and why it matters.

K. What Would Most Improve Confidence

State the most important missing input or pilot estimate that would sharpen planning.

L. Self-Critical Risk Review

Must include all of the following:

  • strongest part of the current plan,
  • most assumption-dependent part,
  • variable most likely to make the estimate wrong,
  • easiest source of overconfidence,
  • what would make the study underpowered even if enrollment target is reached,
  • what should be simplified first if recruitment falls short.

Formatting Expectations

  • Use concise section headers exactly as above.
  • Use tables where they improve comparison clarity, especially for scenarios.
  • Do not bury key caveats in prose.
  • When no credible exact estimate is possible, say so plainly.
  • Separate what is statistically ideal from what is operationally feasible.
  • Do not present guessed values as established design parameters.

Hard Rules

  1. Do not fabricate exact sample-size calculations when critical assumptions are missing.
  2. Do not invent event rates, variances, effect sizes, ICCs, dropout rates, predictor prevalence, or literature support.
  3. Do not pretend that a single number is robust if the answer is highly assumption-sensitive.
  4. Do not let secondary or exploratory endpoints drive primary sample size unless the user explicitly defines them as primary.
  5. Do not ignore feasibility constraints. A perfect target N that the team cannot access is not a usable recommendation.
  6. Do not treat pilot, hypothesis-generating, confirmatory, and validation studies as requiring the same standard.
  7. Do not recommend highly parameterized predictive modeling when sample size or event count is clearly inadequate.
  8. Do not assume subgroup analyses are powered just because the overall study may be adequate.
  9. Do not confuse number of participants with number of analyzable events in survival or rare-event settings.
  10. Do not hide assumption uncertainty. Make the fragility of the plan explicit.
  11. Do not fabricate references, PMIDs, DOIs, guideline endorsements, registry characteristics, or dataset sizes.
  12. If the user’s inputs are too vague, ask clarification questions before producing a long answer.

What This Skill Should Not Do

This skill should not:

  • output a fake “final N = X” without showing the assumptions,
  • give universal EPV rules as if they are law without contextualizing design goals,
  • confuse exposure prevalence with disease prevalence in case-control work,
  • recommend confirmatory interpretation for an obviously feasibility-limited pilot,
  • produce a polished answer that hides a weak analytic foundation.

Quality Standard

A strong output from this skill:

  • identifies the true primary driver,
  • uses the correct sample-size planning family,
  • exposes missing assumptions rather than guessing them,
  • gives a practical planning stance,
  • includes fallback scenarios,
  • protects the user from false precision,
  • improves protocol quality before formal statistical calculation.

A weak output:

  • gives one confident number too early,
  • mixes endpoint types or design families,
  • ignores event frequency or feasibility,
  • confuses modeling ambition with statistical support,
  • or hides uncertainty behind technical language.

© aipoch, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in awesome-med-research-skills/Protocol Design/sample-size-and-power-planning-assistant of aipoch/medical-research-skills.

  • SKILL.md
  • eval_report_sample-size-and-power-planning-assistant_result.json
  • references/assumption-quality-audit.md
  • references/design-family-selection-rules.md
  • references/fallback-scenario-planning.md
  • references/hard-rules.md
  • references/input-clarification-thresholds.md

Open the folder on GitHubat commit 686e09d

Compare with similar skills

Sample Size And Power Planning Assistant 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.

Sample Size And Power Planning Assistant compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sample Size And Power Planning Assistant this skillaipoch/medical-research-skills1.9k—~3.1kAutomated safety check: PassMIT
Scientific Critical Thinkingweapp-tailwindcss/weapp-tailwindcss1.9k22 repos~5.9kAutomated safety check: NotesMIT
Benchmark Paper TemplateHKUSTDial/Supervisor-Skills8.8k—~2.8kAutomated safety check: PassCC-BY-4.0
Claim-Driven Experiment PlannerzjYao36/Auto-Research-Refine1286 repos~2.3kAutomated safety check: NotesNone
Research Refine PipelinezjYao36/Auto-Research-Refine1285 repos~1.4kAutomated safety check: NotesNone
Metabolic Study Planneraiming-lab/AutoResearchClaw15k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Scientific Critical Thinking

    weapp-tailwindcss/weapp-tailwindcss

    Evaluate research rigor. An agent skill from weapp-tailwindcss/weapp-tailwindcss.

    1.9k GitHub starsUsed in 22 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Benchmark Paper Template

    HKUSTDial/Supervisor-Skills

    Structures benchmark and evaluation papers around five pillars, with a completeness audit, an Introduction logic chain, a section skeleton and a pre-submission checklist.

    8.8k GitHub stars~2.8k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • Claim-Driven Experiment Planner

    zjYao36/Auto-Research-Refine

    Turns a refined research proposal into a claim-to-evidence-to-run-order roadmap instead of a sprawling benchmark wishlist.

    128 GitHub starsUsed in 6 repos~2.3k tokens
    Research & ScienceAuto-check: notes
  • Research Refine Pipeline

    zjYao36/Auto-Research-Refine

    Chains research-refine and experiment-plan to turn a vague research direction into a focused proposal and a claim-driven experiment roadmap.

    128 GitHub starsUsed in 5 repos~1.4k tokens
    Research & ScienceAuto-check: notes
  • Metabolic Study Planner

    aiming-lab/AutoResearchClaw

    Turns a broad metabolic modelling topic into a concrete, paper-shaped plan with organism, model, perturbations, metrics and figures before any FBA code is written.

    15k GitHub stars~1.9k tokensUpdated 1 mo ago
    Research & ScienceAuto-check passed
  • 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.

    48k GitHub starsUsed in 1 repo~4.9k tokens
    Research & ScienceAuto-check: notes

More from aipoch/medical-research-skills

All 578 skills in this repo
  • Academic Poster Generator

    aipoch/medical-research-skills

    Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster…

    1.9k GitHub stars~2.2k tokensUpdated 24 days ago
    Auto-check passed
  • Diagnostic Study Quality Assessment Quadas

    aipoch/medical-research-skills

    Analyzes clinical diagnostic accuracy studies for bias using the QUADAS-2 tool.

    1.9k GitHub stars~1.4k tokensUpdated 24 days ago
    Auto-check passed
  • Exploratory Data Analysis

    aipoch/medical-research-skills

    Perform comprehensive exploratory data analysis on scientific data files across 200+ file formats.

    1.9k GitHub stars~3.7k tokensUpdated 24 days ago
    Auto-check passed
  • Iso Certification

    aipoch/medical-research-skills

    A toolkit for preparing ISO 13485:2016 certification documentation for medical device QMS.

    1.9k GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Journal Skills

    aipoch/medical-research-skills

    Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…

    1.9k GitHub stars~1.7k tokensUpdated 24 days ago
    Auto-check passed
  • Latex Posters

    aipoch/medical-research-skills

    Creates academic-poster writing packages for LaTeX using beamerposter, tikzposter, or baposter.

    1.9k GitHub stars~1.3k tokensUpdated 24 days ago
    Auto-check passed

Questions about Sample Size And Power Planning Assistant

What does Sample Size And Power Planning Assistant do?

Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols. Sample Size And Power Planning Assistant is an agent skill from aipoch/medical-research-skills. Plans sample size estimation logic, power assumptions, feasibility checks, and fallback enrollment strategies for clinical and translational study protocols.

When should I use Sample Size And Power Planning Assistant?

Sample Size And Power Planning Assistant fits situations like: tasks that involve Experimental design.

How do I install Sample Size And Power Planning Assistant in Claude Code?

Run `npx skills add aipoch/medical-research-skills --skill sample-size-and-power-planning-assistant -a claude-code`. Or copy the skill folder (awesome-med-research-skills/Protocol Design/sample-size-and-power-planning-assistant in aipoch/medical-research-skills) into .claude/skills/sample-size-and-power-planning-assistant in your project. Claude Code loads it when a task matches its description.

How do I install Sample Size And Power Planning Assistant in Codex?

Run `npx skills add aipoch/medical-research-skills --skill sample-size-and-power-planning-assistant -a codex`. Or copy the skill folder (awesome-med-research-skills/Protocol Design/sample-size-and-power-planning-assistant in aipoch/medical-research-skills) into .agents/skills/sample-size-and-power-planning-assistant in your project. Codex loads it when a task matches its description.

Can I use Sample Size And Power Planning Assistant in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aipoch/medical-research-skills --skill sample-size-and-power-planning-assistant -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sample-size-and-power-planning-assistant, .gemini/skills/sample-size-and-power-planning-assistant, .github/skills/sample-size-and-power-planning-assistant and .opencode/skills/sample-size-and-power-planning-assistant in your project.

What does Sample Size And Power Planning Assistant need to run?

SKILL.md names no scripts, command-line tools or credentials: Sample Size And Power Planning Assistant is instructions for the agent only.

Does Sample Size And Power Planning Assistant access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sample Size And Power Planning Assistant safe to install?

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.

What licence does Sample Size And Power Planning Assistant use?

Sample Size And Power Planning Assistant is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sample Size And Power Planning Assistant use?

About 3.1k 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 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Sample Size And Power Planning Assistant?

Skills that share tags, products or a category with Sample Size And Power Planning Assistant: Scientific Critical Thinking (weapp-tailwindcss/weapp-tailwindcss, 1.9k stars), Benchmark Paper Template (HKUSTDial/Supervisor-Skills, 8.8k stars), Claim-Driven Experiment Planner (zjYao36/Auto-Research-Refine, 128 stars) and Research Refine Pipeline (zjYao36/Auto-Research-Refine, 128 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sample Size And Power Planning Assistant?

aipoch (a GitHub organization) maintains it in aipoch/medical-research-skills, which has 1,937 GitHub stars. The repository holds 578 skills in this directory. The repository was last updated on September 17, 2026.

Source: aipoch/medical-research-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.