Builds, revises, and debugs Bayesian models with PyMC 6+. Covers likelihoods, priors, hierarchical models, GPs, time series, mixtures, BART, splines, inference methods, and simulation-based calibration.
Ships in pymc-agent-skills. 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.
pymc-modeling.prior-elicitation when available.arviz-diagnostics when available.pytensor-workflows 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 |
| 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
/pymc-agent-skills:pymc-modelingfrom pymc-agent-skills
npx claudepluginhub pymc-devs/pymc-agent-skills --plugin pymc-agent-skills4 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./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.