技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-and-config-workflows【数据与研究】Operate OpenPrompt data processors, dataset layouts, few-shot sampling, and YAML config validation without starting training.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task involves OpenPrompt dataset processors, InputExample payloads, FewShotSampler, experiment YAMLs, get_user_config, or safe inspection of experiments/cli.py configuration behavior.
references/api-reference.md for the supported PROCESSORS map, config APIs, and sampler contracts.references/data-formats.md before preparing or validating local dataset directories.references/workflows.md for safe config-inspection and example YAML patterns.references/troubleshooting.md when config loading, dataset names, asset paths, or split files fail.This sub-skill owns:
DataProcessor by config.dataset.name and explaining the expected dataset layout.openprompt.config.get_user_config without starting model loading, training, testing, or dataset downloads.parent_config selector patterns for task, template, verbalizer, learning_setting, and few-shot sampling branches.dataset.path, manual_template.file_path, and manual_verbalizer.file_path.This sub-skill does not own:
../pipeline-basics/.../template-verbalizer-design/.../training-and-generation/.datasets/download_*.sh or any network download without explicit user approval.Prefer the bundled script whenever a task asks whether an OpenPrompt YAML is structurally valid or whether referenced local files are present:
python scripts/inspect_openprompt_config.py \
--config /path/to/config.yaml \
--base-dir /path/used-for-relative-assets \
--check-paths
The script is self-contained: it embeds the OpenPrompt processor catalog and config selectors, does not import openprompt, does not call experiments/cli.py, and does not start training or download datasets.
dataset.name, dataset.path, task, learning_setting, template, verbalizer, PLM fields, batch sizes, and selected branches.dataset.name.lower() is in the known processor names and that known local layouts match the expected family in references/data-formats.md.template: manual_template, a corresponding branch should either come from OpenPrompt defaults or be supplied in the YAML; user-added prompt components should declare an appropriate parent_config.load_dataset for a benchmark directory unless the user explicitly asks and supplies data.