annotate
БесплатноЗапускает вложенные скриптыНе проверенCreate flexible annotation workflows for AI applications. Contains common tools to explore raw ai agent logs/transcripts, extract out relevant evaluation…
Об этом скилле
Overview
The workflow consists of 3 main phases in a loop:
- Data Ingestion - Transform raw agent log data into an ingested format for analysis
- Feedback Configuration and data exploration - Refine what and how we want to provide feedback on agent transcripts by exploring the raw data via traditional file search tools and automated llm-as-a-judge based filtering
- Annotation - Annotate the transcript data based on the feedback configuration
NOTE: use the multichoice/checklist/survey tool as much as possible when getting feedback from the user, typing is onerous.
Setup and Housekeeping
This document covers setup tasks that should be completed before starting the annotation workflow.
Prerequisites
This skill requires Python and Node.js dependencies. If the user encounters errors about missing packages, ask for permission to install dependencies:
# From the annotate skill directory
pip install -e .
# Frontend dependencies (from frontend/ subdirectory)
cd frontend && yarn install
Getting Started
All the state and data should be contained under .haize_annotations in the current working directory. For claude code, this is the same directory as .claude.
Make sure this is the .claude folder in the CURRENT working directory, not globally.
Check for Existing Work
ALWAYS start by checking for existing work; we may be resuming an annotation session where a user has already made progress.
If .haize_annotations does not exist, create it.
If .haize_annotations does exist, inspect its contents:
- If
ingested_dataexists, it means we've done the work to translate raw trace data to a haize format. - If
feedback_configexists, it means that we've already arrived on some criteria for how the human should provide feedback. - If
test_casesexists with human/ai annotations, it means the user has already made some annotation progress based on a particular feedback config; it's not necessarily the case that the cases match the CURRENT feedback config though.
State and File Structure
All artifacts will be saved to .haize_annotations/ directory:
Important note: ingest.py is the ONLY file you are meant to manually EDIT/WRITE (all files are free to read)
.haize_annotations/
├── ingested_data/
│ └── interactions/ # list of all ai interactions
│ ├── {interaction_id}/
│ │ ├── metadata.json # Interaction fields (id, name, group_id, etc)
│ │ └── steps.jsonl # One InteractionStep per line
│ └── ...
│
├── ingest.py # Script to ingest raw data under some folder path into `ingested_data`
│
├── feedback_config.json # Evaluation criteria and any state about an annotation session tied to this specific feedback config
└── test_cases/ # Test cases human/ai produced via annotation sessions that human/ai must give feedback on
├── tc_{uuid}.json # Contains: raw_judge_input, judge_input,
│ # ai_annotation, human_annotation
└── ...
Important note: You will NOT be directly modifying the feedback config file; instead, you'll modify it through a FastAPI endpoint.
Phase 1: Data ingestion
The goal of this step is to ingest raw agent data which can be in arbitrary form into a normalized data format that we can work with.
Step 0: Generate a boilerplate ingestion script
To start, generate ingest.py with all models and boilerplate included:
bash <path-to>/scripts/generate_ingestion_script.sh .haize_annotations/ingest.py
IMPORTANT:
- Replace
<path-to-annotate-skill>with the actual path to the annotate skill directory (under scripts/generate_ingestion_script.sh) - The output path (
.haize_annotations/ingest.py) specifies where the script will be created inside the.haize_annotations/directory to keep all artifacts together.
This creates ingest.py with:
- All Pydantic models from
scripts/_models.py - Placeholder
ingest()function with TODO comments and example implementation - Main execution logic that saves to
.haize_annotations/ingested_data/
REQUIRED READING BEFORE CONTINUING: You MUST read:
references/normalization_patterns.md(no need to call out or cite specific patterns you are using - these reference docs are for YOUR knowledge)
Step 1: Analyze raw agent data
Sample and inspect raw trace files to understand structure.
See references/normalization_patterns.md for detailed guidance on analyzing trace formats and transformation patterns.
Careful: Raw agent log files can get very large, and not all files in the working directory are agent transcript data. Check file sizes before opening trace data.
Important: Python is a great tool here, but make use of other safer tools like jq as well if they exist.
NOTE: If the user wants to annotate
Установить annotate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobjqВложенные файлы
FAQ
Что делает скилл annotate?
Create flexible annotation workflows for AI applications. Contains common tools to explore raw ai agent logs/transcripts, extract out relevant evaluation data, and llm-as-a-judge creation.
Как установить скилл annotate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл annotate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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