/agent-skills:dd-profiler-setupfrom agent-skills
Sets up Datadog Continuous Profiler for a service: detects language and deployment, adds SDK profiling settings for Java, Python, Go, Ruby, Node.js, .NET, or PHP, and verifies profiles arrive.
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.
Enable Continuous Profiler for one service in the current repository. The profiler ships inside the Datadog SDK (tracer) for each language. It is not enabled by default when APM is installed; it must be turned on explicitly.
Do not instrument other products (logs, RUM, LLM Observability) and do not change tracing configuration beyond what profiling needs.
Optional, taken from the user's request (for example "set up the profiler for my Java service"):
| Input | Values | Effect |
|---|---|---|
language | java, python, go, ruby, nodejs, dotnet, php | Skips language detection and loads that language's reference file in Step 4. Still verify against project files and warn if they disagree. |
runtime | Java: jvm (default) or graalvm. .NET: linux, windows, iis, azure-app-service, nuget. Any language: ssi, kubernetes, docker, host for the deployment target | Selects the install and enablement variant instead of inferring it. |
When neither is given, detect them in Step 1. When the repo contains several languages, ask which service to profile.
Resolve these from the repo. Ask the user only for what cannot be found.
| Variable | How to find it |
|---|---|
LANGUAGE / runtime version (skip if given as an input) | pom.xml, build.gradle*, requirements.txt, pyproject.toml, go.mod, Gemfile, package.json, *.csproj, composer.json |
SERVICE_NAME | Existing DD_SERVICE / -Ddd.service / service: tag; otherwise the app or repo name. Confirm with the user. |
ENV | Existing DD_ENV; otherwise ask (for example staging, prod). |
DEPLOYMENT | Dockerfile, docker-compose*.yml, Kubernetes manifests or Helm values, systemd units, Procfile, serverless config |
| Existing Datadog setup | Search for ddtrace, dd-java-agent, dd-trace, dd-trace-go, datadog gem, Datadog.Trace, datadog-setup.php, DD_AGENT_HOST, DD_PROFILING_ENABLED |
AGENT | Whether a Datadog Agent is reachable (see Step 2) |
APP_URL | The Datadog web app URL for the user's site. Take DD_SITE from the repo or environment (for example datadoghq.eu) and map it with the Datadog sites table (US1 https://app.datadoghq.com, EU1 https://app.datadoghq.eu, US3 https://us3.datadoghq.com, and so on). If the site is unknown, ask the user. Never assume US1. |
If the repo contains several services, ask which one to profile.
Unsupported targets. Stop and tell the user if:
Runtime minimums.
| Language | Minimum runtime | Notes |
|---|---|---|
| Java | JDK 8+ (Linux: 8u352+, 11.0.17+, 17.0.5+, 21+ for OpenJDK) | JDK 11+ recommended for allocation and live heap profiles |
| Python | 2.7+ (3.6+ recommended) | Needs pip 18+ |
| Go | One of the latest two major Go releases | |
| Ruby | 2.5+ (3.2.3+ recommended) | |
| Node.js | 18+ | |
| .NET | .NET Core 2.1+, .NET 5+, .NET Framework 4.6.1+ | .NET 7+ recommended |
| PHP | 7.1+ on 64-bit Linux | PHP debug builds unsupported; Alpine needs 3.13+ and apk add libgcc |
C, C++, and Rust use the ddprof profiler and are out of scope for this skill; point to https://docs.datadoghq.com/profiler/enabling/?prog_lang=c.
Datadog Agent. The profiler sends data to a Datadog Agent (v7+ recommended, v6+ supported) with APM enabled, which listens on port 8126 by default. Check how the service reaches the Agent (DD_AGENT_HOST, Kubernetes Agent DaemonSet, sidecar, host Agent). If no Agent is configured anywhere, tell the user an Agent is required and link <APP_URL>/account/settings/agent/latest. Do not install the Agent unless the user asks.
DD_PROFILING_ENABLED=auto set on the installation (host: next to DD_APM_INSTRUMENTATION_ENABLED in the install command; Helm: datadog.profiling.enabled: auto, chart 3.71.0+, Agent 7.57.0+; Operator: DD_ADMISSION_CONTROLLER_AUTO_INSTRUMENTATION_PROFILING_ENABLED=auto on the Cluster Agent). This is a Preview feature. See https://docs.datadoghq.com/profiler/enabling/ssi/. Per-process, DD_PROFILING_ENABLED=true also works. Running processes are not affected until restarted. For systemd services on a host, add EnvironmentFile=/etc/environment to the unit.Show the user the planned file changes and get a yes before editing anything.
Set DD_SERVICE, DD_ENV, and DD_VERSION on every service so profiles link to traces and deployments. Use the project's existing mechanism for environment variables (Dockerfile ENV, compose, manifests, .env files already used by the app, systemd unit).
Read only the reference file for the detected language and follow it. Do not proceed from memory.
| Language | Reference |
|---|---|
| Java | references/java.md |
| Python | references/python.md |
| Go | references/go.md |
| Ruby | references/ruby.md |
| Node.js | references/nodejs.md |
| .NET | references/dotnet.md |
| PHP | references/php.md |
Offer, do not apply without asking:
<APP_URL>/profiling filtered by service:<SERVICE_NAME> env:<ENV>.pup or Datadog MCP tools are available, check that profiles exist for the service. Otherwise ask the user to confirm in the UI.DD_PROFILING_ENABLED is present in the running process's environment (not just in the repo).DD_TRACE_DEBUG=true, then search for profiler errors).End with a summary: service, env, files changed, settings added, anything the user must still do (deploy, restart, Agent setup), and the profiling link to check.
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).Other plugins' skills for the same job