Skip to content
Back to skills

Prompt Automation

ASecurity

"Configure YiVal data generators and prompt variation generators

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
ai-agentspythongoapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Prompt Automation?

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

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

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: prompt-automation
description: "Configure YiVal data generators and prompt variation generators
  for synthetic examples, document questions, chain-of-density prompts, and
  self-exemplar prompts."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# YiVal prompt automation

Use this sub-skill when the task involves generating input examples, generating prompt variations, caching generated prompts/data, using `yival gen`/`yival task`, or wiring OpenAI/document/chain-of-density/self-exemplar generators into a YiVal config.

## Read first

- [Generators reference](references/generators-reference.md): built-in data and variation generators, config fields, and registry ids.
- [Prompt workflows](references/prompt-workflows.md): common auto-prompt experiment patterns.
- [Provider and cache notes](references/provider-cache-notes.md): credentials, output paths, rate limits, and offline alternatives.
- [Prompt automation troubleshooting](references/troubleshooting.md): generation-specific failures.

Useful helper:

- `python sub-skills/prompt-automation/scripts/inspect_prompt_components.py` prints built-in generator ids and default configs after importing their modules.

## Built-in generator map

| Need | YAML location | Registry id |
| --- | --- | --- |
| Generate synthetic input examples from a function/task description | `dataset.data_generators` | `openai_prompt_data_generator` |
| Generate questions from text/file/Google Drive document content | `dataset.data_generators` | `document_data_generator` |
| Generate optimized prompt strings with OpenAI | `variations[].generator_name` | `openai_prompt_based_variation_generator` |
| Use the fixed chain-of-density summarization prompt | `variations[].generator_name` | `chain_of_density_prompt_generator` |
| Use a self-exemplar prompt template | `variations[].generator_name` | `self_exemplar` |

## Minimal auto-prompt shape

```yaml
description: Auto prompt experiment
custom_function: my_task.headline
dataset:
  source_type: machine_generated
  data_generators:
    openai_prompt_data_generator:
      number_of_examples: 2
      chunk_size: 1000
      model_name: gpt-4
      output_path: generated_examples.pkl
      input_function:
        name: headline_generation
        description: Generate a landing page headline for a tech startup business.
        parameters:
          tech_startup_business: str
variations:
  - name: task
    generator_name: openai_prompt_based_variation_generator
    generator_config:
      number_of_variations: 2
      model_name: gpt-4
      output_path: generated_prompts.pkl
      variables:
        - tech_startup_business
      prompt:
        - role: system
          content: Write concise prompts for GPT-4.
    variations:
      - value_type: str
        value: Generate landing page headline for {tech_startup_business}
        instantiated_value: Generate landing page headline for {tech_startup_business}
        variation_id: null
```

The custom function should use `StringWrapper(name="task", variables={"tech_startup_business": tech_startup_business}, state=state)` so generated/manual prompt values are applied.

## Workflow guidance

1. Start with a tiny run: one or two generated examples and one or two variations.
2. Always set `output_path` for provider-backed generators so reruns load cached pickles instead of paying/calling again.
3. Keep `variables` explicit for prompt variation generation; generated prompt outputs must contain `{variable}` placeholders when configured.
4. For document generation, start with `source: text` before file or Google Drive sources.
5. Route generated outputs into [evaluation-optimization](../evaluation-optimization/SKILL.md) for evaluator, selector, and enhancer design.

## Safety and cost boundaries

- OpenAI generators call network services and can bill. Confirm credentials and budget before running.
- Document file/drive sources can invoke loaders, OCR, Google APIs, and local file reads. Use only approved documents.
- Retrieval demos that use embeddings/FAISS/OpenAI are reference patterns, not default runtime paths.
- If the user only needs a static prompt list, use manual `variations` instead of provider-backed generation.

Files in this skill

  • SKILL.md4.2 KB
  • references/generators-reference.md3.5 KB
  • references/prompt-workflows.md2.6 KB
  • references/provider-cache-notes.md1.7 KB
  • references/troubleshooting.md1.8 KB
  • scripts/inspect_prompt_components.py1.8 KB

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.