/omni-analytics:omni-model-explorerfrom omni-analytics
Discovers and inspects Omni Analytics semantic models, topics, views, fields, dimensions, measures, and relationships via the Omni CLI. Essential for understanding available data before building or querying.
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.
Explore and understand an Omni semantic model through the Omni CLI. This is the starting point — understand what exists before building, querying, or modifying anything.
Tip: Start with the Shared model — it contains the curated analytics layer.
Configure the Omni CLI:
omni config list # several profiles? ask the user which, 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.
API keys: Settings > API Keys (Organization Admin) or User Profile > Manage Account > Generate Token (Personal Access Token).
When unsure what operations or flags are available:
omni models --help # List all model operations
omni models <operation> --help # Show flags and positional args
Tip: Use
-o jsonto force structured output for programmatic parsing, or-o humanfor readable tables. The default isauto(human in a TTY, JSON when piped).
Explore top-down: List models → Pick a model → List topics → Inspect a topic → Explore views and fields.
omni models list
Returns models (under the records key — {pageInfo, records:[…]}, not the top level) with id, name, connectionId, and modelKind. Use the SHARED model — it contains the curated semantic layer.
On a busy instance the bare call paginates (20/page) and is mostly WORKBOOK models with
name: null— don't page through them. Filter server-side:omni models list --model-kind SHARED --name "<exact name>"resolves the shared model by name in one call.
To also see active branches on each model:
omni models list --include activeBranches
Each model in the response will include a branches array. Each branch has an id (UUID) and name — use the id as the branchId parameter in other API calls.
Topics are entry points for querying. Each topic defines a base view and the set of joined views available.
omni models list-topics <modelId>
Returns topic names, base views, labels, and descriptions. The list mixes regular and composite topics: a composite entry has is_composite: true, names its component topics in topics[] (and any cross-model imports in import_models), and has no base_view_name — so code that reads base_view_name off every entry gets undefined for it. get-topic on a composite topic returns the same shape plus its views and relationships.
Get full detail including all views, dimensions, measures, relationships, and AI context:
omni models get-topic <modelId> <topicName>
The response is {success, topic}; every field is under topic. Run omni models get-topic --schema for the field list.
A composite topic's fields are addressed as @_shared_dimensions_.<name>, @_shared_views_.<view>.<field>, and @<topic>.<view>.<field>.
For the full semantic model definition:
# All YAML files
omni models yaml-get <modelId>
# Specific file
omni models yaml-get <modelId> --file-name order_items.view
# Regex filter
omni models yaml-get <modelId> --file-name '.*sales.*'
# From a branch (branchId is a UUID from the list models response)
omni models yaml-get <modelId> --branch-id <branchId>
The mode parameter: combined (default) merges schema + shared model; extension shows only shared model customizations.
When a model, view, field or topic uses extends, a combined read omits what extends brings in. Read with --fully-resolved true (only with --mode combined) before saying a view, field or topic exists or is missing, and when comparing models that extend the same parent:
omni models yaml-get <modelId> --mode combined --fully-resolved true
An extends: on a topic's inline view isn't expanded in either read; list the topic's fields with omni models get-topic. Edit from the combined read (omni-model-builder → references/editing-existing-files.md → Exceptions).
The files map is keyed by each file's full stored path (e.g. MARTS/order_items.view), and --file-name is a regex on read. Reuse that exact key — including any folder prefix — when editing with omni-model-builder; a shortened name creates a duplicate instead of editing the original.
Omni has three layers:
When exploring, use the combined view to see everything available, fully resolved wherever extends is used (Step 4).
Views correspond to database tables. Each has dimensions (groupable fields) and measures (aggregations).
Topics join views together into queryable units — curated starting points for analysis. A topic has a base view, joined views, default filters, and AI context.
Relationships define joins: join_from_view, join_to_view, on_sql, relationship_type (one_to_one, many_to_one, one_to_many, many_to_many), and join_type (always_left, inner, full_outer).
Field naming: view_name.field_name with bracket notation for date granularity: orders.created_at[week].
"What data do we have about X?" — List topics → inspect the most relevant one → review views and fields.
"How do these tables relate?" — Inspect topic.relationships[].
"What measures are available for Y?" — Inspect the topic containing view Y → review the measures in topic.views[].
yaml-getUse this pattern only when normal exploration comes up short — the user names a specific view and it's absent from the yaml-get or get-topic response, or a relationship references a view that doesn't appear. If yaml-get returned what you expected, skip this section.
On a model that uses extends, first re-read it fully resolved (Step 4). An inherited view appears only in that read.
Why it happens: yaml-get only returns views from currently-loaded schemas. If a schema is offloaded or inactive, its views won't show up. The get-schemas call surfaces all schemas the connection knows about — including offloaded and inactive ones — so it's the right next step before telling the user "not found."
Two-step recovery:
# 1. List every schema (loaded, offloaded, and inactive)
omni models get-schemas <modelId>
# → {"schemas": ["ANALYTICS", "PUBLIC", "STAGING", ...]}
# 2. If the target schema is in the list, load just that schema
omni models yaml-get <modelId> --include-schemas PUBLIC
If the schema isn't in the list at all, this isn't a lazy-load issue — the connection likely doesn't have access or the schema isn't synced. Check with a Connection Admin.
Rules for --include-schemas:
--branch-id <id> to either command.Calculation fields in the model use a different format than regular dimensions/measures. The field key is calc_name and the expression property is sql_expression — not name/sql.
When the user asks what Blobby knows about a topic, inspect the topic and report the actual AI configuration — do not infer it from field names:
omni models get-topic <modelId> <topicName>
omni models yaml-get <modelId> --file-name '<topicName>\.topic'
Read ai_context, sample_queries, and AI field-selection values under topic. If get-topic does not expose the full ai_fields list, read the topic YAML and report the configured ai_fields there. Include configured sample query names/prompts and the fields they exercise when present.
Assess the blast radius of a field migration or removal before pushing changes to dbt:
omni models create-branch <modelId> --name "field-impact-<field-name>"
Then use the right setup for the change being tested:
omni models yaml-create, using the exact fileName key returned by yaml-get.yaml-create accepts the update as a JSON body, not separate --file-name or --branch-id flags:
omni models yaml-create <modelId> \
--body '{"branchId":"<branchId>","fileName":"public/order_items.view","yaml":"<full modified YAML string>"}'
Use the response and yaml-get --branch-id readback to verify the file was written to the branch. For model-only field removal impact, remove the field's own definition from the branch YAML, but leave existing dependent field references in place unless the user's planned change also removes them. Those unresolved references are what omni models validate uses to reveal dependent measures, dimensions, topics, and joins that would break.
Do not reuse an existing branch unless yaml-get --branch-id <branchId> proves the target field is absent or renamed there. A branch with a matching name but unchanged YAML is not a valid blast-radius branch.
omni models yaml-get <modelId> --file-name '<viewName>\.view' --branch-id <branchId>
omni models validate <modelId> --branch-id <branchId>
Verify the field definition precisely, not with a whole-file substring search. For example, sale_price may still appear in sql: ${sale_price} after the dimensions: sale_price: {} definition has been removed; that is a valid impact-test branch and should be reported as a dependent reference. If the original field definition still appears in branch YAML, say the branch setup is invalid and do not claim validator results represent removal impact.
omni models content-validator-get <modelId> --branch-id <branchId> --content-filter-mode WITH_ISSUES
This returns the dashboards and tiles with broken references to the removed field. Without WITH_ISSUES it returns every document that has a query.
A clean result on large content may be references-only. When the content is large, the validator checks field, view, and topic references without planning each query, so a query that references valid fields but no longer plans still reports clean. Pass
--force-full-validation true(CLI ≥ 1.3.1) to plan every query; it is slower on large models.
omni models yaml-get <modelId> --file-name '.*'
Search the response for the field name to find references in other views, topics, and calculated fields.
Do NOT paginate documents and check queries individually — the content validator does this for you in one call.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub exploreomni/omni-agent-skills --plugin omni-analytics12 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-evalEvaluate Omni AI accuracy using Omni's built-in eval system — define a prompt set, run a judged eval against a model (or branch), and read the accuracy-judge verdicts. Use this skill whenever someone wants to evaluate Omni AI, benchmark Blobby, run regression tests, compare AI output across branches or model-context changes, measure AI quality, run A/B tests on model changes, assess the impact of an ai_context or modeling change, or any variant of "run evals", "test Blobby", "benchmark query generation", "compare AI results", "regression test", "how accurate is the AI", or "measure the impact of my changes"./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".Other plugins' skills for the same job