Command Palette

Search for a command to run...

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

online-evals

БесплатноБез исполняемых скриптовНе проверен

Attach judges to config variations for automatic LLM-as-a-judge evaluation. Create custom judges, configure sampling rates, and monitor quality scores.

launchdarklyот launchdarkly★ 32 звезды на GitHub

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

Config Online Evaluations

Attach judges to config variations for automatic quality scoring using LLM-as-a-judge methodology. Judges evaluate responses and return scores between 0.0 and 1.0.

Prerequisites

  • LaunchDarkly account with AgentControl enabled
  • The remotely hosted LaunchDarkly MCP server configured in your environment
  • Existing config with variations (use configs-create skill)
  • To run judges from your application: launchdarkly-ai-server 0.3.0+ (Python) or @launchdarkly/ai-node 0.3.0+ (Node.js), plus a provider handler package for each provider your configs and judges use

API Access

Use the LaunchDarkly MCP server tools for every step in the workflow: they authenticate via OAuth and need no token. The REST API is only for scripts and CI that can't use MCP (see Scripting without MCP). In that case, ask the user to paste an API access token for this session and substitute it for {api_token} in the examples below. Do not search environment variables, .env files, or agent/MCP config files for credentials.

Core Concepts

What Are Judges?

Judges are specialized configs in judge mode that evaluate responses from other configs. They use an LLM to score outputs and return structured results:

{
  "score": 0.85,
  "reasoning": "Answered correctly with one minor omission"
}

Built-in Judges

LaunchDarkly provides three pre-configured judges:

Judge Metric Key Measures
Accuracy $ld:ai:judge:accuracy How correct and grounded the response is
Relevance $ld:ai:judge:relevance How well it addresses the user request
Toxicity $ld:ai:judge:toxicity Harmful or unsafe phrasing (lower = safer)

Completion Mode Only

Judges can only be attached to completion mode configs in the UI. Attaching them through the API (Step 2) works for any config, and the SDK runs whatever judges the served variation has.

Restrictions

  • Cannot attach judges to judges (no recursion)
  • Cannot attach multiple judges with the same metric key to a single variation
  • Cannot view/edit model parameters or tools on judge variations

Workflow

Step 1: Create Custom Judges (Optional)

For domain-specific evaluation, create a judge config with create-agent-config and resource: "config":

{
  "projectKey": "{projectKey}",
  "resource": "config",
  "configKey": "security-judge",
  "name": "Security Judge",
  "mode": "judge",
  "evaluationMetricKey": "$ld:ai:judge:security",
  "isInverted": false
}

Note: evaluationMetricKey must start with $ld:ai:judge:. Set isInverted: true for metrics like toxicity where 0.0 is better.

Then add a variation with the evaluation prompt using create-agent-config with resource: "variation". Get modelConfigKey from get-ai-model-configs:

{
  "projectKey": "{projectKey}",
  "resource": "variation",
  "configKey": "security-judge",
  "variationKey": "default",
  "variationName": "Default",
  "modelConfigKey": "OpenAI.gpt-4o-mini",
  "modelName": "gpt-4o-mini",
  "parameters": {"temperature": 0.3},
  "messages": [
    {
      "role": "system",
      "content": "You are a security auditor. Score from 0.0 to 1.0:\n- 1.0: No security issues\n- 0.7-0.9: Minor issues\n- 0.4-0.6: Moderate issues\n- 0.1-0.3: Serious vulnerabilities\n- 0.0: Critical vulnerabilities\n\nCheck for: SQL injection, XSS, hardcoded secrets, command injection.\n\n{{message_history}}"
    }
  ]
}

Important: End the judge prompt with {{message_history}}. The SDK fills that variable with the conversation being judged, so a prompt without it never sees the response it's scoring. The SDK adds the score-and-reasoning output format itself.

Step 2: Attach Judges to Variations

Use update-agent-config with resource: "variation" and judgeConfiguration. Get variationKey from get-agent-configs:

{
  "projectKey": "{projectKey}",
  "configKey": "{configKey}",
  "resource": "variation",
  "variationKey": "{variationKey}",
  "judgeConfiguration": {
    "judges": [
      {"judgeConfigKey": "security-judge", "samplingRate": 1.0},
      {"judgeConfigKey": "api-contract-judge", "samplingRate": 0.5}
    ]
  },
  "confirm": true
}

Important: The judges array replaces all existing judge attachments. An empty array removes all judges.

Step 3: Set Fallthrough on Judges

Each judge config needs its fallthrough set to the enabled variation in every environment that runs it. Configs default to the "disabled" variation. Use update-agent-config with resource: "targeting" and a fallthrough:

{
  "projectKey": "{projectKey}",
  "configKey": "security-judge",
  "resource": "targeting",
  "env": "production",
  "fallthrough": {"variationKey": "default"},
  "confirm": true
}

Then call get-agent-configs with the judge's configKey and section: "health" to confirm it's targetable.

Scripting without MCP

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

Установить online-evals в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

README.md

FAQ

Что делает скилл online-evals?

Attach judges to config variations for automatic LLM-as-a-judge evaluation. Create custom judges, configure sampling rates, and monitor quality scores.

Как установить скилл online-evals?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл online-evals запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить online-evals с