Pymc Modeling logo

Pymc Modeling

Organization
pymc-labs
pymc-modeling

Build, 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, using pymc-extras distributions, marginalization, state-space models or model-building tools, 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.

Overview

Publisherpymc-labs
Repositorypymc-modeling
Skill namepymc-modeling
Stars
93
Forks
10
Bundled files
21
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 21 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by pymc-labs on GitHub. Read the source before you install it.

Installation

Install the Pymc Modeling AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/pymc-labs/pymc-modeling/tree/main/skills/pymc-modeling
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/pymc-labs/pymc-modeling.git /tmp/pymc-modeling
mkdir -p .claude/skills
cp -r /tmp/pymc-modeling/skills/pymc-modeling .claude/skills/pymc-modeling
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pymc Modeling in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pymc Modeling on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pymc Modeling is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PyMC modeling

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.

For pymc-extras tasks, start with feature selection and compatibility, then load only the relevant workflow reference. Prefer its supported algorithms to bespoke implementations; do not use an extension merely because it is installed.

Choose the primary task

  • Construct, fit or initialize a model: use pymc-modeling.
  • Elicit prior assumptions or check prior-predictive plausibility: use prior-elicitation when available.
  • Diagnose an existing completed fit or evaluate its predictions: use arviz-diagnostics when available.
  • Repair symbolic computation, broadcasting, gradients or compilation: use pytensor-workflows when available.
  • Track experiments, preserve MLflow artifacts or restore a logged MMM model: use pymc-mlflow when available.

Multipart requests can use more than one skill. The references below support modeling when specialist skills are not installed.

Workflow

  1. Formulate. State the estimand or prediction target, observation units, outcome support, grouping/time structure, selection and missingness, and what information is available at prediction time. Separate predictive, inferential and causal claims; respect data authorization and retain source identities.
  2. Specify and inspect. Match the likelihood to the observation process; choose identifiable parameterizations and priors in declared units. Check row alignment, shapes, support and finite initial log density. Ordinary 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.
  3. Check prior predictions. Simulate before fitting and compare support, scales and decision-relevant features to domain knowledge. Do not tune priors solely to the realized extrema.
  4. Explore, then fit for inference. Prefer nutpie when compatible and installed. Short preliminary fits can reveal bugs, difficult geometry or gross misfit; label them exploratory, not reliable posterior inference. For reportable results, allocate warmup and draws from adaptation and required ESS/MCSE. Save results before diagnostics or plotting.
  5. Diagnose, then criticize. Inspect divergences, rank R-hat, bulk/tail ESS, MCSE and chain/rank plots. Diagnose every divergence. Unreliable computation leaves posterior conclusions unresolved; it does not disprove a likelihood. Use posterior predictive discrepancies to check the observation model. In-sample PPCs are not held-out validation.
  6. Predict, decide and revise. Preserve training identities and align new inputs; distinguish latent means from noisy observations. For recommendations, propagate uncertainty through stated consequences, utilities and constraints, or hand off the inference without inventing the decision maker's values. Retain relevant model variants and explain how changed assumptions affect estimands, predictions and decisions—not just which has the best score. Adaptive PPC/CV-driven search can overfit; do not present its winner as uniquely confirmed or change seeds/criteria merely to obtain a favorable result.

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.

Read only what the task needs

When working onReference
End-to-end fitting, diagnostics and scientific checksWorkflow
Model construction, data containers and dimensionsModel and data
Failed initialization, shape errors, stuck sampling or warningsTroubleshooting
Group effects, pooling and parameterizationHierarchical models
Outcome support, censoring, multivariate families and JacobiansLikelihoods
Algorithms, backends, budgets and persistenceSampling
pymc-extras feature selection, compatibility and validationPyMC Extras
Markov chains, specialized counts, extreme values and histogram likelihoodsExtras distributions
Kalman-marginalized models, structural components and forecastingExtras state-space workflows
Prior factories, model packaging, VIP and posterior-as-prior transferExtras model tools
Variational, Laplace and Pathfinder approximationsApproximate inference
Covariance models and finite-basis errorGaussian processes
Temporal dependence, differential equations and forecastingTime series
Label invariance and discrete eliminationMixtures
External densities, simulators and predictive callbacksCustom likelihoods
Conditioning, interventions and graph transformationsTransformations
In-sample criticism and new-input predictionPredictive checks
Tree ensembles and prediction stateBART
Basis penalties and distributional predictorsSplines
Simulated-data experiments, SBC, numerical oracles and mocksModel testing
Advanced numerical and extension interfacesInterface 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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pymc Modeling AI skill do?

Build, 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, using pymc-extras distributions, marginalization, state-space models or model-building tools, 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.

Why use Pymc Modeling on TypingMind?

Because you install it once and use it with any model. Pymc Modeling is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pymc Modeling in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/pymc-labs/pymc-modeling/tree/main/skills/pymc-modeling. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pymc Modeling?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pymc Modeling?

As many as you like. As long as a model supports skills, you can use Pymc Modeling with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pymc Modeling AI skill free?

Yes. It is published on GitHub by pymc-labs under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇