Skip to content
Back to skills

Sbi Simulator Prior Protocol

ASecurity

Prepare simulator, prior, observation, and simulated pair contracts for simulation-based inference workflows.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
businesspythonbash

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Sbi Simulator Prior Protocol?

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

Security grade badge for Sbi Simulator Prior Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sbi-simulator-prior-protocol-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sbi-simulator-prior-protocol-arex-skill)

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

SKILL.md
---
name: sbi_simulator_prior_protocol
description: Prepare simulator, prior, observation, and simulated pair contracts for simulation-based inference workflows.
---

# SBI Simulator Prior Protocol

Use this skill when a recovery or implementation task needs to turn a prior and black-box simulator into auditable `(theta, x)` simulation pairs for neural SBI.

Do not use it to evaluate analytic likelihoods or to train the posterior estimator itself.

## Inputs
- Prior sampler or bounds plus random seed.
- Simulator callable or simulator specification.
- Number of simulations.
- Optional observation `x_o`.

## Outputs
- Two-dimensional `theta` and `x` arrays with matching row counts.
- Shape metadata and provenance.
- Failure count and finite-value status.

## Workflow
1. Normalize scalar parameter and observation values to row-major two-dimensional arrays.
2. Sample parameters from the prior with a deterministic seed.
3. Run the simulator without requiring likelihood evaluation.
4. Check row alignment, finite values, and failure counts.
5. Return provenance for downstream training and recovery logs.

## Validation
Run:

```bash
python scripts/sim_protocol.py --smoke
python tests/test_sim_protocol.py
```

## Limitations
- This skill defines the data protocol only; it does not choose SNPE/SNLE/SNRE.
- Failed simulations must be reported, not silently hidden.

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.