Skip to content
Back to skills

P3 Materialization

ASecurity

Materialize PromptSource/P3-style template collections into prompted dataset records with template identity, metadata propagation, coverage counts, and rendering diagnostics.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of P3 Materialization?

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

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

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

SKILL.md
---
name: p3_materialization
description: Materialize PromptSource/P3-style template collections into prompted dataset records with template identity, metadata propagation, coverage counts, and rendering diagnostics.
---

# P3 Prompted Dataset Materialization

Use this skill when converting a small PromptSource-style template collection and dataset examples into prompted training or evaluation records without reading the original PromptSource repository.

## Inputs

- `dataset_name`: dataset identifier.
- `subset_name`: optional subset/configuration identifier.
- `templates`: JSON list of template records with `id`, `name`, `template`, `answer_choices`, and metadata fields.
- `examples`: JSON list of dataset examples.

## Outputs

A JSON object with `records`, `summary`, `metadata_reports`, and `errors`.

## Workflow

1. Validate each template's metadata with the metadata-quality helper.
2. Render each template over each example using the template-rendering helper.
3. Emit only non-skipped, successful prompted records.
4. Preserve dataset identity, template id/name, input, target, and metadata in every record.
5. Summarize template count, example count, produced records, skipped rows, errors, and represented metrics.

## Validation

Run:

```bash
python tests/test_p3_materialization.py
python scripts/materialize_p3.py --dataset-name synthetic_snli --examples-json '[{"premise":"A dog runs","hypothesis":"An animal moves","label":0}]' --templates-json '[{"id":"t1","name":"nli","template":"{{premise}} Question: {{hypothesis}}? ||| {{answer_choices[label]}}","answer_choices":["Yes","No","Maybe"],"metrics":["Accuracy"],"valid_outputs_stated":true,"reference":"paper example"}]'
```

## Limitations

This skill materializes supplied examples. It does not download benchmark datasets, launch the PromptSource UI, or reproduce large-scale P3 training.

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…