48 skills · 409 min
Skills
Skill 6 of 48
Bootstrap a reproducible LLM Observability experiment through the Python ddtrace SDK or the Node dd-trace SDK.
5 minutes · 994 words · 16 sections
Install
npx skills add datadog-labs/agent-skills --skill agent-observability-experiment-bootstrapnpx skills add datadog-labs/agent-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
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.
The installed directory and legacy invocation remain valid:
/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:
--adapter python|node # default: python
--format py|ipynb|mjs # Python: py/ipynb; Node: mjs
--site SITE # otherwise DD_SITE or datadoghq.comDo 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.
Load context in this order:
references/python/python.mdreferences/node/nodejs.mdreferences/python/providers/.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.
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.
Every adapter must represent the following concepts:
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.
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.
Support:
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.
Use --task-source when provided. Otherwise use the selected language’s bounded application discovery rules:
Never claim that an invented import is wired. Preserve side-effect warnings for network, database, filesystem, environment, or tool calls.
Select two or three evaluators based on purpose and available signals. Keep labels unique and stable.
Evaluator failures must not become passing values. Summary evaluators must remain distinct from row evaluators.
Use the selected adapter reference for the exact generated code. Include:
Preserve the historical Python section ordering and evaluator/provider reference behavior when using the Python adapter.
Before presenting the artifact:
.py: python -m py_compile <path>..ipynb: parse JSON and require code/markdown cells..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.
Use this compact structure:
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.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.
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.
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.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 17 September 2026.SKILL.md, not by matching a directory convention. 11 distinct layouts observed: agent-observability/*/SKILL.md, */SKILL.md, dd-apm/k8s-ssi/*/SKILL.md, dd-apm/linux-ssi/*/SKILL.md, dd-apm/*/SKILL.md, dd-apps/*/SKILL.md, dd-audit/*/SKILL.md, dd-browser-sdk/*/SKILL.md, dd-security/csm/*/SKILL.md, dd-software-delivery/*/SKILL.md, SKILL.md (repo root).h1 and no skipped levels:/datadog-labs/agent-skills.md, and each skill at its own .md URL.13 files · 55 KB
Everything this skill ships beside its prose. All of it is set here, as subchapters of skill 6.
Documentation the agent loads on demand, rather than up front.
references/node/1 file · 6 KB
references/python/2 files · 29 KB
references/python/evaluator-styles/3 files · 6 KB
references/python/providers/7 files · 14 KB