a2ui-add-eval-datapoint
БесплатноБез исполняемых скриптовНе проверенStep-by-step workflow for adding and verifying new evaluation data points in the A2UI evaluation suite, by importing a real trace or authoring a sample by hand.
от a2ui-project★ 19 155 звёзд на GitHubОб этом скилле
Adding and verifying A2UI evaluation data points
Use this skill when adding new data points or datasets to the A2UI evaluation framework in eval/.
References
For full architecture and setup details, consult:
eval/CONTRIBUTING_USE_CASES.md: The contributor guide for evaluation use cases, with field definitions, context rules, theassertionsreference, example file requirements, and the unencrypted multi-turn example.eval/README.md: Evaluation quickstart, Transcrypt setup, and CLI flags.eval/DESIGN.md: Architecture, the three-stage scoring funnel, and encryption-at-rest design.eval/datasets/dataset_schema.json: Formal JSON Schema defining required fields and structural rules for evaluation data points.
Step-by-step workflow
1. Unlock Transcrypt
Datasets in eval/datasets/ are encrypted at rest. Every YAML file in that directory stays encrypted so that web crawlers cannot feed the prompts and rubrics into model training data. Unlock Transcrypt locally before authoring (ask an A2UI team member for the password):
cd eval
bin/transcrypt -y -c aes-256-cbc -p <PASSWORD>
2. Choose a source
Pick the path that matches what the user gave you.
If the user has a recorded session, import it with bin/import_trace.py (step 3a). A session can be an Inspect AI .eval log, a JSON array of chat messages, or an ADK/A2A event trace. This path keeps the real conversation shape and derives assertions from the golden payload.
If the user gave you a description, mockup, or synthetic conversation, author the entry by hand (step 3b).
3a. Import a real trace
Run from eval/. The output must be a YAML file under datasets/; the tool refuses any other location.
uv run ./bin/import_trace.py --input <trace> --output datasets/<dataset_name>.yaml \
--name <sample_name> --description "<what the sample tests>" --tags <tag1,tag2>
Use --dry-run first and show the user the entry. Then write it. Other flags:
--sample-idpicks a sample from an.evallog.--catalogoverrides the catalog path.--datasetoverrides the dataset name.--forcereplaces an entry with the same name.--no-sanitizeskips redaction. Use it only when the user has already redacted the trace.
After writing, open the entry and check three things. The redaction left no secrets or personal data. The description reads as a judging rubric, because it is also the target. The derived assertions list only what the scenario needs.
3b. Author the data point by hand
Create or update a dataset file in eval/datasets/<dataset_name>.yaml (for example eval/datasets/my_dataset.yaml).
Every data point must conform to the JSON Schema in eval/datasets/dataset_schema.json and follow the authoring guidelines in eval/CONTRIBUTING_USE_CASES.md.
For a complete unencrypted reference example of a multi-turn conversation with system instructions, tool calls (including unrelated background tool calls), tool responses, and a judging target rubric, inspect eval/examples/example_eval_case.json.
Key authoring requirements from eval/CONTRIBUTING_USE_CASES.md:
- Include the full multi-turn conversation history (
messages), including assistant function calls (tool_calls) and tool responses (role: tool). Do not use single-turn prompts. - Write the
targetas a qualitative judging rubric for the LLM-as-a-judge (what UI components must appear, data binding rules, and what errors to penalize). Do not include a hardcoded JSON string, as that ties the evaluation to a particular inference format. - Add an
assertionsblock for the checks that must hold regardless of the judge:required_components,forbidden_components,required_bindings,required_actions,message_types,catalog_ids. Keep each list short. Every key is optional. - Use
catalogsinstead ofcatalogwhen the sample needs several catalogs, a pruned catalog (allowed_components,allowed_functions), or per-catalogexamples. - Use
initial_stateplusallowed_messagesfor a sample where the model must update an existing surface instead of creating one. - Set
stream_chunk_sizewhen the sample should also verify the format's streaming parser. - Any
examplesfile should hold complete wire messages withversion,surfaceIdandcatalogId.
4. Tag the sample
Set tags on every sample. Add smoke only when the sample should run on every pull request. The smoke tier is a small, curated set, so ask the user before adding to it.
Use other tags, such as real, multi_catalog, pruned or stateful, to describe what the sample exercises. main.py --tags a,b and --tier NAME select samples by these tags.
5. Optionally expand the sample into variants
Once the base sample passes, bin/expand_cases.py derives deterministic variants without calling a model:
uv run ./bin/expand_cases.py --input datasets/<dataset_name>.yaml \
--output datasets/<dataset_name>_
Установить a2ui-add-eval-datapoint в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл a2ui-add-eval-datapoint?
Step-by-step workflow for adding and verifying new evaluation data points in the A2UI evaluation suite, by importing a real trace or authoring a sample by hand.
Как установить скилл a2ui-add-eval-datapoint?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл a2ui-add-eval-datapoint запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic