Builds, revises, and debugs Bayesian models with PyMC. Covers likelihood/prior selection, hierarchical models, GPs, time series, mixtures, BART, splines, inference methods, and simulation-based calibration.
Ships in pymc-modeling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Choose a useful starting point: a simple scaffold, an established subject-matter model, or a decomposition of a larger target model. Expand, simplify or branch as the question, data and checks warrant. Use the consuming project's data and Python environment; check installed APIs and package compatibility.
Current modeling guidance uses the checked stack and the ArviZ DataTree API. References retain explicitly named older-release cautions where they help existing projects. Check each reference's version scope before you use an older environment.
For pymc-extras tasks (marginalization, Pathfinder/Laplace/DADVI/INLA,
state-space/ETS models, Prior/ModelBuilder, or specialized distributions),
use the dedicated pymc-extras skill when installed, starting with
feature selection and compatibility.
pymc-modeling.pymc-extras distributions, marginalization, state-space models or model
factories: use pymc-extras when available.prior-elicitation when available.arviz-diagnostics when available.pytensor-workflows when available.pymc-mlflow when available.Multipart requests can use more than one skill. The references below support modeling when specialist skills are not installed.
dims
label positional tensors; they do not join coordinates.
Use known-parameter simulated cases to probe new implementations and their
failure modes; use scoped SBC when repeated inference checks are warranted.PyMC 6 returns xarray.DataTree: use idata["posterior"], not attribute group
access. Call pm.compute_log_likelihood(idata, model=model) explicitly before
LOO or other pointwise-likelihood workflows. ArviZ 1.0 uses LOO, not removed WAIC;
state interval probability and type (the default is 89% ETI). Similar stacking
weights do not imply model equivalence.
Sampler preferences, warmup starting points and interval defaults are implementation
conventions, not universal Bayesian workflow requirements. Choose them for the task.
| When working on | Reference |
|---|---|
| End-to-end fitting, diagnostics and scientific checks | Workflow |
| Model construction, data containers and dimensions | Model and data |
| Failed initialization, shape errors, stuck sampling or warnings | Troubleshooting |
| Group effects, pooling and parameterization | Hierarchical models |
| Outcome support, censoring, multivariate families and Jacobians | Likelihoods |
| Algorithms, backends, budgets and persistence | Sampling |
| pymc-extras extensions (marginalization, state-space, distributions, tools) | PyMC Extras skill |
| Variational, Laplace and Pathfinder approximations | Approximate inference |
| Covariance models and finite-basis error | Gaussian processes |
| Temporal dependence, differential equations and forecasting | Time series |
| Label invariance and discrete elimination | Mixtures |
| External densities, simulators and predictive callbacks | Custom likelihoods |
| Conditioning, interventions and graph transformations | Transformations |
| In-sample criticism and new-input prediction | Predictive checks |
| Tree ensembles and prediction state | BART |
| Basis penalties and distributional predictors | Splines |
| Simulated-data experiments, SBC, numerical oracles and mocks | Model testing |
| Advanced numerical and extension interfaces | Interface boundaries |
For version-specific APIs, use help() or inspect.signature() on the installed
object in the consuming environment, then consult version-matched official
documentation or source.
LICENSE (opens in a new tab)references/approximate-inference.md (opens in a new tab)references/bart.md (opens in a new tab)references/custom-likelihoods.md (opens in a new tab)references/gaussian-processes.md (opens in a new tab)references/hierarchical.md (opens in a new tab)references/interface-boundaries.md (opens in a new tab)references/likelihoods.md (opens in a new tab)references/mixtures.md (opens in a new tab)references/model-data-dimensions.md (opens in a new tab)references/model-testing.md (opens in a new tab)references/predictive-checks.md (opens in a new tab)references/sampling.md (opens in a new tab)references/splines-distributional.md (opens in a new tab)references/time-series.md (opens in a new tab)references/transformations.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/arviz-diagnosticsDiagnose existing Bayesian inference output and evaluate fitted predictions with modern ArviZ DataTree summaries, divergences, rank R-hat, ESS and Monte Carlo precision. Use for posterior predictive checks, calibration, LOO/ELPD, Pareto k, stacking, grouped or temporal validation, survival diagnostics and Bayes-factor interpretation./prior-elicitationElicit and check Bayesian prior assumptions in meaningful units. Use for expert quantiles, PreliZ, constrained priors, prior-predictive plausibility and prior sensitivity, including power scaling, regularized horseshoe and R2D2 assumptions./pymc-extrasUse pymc-extras extensions for PyMC 6+ models: exact discrete/conjugate and Laplace marginalization, Pathfinder/Laplace/DADVI/INLA approximate inference, Bayesian state-space and ETS models, specialized distributions (DiscreteMarkovChain, JointCategorical, extreme values, histogram approximation), Prior/Censored/Scaled factories, ModelBuilder, VIP reparameterization, and prior_from_idata posterior transfer./pymc-mlflowTrack PyMC experiments with MLflow, record sampling configuration and diagnostics, save and retrieve DataTree artifacts, and compare runs. Use for pymc_marketing.mlflow autologging, MMM model persistence and MLflow registry preparation, or CLV fit tracking. Distinguishes experiment tracking, native model restoration and prediction wrappers from deployed services./pytensor-workflowsBuild, differentiate, compile, and debug PyTensor symbolic computations for models. Use for symbolic tensor shape or dtype errors, named dimensions, indexing and broadcasting, vectorization and scan, numerical or sparse operations, symbolic RNG state, graph transformations and profiling, or custom differentiable Ops and backend lowering.2 plugins in one repository ship this exact skill · first indexed Dec 5, 2026
/pymc-modeling:pymc-modelingfrom pymc-modeling
npx claudepluginhub pymc-labs/pymc-modeling --plugin pymc-modelingOther plugins' skills for the same job