技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
setup【数据与研究】Install YiVal, inspect CLI commands, create/validate experiment YAML, and choose dataset/config fields.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to install YiVal, inspect yival CLI behavior, initialize or validate YAML, choose dataset source fields, or debug early config loading before an experiment run.
Useful bundled helper:
python sub-skills/setup/scripts/build_config_template.py --help builds a starter YAML through YiVal's own config-generation utility after importing built-ins.>=3.10,<3.13.python -m pip install yivalpython -m pip install -e .python -m pip install 'yival[trainers]' or python -m pip install -e '.[trainers]'.pkg_resources, run python -m pip install 'setuptools<81'.python scripts/check_install.py --check-cli.| Task | Command shape |
|---|---|
| Show root help | python -m yival --help or yival --help |
| Generate a template | yival init --config_path config.yml --function my_module.my_func --source_type dataset ... |
| Validate YAML | yival validate config.yml |
| Run a config | yival run config.yml --output_path results.pkl |
| Try packaged demos | yival demo --qa_expected_results, yival demo --basic_interactive, yival demo --auto_prompts |
| Interactive auto-config | yival gen or yival task |
Important defaults:
yival run --display is an action="store_true" flag with default True; CLI runs normally display Dash results unless you call ExperimentRunner.run(display=False) programmatically.yival bot defaults to interactive=True and display=False.yival demo copies a packaged demo config into the current working directory before running it.Every useful config needs:
description: short experiment description
custom_function: module.path.function_name
dataset:
source_type: dataset
Then add fields according to source type:
source_type: dataset: include file_path and reader.source_type: machine_generated: include data_generators.source_type: user_input: normally no file path; used for interactive UI.For prompt/model comparisons, also add variations and one or more evaluators.
source_type: dataset with csv_reader and a small fixture first.custom_* sections, route to custom-components to verify class/config paths and registry keys.python scripts/write_minimal_experiment.py --run from the skill root.custom_function importability. For local modules, ensure the module's directory is on PYTHONPATH or run from a working directory where it imports directly.state.StringWrapper(name=...) calls in the custom function.yival validate config.yml; if it passes, run a tiny dataset before scaling up.After setup is valid, read run for execution, result pickle names, Dash/interactive behavior, and programmatic runner choices.