Back to Discover

BiostatAgent

skill

choxos

Claude Code plugin marketplace for biostatistics in R — 30 agents, 17 commands, and 45 skills spanning Bayesian modeling (Stan/PyMC/JAGS), indirect treatment comparisons (NMA/MAIC/STC/ML-NMR), tidy R workflows, and clinical trial simulation.

View on GitHub
8 starsMITSynced Aug 2, 2026

Install to Claude Code

/plugin marketplace add choxos/BiostatAgent

README

BiostatAgent

Comprehensive Biostatistics Agent Ecosystem -- 30 specialized agents, 17 workflow commands, and 45 methodology skills for R-based statistical analysis

License: MIT

A unified Claude Code plugin marketplace consolidating four specialized biostatistics plugins:

PluginFocusAgentsCommandsSkills
bayesian-modelingBayesian inference (Stan, PyMC, JAGS)639
itc-modelingIndirect treatment comparisons726
r-tidy-modelingTidy R workflows & biostatistics10723
clinical-trial-simulationClinical trial simulation757
Total301745

Quick Start

1. Add the Marketplace

/plugin marketplace add choxos/BiostatAgent

2. Install Plugins

Install all plugins or select specific ones:

# Install all
/plugin install bayesian-modeling itc-modeling r-tidy-modeling clinical-trial-simulation

# Or install individually
/plugin install bayesian-modeling
/plugin install itc-modeling
/plugin install r-tidy-modeling
/plugin install clinical-trial-simulation

3. Install R Dependencies

# Core dependencies (install as needed)
install.packages(c(
  # Bayesian modeling
  "rstan", "R2jags", "R2WinBUGS", "bayesplot", "loo",
  # ITC/NMA
  "meta", "netmeta", "gemtc", "multinma", "maicplus",
  # Tidy modeling
  "tidyverse", "tidymodels", "recipes", "parsnip", "workflows",
  # Clinical trials
  "simtrial", "Mediana", "gsDesign2", "survival"
))

# CmdStanR is distributed from the Stan R-universe, not CRAN.
install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
cmdstanr::install_cmdstan()

Plugins Overview

1. Bayesian Modeling (bayesian-modeling)

Create, review, and validate Bayesian models across four languages:

  • Stan via cmdstanr -- Modern HMC/NUTS sampling with the current installed CmdStan
  • PyMC -- Python-native Bayesian modeling with ArviZ diagnostics
  • JAGS -- Cross-platform Gibbs sampling with R2jags
  • WinBUGS -- Classic BUGS implementation with R2WinBUGS

Commands:

CommandDescription
/create-modelInteractive model creation workflow
/review-modelReview existing models for correctness
/run-diagnosticsTest model execution with synthetic data

Agents: model-architect, stan-specialist, pymc-specialist, bugs-specialist, model-reviewer, test-runner

Skills: stan-fundamentals, pymc-fundamentals, bugs-fundamentals, hierarchical-models, regression-models, time-series-models, survival-models, meta-analysis, model-diagnostics


2. ITC Modeling (itc-modeling)

Expert agents for indirect treatment comparison following NICE DSU guidance:

  • Pairwise Meta-Analysis -- Fixed/random effects with meta, metafor, bayesmeta
  • Network Meta-Analysis -- Frequentist (netmeta) and Bayesian (gemtc)
  • MAIC -- Matching-adjusted indirect comparison with maicplus
  • STC -- Simulated treatment comparison
  • ML-NMR -- Multilevel network meta-regression with multinma

Commands:

CommandDescription
/itc-analysisFull ITC workflow from method selection to results
/itc-reviewReview existing ITC code for methodological issues

Agents: itc-architect, pairwise-meta-analyst, nma-specialist, maic-specialist, stc-specialist, ml-nmr-specialist, itc-code-reviewer

Skills: tidy-itc-workflow, pairwise-ma-methodology, nma-methodology, maic-methodology, stc-methodology, ml-nmr-methodology


3. R Tidy Modeling (r-tidy-modeling)

Comprehensive R data science and biostatistics following tidyverse and tidymodels best practices:

  • Data Wrangling -- dplyr, tidyr, data transformation
  • Feature Engineering -- recipes, preprocessing, transformations
  • Model Building -- parsnip, workflows, tidymodels
  • Visualization -- ggplot2, publication-ready figures
  • Reporting -- Quarto, R Markdown, reproducible reports
  • Biostatistics -- Clinical trials, survival analysis, epidemiology, meta-analysis, genomics, pharmacokinetics, health economics, and more

Commands:

CommandDescription
/r-analysisEnd-to-end analysis workflow
/r-code-reviewReview R code for best practices
/r-model-comparisonCompare multiple models
/r-clinical-analysisClinical trial analysis workflow
/r-project-setupSet up reproducible R project
/r-doc-generateGenerate documentation
/r-tutorial-createCreate tutorials from code

Agents: r-data-architect, tidymodels-engineer, feature-engineer, biostatistician, data-wrangler, viz-specialist, reporting-engineer, r-code-reviewer, r-docs-architect, r-tutorial-engineer

Skills (23):

CategorySkills
Tidymodelstidymodels-workflow, tidymodels-review-patterns, recipes-patterns, resampling-strategies, model-tuning, model-evaluation
Clinical & Epidemiologyclinical-trials, epidemiology-methods, advanced-adaptive-trials, real-world-evidence
Evidence Synthesismeta-analysis, network-meta-analysis, ipd-meta-analysis
Specialized Methodssurvival-analysis, bayesian-modeling, diagnostic-accuracy, causal-mediation, mendelian-randomization, pharmacokinetics, health-economics, genomics-analysis
Documentationr-documentation-patterns, roxygen2-pkgdown

4. Clinical Trial Simulation (clinical-trial-simulation)

Design and simulate clinical trials using simtrial and Mediana:

  • simtrial -- Time-to-event simulations, weighted logrank, MaxCombo
  • Mediana -- Clinical Scenario Evaluation, multiplicity, Word reports
  • gsDesign2 -- Group sequential designs, alpha spending

Commands:

CommandDescription
/power-analysisCalculate power across scenarios
/sample-sizeFind minimum sample size for target power
/gs-designDesign group sequential trials
/multiplicity-optimizationOptimize multiple testing procedures
/cse-analysisFull Clinical Scenario Evaluation

Agents: simulation-architect, tte-specialist, cse-specialist, multiplicity-expert, gs-design-specialist, power-optimizer, code-reviewer

Skills: simtrial-fundamentals, mediana-fundamentals, multiplicity-methods, time-to-event-methods, group-sequential-methods, power-optimization-patterns, clinical-trial-design-patterns


Repository Structure

BiostatAgent/
├── .claude-plugin/
│   └── marketplace.json              # Unified plugin manifest
├── plugins/
│   ├── bayesian-modeling/
│   │   ├── agents/                   # 6 agents
│   │   ├── commands/                 # 3 commands
│   │   └── skills/                   # 9 skills
│   ├── itc-modeling/
│   │   ├── agents/                   # 7 agents
│   │   ├── commands/                 # 2 commands
│   │   └── skills/                   # 6 skills
│   ├── r-tidy-modeling/
│   │   ├── agents/                   # 10 agents
│   │   ├── commands/                 # 7 commands
│   │   └── skills/                   # 23 skills
│   └── clinical-trial-simulation/
│       ├── agents/                   # 7 agents
│       ├── commands/                 # 5 commands
│       └── skills/                   # 7 skills
├── README.md
└── LICENSE

Usage Examples

Bayesian Modeling

Create a hierarchical model for patient outcomes nested within hospitals.
Use Stan with cmdstanr.

ITC Analysis

I have IPD for trial A and AgD for trial B.
Help me run a MAIC to compare treatments.

Tidy R Analysis

Build a predictive model for patient readmission using tidymodels.
Include cross-validation and hyperparameter tuning.

Clinical Trial Simulation

Calculate power for a survival trial with HR=0.7, 300 events, alpha=0.025.
Use weighted logrank for non-proportional hazards.

All Components

Agents (30 total)

PluginAgents
bayesian-modelingmodel-architect, stan-specialist, pymc-specialist, bugs-specialist, model-reviewer, test-runner
itc-modelingitc-architect, pairwise-meta-analyst, nma-specialist, maic-specialist, stc-specialist, ml-nmr-specialist, itc-code-reviewer
r-tidy-modelingr-data-architect, tidymodels-engineer, feature-engineer, biostatistician, data-wrangler, viz-specialist, reporting-engineer, r-code-reviewer, r-docs-architect, r-tutorial-engineer
clinical-trial-simulationsimulation-architect, tte-specialist, cse-specialist, multiplicity-expert, gs-design-specialist, power-optimizer, code-reviewer

Commands (17 total)

PluginCommands
bayesian-modeling/create-model, /review-model, /run-diagnostics
itc-modeling/itc-analysis, /itc-review
r-tidy-modeling/r-analysis, /r-code-review, /r-model-comparison, /r-clinical-analysis, /r-project-setup, /r-doc-generate, /r-tutorial-create
clinical-trial-simulation/power-analysis, /sample-size, /gs-design, /multiplicity-optimization, /cse-analysis

Skills (45 total)

PluginSkills
bayesian-modelingstan-fundamentals, pymc-fundamentals, bugs-fundamentals, hierarchical-models, regression-models, time-series-models, survival-models, meta-analysis, model-diagnostics
itc-modelingtidy-itc-workflow, pairwise-ma-methodology, nma-methodology, maic-methodology, stc-methodology, ml-nmr-methodology
r-tidy-modelingtidymodels-workflow, tidymodels-review-patterns, recipes-patterns, resampling-strategies, model-tuning, model-evaluation, survival-analysis, clinical-trials, bayesian-modeling, epidemiology-methods, genomics-analysis, r-documentation-patterns, roxygen2-pkgdown, meta-analysis, network-meta-analysis, ipd-meta-analysis, diagnostic-accuracy, causal-mediation, mendelian-randomization, pharmacokinetics, health-economics, real-world-evidence, advanced-adaptive-trials
clinical-trial-simulationsimtrial-fundamentals, mediana-fundamentals, multiplicity-methods, time-to-event-methods, group-sequential-methods, power-optimization-patterns, clinical-trial-design-patterns

Contributing

See CONTRIBUTING.md for how to add agents, commands, or skills. Run python3 scripts/validate-marketplace.py before opening a PR — the same validator runs in CI to guarantee .claude-plugin/marketplace.json stays in sync with the filesystem.

Release notes live in CHANGELOG.md.

License

MIT License -- see LICENSE for details.

Acknowledgments

Rendered live from choxos/BiostatAgent's GitHub README — not stored, always reflects the source repo.

49 Plugins

NameDescriptionCategorySource
bayesian-modelingCreate, review, and validate Bayesian models in Stan, PyMC, JAGS, and WinBUGSstatistics./plugins/bayesian-modeling
stan-fundamentalsSkill bundled in bayesian-modelingskill./skills/stan-fundamentals
pymc-fundamentalsSkill bundled in bayesian-modelingskill./skills/pymc-fundamentals
bugs-fundamentalsSkill bundled in bayesian-modelingskill./skills/bugs-fundamentals
hierarchical-modelsSkill bundled in bayesian-modelingskill./skills/hierarchical-models
regression-modelsSkill bundled in bayesian-modelingskill./skills/regression-models
time-series-modelsSkill bundled in bayesian-modelingskill./skills/time-series-models
survival-modelsSkill bundled in bayesian-modelingskill./skills/survival-models
meta-analysisSkill bundled in bayesian-modelingskill./skills/meta-analysis
model-diagnosticsSkill bundled in bayesian-modelingskill./skills/model-diagnostics
itc-modelingExpert agents for indirect treatment comparison modeling in R, covering pairwise MA, NMA, MAIC, STC, and ML-NMR with tidy modeling practicesbiostatistics./plugins/itc-modeling
tidy-itc-workflowSkill bundled in itc-modelingskill./skills/tidy-itc-workflow
pairwise-ma-methodologySkill bundled in itc-modelingskill./skills/pairwise-ma-methodology
nma-methodologySkill bundled in itc-modelingskill./skills/nma-methodology
maic-methodologySkill bundled in itc-modelingskill./skills/maic-methodology
stc-methodologySkill bundled in itc-modelingskill./skills/stc-methodology
ml-nmr-methodologySkill bundled in itc-modelingskill./skills/ml-nmr-methodology
r-tidy-modelingExpert agents for R data science and biostatistics covering data wrangling, feature engineering, model building, statistical evaluation, clinical trials, genomics, documentation generation, and reproducible reporting using tidyverse and tidymodelsdata-science./plugins/r-tidy-modeling
tidymodels-workflowSkill bundled in r-tidy-modelingskill./skills/tidymodels-workflow
tidymodels-review-patternsSkill bundled in r-tidy-modelingskill./skills/tidymodels-review-patterns
recipes-patternsSkill bundled in r-tidy-modelingskill./skills/recipes-patterns
resampling-strategiesSkill bundled in r-tidy-modelingskill./skills/resampling-strategies
model-tuningSkill bundled in r-tidy-modelingskill./skills/model-tuning
model-evaluationSkill bundled in r-tidy-modelingskill./skills/model-evaluation
survival-analysisSkill bundled in r-tidy-modelingskill./skills/survival-analysis
clinical-trialsSkill bundled in r-tidy-modelingskill./skills/clinical-trials
bayesian-modelingSkill bundled in r-tidy-modelingskill./skills/bayesian-modeling
epidemiology-methodsSkill bundled in r-tidy-modelingskill./skills/epidemiology-methods
genomics-analysisSkill bundled in r-tidy-modelingskill./skills/genomics-analysis
r-documentation-patternsSkill bundled in r-tidy-modelingskill./skills/r-documentation-patterns
roxygen2-pkgdownSkill bundled in r-tidy-modelingskill./skills/roxygen2-pkgdown
meta-analysisSkill bundled in r-tidy-modelingskill./skills/meta-analysis
network-meta-analysisSkill bundled in r-tidy-modelingskill./skills/network-meta-analysis
ipd-meta-analysisSkill bundled in r-tidy-modelingskill./skills/ipd-meta-analysis
diagnostic-accuracySkill bundled in r-tidy-modelingskill./skills/diagnostic-accuracy
causal-mediationSkill bundled in r-tidy-modelingskill./skills/causal-mediation
mendelian-randomizationSkill bundled in r-tidy-modelingskill./skills/mendelian-randomization
pharmacokineticsSkill bundled in r-tidy-modelingskill./skills/pharmacokinetics
health-economicsSkill bundled in r-tidy-modelingskill./skills/health-economics
real-world-evidenceSkill bundled in r-tidy-modelingskill./skills/real-world-evidence
advanced-adaptive-trialsSkill bundled in r-tidy-modelingskill./skills/advanced-adaptive-trials
clinical-trial-simulationClinical trial simulation plugin supporting simtrial (time-to-event) and Mediana (CSE) frameworks for power analysis, sample size determination, group sequential designs, and multiplicity optimizationclinical-trials./plugins/clinical-trial-simulation
simtrial-fundamentalsSkill bundled in clinical-trial-simulationskill./skills/simtrial-fundamentals
mediana-fundamentalsSkill bundled in clinical-trial-simulationskill./skills/mediana-fundamentals
multiplicity-methodsSkill bundled in clinical-trial-simulationskill./skills/multiplicity-methods
time-to-event-methodsSkill bundled in clinical-trial-simulationskill./skills/time-to-event-methods
group-sequential-methodsSkill bundled in clinical-trial-simulationskill./skills/group-sequential-methods
power-optimization-patternsSkill bundled in clinical-trial-simulationskill./skills/power-optimization-patterns
clinical-trial-design-patternsSkill bundled in clinical-trial-simulationskill./skills/clinical-trial-design-patterns

0 Comments

Login required
Log in to post a comment or update on this repo.

No comments yet — be the first to share an update.