pymc

pymc is a skill for Claude Code from K-Dense-AI/scientific-agent-skills. It costs 43 tokens per session (2,951 once invoked), scanned A, original, MIT.

A Python library for Bayesian modeling, a way to represent uncertainty by combining existing knowledge with observed data. It supports model fitting with sampling or approximation, prediction checks, and comparison between models.

In plain words
What is it for?
Use it for regression, hierarchical models, time series, Markov chain Monte Carlo sampling, variational inference, posterior checks, and LOO or WAIC model comparison.
Why use it?
It helps you quantify uncertainty and diagnose whether a statistical model has converged or makes reasonable predictions, rather than returning only single estimates.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it for regression, hierarchical models, time series, Markov chain Monte Carlo sampling, variational inference, posterior checks, and LOO or WAIC model comparison.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/k-dense-ai/scientific-agent-skills/pymc
About the project

Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.

K-Dense-AI/scientific-agent-skills · 44,220 stars · on GitHub · arxiv.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add K-Dense-AI/scientific-agent-skills --skill pymc
Clone the repo
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pymc

README.md
[![agentmods](https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pymc/github.svg)](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pymc)
Your own site
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pymc"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pymc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pymc

Your own site · 80×15
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/pymc"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/pymc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,951 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 9 Apr 2026
  • Snyk pass 9 Apr 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02951
Opus 5 $0.00022 $0.01476
Sonnet 5 $0.00009 $0.00590
Haiku 4.5 $0.00004 $0.00295

Measured 7d ago against content hash fbb93459b2a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pymc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (assets/hierarchical_model_template.py, assets/linear_regression_template.py, scripts/model_comparison.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • pymc — 92% identical, 19 lines differ
skills/pymc/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PyMC Bayesian Modeling

Overview

PyMC is a Python library for Bayesian modeling and probabilistic programming. Build, fit, validate, and compare Bayesian models using PyMC's modern API (version 6.x+), including hierarchical models, MCMC sampling (NUTS), variational inference, posterior predictive checks, and model comparison (LOO, WAIC).

Current Version and Setup

PyMC 6.0.1 is the current stable release as of June 2026. It requires Python 3.12+, uses PyTensor 3 as the computational graph backend, and defaults to compiled backends such as Numba. For reproducible local environments, pin the version:

uv pip install "pymc[nutpie]==6.0.1"

The nutpie extra enables the faster Rust/Numba NUTS implementation. If using NumPyro or BlackJAX, install those optional sampler dependencies in the same environment and pin them in the project lockfile.

When to Use This Skill

This skill should be used when:

  • Building Bayesian models (linear/logistic regression, hierarchical models, time series, etc.)
  • Performing MCMC sampling or variational inference
  • Conducting prior/posterior predictive checks
  • Diagnosing sampling issues (divergences, convergence, ESS)
  • Comparing multiple models using information criteria (LOO, WAIC)
  • Implementing uncertainty quantification through Bayesian methods
  • Working with hierarchical/multilevel data structures
  • Handling missing data or measurement error in a principled way

Standard Bayesian Workflow

Never sample first and check later. The eight-step workflow — documented with code in references/standard_workflow.md — is:

  1. Data preparation — including standardizing predictors so priors are interpretable.
  2. Model building — priors and likelihood in a pm.Model context.
  3. Prior predictive check — confirm the priors imply plausible data before fitting.
  4. Fit modelpm.sample() with an explicit seed.
  5. Check diagnostics — R-hat, ESS, divergences. Divergences invalidate the fit; fix the model or reparameterize rather than raising target_accept and hoping.
  6. Posterior predictive check — does the fitted model reproduce the observed data?
  7. Analyze results — summaries and intervals from the posterior.
  8. Make predictions — on new data via pm.set_data and posterior predictive sampling.

Read the full file on GitHub · 328 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 328 lines · 43 tokens per session scan A fbb93459b2a0

Subscribe to this mod's changes

pymc is a skill published in the GitHub repository K-Dense-AI/scientific-agent-skills (44,220 stars, last pushed 4d ago), licensed MIT. It adds 43 tokens to every session and 2,951 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

discovery-toolbox

A routed repertoire of 90 scientific thinking operators for biological research agents - visual reasoning, detectability and information budgets, search reframing, causal identification, competing explanations, observation and selection processes, pipeline artifact diagnosis, effort allocation, and confirmation…

dekan-aleksandr/biodiscovery-skills · 122 tokens

discovery-director

Operate as a research director making original discoveries from a given biological question and dataset. Use when the task is open-ended scientific research, exploring omics or experimental data for findings, hypothesis generation and testing, screening a large candidate space of genes, variants, features or…

dekan-aleksandr/biodiscovery-skills · 114 tokens

polars-dovmed

Search PMC Open Access and bioRxiv corpora with polars-dovmed. Use when structured, reproducible literature queries should run through the hosted API or local parquet indexes.

fmschulz/omics-skills · 42 tokens

bio-interdomain-hgt

Detect and polarize interdomain horizontal gene transfer with homology, context, and phylogenetic checks. Use when studying lateral gene transfer, virus-host gene exchange, endogenous viral elements, or donor direction.

fmschulz/omics-skills · 47 tokens

csag-extraction

Extract a Conditional Scientific Argumentation Graph and grounded Q&A from a manuscript. Use when representing assertions, contexts, evidence links, and inference steps in machine-readable form.

fmschulz/omics-skills · 38 tokens

exploratory-data-analysis

Inspect scientific data and generate a Markdown structure-and-quality report. Use when triaging tabular, array, sequence, HDF5, JSON, or raster files before downstream analysis.

fmschulz/omics-skills · 42 tokens