Skip to content
Back to skills

Numpyro

ASecurity

"Route NumPyro probabilistic programming tasks across modeling

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
developmentpythongobashapibackend

Works with

  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill numpyro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Numpyro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Numpyro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-numpyro/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-numpyro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: numpyro
description: "Route NumPyro probabilistic programming tasks across modeling
  primitives, distributions, MCMC diagnostics, SVI/autoguides, JAX backends, and
  optional contrib workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# NumPyro repo skill

Use this repo skill when a task involves **NumPyro**, the JAX-backed probabilistic programming package: writing models with Pyro-like primitives, choosing distributions and transforms, running MCMC or SVI, diagnosing posterior geometry, configuring JAX CPU/GPU/TPU execution, or deciding whether an optional `numpyro.contrib` workflow is needed.

## First checks

- Package/import name: `numpyro`
- Supported Python from package metadata: Python `>=3.11`
- Minimal install:
  ```bash
  pip install numpyro
  ```
- CPU-pinned install when JAX compatibility is confusing:
  ```bash
  pip install 'numpyro[cpu]'
  ```
- CUDA installs are optional and must match JAX's current NVIDIA wheel guidance:
  ```bash
  pip install 'numpyro[cuda12]' -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
  pip install 'numpyro[cuda13]' -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
  ```
- Minimal import/backend check:
  ```python
  import jax
  import numpyro
  import numpyro.distributions as dist
  print(numpyro.__version__, jax.default_backend(), jax.devices())
  ```

For a stronger environment diagnostic, run [scripts/check_numpyro_environment.py](scripts/check_numpyro_environment.py). For a concise API/signature probe, run [scripts/api_quick_probe.py](scripts/api_quick_probe.py).

## Route by task

| User task or signal | Read |
|---|---|
| Write a model, inspect sample/param sites, condition/seed/trace, fix `plate` placement, use effect handlers, render or inspect model relations, handle JAX-compatible control flow. | [modeling-primitives](sub-skills/modeling-primitives/SKILL.md) |
| Choose or debug distributions, constraints, `batch_shape`/`event_shape`, `to_event`, `Independent`, `TransformedDistribution`, transforms, support validation, finite `log_prob`. | [distributions-transforms](sub-skills/distributions-transforms/SKILL.md) |
| Run NUTS/HMC/MCMC, choose kernels, collect extra fields, interpret divergences/ESS/`r_hat`, run posterior predictive or log likelihood, configure chains/devices/x64. | [mcmc-diagnostics](sub-skills/mcmc-diagnostics/SKILL.md) |
| Fit SVI, write a guide, choose ELBOs, use autoguides, debug guide parameters/losses, use discrete enumeration with SVI. | [svi-autoguides](sub-skills/svi-autoguides/SKILL.md) |
| Use optional contrib areas: Funsor enumeration helpers, HSGP, nested sampling, SteinVI/SVGD, Flax/NNX/Equinox module wrappers, TFP wrappers, stochastic-support inference. | [advanced-contrib](sub-skills/advanced-contrib/SKILL.md) |

## Shared references

- [Getting started](references/getting-started.md) explains the package mental model, install variants, minimal smoke checks, and common workflow sequence.
- [Cross-cutting troubleshooting](references/troubleshooting.md) covers install/import, JAX backend, optional dependencies, data downloads, dtype/precision, compilation, and source-versus-installed-package pitfalls.
- [Source artifact map](references/source-artifact-map.md) records which original docs/examples/scripts were distilled into bundled runtime references or helper scripts.
- [Repository provenance](references/repo-provenance.md) records the source version and evidence baseline for refresh decisions.
- [Router metadata](references/repo-routing-metadata.json) is consumed by the managed repo-skills-router importer.

## Operating guidance

1. Start with the sub-skill closest to the user's task. Do not open optional contrib guidance for ordinary core MCMC/SVI/distribution questions unless the task names a contrib API or optional dependency.
2. Validate a model in layers: distribution object checks, model trace/plate checks, then inference smoke. This prevents blaming MCMC/SVI for support or shape errors.
3. Treat GPU/TPU as optional acceleration unless the user explicitly requires accelerator verification. A CPU run verifies NumPyro semantics but not CUDA/TPU wheel compatibility.
4. Keep examples tiny while diagnosing. NumPyro/JAX first-run compilation can dominate small runs; distinguish compile latency from sampling/optimization failure.
5. Do not make runtime work depend on the original repository checkout. Use the bundled references and scripts in this skill tree, plus an installed NumPyro package.

## Common bundled scripts

- `python scripts/check_numpyro_environment.py --pretty` checks core imports, JAX backend, and selected optional dependencies without requiring the source repo.
- `python scripts/api_quick_probe.py --pretty` prints key public signatures for primitives, inference classes, autoguides, and utilities.
- Sub-skill scripts provide focused smokes for tracing, distributions/transforms, MCMC, SVI, and optional dependency probing.

Files in this skill

  • SKILL.md4.9 KB
  • references/getting-started.md4.1 KB
  • references/repo-provenance.md1.6 KB
  • references/repo-routing-metadata.json335 B
  • references/source-artifact-map.md3.3 KB
  • references/troubleshooting.md4.3 KB
  • scripts/api_quick_probe.py2.5 KB
  • scripts/check_numpyro_environment.py5.8 KB
  • sub-skills/advanced-contrib/SKILL.md3.3 KB
  • sub-skills/advanced-contrib/references/advanced-contrib.md11.4 KB
  • sub-skills/advanced-contrib/references/hsgp-and-tfp.md7.3 KB
  • sub-skills/advanced-contrib/references/optional-dependencies.md5.8 KB
  • sub-skills/advanced-contrib/references/troubleshooting.md7.9 KB
  • sub-skills/advanced-contrib/scripts/check_optional_dependencies.py7.7 KB
  • sub-skills/distributions-transforms/SKILL.md3.9 KB
  • sub-skills/distributions-transforms/references/distribution-api.md9.9 KB
  • sub-skills/distributions-transforms/references/shape-and-support.md9.6 KB
  • sub-skills/distributions-transforms/references/transform-workflows.md4.3 KB
  • sub-skills/distributions-transforms/references/troubleshooting.md4.1 KB
  • sub-skills/distributions-transforms/scripts/distribution_transform_smoke.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.