pymc

pymc is a skill for Claude Code from userInner/SKILLS. It costs 43 tokens per session (2,693 once invoked), scanned A, a copy of pymc, Apache-2.0.

A Python toolkit for Bayesian modelling, a method that combines prior assumptions with observed data to estimate uncertain quantities. It supports model fitting, sampling, prediction checks, and comparison of models.

In plain words
What is it for?
Use it to build regression, hierarchical, and time-series models; run MCMC or variational inference; check predictions; diagnose sampling issues; and compare models.
Why use it?
It helps developers represent uncertainty instead of producing only single fixed estimates. It also provides ways to check whether a model has sampled and predicted sensibly.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to build regression, hierarchical, and time-series models; run MCMC or variational inference; check predictions; diagnose sampling issues; and compare models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/userinner/skills/pymc-k-dense-ai-scientific-agent-skills
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 userInner/SKILLS --skill pymc-k-dense-ai-scientific-agent-skills
Clone the repo
git clone --depth 1 https://github.com/userInner/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/userinner/skills/pymc-k-dense-ai-scientific-agent-skills/github.svg)](https://agentmods.dev/skills/userinner/skills/pymc-k-dense-ai-scientific-agent-skills)
Your own site
<a href="https://agentmods.dev/skills/userinner/skills/pymc-k-dense-ai-scientific-agent-skills"><img src="https://agentmods.dev/badge/skills/userinner/skills/pymc-k-dense-ai-scientific-agent-skills/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/userinner/skills/pymc-k-dense-ai-scientific-agent-skills"><img src="https://agentmods.dev/badge/skills/userinner/skills/pymc-k-dense-ai-scientific-agent-skills.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,693 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.
Origin 92% copy Near-identical to another mod 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.02693
Opus 5.5 $0.00017 $0.01077
Sonnet 5.5 $0.00009 $0.00539
Haiku 4.5 $0.00004 $0.00269

Measured 2mo ago against content hash 24d498c17b12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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

This is a copy

92% identical to pymc — 400 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

community-skills/engineering/pymc--k-dense-ai-scientific-agent-skills/SKILL.md · 311 lines

How it starts

The opening of the file, as written. The whole thing — 311 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 model — pm.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 · 311 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. 2mo ago First seen · 311 lines · 43 tokens per session scan A 24d498c17b12

Subscribe to this mod's changes

pymc is a skill published in the GitHub repository userInner/SKILLS (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 2,693 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to pymc, differing in 400 lines, and is treated as a copy.

Related

pymc compared with skills from other repositories

pymc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pymcuserInner/SKILLSSkill32mo agoApache-2.0A43Claude Code
data-scientistbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.2k6d agononeA57Claude Code, Codex
causal-mlbrycewang-stanford/Auto-Empirical-Research-SkillsSkill5.2k6d agononeA191Claude Code
matlab-signal-vision-aiwzyn20051216/matlab-agent-skillsSkill371mo agoMITA110Claude Code, Codex
seed-industry-data-asset-expertaiskillstore/marketplaceSkill508todaynoneA78Claude Code, Codex
bio-clip-seq-clip-deep-learningBioTender-max/awesome-bio-agent-skillsSkill230yesterdaynoneA123Claude Code, Codex
bio-chipseq-chip-deep-learningBioTender-max/awesome-bio-agent-skillsSkill230yesterdaynoneA214Claude Code, Codex