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 $0.00022 $0.01347
Sonnet 5 $0.00009 $0.00539
Haiku 4.5 $0.00004 $0.00269

Measured 9d ago against content hash 24d498c17b12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 9d 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 — 19 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 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 · 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. 9d 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 5d 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. A static security scan graded it A with 0 findings. It is 92% identical to pymc, differing in 19 lines, and is treated as a copy.

Related

Other skills, from other repositories

claw-metagenomics

Shotgun metagenomics profiling — taxonomy, resistome, and functional pathways.

aAAaqwq/AGI-Super-Team · 21 tokens

data-scientist

Data science methodology for Python research: EDA, validation, causal inference (IV, DiD, RD, synthetic control), clustering/PCA/UMAP, supervised ML, geospatial, visualization. Method selection guidance. For syntax, load tool-specific skills.

brycewang-stanford/Auto-Empirical-Research-Skills · 57 tokens

causal-ml

This skill covers causal machine learning methods in applied economics and quantitative social science. Use when implementing or choosing between modern ML-based causal estimators — including double machine learning, DML, partially linear models, interactive regression models, cross-fitting, Neyman orthogonality…

brycewang-stanford/Auto-Empirical-Research-Skills · 191 tokens

doc-to-lora-evaluator

Evaluate whether Doc-to-LoRA is the right path for turning documents into parametric memory, and guide a safe proof-of-concept before investing in a full plugin or training pipeline. Use when a user wants to internalize long documents, reduce repeated context costs, compare Doc-to-LoRA against RAG or long-context…

markoblogo/abvx-agent-skills · 85 tokens

pyfixest-cupy64-absorbed-regressors

Adding demeanerbackend="cupy64" to an existing pf.feols() call is treated as a pure performance switch, but it changes the output: regressors with zero within-FE identifying variation (fully absorbed by the fixed effects) that the default numba backend silently drops are RETAINED by the cupy64 path (also in its…

kennethkhoocy/applied-micro-skills · 164 tokens

shipping-reproducible-results

Package completed data analysis and ML work so an independent recipient can reproduce the claimed results, verify artifact lineage, and operate the handoff within its stated scope. Use when finalizing a project, study, model package, or review bundle; not for deploying to a live system.

aiopshwang/data-analysis-ml-agent-skills · 62 tokens