/omni-analytics:omni-ai-evalfrom omni-analytics
Runs Omni AI accuracy evaluations using Omni's built-in eval system: define prompt sets, execute judged eval runs against models or branches, and review semantic verdicts from the accuracy judge.
Ships in omni-analytics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Omni ships a first-class eval system (the AI Hub → Prompt sets and Eval runs). This skill drives it through the Omni CLI: define a reusable prompt set, start a judged eval run against a model or branch, and read per-prompt verdicts from Omni's built-in accuracy judge.
Prefer this native system over building your own harness. The judge scores each answer semantically against the full agent conversation — it does not require golden query JSON, and it evaluates the whole agentic workflow (topic selection, queries, results, and the final written answer), not just generated query structure.
Tip: Use
omni-ai-optimizerto improve scores after finding failures,omni-model-builderto apply context changes on a branch before A/B testing, andomni-model-explorerto discover topics and fields when writing prompts.
omni ai-eval --help >/dev/null || echo "CLI too old for ai-eval: ask the user to update it"
omni config list # several profiles? ask the user which (the wrong one silently evaluates the wrong model), then: omni config use <name>
omni whoami whoami # confirms auth and lists your permissions
omni update check -o json 2>/dev/null || true # updateAvailable: true? tell the user and share both upgrade commands
If
omniisn't installed, ask the user to install it (CLI README). On an auth error: a setOMNI_API_TOKENoverrides the profile, so retry once without it (env -u OMNI_API_TOKEN omni whoami whoami); otherwise followomni agent-help(Auth) to have the user sign in.
You also need the model ID of a shared model to evaluate. Evals require at least Querier access on that model, and at least one topic optimized for AI. See the Evals guide for concepts and prompt-set best practices.
| Concept | What it is |
|---|---|
| Prompt set | A reusable, named list of up to 25 natural-language prompts, scoped to one model. Each prompt may carry an optional expectation — a reference answer the judge scores against. Lives server-side; create one per topic, per release, or for regression coverage. |
| Eval run | Executes a prompt set against a model branch (or main). Each prompt runs as a full async agentic AI job (the same engine as production Blobby), then the accuracy judge scores the result. |
| Accuracy judge | A fixed judge model that reads the evaluated AI's full conversation and returns a pass/fail verdict per prompt, plus confidence and a rationale. It targets high-impact analysis errors (hallucinations, date/time filtering, row-limit handling, mental math, period-over-period mistakes, wrong topic). It does not grade wording or formatting. |
All commands accept -o json (or --compact) and --profile <name>. No ai-eval command has a --branch-id flag; the branch goes in the runs-create body as run_config.branch_id. Run any command with --schema for its body and response fields instead of guessing.
omni ai-eval prompt-sets-create --compact --body '{
"model_id": "your-model-id",
"name": "Orders regression",
"slug": "orders-regression",
"description": "Core revenue + orders coverage",
"prompts": [
{ "prompt_text": "Show me revenue by month" },
{ "prompt_text": "What are the top 5 products by revenue?",
"expectation": "The top product by revenue should be Aniseed Syrup." },
{ "prompt_text": "How many orders were placed last week?" }
]
}'
The response includes the created prompt_set.id (a UUID) — capture it for the run.
| Field | Required | Notes |
|---|---|---|
model_id | Yes | Shared model UUID the set is bound to |
name | Yes | ≤ 255 chars |
slug | Yes | Unique per model_id; must match ^[a-z][a-z0-9-]*$ |
description | No | ≤ 1024 chars |
prompts[] | No | ≤ 25; each needs prompt_text (≤ 8000 chars), optional expectation (≤ 16000 chars) |
Find or update an existing set instead of recreating:
omni ai-eval prompt-sets-list --model-ids your-model-id --compact # discover sets + ids
omni ai-eval prompt-sets-get <promptSetId> --compact # full set with prompts
prompt-sets-update replaces the entire prompts list: omitted prompts are deleted, entries with no id are created, entries with a matching id are updated in place. To add one prompt, send the full desired list (existing prompts carry their id).
omni ai-eval prompt-sets-update <promptSetId> --compact --body '{
"prompts": [
{ "id": "<existing-prompt-id>", "prompt_text": "Show me revenue by month" },
{ "prompt_text": "Revenue by month, last 12 months only" }
]
}'
expectation only when a prompt has a known answer worth pinning: a value or ranking ("top product should be Aniseed Syrup"), a direction ("revenue should be up YoY"), or a required breakdown. The judge treats a material divergence (wrong numbers, wrong direction, missing required result) as a failure but ignores wording/formatting differences. With no expectation, the judge decides whether the answer is correct on its own terms. The expectation is shown only to the judge — the evaluated AI never sees it.# Against main:
omni ai-eval runs-create --compact --body '{
"prompt_set_id": "<promptSetId>",
"description": "Baseline on main"
}'
# Against a branch (measures a model-context change before promotion):
omni ai-eval runs-create --compact --body '{
"prompt_set_id": "<promptSetId>",
"description": "After adding ai_context to order_items",
"run_config": { "branch_id": "<branchId>" }
}'
The response returns run.id and job_count (prompts × run_config.repeat_count, default 1). Omit run_config.branch_id to run against the live shared model.
Concurrency cap: at most 2 eval runs in flight at once. A
429means the per-user active-run cap is reached — wait for an in-flight run to finish or cancel one. A503means eval is paused for the org. Checkruns-listbefore launching.
omni ai-eval runs-get <runId> --compact
Poll with backoff (e.g. 5s, 10s, 20s) until the run's status is terminal — COMPLETE or CANCELLED. Each result's agentic_job.state tracks its job. Don't hammer the endpoint.
runs-get returns run.results[], one row per prompt execution. omni ai-eval runs-get --schema describes every field; the ones to read:
score — 1 pass, 0 fail. A 0 with a null scoring_cost means the job produced no response and no judge ran.outcome — null when the job answered and was scored; otherwise why not (JOB_FAILED, NO_TEXT, JUDGE_ERROR, …). ASKED_CLARIFICATION is still scored.error_reason — why there is no usable answer or score, when known. A reason starting with judge error means the answer exists and only scoring failed.ai_timing_ms — the UI's "AI time". timing_ms is the total including tool time; warehouse time is query_timing_ms.agentic_job.conversation_id — the conversation behind the answer, for the judge's rationale.Overall accuracy = the pass rate (mean of score across results). Report it with the per-prompt breakdown, and for any failure, point to the conversation_id so the user can read why the judge failed it — that rationale is where the actionable signal lives.
Eval run "Baseline on main" — 9/12 passed (75.0%)
✗ "Revenue by quarter" — judge: summed a row-limited result as a total
✗ "Top products this year" — judge: date filter used calendar instead of fiscal year
✗ "Churn rate by segment" — not judged: outcome JOB_FAILED
(omni ai conversation-detail <conversation_id> for the full rationale)
Read that transcript from the CLI rather than sending the user to the UI:
omni ai conversation-detail <conversationId> --compact
omni ai conversations-list, so the id only ever comes from runs-get, and a user-scoped token reads only runs it created (an organization API key reads another user's).The core workflow for measuring whether a model change helps. Run the same prompt set twice — once on main, once on the branch — then compare.
omni-model-builder to apply ai_context, fields, joins, ai_settings, etc. on a branch).runs-create with no run_config → baseline run on main.runs-create with run_config.branch_id → branch run.COMPLETE, then diff per-prompt verdicts.A/B: main vs branch/new-context (prompt set: orders-regression)
main branch Δ
Accuracy: 75.0% 91.7% +16.7%
Prompt credits: 0.024 0.026 +0.002
Regressions (passed on main, failed on branch):
- rev-by-quarter
Improvements (failed on main, passed on branch):
- top-products-this-year
- churn-rate-by-segment
Always check for regressions, not just net improvement. A higher overall pass rate can still hide a prompt that newly broke — an
ai_contextchange that helps most prompts may conflict with one. Call out any prompt that passed on main but fails on the branch.
Notes for an auditable comparison:
branch_id used and confirm the branch run's run.branch_id matches it — don't claim the branch was exercised without that.expectation later won't change how earlier runs were scored.omni ai-eval runs-list --prompt-set-id <promptSetId> --compact # runs for a set, newest first
omni ai-eval runs-cancel <runId> # cancel an in-flight run
omni ai-eval runs-archive <runId> # archive a finished run
omni ai-eval runs-unarchive <runId> # restore an archived run
omni ai-eval prompt-sets-archive <promptSetId> # archive a set (cancels its in-flight jobs)
omni ai-eval prompt-sets-unarchive <promptSetId> # restore an archived set
Archiving is a soft delete — sets and runs are preserved and can be restored. Cancelling a run marks it CANCELLED but does not archive it (despite runs-cancel --help); it stays in the default list until you runs-archive it. Use --archived true on the *-list commands to see archived items.
outcome is set (other than ASKED_CLARIFICATION) was not judged on an answer; report it separately from a judge score of 0.omni models yaml-get <modelId> --compact and omni models validate <modelId>. Branch runs already pin the change to a branch.ai_context, sample_queries, field metadata)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
omni-ai, eval-system, benchmarking, regression-testing, ab-testing
12 skills in this plugin
/omni-adminAdminister an Omni Analytics instance — manage connections, users, groups, user attributes, permissions, schedules, and schema refreshes via the Omni CLI. Use this skill whenever someone wants to manage users or groups, set up permissions on a dashboard or folder, configure user attributes, create or modify schedules, manage database connections, refresh a schema, set up access controls, provision users, or any variant of "add a user", "give access to", "set up permissions", "who has access", "configure connection", "refresh the schema", or "schedule a delivery"./omni-ai-optimizerOptimize an Omni Analytics model for Blobby, the Omni Agent — configure ai_context, ai_fields, synonyms, sample_queries, and ai_settings. Use this skill whenever someone wants to improve AI accuracy in Omni, make Blobby smarter, add AI context or example questions, curate which fields the AI sees, personalize AI context by user attribute, diagnose context-window pruning or truncation, raise a topic's AI context budget, control which topics AI can reach, troubleshoot why Blobby gives wrong answers, or any variant of "make the AI better", "Blobby isn't answering correctly", "optimize for AI", or "teach the AI about our data"./omni-content-builderCreate, update, and manage Omni Analytics documents and dashboards programmatically — document lifecycle, drafts, tiles, visualizations, filters, controls, and layouts — using the Omni CLI. Use this skill whenever someone wants to build a dashboard, create a workbook or document, add tiles or charts, configure dashboard filters or controls, set up a KPI view, lay out or rearrange tiles and pages, edit a dashboard as a draft and publish it, change dashboard settings, rename/move/duplicate/delete a dashboard, modify dashboard-level model customizations like workbook-specific joins or fields, or build and edit an Omni app (custom HTML content in place of a dashboard) — including casual phrasings like "make a dashboard for…", "add a chart to…", or "clean up this dashboard's layout" that don't name the skill. Load it before any document API call, even when a local build script exists. For running a query or pulling metrics use omni-query; for adding a field to the shared model use omni-model-builder./omni-content-explorerFind, browse, and organize content in Omni Analytics — dashboards, workbooks, folders, and labels — using the Omni CLI. Use this skill whenever someone wants to find an existing dashboard, search for content, list workbooks, browse folders, see what dashboards exist, find popular reports, download a dashboard as PDF or PNG, set an alert on a dashboard tile, favorite content, manage labels on documents, or any variant of "find the dashboard about", "what reports do we have", "show me our dashboards", "where is the sales report", "download this dashboard", or "alert me when this changes". This skill locates and organizes content; to inspect what a dashboard tile actually queries — its fields, filters, and sorts — use omni-query./omni-embedEmbed Omni Analytics dashboards in external applications — URL signing, custom themes, iframe events, entity workspaces, and permission-aware content — using the @omni-co/embed SDK and Omni CLI. Use this skill whenever someone wants to embed a dashboard, sign an embed URL, customize the embedded theme, handle embed events, listen for clicks or drills in the iframe, send filters to an embedded dashboard, set up entity workspaces, look up embed users, build a permission-aware content list, white-label an embedded dashboard, or any variant of "embed this dashboard", "customize the iframe theme", "handle click events from the embed", "filter the embedded dashboard", "set up embedding", or "what dashboards can this user see"./omni-model-builderCreate and edit Omni Analytics semantic model definitions — views, topics, dimensions, measures, relationships, query views, composite topics, and aggregate tables (materialized_query) — using YAML through the Omni CLI. Use this skill whenever someone wants to add a field, create a new dimension or measure, define a topic, set up joins between tables, modify the data model, build a new view, add a calculated field, create a relationship, edit YAML, work on a branch, promote model changes, or any variant of "model this data", "add this metric", "create a view for", or "set up a join between". Also use for migrating modeling patterns since Omni's YAML is conceptually similar to other semantic layer definitions. For the data itself, such as a label or computed column on each row of a result, use omni-query; this skill is for requests that name a field, measure or other part of the model.npx claudepluginhub exploreomni/omni-agent-skills --plugin omni-analyticsOther plugins' skills for the same job