/pymc-core:bambi-modelingfrom pymc-core
Build, inspect, and interpret formula-based Bayesian GLMs, hierarchical models, and distributional regressions with Bambi. Covers Wilkinson/formulae syntax, group-specific effects, prior inspection, model fitting, diagnostics, and response-scale interpretation.
Ships in pymc-core. 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.
Use Bambi (import bambi as bmb) when a Wilkinson formula cleanly expresses
the regression, hierarchical, spline, or distributional model—retaining full
access to the underlying PyMC model and ArviZ DataTree output.
Inspect installed bambi, formulae, pymc, and arviz versions before
writing code (import bambi as bmb; print(bmb.__version__)). Bambi auto-scales
default weakly informative priors to the data; always inspect generated priors
before fitting.
bmb.Formula(...) for
distributional models (modeling both mean and scale/shape parameters) or
standard string formulas ("y ~ x + (1 + x | group)"). Match family=
("gaussian", "bernoulli", "binomial", "poisson", "negativebinomial",
"gamma", "beta", "categorical", "cumulative", "t", etc.) to the
outcome support and link.model.build())
and print model / model.graph() before fitting. Replace auto-scaled
defaults with domain-grounded bmb.Prior(...) wherever scientific units or
prior predictive checks demand it.model.prior_predictive(draws=..., random_seed=...)
and verify outcome support and scales before fitting.idata = model.fit(draws=..., tune=..., chains=..., random_seed=..., nuts_sampler="nutpie")
(when nutpie is installed; set noncentered=True by default for weak
hierarchies, or test noncentered=False under strong group data). Audit
divergences, rank R-hat, bulk/tail ESS, and MCSE with arviz-diagnostics.bmb.interpret.plot_predictions,
bmb.interpret.comparisons, and bmb.interpret.slopes (or model.predict(idata, kind="response_params" | "response"))
to communicate effects in natural outcome units rather than raw log-odds or
log-link coefficients alone.pymc-modeling when you need
custom latent state-space dynamics, ODEs, bespoke non-linear structural
likelihoods, custom PyTensor Ops, or exact marginalization (pymc-extras).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pymc-labs/pymc-modeling --plugin pymc-core7 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./nutpie-samplingCompile and sample PyMC models with nutpie (Rust NUTS sampler with Numba or JAX logp backends). Use when speeding up MCMC, configuring low-rank or gradient-based mass-matrix adaptation, diagnosing nutpie compilation or sampling failures, or inspecting nutpie-specific sample_stats in ArviZ DataTrees./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-modelingBuild, revise, and debug Bayesian models with PyMC. Use when choosing likelihoods and priors, specifying model/data dimensions, fitting hierarchical models, GPs, time series, mixtures, BART or splines, selecting inference methods, resolving failed initial evaluation or model/data shape errors, generating predictions, or testing model code with simulated data and simulation-based calibration (SBC). Covers PyMC 6+, PyTensor 3+ and ArviZ 1.0 DataTree workflows. For pymc-extras extensions, use pymc-extras./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.Other plugins' skills for the same job