Skip to content
Back to skills

Sbi Task Protocol

ASecurity

Build and validate simulation-based inference benchmark task records with priors, simulators, observations, and reference posteriors.

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

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Sbi Task Protocol?

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

Security grade badge for Sbi Task Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-sbi-task-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-sbi-task-protocol)

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: sbi_task_protocol
description: Build and validate simulation-based inference benchmark task records with priors, simulators, observations, and reference posteriors.
---

# SBI Task Protocol

Use this skill when a recovery or benchmark experiment needs a small, auditable SBI task interface rather than a repository-specific task object. It is appropriate for Gaussian-linear reduced recoveries and for checking that a task exposes the same information required by the paper: prior, simulator, observation, dimensions, simulation budget, and reference posterior samples.

Do not use this skill to claim full `sbibm` compatibility. It implements a compact protocol and a Gaussian-linear helper that preserves the benchmark mechanism without importing the original repository.

## Inputs

- Task metadata: name, parameter dimension, data dimension, and simulation budget.
- Prior metadata: diagonal Gaussian mean and variance.
- Simulator metadata: Gaussian-linear noise variance.
- Conditioning observation vector.
- Optional random seed and sample counts.

## Outputs

- A normalized JSON task record.
- Prior samples, simulator outputs, and reference posterior samples when requested.
- Analytic reference posterior parameters for Gaussian-linear one-observation conditioning.

## Workflow

1. Normalize the task with `scripts/sbi_task_protocol.py normalize-task`.
2. Generate simulations with `scripts/sbi_task_protocol.py simulate`.
3. Compute reference posterior parameters with `scripts/sbi_task_protocol.py posterior`.
4. Sample the reference posterior with `scripts/sbi_task_protocol.py sample-reference`.
5. Keep all outputs JSON serializable and include the random seed in experiment logs.

## Validation

Run:

```bash
python scripts/sbi_task_protocol.py self-test
python tests/test_sbi_task_protocol.py
```

The Distiller skill-tree validator also runs the tests:

```bash
python /share/project/yuyang/workspace/Paper2Skills/Distiller/skills/module-to-skill/scripts/validate_skill_tree.py <skill_dir> --run-tests
```

## Limitations

The deterministic helper supports diagonal Gaussian priors and Gaussian-linear simulators. Other benchmark tasks should be represented with the same task contract but need their own simulator and reference posterior implementation.

Files in this skill

  • SKILL.md2.2 KB
  • scripts/sbi_task_protocol.py8.4 KB
  • tests/test_sbi_task_protocol.py975 B

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.