/agent-skills:dd-nebius-agent-fleet-installation-on-clustersfrom agent-skills
Installs the Datadog Agent fleet on Nebius Managed Kubernetes clusters via a managed install rule, enabling container monitoring and APM telemetry without per-cluster Helm setup.
Ships in agent-skills. 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; scripts run unread.
Datadog installs and manages the Agent on the tenant's Managed Kubernetes
(mk8s) clusters: the Datadog Operator in a datadog-managed namespace
deploys the Agent on every Linux node and the Cluster Agent, keeps them
current, and covers clusters that start matching the rule later. Nothing is
installed until a rule exists, and clusters that already run a Datadog
installation are reported, never changed.
The skill's job ends when the rule exists. From there Datadog's own server-side Operator rollout installs the fleet: this skill does not wait for rollout, push configuration, or verify telemetry.
Scope. Container monitoring and APM are enabled by default on an installed Agent. Private API endpoints are not supported. Do not enable other Datadog features (log collection, CWS, SBOM, profiling) unless the user explicitly asks.
These prerequisites must be in place before any setup step runs.
Datadog credentials and org — locked in before anything else. Every later step (integration detection, rule lookup, rule write) is org-scoped, and a wrong org yields a confidently wrong answer instead of an error. Nothing else in this skill runs — not even read-only discovery — until the Datadog org and site are locked:
<SKILL_DIR>/scripts/dd-env.sh in the same shell as every
script invocation: it loads DD_SITE / DD_API_KEY / DD_APP_KEY
from the environment (exported values win) falling back to
.env.local / .env, defaults DD_SITE to datadoghq.com, and
prints the resolved state — set/unset only, never key values.datadog_session.env_keys in the output, with
env_keys_wrong_site / env_keys_wrong_org /
env_keys_org_unresolved warnings when the pair cannot work for a
keyed write on this session). Confirm the org with the user once.The Nebius CLI (nebius). Installed and authenticated, with a profile
whose tenant and project cover the clusters. Check command -v nebius; if
it is missing, follow the install and authentication steps in the
dd-nebius-integration skill's preflight: install with
curl -sSL https://artifacts.nebius.cloud/cli/install.sh | bash (ask
before running), reload the shell, then have the user run
nebius profile create interactively in their own terminal and choose the
tenant and project.
Pup. Required and authenticated on the site dd-env.sh resolved.
Exported DD_API_KEY and DD_APP_KEY replace only rule-write
authentication; preflight and discovery still require Pup. Check:
DD_SITE="${DD_SITE:-datadoghq.com}" pup auth status
The only scope this flow asks for beyond Pup's normal set is
agent_install_write, which lets rule writes ride the session token.
If the script reports a scope error (pup_scopes_missing or
pup_scopes_missing_for_key_minting), ask before running the login
command in the error's remediation — it names the exact scopes, and
--extra-scopes adds to Pup's normal set (never --scopes, which
replaces it). Run every Pup login on the resolved site
(DD_SITE='<site>' pup auth login ...): a login on Pup's default site
locks the token into the wrong org.
Python 3, for the scripts:
command -v python3 || echo "MISSING python3"
With the prerequisites in place, run the read-only discovery, which validates Pup scopes, the Nebius profile, the provider's agent-fleet availability for this organization, the integrated account, its existing install rule, and the tenant's clusters, and lists the organization's API keys:
python3 <SKILL_DIR>/scripts/setup.py
Preview. Agent fleet installation on Nebius is in preview. When the
script reports a preview error (mci_not_enabled or preview_feature),
relay this message verbatim and stop — do not guess at another cause or
suggest a workaround:
This is a preview feature. Please reach out to Datadog support for early access.
The script is non-interactive and makes no changes in this mode. Every
failure is emitted as structured JSON: error.reason is the code,
error.message says what happened, and error.details.remediation (when
present) says what to do, with details, stderr, and command carrying
the evidence. Relay the message and the remediation verbatim, follow the
remediation, and ask the user before any login or destructive command —
do not re-derive or re-explain the cause yourself. Two things are policy,
not script output:
mci_not_enabled or preview_feature, relay the message
above verbatim and stop — never guess at a cause or workaround.DD_API_KEY/DD_APP_KEY themselves.If an error carries no remediation, its message and details say what to
fix; for a missing, unknown, or conflicting rule or cluster during an
update, rerun discovery and use the ids it reports. rule_coverage_mismatch
is the one error whose fix is a flow, not a command: make the update
through Change an existing rule so it is
previewed and approved first.
Report the discovery to the user as a table built straight from the
script's JSON: the tenancy (account name and tenant id), datadog_session
(site, org, env_keys), each cluster (name, id, region, status, labels,
node-group health), the existing rule and its rule_coverage, the
required cloud role, the API keys, and every warning with its message.
Relay the script's fields and warnings verbatim — they already say what
each means, so do not re-derive or re-explain them.
no_isolating_query, in which case tell the
user to add a unique label to those clusters (for example
datadog-managed:true) and rerun. When the tenancy has more clusters
than the question tool can show, rely on the tool's built-in Other
choice for unlisted clusters — never add a custom "Other — type X"
option, which renders with no place to type and returns an empty value.When discovery reports an existing_rule, still ask — the local cluster
list may be incomplete, and the rule's current coverage may not match the
intent. One lean question —
Which clusters should the Agent fleet rule cover? — with the content in
the options:
TAG:VALUE
next; every matching cluster, future ones included, is covered. This
replaces the existing rule: the install would stop with
rule_coverage_mismatch, so with the user's approval remove the old
rule with --remove-rule <RULE_ID> first and rerun with
--query "<TAG:VALUE>" to create the new one.For a new rule (or the replacement after --remove-rule), use the
interactive question tool once for approval:
Title: Approve Nebius agent fleet installation
Question: `Please confirm your Datadog Agent Remote Installation Selection:
when the selection was all clusters, orOnly clusters matching the tag query TAG:VALUE — today (); clusters that start matching later are covered automatically` when specific clusters or a custom query were chosen (name the isolating tag, or the cluster names when isolated by name).Datadog will create one install rule for the tenancy: the Datadog Operator in a datadog-managed namespace deploys the Agent on every Linux node and a Cluster Agent. Clusters that already run a Datadog installation are reported, not changed.`
Approve option: Approve and install the Agent fleet
Cancel option: Cancel without making changes
After permission, create the rule. Source dd-env.sh in the same shell
as the invocation (shells do not persist exports between commands):
source <SKILL_DIR>/scripts/dd-env.sh
python3 <SKILL_DIR>/scripts/setup.py --install \
--api-key-name "<API_KEY_NAME>"
Add --clusters "<COMMA_SEPARATED_IDS>" when specific clusters were
selected, or --query "<LABEL:VALUE>" when the user supplied their own
query. Creating the rule is the end of the skill's work: Datadog's
server-side Operator rollout installs and manages the fleet from there.
This script does not wait for rollout, push configuration, or verify
telemetry.
Read the final JSON and report the rule id, the rule's query, and the
clusters it covers. Tell the user plainly that Datadog now rolls the
Operator out to those clusters itself, that clusters can take a few
minutes to appear, and that they can follow progress in Fleet Automation
or with python3 <SKILL_DIR>/scripts/setup.py --status <RULE_ID>
(read-only). Do not poll in the conversation.
Script errors follow the Phase 0 handling: relay the JSON and its
remediation, asking before any login or destructive command. A
rule_coverage_mismatch means the change goes through
Change an existing rule.
Reached when the user picks Other (cluster names) in the coverage
question above. Show the rule's rule_coverage table (Phase 0), then use
one interactive question form:
Preview the change without writing anything:
python3 <SKILL_DIR>/scripts/setup.py --update-rule <RULE_ID> \
--add-clusters "<IDS>" --remove-clusters "<IDS>" --dry-run
Pass only the flags with a selection. A no_change status means every
selected cluster is already where the user wants it (see unchanged);
report that and stop. Otherwise use the interactive question tool once
for approval:
Title: Approve install rule change
Question: `Please confirm the change to the Datadog Agent install rule:
Clusters that match the rule's labels later are still covered automatically.`
Approve option: Approve and update the rule
Cancel option: Cancel without making changes
After permission, run the same command without --dry-run:
python3 <SKILL_DIR>/scripts/setup.py --update-rule <RULE_ID> \
--add-clusters "<IDS>" --remove-clusters "<IDS>"
Report added, removed, and the rule's new query_after, plus all
warnings. Datadog installs the Agent on added clusters and uninstalls it
from removed ones itself; nothing is pushed or verified here. Follow
progress in Fleet Automation or with --status <RULE_ID> (read-only).
Script errors follow the Phase 0 handling: relay the JSON and its remediation, asking before any login or destructive command.
agent_install_write;
otherwise it resolves the rule-write pair itself: exported
DD_API_KEY/DD_APP_KEY when present, otherwise one-shot keys minted
through Pup and deleted after the write — the values never transit the
conversation, stdout, or the emitted JSON.python3 <SKILL_DIR>/scripts/setup.py --remove-rule <RULE_ID> with the
user's approval. Datadog then removes the Operator, Agent, Cluster
Agent, CRDs, cluster role, and admission webhooks, leaving only a small
datadog-operator-lock Lease in datadog-managed. To only follow
progress, use --status <RULE_ID> (read-only).pup auth refresh; if that fails, pup auth login with the scopes from the prerequisites.Datadog rolls the Operator out to the rule's clusters on its own. The
skill's work is done at that point: it does not wait for rollout, push
configuration, or check that telemetry arrives. Point the user at Fleet
Automation (or --status <RULE_ID>) to follow progress, and suggest
concrete next steps in a sentence each, for example:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub datadog-labs/agent-skills --plugin agent-skills78 skills in this plugin
/agent-observability-auto-experimentRun an iterative code-improvement hill-climb against real Datadog LLM-Obs data, locally, with Claude Code as the agent. Establishes a baseline eval, makes one focused change, re-scores both splits with the same harness, keeps the change when held-out test improves without overfitting val (labeling within-noise gains tentative), and repeats. This is the skill published as "Autoresearch" in Datadog Agent Observability. Use when the user says "run an auto experiment", "run autoresearch", "hill-climb this code", "iteratively improve X and measure the delta", "optimize this code/agent/pipeline/prompt against my traces", "auto-optimize against LLM-Obs", or wants the local equivalent of the auto_experiments worker. Works from an ml_app, a dataset_id, an annotation_queue_id (a queue of human-labelled interactions), a list of trace_ids, or (by exception) a local dataset file. The corpus and its val/test splits live in Datadog LLM-Obs Datasets, created once per run with a timestamp in their names./agent-observability-build-eval-from-annotationsFit a Datadog LLM-Obs evaluator to human labels. Takes an annotation queue, works out where in the trace the labelled property actually lives, drafts an LLM-judge that predicts the human label, scores that judge against the already-labelled rows with a metric agreed with the user, then hill-climbs it — inspect the errors, make one focused change, re-score, keep it only if it beats the best — for a bounded number of iterations, and finally publishes the winner to Datadog as a DISABLED evaluator (not a Datadog draft — a real evaluator with `enabled: false`). Use when the user says "build an eval from my annotations", "build an evaluator from the annotation queue", "turn my annotations into an evaluator", "learn an evaluator from my labels", "fit a judge to the annotation queue", "auto-label", "auto labelling", "automate this annotation queue", "scale up my human labels", or wants the rest of a queue graded the way the humans graded the first rows. Needs an annotation queue with at least two classes present in the human labels (e.g. one true and one false for a boolean)./agent-observability-eval-bootstrapBootstrap evaluators from production traces — by default propose online LLM-judge evaluators and, after you confirm, create them in Datadog as disabled drafts (never auto-enabled); on request emit Python SDK code or a framework-agnostic JSON spec instead. Use when user says "bootstrap evaluators", "generate evaluators", "create evals from traces", "eval bootstrap", "write evaluators", "build eval suite", "publish evaluators", or wants to generate BaseEvaluator/LLMJudge code or online judge configs from production LLM trace data. Works with ml_app and optional RCA report or failure hypothesis./agent-observability-eval-pipelineEnd-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`, `agent-observability-experiment-bootstrap`, `agent-observability-experiment-analyzer`). Use when user says "run the eval pipeline", "go from traces to evals", "bootstrap evals end to end", "classify then RCA then bootstrap", "build an eval set from scratch", "onboard me to datasets and experiments", "walk me through experiments", "I have an ml_app, now what", "Agent Observability onboarding", "guided experiment setup", "from traces to experiments", or wants a deterministic, narrated tour from production data through evaluators, datasets, and experiments. Stop early with `--stop-after <phase>` to short-circuit at evaluators or dataset, or resume mid-flow with `--start-at <phase>`./agent-observability-experiment-analyzerAnalyze LLM experiment results. Handles single or comparative experiments, exploratory or Q&A modes. Use when user says "analyze experiment", "compare experiments", "analyze against baseline", or provides one or two experiment IDs for analysis./agent-observability-experiment-bootstrapBootstrap 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.Other plugins' skills for the same job