/atlanai-analytics:eval-generationfrom Atlan Analytics
Generates a 20-question eval set for testing an agent on analytics use cases, using known questions and trusted SQL. Useful when asked to build evals or golden questions.
Ships in Atlan 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.
A capability. An eval set is built for one use case: the agent the context was built for, answering what its dashboard and analysts already ask. This skill picks the questions that test the metrics that use case needs, drafts each in a person's words beside its trusted SQL, and writes the set. It runs no test: answering, scoring and acting on a score belong to whatever runs the set. A person can call it directly, and another skill can call it as a step; it behaves the same either way.
Read shared conventions first: privacy,
read-only SQL and status reporting apply. Open this skill's files with the Read tool, one call
per file, never chained in a shell with echo separators: zsh reads a word like ===== as a
command.
| Step | Owner |
|---|---|
| Use case, question pool, picking 20, drafting, the set file, saving the set | this skill |
| Running the set, scoring it, acting on a miss | whatever runs the set, never this skill |
Never edit a metric, a saved query or the run's files from here.
Paths. Pass each command as separate argv entries; zsh does not split a string holding one.
<evals-dir> is this skill's directory (${CLAUDE_PLUGIN_ROOT}/skills/eval-generation in
Claude Code). <build-dir> is analytics-build beside it.<run> is the analytics run and <gen> the drafting folder, both as SCOPE inputs returns
them. The drafting folder sits under .atlan-analytics/evals/gen/, outside the run: agents that answer
from the run must never see an answer. Never use PROJECT location here: it names a new run.SCOPE is python3 "<evals-dir>/scripts/scope.py". EVAL is
python3 "<build-dir>/scripts/analytics_eval.py" <command> --dir "<gen>".<python> is the eval engine's own interpreter: before the first EVALGEN, run
python3 "<evals-dir>/scripts/setup_runtime.py" --runtime "<runtime>", with <runtime> as
SCOPE inputs returns it, and take its python. The first time it installs one pinned
package into that folder; later it reuses it. When it returns blocked, say its message
and stop.EVALGEN is env PYTHONPATH="<evals-dir>/modules/evals/engine" "<python>" -m eval_builder.cli --work "<gen>/work".generate: use case first, metric awareA helper result with show_first carries a chip the run has reached: show it before any other
words or call. Between calls, write nothing of your own: no working notes, no line about a card before or after it,
and never a file path or a step's, gate's or helper's own name.
SCOPE inputs --project <project>. It finds the built run, opens the drafting
folder, reads the use case and focus metric, and writes the pool: every dashboard tile and
analyst query the metrics engine verified, each linked to the metrics it computes. A caller
that knows the run passes --run <run-dir>, and --use-case "<which agent, answering what>"
when the run recorded none. It works on a local run and on a warehouse build alike: nothing
here runs SQL. A blocked reply names what to ask: ask it once and stop until told.EVALGEN init --local, then
EVALGEN build --from-files "<gen>/src" --dialect <the dialect SCOPE inputs returned> --limit 100. It drops a query
pinned to one record and withholds personal data. Do not reopen its JSON.SCOPE pick --gen <gen>, with --limit <n> when the caller names another size
(the demo asks for 8): two questions on the focus metric, then one each on
the metrics nearest the use case, round after round, then past queries no metric computes yet (no_metric). It leaves out
(skipped) a query that lists records with no total or count, a test query that returns nothing,
a data test and a freshness check: no person asks them as a question. It picks 4 spares beyond the 20, for a draft
that finds a question unanswerable, and keeps only those prompts. When it picked
fewer than 20, say "I found questions your team asks that fit, fewer than 20. The set holds
those ."work/prompts/ and
work/answers.json and this instruction: follow each prompt and fill its key in
answers.json with the JSON it asks for, and ask for what the SQL measures, in its direction:
SQL that returns a share approved gets a question about the share approved, never one about
the share rejected. Name what the SQL fixes, in a person's words: the event, program, list
or tag it filters on, each measure it returns, and its dates when they are fixed ("the first
week of October", never "recently"). A period the SQL takes from today's date stays
relative ("this quarter"). Then reply done. It never sees the run.EVALGEN review --name <slug>, then SCOPE emit --gen <gen> --name <slug>.
It keeps the first 20 drafted questions in pick order, so a spare fills in for one the draft
dropped, and writes <project>/.atlan-analytics/evals/sets/<slug>.jsonl, one question per line: {"id", "question", "sql", "tests", "from", "generated"}, the same shape as a set a person brings.Budget: about 3 minutes. Keep every model step in a subagent and every count in a script.
save: on this machine, or to AtlanAny set file can be saved: one this skill wrote, or one the person brought. It is already on this machine. Unless the caller already chose, ask one question, "Where should these test questions be kept?":
| Option | Description |
|---|---|
| Keep on this machine (Recommended) | They stay in this folder, ready to test your agent. |
| Save to Atlan Trident | Your team can see the questions. Their SQL stays on this machine, so tests start here. |
On Save to Atlan Trident: SCOPE ready --set <set file> returns a dir and slug; then, with
--dir set to that dir, EVAL init --slug <slug>, EVAL import-spec --spec "<dir>/work/spec.json"
and the loop EVAL publish --variant baseline --dataset-only --workspace <id> and EVAL publish-ack, as publish describes. The workspace is the one the context
was saved to, else the person's personal workspace (registry__list_workspaces,
personal_workspace_id).
A result, as conventions describes: how many
questions the set holds, the metrics it covers, where each came from, and where the set lives.
The questions chip and the side page list each question; only where the chip's lines say no page
is open, each question in a plain line with the metric it tests. When a person asked for the
questions themselves, end on one native question, "Test your agent on these questions?"
(Test them (Recommended), Not now), its text holding the chip's lines in a terminal; on Test them,
accuracy-check runs the set as it is. A skill that called this one asks its own question instead.
agents/openai.yaml (opens in a new tab)dependencies/evals.lock (opens in a new tab)modules/evals/engine/README.md (opens in a new tab)modules/evals/engine/eval_builder/__init__.py (opens in a new tab)modules/evals/engine/eval_builder/build.py (opens in a new tab)modules/evals/engine/eval_builder/cli.py (opens in a new tab)modules/evals/engine/eval_builder/dialect.py (opens in a new tab)modules/evals/engine/eval_builder/doctor.py (opens in a new tab)modules/evals/engine/eval_builder/elements.py (opens in a new tab)modules/evals/engine/eval_builder/grade.py (opens in a new tab)modules/evals/engine/eval_builder/prune.py (opens in a new tab)modules/evals/engine/eval_builder/registry.py (opens in a new tab)modules/evals/engine/eval_builder/reverse.py (opens in a new tab)modules/evals/engine/eval_builder/schema_check.py (opens in a new tab)modules/evals/engine/eval_builder/select.py (opens in a new tab)modules/evals/engine/eval_builder/sensitive.py (opens in a new tab)modules/evals/engine/eval_builder/sources/__init__.py (opens in a new tab)modules/evals/engine/eval_builder/sources/files.py (opens in a new tab)modules/evals/engine/eval_builder/sources/filters.py (opens in a new tab)modules/evals/engine/eval_builder/sources/powerbi/__init__.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/accuracy-checkAtlan Analytics: test your agent on an eval set, a list of questions with known answers, score it and explain each wrong answer. Use when asked to test or score accuracy, or to show a question of a check. Not for writing evals (eval-generation)./analytics-askAtlan Analytics: answer data questions from metrics and saved queries in Atlan Trident, or a setup kept on this machine. Use for totals, rates, trends, breakdowns and follow-ups. Not for setup or writing metrics (analytics-build, metrics-generation)./analytics-buildAtlan Analytics: set up, resume or hand off metrics on your data. Use for metrics in .atlan-analytics/: a metric's details, SQL or checks, what's ready, saving, a new workspace, or questions on a folder's dashboards. Not for a demo (analytics-demo).npx claudepluginhub atlanai/atlan-plugins --plugin atlanai-analyticsOther plugins' skills for the same job