datadog-labs/agent-skills/agent-observability-eval-pipeline

Claude Code and agent skill by datadog-labs/agent-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

End-to-end Agent Observability pipeline for an instrumented ml_app — classify production traces, root-cause failures, bootstrap evaluators, then (optionally) sample + publish a dataset, generate + run an experiment, and analyze results. Six narrated phases with a standardized banner and a "continue" checkpoint between each. Pure orchestration over the agent-observability sub-skills (`agent-observability-session-classify`, `agent-observability-trace-rca`, `agent-observability-eval-bootstrap`, `a…

Install

npx vskill@latest install datadog-labs/agent-skills/agent-observability-eval-pipeline

SKILL.md

The same SKILL.md was published earlier as datadog-labs/agent-skills/agent-observability-eval-pipeline.

Backend

Detection — At the start of every invocation, before taking any action, determine which backend to use:

  1. If the user passed --backend pup anywhere in their invocation → use pup mode immediately, regardless of whether MCP tools are present. Skip steps 2–4.
  2. Check whether MCP tools are present in your active tool list. The canonical signal is whether mcp__datadog-llmo-mcp__search_llmobs_spans appears in your available tools.
  3. If MCP tools are present → use MCP mode throughout. Call MCP tools exactly as named in the sub-skill workflow sections.
  4. If MCP tools are absent → check whether pup is executable: run pup --version via Bash. A JSON response containing "version" confirms pup is available.
  5. If pup responds → use pup mode throughout. Each sub-skill carries its own Tool Reference appendix with the full MCP→pup mapping.
  6. If neither is available → stop and tell the user:

> "Neither the Datadog MCP server nor the pup CLI is available. Connect the MCP server (claude mcp add --scope user --transport http datadog-llmo-mcp 'https://mcp.datadoghq.com/v1/mcp?toolsets=llmobs') or install pup."

--backend pup is accepted anywhere in the invocation arguments. Strip it from args before passing to sub-skills, but carry the pup-mode decision forward — every sub-skill must also operate in pup mode for the entire pipeline run.

Sub-skill backend propagation: The backend detected at startup applies to all sub-skills invoked across the six phases. Do not re-detect per phase. Announce once at startup:

  • MCP mode: "(Running in MCP mode — all features available.)"
  • pup mode: "(Running in pup mode — pup commands used throughout. All features available.)"

Invocation ID: At the very start of each invocation, before any MCP tool call, generate an 8-character hex invocation ID (e.g., 3a9f1c2b). Keep it constant for the entire invocation.

Intent tagging: On every MCP tool call, prefix telemetry.intent with skill:agent-observability-eval-pipeline[<inv_id>] — followed by a description of why the tool is being called. On the first MCP tool call only, use skill:agent-observability-eval-pipeline:start[<inv_id>] — instead (note the :start suffix). Example first call: skill:agent-observability-eval-pipeline:start[3a9f1c2b] — Precheck: verify ml_app has traces in the last 7 days


Agent Observability Eval Pipeline — Classify → RCA → Eval Bootstrap → Dataset → Experiment → Analyze

A deterministic, six-phase guided pipeline for an already-instrumented ml_app owner. Each phase has the same envelope — a banner that names the entity being produced, an explanation of its purpose, the action (a sub-skill call or a small executable step), and a checkpoint. You always know where you are.

[Precheck] verify ml_app, project, backend, credentials, output dir
↓
[Phase 1: Classify ml_app traces] entity: ml_app, trace, span
↓
[Phase 2: Root cause analysis] entity: failure mode, root cause
↓
[Phase 3: Bootstrap evaluators] entity: evaluator, LLM judge
↓ (stop here with --stop-after eval-bootstrap
↓ for the classic eval-pipeline behavior)
[Phase 4: Create + publish dataset] entity: dataset record, published dataset
↓ (executes: LLMObs.create_dataset)
[Phase 5: Generate + run experiment] entity: experiment, task, evaluator, run
↓ (executes: python <generated_file>)
↓ (in-phase review beat before run)
[Phase 6: Analyze experiment] entity: metric, comparison, recommendation

This skill is pure orchestration plus pedagogy — no new analytical logic. The work happens inside the sub-skills (agent-observability-session-classify, agent-observability-trace-rca, agent-observability-eval-bootstrap, agent-observability-experiment-bootstrap, agent-observability-experiment-analyzer). What this skill adds is the deterministic envelope: every phase has the same shape, the same checkpoint contract, and the same entity-explanation banner — so the user gets a consistent, narrated experience regardless of how they phrased the original request.

Usage

/agent-observability-eval-pipeline <ml_app> [--project-name <name>] [--timeframe <window>] [--trace-limit <N>]
[--format py|ipynb] [--evaluator-style function|class|remote]
[--offline-evaluators | --online-evaluators | --data-only]
[--start-at classify|rca|eval-bootstrap|dataset|experiment|analyze]
[--stop-after classify|rca|eval-bootstrap|dataset|experiment|analyze]
[--classification-summary <path>] [--rca-report <path>]
[--dataset-file <path>] [--dataset-name <name>]
[--experiment-file <path>] [--experiment-id <uuid> | --experiment-url <url>]
[--app-root <path>] [--env-file <path>] [--output-dir <dir>]
[--backend pup]

Arguments: $ARGUMENTS

Inputs
InputRequiredDefaultDescription
ml_appYes—The instrumented LLM app to onboard / evaluate against. The precheck verifies it has recent traces.
--project-nameNoderived from pyproject.toml / setup.cfg / setup.py / package.json / cwd (same order as agent-observability-experiment-bootstrap); falls back to experiment-sdk-defaultThe Datadog project the pipeline writes datasets and experiments into. The SDK lazily creates the project on first use via LLMObs.enable(project_name=...). Surface this in the Precheck so the user can confirm before anything is created.
--timeframeNonow-7dLookback window for Phase 1 classification and Phase 4 dataset sampling.
--trace-limitNo20Sampling cap for Phase 4. Phase 1 internally uses min(20, --trace-limit) for the classification sample.
--formatNopyPassed to agent-observability-experiment-bootstrap in Phase 5: py (script) or ipynb (Jupyter notebook).
--evaluator-styleNofunctionPassed to agent-observability-eval-bootstrap (Phase 3) and agent-observability-experiment-bootstrap (Phase 5): function, class, or remote.
--offline-evaluatorsNoon (default)Phase 3: emit a Python SDK evaluator suite (BaseEvaluator / LLMJudge classes) that runs inside an experiment against a dataset. Maps internally to agent-observability-eval-bootstrap sdk_code mode.
--online-evaluatorsNooffPhase 3: publish online LLM-judge evaluators directly to Datadog (created as disabled drafts; enable in the UI). Online evaluators run on production spans as they're emitted. Maps internally to agent-observability-eval-bootstrap publish mode (was --publish).
--data-onlyNooffPhase 3: emit a local data blob only — no executable evaluator code or online publish. At Phase 3 entry the skill prompts the user to pick one of: (a) a DatasetRecordRaw[] JSON suitable for experiment use (maps internally to agent-observability-eval-bootstrap --emit-dataset), or (b) a framework-agnostic JSON evaluator spec for local analysis (maps internally to agent-observability-eval-bootstrap data_only mode).
--stop-after <phase>Noanalyze (run everything)Stop after the named phase completes. classify = Phase 1 only. rca = through Phase 2. eval-bootstrap = through Phase 3 (matches the classic eval-pipeline). dataset = through Phase 4 (dataset created + published). experiment = through Phase 5 (experiment generated + run). analyze = all six phases (default).
--start-at <phase>Noclassify (start at the top)Skip earlier phases and start at the named phase. Same vocabulary as --stop-after. The skill auto-loads any required prior-phase artifacts from <output-dir>/state/ (see "State persistence and entry/exit" section). For phases that need an artifact the auto-load can't find, supply it via one of the override flags below. Combinable with --stop-after to run a contiguous slice of the pipeline.
--classification-summary <path>Noauto-loaded from <output-dir>/state/01-classification.md if --start-at rca or laterOverride the Phase 1 output that Phase 2 consumes. Useful when the prior state file is missing or you want to point at a hand-edited version.
--rca-report <path>Noauto-loaded from <output-dir>/state/02-rca-report.md if --start-at eval-bootstrap or laterOverride the Phase 2 output that Phase 3 consumes.
--dataset-file <path>Noauto-loaded from <output-dir>/state/04-published-dataset.json's dataset_file field (or the most recent <output-dir>/dataset_<ml_app>_*.json)The local DatasetRecordRaw[] JSON. Used by Phase 4's publish sub-step when re-publishing without re-sampling.
--dataset-name <name>Noauto-loaded from <output-dir>/state/04-published-dataset.json if --start-at experimentThe name of a published Datadog dataset that Phase 5 wires the experiment to.
--experiment-file <path>Noauto-loaded from <output-dir>/state/05-experiment-run.json's experiment_file field if --start-at experiment and the file already existsThe generated experiment file. When present, Phase 5 skips the codegen sub-step (5a) and goes straight to the review beat (5b) → run (5c).
--experiment-id <uuid>Noauto-loaded from <output-dir>/state/05-experiment-run.json if --start-at analyzeThe Datadog experiment ID Phase 6 analyzes. Mutually exclusive with --experiment-url.
--experiment-url <url>Noauto-loaded as aboveAlternative to --experiment-id. The skill parses the trailing UUID out of the URL.
--app-rootNoresolved from cwd / pyproject.toml etc.Restricts agent-observability-experiment-bootstrap's task-function introspection to this directory tree.
--env-fileNonone (auto-discovery walks standard locations)Explicit .env path for credential loading. Surfaced in the Precheck and baked into the generated experiment as ENV_FILE_OVERRIDE.
--output-dirNo./experimentsWhere the dataset JSON, publish script, and generated experiment file are written.
--backendNoauto-detectpup forces pup mode regardless of MCP availability.

If ml_app is not provided, ask the user before proceeding. The three evaluator-output flags (--offline-evaluators, --online-evaluators, --data-only) are mutually exclusive — error out if more than one is set. If none are set, --offline-evaluators is the default. The legacy flag names --publish and --sdk-code are still accepted as aliases for backward compatibility but map to the new names in all output.


Precheck

Before Phase 1, run a single short verification pass — do not announce a "Phase" banner for this; it's plumbing. Output a one-block precheck summary, then move directly to Phase 1.

  1. Backend — already detected at the top of this skill. Note the chosen backend in the precheck output so the user can confirm.
  1. ml_app has recent traces — call search_llmobs_spans(query="@ml_app:\"<ml_app>\"", root_spans_only=true, limit=1, from="<timeframe>") (MCP) or the pup equivalent. If the result is empty, stop and tell the user the precheck failed — there is nothing to evaluate against — and suggest widening --timeframe or confirming the ml_app name.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
173
Repository forks
29
7-day trend score
26

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/datadog-labs/agent-skills/agent-observability-eval-pipeline/badge)](https://verified-skill.com/skills/datadog-labs/agent-skills/agent-observability-eval-pipeline)

Something wrong with this skill or its page? Tell us.