By pymc-labs
PyMC 6+ / PyTensor 3+ / ArviZ 1.0+ Bayesian modeling skills, agents, hooks, and tools for Claude Code
Compare multiple Bayesian models using LOO-CV
Generate and analyze prior predictive checks for the current model
Run full MCMC diagnostics on a DataTree file
Validate model shapes and dimensions before sampling
Analyze MCMC diagnostics from ArviZ output, identify convergence issues, and suggest fixes
Review PyMC model code before sampling to catch common mistakes and suggest improvements
Help users choose appropriate priors through interactive dialogue and prior predictive checking
Load when the user is comparing Bayesian models, computing LOO-CV / ELPD, calling az.loo or az.compare, doing model stacking/averaging, or computing Bayes factors. Covers the ArviZ 1.0 LOO/ELPD/stacking APIs exclusively (no waic). Triggers include: model comparison, LOO, ELPD, az.compare, az.loo, loo_expectations, loo_metrics, loo_r2, Pareto k, stacking, Bayes factor, cross-validation, predictive accuracy, information criterion.
Load when the user is choosing priors, running prior predictive checks, calling find_constrained_prior, using PreliZ, or otherwise eliciting domain knowledge into a Bayesian model. Covers weakly informative priors, constrained priors, sensitivity analysis, and elicitation workflows. Triggers include: prior selection, elicitation, find_constrained_prior, PreliZ, prior predictive, expert/informative priors, weakly informative priors, constrained priors.
Load when the user is working with pymc-extras (pmx) features: splines / BSplineBasis, distributional regression / GAMLSS, R2D2M2CP or horseshoe priors, discrete variable marginalization, or Laplace approximation via fit_laplace. Triggers include: pymc_extras, pymc-extras, pmx, splines, BSplineBasis, distributional regression, GAMLSS, R2D2, horseshoe (regularized/Finnish), marginalize, fit_laplace, penalized splines.
Load whenever the user is working on code that imports pymc, pytensor, or arviz, or asks about Bayesian modeling, MCMC, priors, posteriors, sampling, or model diagnostics. Covers PyMC 6+, PyTensor 3+, ArviZ 1.0+ (DataTree API), pymc-bart, pymc-extras, nutpie, and JAX/NumPyro backends. Use for building probabilistic models, specifying priors, running MCMC, diagnosing convergence, or comparing models. Triggers include: Bayesian inference, posterior sampling, hierarchical/multilevel models, GLMs, time series, Gaussian processes, HSGP, BART, mixture models, prior/posterior predictive checks, MCMC diagnostics, LOO-CV, model comparison, causal inference with do/observe, and any PyTensor Op or graph work.
Load when writing or modifying pytest tests that touch pymc.Model, pm.sample, or any PyMC model code. Covers pymc.testing.mock_sample, pytest fixtures for Bayesian models, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. Triggers include: testing PyMC, pytest with pymc, unit tests for Bayesian models, mock sampling, test fixtures for models, CI/CD for PyMC.
Admin access level
Server config contains admin-level keywords
Modifies files
Hook triggers on file write and edit operations
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.
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
A PyMC Bayesian modeling assistant. Provides skills, tools, commands, and hooks for probabilistic programming with PyMC 6+, PyTensor 3+, and ArviZ 1.0+.
Works with Claude Code, Oh My Pi / pi-compatible harnesses, Codex, Gemini, OpenCode, and generic Agent Skills consumers.
/pymc-diagnose, /prior-check, /shape-check, /model-compareThis plugin is distributed through the python-analytics-skills marketplace.
# Add the marketplace (one-time setup)
claude plugin marketplace add pymc-labs/python-analytics-skills
# Install the plugin
claude plugin install pymc-modeling@python-analytics-skills
To update to the latest version:
claude plugin update pymc-modeling
Use the install script when you want local symlinked resources. The script installs only the target you name; run it again with another target if you use multiple harnesses.
If the target already has pymc-modeling resources, the installer first removes the existing plugin-owned paths and then recreates them from this checkout.
git clone https://github.com/pymc-labs/pymc-modeling
cd pymc-modeling
bash install.sh <target>
Targets:
| Target | Harness | Installed resources |
|---|---|---|
claude-code | Claude Code | Full plugin at ~/.claude/plugins/pymc-modeling |
omp | Oh My Pi / pi-compatible | Extension, skills, agents, and commands at ${PI_CODING_AGENT_DIR:-~/.omp/agent} |
pi | Legacy pi | Extension at ~/.pi/agent/extensions/pymc-modeling; skills at ~/.pi/agent/skills |
codex | Codex | Skills, agents, and commands at ~/.codex/ |
gemini | Gemini | Skills, agents, and commands at ~/.gemini/ |
opencode | OpenCode | Skills and commands at ~/.config/opencode/ |
agents | Generic Agent Skills consumers | Skills at ~/.agents/skills |
Examples:
bash install.sh claude-code # Claude Code only
bash install.sh omp # Oh My Pi / pi-compatible only
bash install.sh codex # Codex only
Run bash install.sh --help to list targets. Set PI_CODING_AGENT_DIR before running bash install.sh omp if your Oh My Pi-compatible harness uses a non-default agent directory.
bash scripts/validate-plugin.sh
After installation, restart your agent harness so it re-discovers skills, commands, tools, hooks, and extensions.
The assistant should pick up the PyMC skills automatically when your prompt or files mention PyMC, PyTensor, ArviZ, MCMC diagnostics, priors, model comparison, or related Bayesian modeling tasks.
Example prompts:
Review this PyMC model for shape and identifiability problems.
Help me choose priors for this hierarchical logistic regression.
Diagnose these divergences and low ESS values.
Compare these two models with PSIS-LOO.
If your harness supports skill commands, call the relevant skill directly:
/skill:pymc-modeling build a non-centered hierarchical model
/skill:pymc-testing write pytest tests for this model
/skill:prior-elicitation choose priors for a positive scale parameter
/skill:model-evaluation compare these models with LOO
/skill:pymc-extras use B-splines for a smooth age effect
The bundled commands expand into task-specific instructions:
/pymc-diagnose
/prior-check
/shape-check
/model-compare
Claude Code exposes the tools through the pymc-docs MCP server. Oh My Pi / pi-compatible harnesses expose the same tools through the TypeScript extension:
pymc_api_lookup("pm.sample")
pymc_example_search("hierarchical non-centered")
pymc_error_lookup("divergences")
When hooks or extension events are supported:
.py or .ipynb files with PyMC/PyTensor/ArviZ imports surfaces a PyMC guidance remindernpx claudepluginhub pymc-labs/pymc-modelingPython analytics skills for Bayesian modeling and reactive notebooks
Python analytics skills for Bayesian modeling and reactive notebooks
Comprehensive model evaluation with multiple metrics
Self-documenting, self-improving framework for analytical repositories
Use when debugging, investigating root causes, designing experiments, or performing scientific analysis — enforces hypothesis-driven reasoning, evidence-first observation, causality validation, and structured output templates. Use when facing unknowns, repeated failures, or complex investigations requiring rigorous methodology.
Evaluate and compare ML model performance metrics
Multi-agent workflow framework for building, testing, and shipping statistical software packages