agent-observability-experiment-bootstrap
Generates reproducible LLM observability experiments using Python ddtrace or Node dd-trace SDKs, creating scaffolding that evaluates tasks over versioned…
Identity proven by GitHub's verified organisation badge (DataDog, datadog-labs)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 9cbd518pinned Oct 9, 2026
- Context cost
- about 2,200 tokenswhen the skill loads
- GitHub stars
- 177on datadog-labs/agent-skills
- Scripts
- 1 script
What it does
“Bootstrap a reproducible LLM Observability experiment through the Python ddtrace SDK or the Node dd-trace SDK. Use for experiment, dataset, evaluator, benchmark, regression, or LLM-as-a-judge scaffolding. The legacy Python invocation remains supported.”
Generated summary from the skill's own text
Generates reproducible LLM observability experiments using Python ddtrace or Node dd-trace SDKs, creating scaffolding that evaluates tasks over versioned datasets and records metrics with full provenance. The skill accepts command-line parameters to configure project name, dataset source, evaluator style, and output format, then produces a self-contained artifact ready to execute.
When to use it
- Benchmarking LLM application performance across different models or configurations
- Building regression test suites for LLM tasks with reproducible datasets
- Evaluating LLM output quality using multiple metrics and judge functions
- Tracking experiment history and provenance for compliance or research purposes
When not to
- When you need to run experiments immediately without generating scaffolding first
- If your application uses custom tracing outside the ddtrace or dd-trace SDKs
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add datadog-labs/agent-skills --skill agent-observability-experiment-bootstrapInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install datadog-labs/agent-skills agent-observability-experiment-bootstrap@9cbd518922765c46d5d446f09cf03d060dd4b46fInstalls the commit we checked (9cbd518).
Copy by hand
Download the folder at 9cbd518 and put it in .claude/skills/agent-observability-experiment-bootstrap for Claude Code and in .agents/skills/agent-observability-experiment-bootstrap for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install datadog@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "agent-observability-experiment-bootstrap" by Datadog. Source, pinned to commit 9cbd518922765c46d5d446f09cf03d060dd4b46f: https://github.com/datadog-labs/agent-skills/tree/9cbd518922765c46d5d446f09cf03d060dd4b46f/agent-observability/agent-observability-experiment-bootstrap 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/agent-observability-experiment-bootstrap/ for Claude Code and .agents/skills/agent-observability-experiment-bootstrap/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/datadog/agent-observability-experiment-bootstrap
SKILL.md at the pin
--- name: agent-observability-experiment-bootstrap description: Bootstrap a reproducible LLM Observability experiment through the Python ddtrace SDK or the Node dd-trace SDK. Use for experiment, dataset, evaluator, benchmark, regression, or LLM-as-a-judge scaffolding. The legacy Python invocation remains supported. --- # LLM Observability Experiment Bootstrap Generate one reproducible experiment artifact. The artifact evaluates a task over a versioned dataset, records outputs and evaluator metrics, carries configuration and provenance, and prints a result link or identifiers when possible. This skill is adapter-independent. Each adapter owns a language-specific directory under `references/`; load only the selected adapter contract. The directories are intentionally symmetric even when one adapter currently has fewer supporting references. ## Invocation and compatibility The installed directory and legacy invocation remain valid: ```text /agent-observability-experiment-bootstrap [--purpose TEXT] [--format py|ipynb|mjs] [--dataset PATH | --dataset-name NAME] [--dataset-version N] [--project-name NAME] [--evaluator-style function|class|remote] [--jobs N] [--output PATH] [--task-source module:function] [--placeholder-task] [--app-root PATH] [--env-file PATH] ``` General options: ```text --adapter python|node # default: python --format py|ipynb|mjs # Python: py/ipynb; Node: mjs --site SITE # otherwise DD_SITE or datadoghq.com ``` Do not prompt for optional defaults. Resolve a non-empty purpose from `--purpose`, the request, or a focused question. Keep the purpose as reasoning context, not a fixed taxonomy. ## Mandatory context loading Load context in this order: 1. Parse the adapter. 2. Read exactly one adapter reference: - Python SDK → `references/python/python.md` - Node SDK → `references/node/nodejs.md` 3. For Python task generation, read only the selected provider reference under `references/python/providers/`. 4. For Python task generation, read only the selected evaluator reference under `references/python/evaluator-styles/`. Do not load all provider, evaluator, Python, and Node references “for completeness.” The selected reference is the source of truth for syntax and API behavior. ## Adapter selection Use Python when the application or requested artifact is Python, or when no adapter is specified. Use Node when the application is JavaScript/TypeScript and the local `dd-trace` package exposes `tracer.llmobs.experiments`. Never mix the Python and Node SDKs in one generated artifact. Do not use private SDK modules or invent a missing symbol. If local source and an installed package disagree, report the discrepancy and generate against the selected version. ## Shared experiment model Every adapter must represent the following concepts: 1. **Project** — resolve an explicit project name, configured service metadata, or a clearly documented generated fallback. Never silently use an unrelated project. 2. **Dataset** — records with input, optional expected output, optional metadata, and tags. Pin a remote dataset version when supplied. 3. **Task** — a deterministic adapter from record input to the application under test. Keep evaluation logic outside the task. 4. **Evaluators** — named row-level or summary-level metrics. Use deterministic checks for contracts and judges only where semantic evaluation is needed. 5. **Run state** — preserve task errors, evaluator errors, completion state, result rows, and partial failures separately. 6. **Provenance** — include purpose, adapter, skill name/version, project, dataset identity/version, task source, evaluator labels/rubrics, model/configuration, Git revision, and generation timestamp. `expected_output` is optional and must not be synthesized from an observed production output without explicit validation. Distinguish a missing value from an intentionally empty object. Dataset tags must use the backend’s validated `key:value` form where the selected reference requires it. ## Generation workflow ### 1. Resolve purpose and project Derive the purpose and project without guessing across product boundaries. A project is not automatically the same as an `ml_app`, service, dataset, or repository name. Record how each value was resolved. ### 2. Resolve the dataset Support: - inline records; - local JSON or CSV; - a named remote dataset and optional version; and - an explicitly approved trace/annotation export. For local JSON, require a top-level array, validate the selected adapter’s record shape, scrub obvious PII and credential-like values, and report affected record indices. Do not invent canonical or remote record IDs. For CSV, preserve the runtime path and document the dependency. Use the Python CSV column contract from `references/python/python.md`; Node generation must not pretend that a Python-only CSV helper exists. ### 3. Resolve the task Use `--task-source` when provided. Otherwise use the selected language’s bounded application discovery rules: - Python: inspect the resolved app root and rank real callable candidates. - Node: prefer an explicit import/module function and emit a clearly marked placeholder when absent. Never claim that an invented import is wired. Preserve side-effect warnings for network, database, filesystem, environment, or tool calls. ### 4. Select evaluators Select two or three evaluators based on purpose and available signals. Keep labels unique and stable. - Accuracy: exact/near match plus a richer rule or judge when needed. - Tool use: inspect structured tool calls; state the limitation when the task does not expose them. - Structured output: parse and validate the schema. - Retrieval: evaluate groundedness only when retrieved context is available. - Regression: prefer deterministic checks and explicit thresholds. - Exploration: include diagnostics or taxonomy metrics, not only a pass/fail score. Evaluator failures must not become passing values. Summary evaluators must remain distinct from row evaluators. ### 5. Emit the artifact Use the selected adapter reference for the exact generated code. Include: - purpose and project resolution; - dataset source and version; - real task source or a prominent placeholder warning; - evaluator labels and rubrics; - configuration and provenance; - credential instructions without literal secrets; and - a result URL/ID placeholder and next steps. Preserve the historical Python section ordering and evaluator/provider reference behavior when using the Python adapter. ### 6. Validate locally Before presenting the artifact: - Python `.py`: `python -m py_compile <path>`. - Python `.ipynb`: parse JSON and require code/markdown cells. - Node `.mjs`: `node --check <path>`. For every adapter, check for private imports, literal credentials, malformed tags, missing provenance, mismatched dataset versions, fabricated IDs, and task/evaluator errors that were collapsed into false or pass. ### 7. Report completion Use this compact structure: ```text Generated LLM Observability experiment: <adapter>/<format> Path: <path> Purpose: "<purpose>" Project: <project> Dataset: <local path | name>, version=<version or latest> Task: <wired source | placeholder> Evaluators: <labels> Provenance: generated_by=claude-code, adapter=<adapter>, skill=agent-observability-experiment-bootstrap Validation: <commands and pass/fail> Result link: <URL or pending until run> Next steps: 1. Verify the task source and evaluator semantics. 2. Set the credentials required by the selected SDK. 3. Install the selected SDK and run the generated artifact. 4. Review per-row errors before treating metrics as a successful run. ``` ## Safety and uncertainty - Do not modify application source code unless explicitly asked. - Do not write credentials into generated files or artifacts. - Do not publish prompts, outputs, traces, datasets, or evaluations without explicit user approval. - Do not use production data as ground truth without labeling and validation. - Do not retry non-idempotent writes automatically unless the selected SDK explicitly supports it. - On partial publication, preserve IDs and failed rows and provide a reconciliation path. ## Reference maintenance Each adapter reference must identify the public source links and branch used to verify it. Re-check the reference when the SDK version changes. The Python reference uses the public `dd-trace-py` `main` branch; the Node reference uses the public `dd-trace-js` `master` branch. Keep shared workflow guidance here and language-specific syntax in the references. If a detail is only true for one SDK, do not duplicate it in this file. ## Existing references - `references/python/` — Python `ddtrace.llmobs` API, providers, evaluator styles, environment template, and legacy compatibility. - `references/node/` — Node `tracer.llmobs.experiments` API and future Node-specific references. Do not modify `dd-trace-py` or `dd-trace-js` while updating this skill.
From datadog-labs/agent-skills at 9cbd518, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 9cbd518Files
- SKILL.md9.1 KB · edd3948f6d95
- references/
- node/
- nodejs.md6.6 KB · d6ffcd371ba6
- python/
- env_setup_template.py3.5 KB · ad0f34b20f0a
- evaluator-styles/
- class.md1.8 KB · dd741a07f02b
- function.md1.9 KB · 77bdf154e75f
- remote.md1.9 KB · b3443f5bb3ea
- providers/
- anthropic.md1.6 KB · 7ad96bf4f5cf
- bedrock.md2.4 KB · 158ca352577b
- gemini.md2.0 KB · 2271af5b678a
- langchain.md2.4 KB · 63a56a396aec
- litellm.md1.9 KB · bb77e24af5af
- llamaindex.md2.4 KB · 4c6cea844e05
- openai.md1.8 KB · 01d4c09ad751
- python.md27 KB · c9d938ee7965
14 files, 66 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 9cbd518More from Datadog
dd-code-generation
This skill enables agents to interact with Datadog through the pup CLI tool for immediate queries and operations, or generate code for integrating Datadog…
Claude Code, Codex, Cursor +3 · about 4.3K tokens · pinned 6 days ago
dd-file-issue
This skill helps file GitHub issues to the DataDog/pup repository for bugs, feature requests, and documentation problems related to the pup CLI, agents, and…
Claude Code, Codex, Cursor +3 · about 2.2K tokens · pinned 6 days ago
dd-idp
Queries Datadog's Unified Entity Graph to find and connect software services, teams, infrastructure, dependencies, and operational context through read-only…
Claude Code, Codex, Cursor +4 · about 1.8K tokens · pinned 6 days ago
dd-logs
This skill enables agents to search, process, and archive Datadog logs using the pup command-line tool.
Claude Code, Codex, Cursor +4 · about 1.2K tokens · pinned 6 days ago
agent-observability-auto-experiment
Runs a local hill-climb optimization loop to improve code or prompts against real Datadog LLM-Obs evaluation data.
Contains scripts
Claude Code · about 28.4K tokens · pinned 6 days ago
agent-observability-build-eval-from-annotations
Fits an LLM evaluator to human-labeled data by iteratively scoring a judge against the labels, reading its errors, making targeted improvements, and…
Contains scripts
Claude Code, Codex, Cursor +3 · about 12.1K tokens · pinned 6 days ago
Related in Observability
huggingface-trackio
Trackio is an experiment tracking library that logs ML training metrics via Python API, fires structured alerts for diagnostic events, and retrieves logged…
by Hugging FaceOfficial publisher
Claude Code, Codex, Cursor +4 · about 1.2K tokens · pinned 6 days ago
debugging-mwaa-workflow
Diagnoses root causes of Amazon MWAA workflow failures in both Provisioned (Python DAG) and Serverless (YAML) environments using AWS CLI commands and…
by Amazon (AWS)Official publisher
Claude Code, Codex, Cursor +4 · about 2.1K tokens · pinned 6 days ago
sentry-setup-ai-monitoring
Configures Sentry to monitor LLM calls, agent execution, and token consumption across JavaScript, Python, and PHP/Laravel applications.
by SentryOfficial publisher
Claude Code · about 5.3K tokens · pinned 6 days ago
agent-observability-replay-trace
Replay a single production trace against local code changes to test fixes iteratively.
by DatadogOfficial publisher
Contains scripts
Claude Code · about 3.4K tokens · pinned 6 days ago
dd-instrument-llmo
This skill instruments Python or Node.js/Next.js backend projects with Datadog LLM Observability by detecting the runtime and LLM framework, provisioning API…
by DatadogOfficial publisher
Claude Code, Codex, Cursor +4 · about 2.7K tokens · pinned 6 days ago
debugging-executions
Debug workflow execution failures by inspecting failed nodes, re-running executions, and comparing expected versus actual values.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.5K tokens · pinned 6 days ago