Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

annotate

БесплатноЗапускает вложенные скриптыНе проверен

Create flexible annotation workflows for AI applications. Contains common tools to explore raw ai agent logs/transcripts, extract out relevant evaluation…

haizelabsот haizelabs★ 18 звёзд на GitHub6 установок в других каталогах

Об этом скилле

Overview

The workflow consists of 3 main phases in a loop:

  1. Data Ingestion - Transform raw agent log data into an ingested format for analysis
  2. 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
  3. 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_data exists, it means we've done the work to translate raw trace data to a haize format.
  • If feedback_config exists, it means that we've already arrived on some criteria for how the human should provide feedback.
  • If test_cases exists 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

Полный SKILL.md на GitHub

Установить annotate в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
jq

Вложенные файлы

__init__.pyfrontend/.gitignorefrontend/.prettierrcfrontend/.yarnrc.ymlfrontend/README.mdfrontend/components.jsonfrontend/eslint.config.jsfrontend/index.htmlfrontend/package-lock.jsonfrontend/package.jsonfrontend/postcss.config.jsfrontend/public/assets/bird-logo-transparent.icofrontend/public/assets/bird-logo-transparent.svgfrontend/src/@types/index.d.tsfrontend/src/App.tsxfrontend/src/api/api.tsfrontend/src/api/interactions/queries.tsfrontend/src/api/interactions/router.tsfrontend/src/api/loader.tsfrontend/src/api/query.tsfrontend/src/api/testCases/loader.tsfrontend/src/api/testCases/queries.tsfrontend/src/api/testCases/router.tsfrontend/src/api/utils.tsfrontend/src/assets/react.svgfrontend/src/components/CollapsibleContent.tsxfrontend/src/components/Datatable.tsxfrontend/src/components/Note.tsxfrontend/src/components/Tag.tsxfrontend/src/components/TraceView.tsxfrontend/src/components/ViewInteractionGroup.tsxfrontend/src/components/agent-node.tsxfrontend/src/components/annotations/Annotation.tsxfrontend/src/components/annotations/Categorical.tsxfrontend/src/components/annotations/Ranking.tsxfrontend/src/components/annotations/Score.tsxfrontend/src/components/icons.tsxfrontend/src/components/ui/badge.tsxfrontend/src/components/ui/button.tsxfrontend/src/components/ui/card.tsx

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить annotate с