Skip to content
Back to skills

Prompt Template Rendering

ASecurity

Render structured dataset examples into PromptSource-style natural-language source and target pairs for prompted multitask recovery.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
documentationpython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Prompt Template Rendering?

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

Security grade badge for Prompt Template Rendering
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-prompt-template-rendering/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-prompt-template-rendering)

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

SKILL.md
---
name: prompt_template_rendering
description: Render structured dataset examples into PromptSource-style natural-language source and target pairs for prompted multitask recovery.
---

# Prompt Template Rendering

Use this skill when a recovery or implementation needs to convert structured NLP examples into the text-to-text prompted format used by T0/P3-style multitask training. Do not use it to choose train/evaluation splits or to score model outputs; those are separate contracts.

## Inputs
- JSON examples containing fields referenced by prompt templates.
- Template specifications with `dataset_id`, `template_id`, `input_format`, `target_field`, and optional `answer_choices`.

## Outputs
- Rendered records containing `dataset_id`, `task_family`, `example_id`, `template_id`, `source`, `target`, and `label`.

## Workflow
1. Validate that every placeholder in `input_format` exists in the raw example.
2. Format the source string with Python-style named placeholders.
3. Resolve the target from `target_field`; if `answer_choices` is supplied, map numeric or symbolic labels to target text.
4. Preserve metadata for downstream leakage checks and prompt robustness evaluation.

## Validation
Run `python tests/test_prompt_template_rendering.py` or validate the whole tree with the Distiller skill validator.

## Limitations
This skill implements deterministic rendering only; it does not provide the original PromptSource package or full dataset loading.

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…