Skip to content
Back to skills

Prompt Iteration Viewer

ASecurity

Apply PromptSource-style templates across multiple examples and summarize browse, sourcing, and review diagnostics for prompt iteration.

  • 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 prompt_iteration_viewer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Iteration Viewer?

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

Security grade badge for Prompt Iteration Viewer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-prompt-iteration-viewer/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-prompt-iteration-viewer)

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

SKILL.md
---
name: prompt_iteration_viewer
description: Apply PromptSource-style templates across multiple examples and summarize browse, sourcing, and review diagnostics for prompt iteration.
---

# Prompt Iteration Viewer

Use this skill when you need a UI-neutral version of PromptSource's browse/sourcing workflow: render prompt variations over examples, preserve diagnostics, and summarize coverage.

## Inputs

- `examples`: JSON list of dataset example dictionaries.
- `templates`: JSON list with `id`, `name`, `template`, optional `answer_choices`, and metadata.
- `choice_index`: deterministic choice helper index.
- `include_skipped`: whether skipped rows should appear in output rows.

## Outputs

A JSON report with `rows`, `coverage`, `variation_summary`, and `errors`.

## Workflow

1. For every template/example pair, call the prompt template rendering helper.
2. Keep raw rendering diagnostics separate from rendered input and target.
3. Count produced, skipped, and error rows per template.
4. Summarize prompt variation names and target variants.
5. Use the report for prompt review or recovery evidence without changing targets.

## Validation

Run:

```bash
python tests/test_prompt_iteration_viewer.py
python scripts/iterate_prompts.py --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"]}]'
```

## Limitations

This skill does not launch Streamlit or load remote datasets. It provides the mechanism behind browse/iteration diagnostics on supplied examples.

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…