Skip to content
Back to skills

Openprompt

ASecurity

"Route OpenPrompt prompt-learning, dataset/config,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashdebuggingapibackend

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Openprompt?

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

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

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: openprompt
description: "Route OpenPrompt prompt-learning, dataset/config,
  template/verbalizer, and training/generation workflows from a single repo
  skill."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# OpenPrompt

Use this skill when the user asks about OpenPrompt as a package or repository: installing or importing it, loading PLMs, building prompt-learning pipelines, designing templates/verbalizers, validating YAML configs or dataset processors, or inspecting runner and generation behavior.

## Start here

- `references/package-overview.md` for the verified public surface, dependency expectations, and sub-skill map.
- `references/troubleshooting.md` for cross-cutting install/import, dependency, config-path, and backend issues.
- `references/repo-provenance.md` when checking whether this skill matches the current checkout or before refreshing it.
- `scripts/check_openprompt_install.py` for the canonical no-download import/API smoke.

## Quick install guidance

OpenPrompt 1.0.1 is a Python package built around PyTorch and Hugging Face Transformers. For a source checkout, install the runtime stack first, then install the package itself without pulling in extra build behavior:

```bash
python -m pip install torch==1.13.1+cpu transformers==4.19.0 sentencepiece==0.1.96 datasets==2.14.7 scikit-learn==1.3.2 scipy rouge==1.0.0 tensorboardX yacs dill pyyaml
python -m pip install -e . --no-deps
```

If you only need the published package, `pip install openprompt` is the simplest entry point. Use the bundled install smoke before deeper debugging.

## Route map

### `sub-skills/pipeline-basics/`
Use for the minimal pipeline surface: `InputExample`, `InputFeatures`, `PromptDataLoader`, `PromptForClassification`, `PromptForGeneration`, `PromptModel`, `load_plm`, and the top-level package exports. This is the first stop for install/import checks and no-download smoke tests.

### `sub-skills/template-verbalizer-design/`
Use for template grammar, manual/mixed/soft/prefix/P-tuning/PTR templates, verbalizers, calibration, LM-BFF prompt generation, and bundled prompt assets. Route prompt-asset validation and label-word/tokenization issues here.

### `sub-skills/data-and-config-workflows/`
Use for `DataProcessor` families, `load_dataset`, `FewShotSampler`, OpenPrompt YAMLs, `get_user_config`, `experiments/cli.py` config inspection, and dataset-layout validation. Route path and selector problems here before training.

### `sub-skills/training-and-generation/`
Use for `ClassificationRunner`, `GenerationRunner`, `LMBFFClassificationRunner`, `ProtoVerbClassificationRunner`, device placement, checkpointing, generation settings, few-shot/zero-shot behavior, and dry-run training config inspection.

## Operating notes

1. Keep this root skill short and router-like. Use the sub-skills for the concrete API details and runnable helpers.
2. Do not run heavy training, dataset downloads, or model downloads from the root skill unless the user explicitly asks for them and the relevant sub-skill says they are expected.
3. If a user request mixes prompt construction, config loading, and training behavior, start with `pipeline-basics`, then branch to `template-verbalizer-design`, `data-and-config-workflows`, or `training-and-generation` as needed.
4. Optional GPU, UltraChat/accelerate, and PaddlePaddle workflows are documented but not part of the minimum verified path for this skill.
5. When the current checkout changes, compare it with `references/repo-provenance.md` before assuming the skill is still current.

## Canonical smoke

Run the bundled smoke from the root skill directory:

```bash
python scripts/check_openprompt_install.py
```

It proves the package import path, key signatures, and a tiny fake-wrapper `PromptDataLoader` path without needing datasets or model downloads.

Files in this skill

  • SKILL.md3.8 KB
  • references/package-overview.md2.2 KB
  • references/repo-provenance.md1.3 KB
  • references/repo-routing-metadata.json523 B
  • references/troubleshooting.md2.6 KB
  • scripts/check_openprompt_install.py621 B
  • sub-skills/data-and-config-workflows/SKILL.md3.6 KB
  • sub-skills/data-and-config-workflows/references/api-reference.md7.8 KB
  • sub-skills/data-and-config-workflows/references/data-formats.md7.9 KB
  • sub-skills/data-and-config-workflows/references/troubleshooting.md6.1 KB
  • sub-skills/data-and-config-workflows/references/workflows.md7.1 KB
  • sub-skills/data-and-config-workflows/scripts/inspect_openprompt_config.py28.9 KB
  • sub-skills/pipeline-basics/SKILL.md1.5 KB
  • sub-skills/pipeline-basics/references/api-reference.md4.5 KB
  • sub-skills/pipeline-basics/references/troubleshooting.md2.3 KB
  • sub-skills/pipeline-basics/references/workflows.md3.8 KB
  • sub-skills/pipeline-basics/scripts/check_openprompt_install.py7 KB
  • sub-skills/template-verbalizer-design/SKILL.md5.6 KB
  • sub-skills/template-verbalizer-design/references/api-reference.md9.7 KB
  • sub-skills/template-verbalizer-design/references/prompt-assets.md6.2 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.