AGENT SKILL

dataset-and-resources

Create, inspect, validate, and convert Snips NLU datasets and reason about custom/built-in entities and language resources.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
dataset-and-resources
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Create, inspect, validate, and convert Snips NLU datasets and reason about custom/built-in entities and language resources.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Dataset and Resources

Use this sub-skill when the task is about Snips NLU dataset authoring, conversion, inspection, validation, custom entities, built-in entities, supported languages, or language resources.

This skill is for Snips NLU 0.20.2 / model format 0.20.0 behavior. It does not train engines, parse user text, persist models, download resources, or run network-backed setup.

Route elsewhere

  • Training, parsing, SnipsNLUEngine, fit, parse, get_intents, get_slots, persist, and from_path: use the sibling ../engine-api/SKILL.md.
  • CLI command construction or execution for generate-dataset, download, download-entity, download-language-entities, link, metrics, train, parse, or version commands: use ../cli-workflows/SKILL.md.

Operating procedure

  1. Identify the input form:
    • YAML authoring documents with type: intent or type: entity.
    • JSON training datasets with root keys language, intents, and entities.
  2. For YAML details, slot annotation syntax, implicit slot/entity behavior, and JSON schema, read references/data-formats.md.
  3. For built-in entity names, custom entity knobs, supported languages, and resource implications, read references/resources-and-entities.md.
  4. Validate a JSON dataset before handing it to training/API workflows:
    python scripts/validate_snips_dataset.py --dataset dataset.json --explain
    
  5. Convert YAML authoring files to JSON without invoking training:
    python scripts/snips_yaml_to_json.py --language en intent.yaml entity.yaml --output dataset.json
    
  6. If conversion or validation fails, diagnose using references/troubleshooting.md; keep fixes in the dataset files, then rerun validation.

Key API anchors

  • Dataset.from_yaml_files(language, filenames) converts one or more YAML files/streams into a dataset object whose .json property is the JSON training format.
  • validate_and_format_dataset(dataset) accepts either a dataset object or JSON-like dict, checks the authoring schema, normalizes custom entity data, and returns a formatted dataset with validated: true.
  • load_resources(name, required_resources=None) loads language resources by language/resource name, resource package, or directory path; do not download implicitly from this sub-skill.

Safety notes

  • The bundled scripts only read provided dataset files and optionally write a JSON output file; they never train a model or download resources.
  • snips_yaml_to_json.py refuses to overwrite an existing output file unless --overwrite is provided.
  • If a built-in entity or language resource is missing, route setup/download command work to ../cli-workflows/SKILL.md instead of attempting network access here.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351