# choxos/biostatagent architecture

> Architecture diagram of the GitHub repository choxos/biostatagent, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/choxos/biostatagent
- Repository: https://github.com/choxos/biostatagent

## Overview

BiostatAgent is a Claude Code marketplace of four biostatistics plugins. Users select a plugin command for modeling, indirect treatment comparison, R analysis, or trial simulation and receive workflow-specific guidance. The README documents each plugin’s agents, skills, and methodological capabilities; source excerpts do not establish runtime call wiring among them, so those relationships are not inferred.

Main entry points: [`plugins/bayesian-modeling/commands`](https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/commands) (Model workflows), [`plugins/itc-modeling/commands`](https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/commands) (ITC workflows), [`plugins/r-tidy-modeling/commands`](https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/commands) (R analysis workflows), [`plugins/clinical-trial-simulation/commands`](https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/commands) (Trial design workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_marketplace["Marketplace"]
  node_catalog["Marketplace manifest<br/>[marketplace.json]"]
end

subgraph group_bayesian["Bayesian Modeling"]
  node_bayes_commands["Model workflows"]
  node_bayes_agents["Model specialists"]
  node_bayes_skills["Bayesian methods"]
end

subgraph group_itc["ITC Modeling"]
  node_itc_commands["ITC workflows"]
  node_itc_agents["ITC specialists"]
  node_itc_skills["ITC methods"]
end

subgraph group_rtidy["R Tidy Modeling"]
  node_r_commands["R analysis workflows"]
  node_r_agents["R specialists"]
  node_r_skills["R methods"]
end

subgraph group_trials["Trial Simulation"]
  node_trial_commands["Trial design workflows"]
  node_trial_agents["Trial specialists"]
  node_trial_skills["Trial methods"]
end

node_user(("Analyst"))
node_analysis_result["Analysis guidance"]

node_user -->|"requests modeling"| node_bayes_commands
node_user -->|"requests ITC"| node_itc_commands
node_user -->|"requests R analysis"| node_r_commands
node_user -->|"requests trial design"| node_trial_commands
node_bayes_commands -->|"guides modeling"| node_analysis_result
node_itc_commands -->|"guides comparison"| node_analysis_result
node_r_commands -->|"guides analysis"| node_analysis_result
node_trial_commands -->|"guides simulation"| node_analysis_result

click node_catalog "https://github.com/choxos/biostatagent/blob/main/.claude-plugin/marketplace.json"
click node_bayes_commands "https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/commands"
click node_bayes_agents "https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/agents"
click node_bayes_skills "https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/skills"
click node_itc_commands "https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/commands"
click node_itc_agents "https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/agents"
click node_itc_skills "https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/skills"
click node_r_commands "https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/commands"
click node_r_agents "https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/agents"
click node_r_skills "https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/skills"
click node_trial_commands "https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/commands"
click node_trial_agents "https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/agents"
click node_trial_skills "https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/skills"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_catalog toneBlue
class node_bayes_commands,node_bayes_agents,node_bayes_skills toneAmber
class node_itc_commands,node_itc_agents,node_itc_skills toneMint
class node_r_commands,node_r_agents,node_r_skills toneRose
class node_trial_commands,node_trial_agents,node_trial_skills,node_user,node_analysis_result toneIndigo
```

## Components

### Marketplace

- [Marketplace manifest](https://github.com/choxos/biostatagent/blob/main/.claude-plugin/marketplace.json): `.claude-plugin/marketplace.json`

### Bayesian Modeling

- [Model workflows](https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/commands): `plugins/bayesian-modeling/commands`
- [Model specialists](https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/agents): `plugins/bayesian-modeling/agents`
- [Bayesian methods](https://github.com/choxos/biostatagent/tree/main/plugins/bayesian-modeling/skills): `plugins/bayesian-modeling/skills`

### ITC Modeling

- [ITC workflows](https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/commands): `plugins/itc-modeling/commands`
- [ITC specialists](https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/agents): `plugins/itc-modeling/agents`
- [ITC methods](https://github.com/choxos/biostatagent/tree/main/plugins/itc-modeling/skills): `plugins/itc-modeling/skills`

### R Tidy Modeling

- [R analysis workflows](https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/commands): `plugins/r-tidy-modeling/commands`
- [R specialists](https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/agents): `plugins/r-tidy-modeling/agents`
- [R methods](https://github.com/choxos/biostatagent/tree/main/plugins/r-tidy-modeling/skills): `plugins/r-tidy-modeling/skills`

### Trial Simulation

- [Trial design workflows](https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/commands): `plugins/clinical-trial-simulation/commands`
- [Trial specialists](https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/agents): `plugins/clinical-trial-simulation/agents`
- [Trial methods](https://github.com/choxos/biostatagent/tree/main/plugins/clinical-trial-simulation/skills): `plugins/clinical-trial-simulation/skills`

### Other components

- **Analyst**
- **Analysis guidance**

## Connections

- Analyst → Model workflows: requests modeling
- Analyst → ITC workflows: requests ITC
- Analyst → R analysis workflows: requests R analysis
- Analyst → Trial design workflows: requests trial design
- Model workflows → Analysis guidance: guides modeling
- ITC workflows → Analysis guidance: guides comparison
- R analysis workflows → Analysis guidance: guides analysis
- Trial design workflows → Analysis guidance: guides simulation
