Skip to content
Skillpedia
Misc29k · #9744

clinical-research

What it does

This skill helps research teams plan a prospective clinical study. It helps pick endpoints, estimate sample size and score feasibility. It is for clinical researchers, medical monitors and biostatisticians.

When to use it

  • ✓When you are designing a prospective clinical study and need to choose endpoints.
  • ✓When you need a rough sample size and power estimate for a trial.
  • ✓When you want to score a study plan's feasibility before submitting it.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/research-ops/skills/clinical-research/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/research-ops/skills/clinical-research/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Estimate the sample size for a two-arm trial comparing two treatments, and suggest a primary endpoint.”

5 new skills a week. 1 minute to read.

How it works

The agent scores candidate endpoints, runs sample size and power calculations, and scores the overall plan as go, go with conditions, redesign or no-go. Its outputs are estimates that a biostatistician must confirm.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

clinical-research

Prospective clinical study DESIGN: endpoints, sample size / power, and phase-gate feasibility. Every output is an estimate with stated assumptions routed to a named human owner. This skill never gives clinical advice as fact and never substitutes for a biostatistician or regulatory affairs.

Purpose

R&D clinical teams, medical monitors, and biostatistics functions live at the moment between we-have-a-hypothesis and we-have-a-protocol-ready-for-submission. This skill structures three of the hardest design decisions:

Three deterministic tools:

  1. sample_size_estimator.py — Closed-form power / sample-size for two-arm means (Cohen's d), proportions (normal approximation), and survival (Schoenfeld events). Inflates for dropout. Prints an "ESTIMATE — confirm with a biostatistician" banner.
  2. endpoint_selector.py — Scores candidate endpoints across 5 weighted dimensions (clinical relevance, measurability, regulatory acceptance, sensitivity-to-change, burden) and classifies each as PRIMARY / KEY-SECONDARY / EXPLORATORY. Penalizes unvalidated surrogate endpoints.
  3. phase_gate_scorer.py — Scores a study plan 0-100 across recruitment feasibility, endpoint readiness, statistical power, operational complexity, and budget fit; returns GO / GO-WITH-CONDITIONS / REDESIGN / NO-GO plus the named owners who must sign.

When to use

Invoke this skill when:

  • You are choosing a primary endpoint and need to defend it against surrogate-endpoint scrutiny.
  • You need a defensible first sample-size estimate for a protocol synopsis.
  • A study plan needs a feasibility read before a phase-gate review.
  • You are pressure-testing whether the planned enrollment is achievable given the eligible population and sites.

Do NOT use this skill to: prepare a regulatory submission or clinical evaluation report (use ra-qm-team), find or position a grant (use research/grants), design a live product A/B experiment (use product-team/experiment-designer), or replace a biostatistician's final sample-size justification.

Workflow

  1. Draft the synopsis — Fill assets/protocol_synopsis_template.md (objectives, design, population, endpoints, statistical plan placeholder, owners-to-sign).
  2. Select the endpoint — Run endpoint_selector.py --input endpoints.json --profile {drug|device|biologic|diagnostic|digital-therapeutic}. Read the classification + surrogate flags. If >1 primary, plan multiplicity control.
  3. Estimate the sample size — Run sample_size_estimator.py --design {means|proportions|survival} .... Trace the effect/difference/HR to a published or anchor-based source; inflate for dropout.
  4. Score feasibility — Run phase_gate_scorer.py --input study.json --profile <same> --phase {1|2|3|4}. Read the verdict + blockers + named owners.
  5. Route for sign-off — Assemble the synopsis + estimates into the gate packet. The packet is a recommendation; a biostatistician, medical monitor, and regulatory owner sign.

Scripts

Script Purpose Profiles
scripts/sample_size_estimator.py Power / sample-size for means, proportions, survival n/a (design-driven)
scripts/endpoint_selector.py 5-dimension endpoint scoring + classification + surrogate flag drug, device, biologic, diagnostic, digital-therapeutic
scripts/phase_gate_scorer.py Feasibility 0-100 + GO/GO-WITH-CONDITIONS/REDESIGN/NO-GO + owners drug, device, biologic, diagnostic, digital-therapeutic

All three: stdlib-only, --help, --sample, --output {human,json}.

Onboarding & customization

Run the onboarding questionnaire once before you start — it captures your defaults and named owners so every tool in this skill is pre-configured. Customization is the point: the answers actually change tool behavior.

python3 scripts/onboard.py            # interactive (also: --defaults, --set key=value, --reset)
python3 scripts/onboard.py --show     # see the questions + current effective config

Answers are saved to ~/.config/research-ops/clinical-research.json (global) or ./.research-ops/clinical-research.json (--scope project) and are read automatically by config_loader.py. They set the default development-area profile, default alpha / power / dropout, and the named biostatistician / medical monitor / regulatory owner printed on outputs. CLI flags always override saved config; RESEARCH_OPS_NO_CONFIG=1 ignores it enti

FAQ

Can I rely on its numbers as final?

No. The outputs are estimates with stated assumptions, and a biostatistician should confirm them.

How are endpoints chosen?

Candidate endpoints are scored on clinical relevance, measurability, regulatory acceptance, sensitivity to change and burden.

Does it give clinical advice?

No. The skill does not give clinical advice as fact and does not replace a biostatistician or regulatory affairs.

Details

Original description by the author

Use when designing a prospective clinical study: choosing primary and secondary endpoints, estimating sample size and power, or scoring feasibility before submission. Runs endpoint_selector.py, sample_size_estimator.py and phase_gate_scorer.py; outputs are estimates for a biostatistician to confirm.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9744
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills