By sunxd3
Orchestrated subagents and skills for end-to-end Bayesian statistical modeling with Stan and ArviZ
Run exploratory data analysis on a dataset for Bayesian modeling. Standalone — can be used independently of the full /bayesian-workflow:run pipeline.
Run the end-to-end Bayesian modeling workflow — EDA, model design, fitting, validation, and reporting via orchestrated subagents. Use when building probabilistic models with Stan and ArviZ.
Bootstrap the Python environment for the Bayesian workflow — copies the bundled `shared_utils` library into the project, creates `pyproject.toml`, syncs dependencies with `uv`, and installs CmdStan.
Sets up the Bayesian analysis from the EDA report: analysis purpose, validation strategy, domain context, contrastive structural questions, and a domain-aware shared baseline. Seeds the experiment plan that downstream model-designers extend. SIGNATURE: (eda_dir: Path, output_dir: Path = "design/")
Critiques a single fitted Bayesian model from three angles — statistical health, domain validity, framework appropriateness — and returns a VIABLE / CONCERNS / BROKEN verdict. SIGNATURE: (experiment_dir: Path, experiment_plan_path: Path, eda_report_path: Path, data_path: Path)
Performs exploratory data analysis for Bayesian modeling workflows. SIGNATURE: (data_path: Path, output_dir: Path = "eda/", focus_area?: Text)
Pre-fit gate: simulate fake data from known parameters and verify the model can recover them. SIGNATURE: (experiment_dir: Path, output_dir: Path)
Designs experiments to resolve a structural question about the data-generating process. SIGNATURE: (eda_dir: Path, experiment_plan_path: Path, structural_question: Text, baseline_spec: Text, other_questions: Text, output_dir: Path)
Methodology for setting up a Bayesian analysis — analysis purpose, validation strategy, domain context, structural questions. Read before specifying any models.
Style and format conventions for subagent artifacts — reports, logs, figures.
Interpreting LOO diagnostics, PIT calibration, and Pareto k for single-model evaluation
Comparing model populations via ELPD, decision rules for selection vs stacking, and metric validity
MCMC convergence diagnostics — thresholds, visual checks, and interpretation of HMC pathologies.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin for end-to-end Bayesian statistical modeling with Stan and ArviZ. It packages an orchestrator skill, eleven specialized subagents, and a library of modeling skills that together run a full Bayesian workflow: EDA → model design → fitting → validation → reporting.
uv — used for all Python execution./bayesian-workflow:setup command installs CmdStan via
python -m cmdstanpy.install_cmdstan.From the marketplace (the repository is also its own marketplace):
/plugin marketplace add sunxd3/bayesian-statistician-plugin
/plugin install bayesian-workflow@sunxd3-plugins
For local development, clone the repository and load it with --plugin-dir:
git clone https://github.com/sunxd3/bayesian-statistician-plugin.git
claude --plugin-dir ./bayesian-statistician-plugin
Run /reload-plugins after editing a locally loaded plugin.
Bootstrap the Python environment once per project (optional — the orchestrator will do it on first run if you skip):
> /bayesian-workflow:setup
Then run the workflow with your data path or analysis goal:
> /bayesian-workflow:run Analyze data/sales.csv and build a Bayesian model
The orchestrator drives the workflow through four phases, delegating to
subagents and writing all results into a predictable folder structure
(eda/, design/, experiments/, final_report.html, log.md).
Individual phases can also be run standalone — for example, EDA alone:
> /bayesian-workflow:eda data/sales.csv
Orchestration skill — orchestration holds the full workflow protocol
(phases, task-pool semantics, canonical file structure, dispatch logic).
Loaded by the /bayesian-workflow:run command.
Subagents (11) — eda-analyst, analysis-planner, model-designer,
prior-predictive-checker, fake-data-checker, model-fitter,
posterior-predictive-checker, critique, model-refiner, model-selector,
report-writer.
Commands:
/bayesian-workflow:setup — bootstraps the Python environment (copies
shared_utils, creates pyproject.toml, runs uv sync and
cmdstanpy.install_cmdstan)./bayesian-workflow:run [data-path-or-analysis-goal] — end-to-end pipeline.
Loads the orchestration skill and drives all four phases./bayesian-workflow:eda <data_path> [output_dir] [--focus=<area>] — run
EDA on a dataset standalone, without the full workflow pipeline. Wraps
the eda-analyst subagent.Modeling skills (13) — validation-protocol, python-environment,
stan (with references/ode.md and references/horseshoe.md for ODE-based
dynamics and sparse regression), generative-model-design (lean SKILL.md
index + references/ for spec sections, design principles, and the
resolution-sequence pattern), fake-data-simulation (with
references/single-draw.md, references/sbc.md, references/decision.md),
convergence-diagnostics, inferencedata-handling, visual-predictive-checks,
bayesian-model-diagnostics, bayesian-model-selection, model-critique
(SKILL.md index + references/ for statistical, domain, and framework
assessment plus verdict templates), eda (with references/process/ for EDA
procedures and references/tests/ for a diagnostic test library by data
shape), artifact-guidelines (with references/html-report.md,
references/markdown-report.md, and references/final-report.md for the
Phase-4 narrative structure). Subagents load the skills relevant to their
role; skills are not user-invocable directly — use the commands above.
Bundled library — shared_utils, a Python package with a fit-and-summarize
pipeline, convergence diagnostics, LOO, and ArviZ helpers. The setup command
copies it into the working project as a path dependency.
eda/) — eda-analyst explores the data and
surfaces competing structural hypotheses about the data-generating process.design/) — analysis-planner frames the analysis
(purpose, validation, domain, structural questions) and the shared baseline;
parallel model-designer instances then turn the structural questions into
an experiment plan.experiments/) — each experiment flows through
prior-predictive-checker → fake-data-checker → model-fitter → posterior-predictive-checker → critique, with model-refiner and
model-selector driving iteration until questions are resolved.final_report.html) — report-writer produces a report
organized around what was learned about the data-generating process.Add to your .claude/settings.json:
{
"env": {
"CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR": "1"
}
}
npx claudepluginhub sunxd3/bayesian-statistician-plugin --plugin bayesian-workflowPython analytics skills for Bayesian modeling and reactive notebooks
Multi-agent workflow framework for building, testing, and shipping statistical software packages
Self-documenting, self-improving framework for analytical repositories
Data science and ML workflow tools. 9 agents, 8 commands, 19 skills, 9 templates for problem framing, preprocessing, validation, EDA, experimentation, review, deployment, and knowledge compounding.
mcp-stata - an agentic toolkit for empirical researchers. Gives AI agents native control over a local Stata installation, allowing agents to run do-files, inspect data, check stored results, and export graphs.
Modern R development skills for Claude Code - tidyverse patterns, rlang metaprogramming, Bayesian inference, performance optimization, and more