/agent-skills:dd-instrument-shipdogfrom agent-skills
Sets up Datadog Shipdog for a backend service: configures traces, logs, and Live Debugger (logpoints) in agentless mode for Python or Node.js. Use when onboarding to Shipdog or fixing Live Debugger issues.
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.
Shipdog gives a team traces, logs, and Live Debugger for their backend. This skill sets up one service for it. Today that means Python or Node.js in agentless mode: the tracer sends straight to Datadog with no Agent (Node.js, Python).
Live Debugger is the only Dynamic Instrumentation feature in scope. Its tracer switch is DD_DYNAMIC_INSTRUMENTATION_ENABLED (step 2); don't set up other Dynamic Instrumentation probes or suggest them in the report.
DD_SITE is ddog-gov.com or us2.ddog-gov.com, stop before editing anything: reply Not set up: Shipdog isn't available on <site>.ddtrace/dd-trace, keep that load and fix its version and settings, so the tracer's settings come from one place.node_modules/ and virtualenvs in .gitignore.dd-instrument-rum) for the frontend.dd-git-tagging skill. If it isn't installed, stop before editing anything: reply Not set up: dd-instrument-shipdog needs the dd-git-tagging skill installed alongside it. Don't set Git metadata any other way.Live Debugger places logpoints by file and line, so Datadog must see the service's source. Source code integration has two halves: connecting the Git provider to Datadog (dd-github-onboarding for GitHub, now), and tagging the service's telemetry with the commit (dd-git-tagging, in step 2). For a GitHub repo, run dd-github-onboarding if it's available; it checks whether GitHub is already connected. Without it, or for another provider, tell the user to connect it under Integrations in Datadog and continue. Say in the report which happened.
Runtime: requirements.txt/pyproject.toml/Pipfile → Python, read references/python.md. package.json with a server entrypoint → Node.js, read references/nodejs.md. Anything else (Java, Go, Ruby, .NET, PHP, Bun, Deno, browser code): say this skill covers only Python and Node.js, and stop. Several services: ask which one.
Launch commands: every place the service starts (scripts.start, Procfile, Dockerfile CMD, compose, Kubernetes, a gunicorn/uvicorn command). Each one gets the tracer.
Agent: decide this yourself; don't ask. Grep the project for DD_AGENT_HOST, DD_TRACE_AGENT_URL, DD_TRACE_AGENT_PORT, a datadog/agent image, or a Datadog Helm chart, and run curl -s -m 2 http://localhost:8126/info.
curl its /info at the configured host and port. If it answers and its endpoints include /v0.7/config and a /debugger/ path, keep the Agent: set everything in step 2 except DD_AGENTLESS_ENABLED, log submission, and DD_API_KEY (the Agent holds the key), then verify as usual. Missing logs here mean the Agent's log collection is off; report that as a follow-up. If the Agent doesn't answer or lacks those endpoints, Agent repair is out of scope: report what you found and stop.Logging library: Node.js winston/pino/bunyan or only console.log; Python logging/structlog, loguru, or only print.
Existing values of the variables in step 2. Reuse them.
MCP tools: if discover_datadog_logpoint isn't in your tool list, run the dd-coding-agent-mcp skill now with Shipdog's toolsets (below). If that skill isn't installed, or there's no local coding agent whose MCP config you can change, don't set up MCP yourself: finish the setup, verify with No MCP tools, and add a warning to the report's follow-ups (Warning: the dd-coding-agent-mcp skill is missing, so the Datadog MCP tools weren't connected. Install it from https://github.com/datadog-labs/agent-skills and rerun., or say no local coding agent could be configured). The user's reload and sign-in can happen while you edit; don't wait on them. If the tools still aren't there by step 4, verify with No MCP tools below and list the steps that skill reported as a follow-up. Missing tools never stop the setup.
| Shipdog product | Toolset |
|---|---|
| Logs search and verification | core |
| Traces | apm |
| Errors from the service | error-tracking |
| Live Debugger logpoints and snapshots | live-debugger |
Ask for all four: core,apm,error-tracking,live-debugger.
Set these where the service's runtime environment is defined (Dockerfile ENV, compose, Kubernetes, platform config). With no deploy config, put them in the launch command itself; the language file shows how.
| Variable | Value |
|---|---|
DD_AGENTLESS_ENABLED | true: send straight to Datadog, no Agent |
DD_DYNAMIC_INSTRUMENTATION_ENABLED | true: Live Debugger on from startup (the tracer reads this one setting for it) |
| Log submission | Node.js DD_AGENTLESS_LOG_SUBMISSION_ENABLED=true; Python: the OpenTelemetry log settings in python.md |
DD_SITE | the org's site, such as datadoghq.com or datadoghq.eu; see API key and site |
DD_SERVICE | package or project name, lowercase with hyphens |
DD_ENV | dev unless one exists (see redaction below) |
DD_VERSION | the app's version field, else the short commit SHA set at build time |
DD_API_KEY | secret; see API key and site |
Git metadata ties telemetry and logpoints to source. Run the dd-git-tagging skill with DD_SERVICE and DD_ENV. Until the service runs, its check reports no_spans, so do its inspect and configure steps now, in the same files as the variables above, and its confirm step during step 4.
API key and site: this skill doesn't create accounts or keys. Reuse DD_API_KEY and DD_SITE from the environment, an env file, or deploy secrets. If either is missing, run the dd-account-setup skill first (the onboarding orchestrator already does), or ask the user for them. For local runs, keep the key in the first existing of .env.local, .env.development.local, .env.development, .env (create .env if none), and make sure that file is gitignored. The launch examples in the language files load .env; if you used another file, point the launch command at that one. Keep only secrets there; everything else goes in committed config so a fresh clone starts. For deploys, tell the user to add the key to their platform's secret store and reference it by name.
Redaction: Shipdog orgs show variable values by default. Other orgs redact all but numbers and booleans in environments not named like pre-production (dev, staging, test, qa), and the MCP tools refuse logpoints there. Never rename a real production env to dodge it; tell the user someone with live_debugger_redaction_write can switch it to Targeted mode on the Live Debugger settings page.
Then follow the language file.
Start the service with the edited launch command and leave it running. Hit an endpoint every few seconds through step 4: Live Debugger sees a service only after the tracer reports it, up to a minute after the first request.
Logpoint (Datadog MCP; without the tools, skip to No MCP tools):
create_debugger_session (session_name: "Shipdog setup check"). Keep session_id.discover_datadog_logpoint with service_name = DD_SERVICE. If the service is missing or not enabled, send requests, wait 30 seconds, retry up to three times.create_datadog_logpoint with service_name and environment as discover returned them, file_path relative to the repo root, the session_id, a purpose, and a message_template interpolating one variable in scope. Python: logpoint_type: method with method_name when discover lists method_logpoints. Node.js: line with an executable line_number inside the handler. A "not reported active yet" warning is normal. On an error, call list_datadog_session_logpoints before retrying: the logpoint may exist anyway.list_datadog_session_logpoints until the status is active and last_fired_at is set (up to two minutes).logs_query through search_datadog_logs (last 15 minutes, extra_fields: ["event_id"], without which ids are omitted). Pass an event id (starts with AwAA) to get_datadog_debugger_snapshot and confirm variable values. No log search tool: give the user the logs_url and treat last_fired_at as the pass.disable_datadog_logpoints with the session_id.Logs: make the app log a line, then search_datadog_logs for service:<DD_SERVICE> -source:dd_debugger (snapshots are logs too). A line should appear within a couple of minutes. None, and the app only uses console.log/print: expected, report it as a follow-up.
Git metadata: run dd-git-tagging's confirm step. The skill must be installed (see Rules), but spans that are still untagged don't fail the setup, since logpoints still work by file path; report it as a follow-up.
| Error says | Do |
|---|---|
| MCP write is not enabled | An org admin turns it on under Organization Settings → MCP Server. Stop and report. |
| Remote Configuration is not currently available | An org admin enables it under Organization Settings → Remote Configuration. Stop and report. |
missing permission (live_debugger_write, mcp_write) | Report it. Stop. |
| strict redaction mode | See Redaction. Stop and report. |
| service not found / no instances | Recheck that the variables reach the process, the key, and the site. Send more requests. |
No MCP tools: you can't place a logpoint yourself; there's no public API for it. Count the setup as a soft success and don't wait on the user. Put these verification steps in the report:
Open Live Debugger in Datadog, start a Debug Session on the service and env, add a logpoint on the handler, send a request, and look for a snapshot with variable values.
You can still confirm that traces and logs arrive through the public API, with DD_API_KEY and an application key in DD_APP_KEY; never print either. dd-account-setup can leave DD_APP_KEY unset after an OAuth sign-in; if it's missing, skip these checks. Use Search logs with service:<DD_SERVICE> -source:dd_debugger for app logs, and Search spans (/api/v2/spans/events/search, body wrapped as {"data":{"type":"search_request","attributes":{...}}}) for traces:
printf 'DD-API-KEY: %s\nDD-APPLICATION-KEY: %s\n' "$DD_API_KEY" "$DD_APP_KEY" | \
curl -s -X POST "https://api.$DD_SITE/api/v2/logs/events/search" -H @- -H "Content-Type: application/json" \
-d '{"filter":{"query":"service:<DD_SERVICE> -source:dd_debugger","from":"now-15m"},"page":{"limit":5}}'
Lead the report with Set up, not verified in Datadog: the Live Debugger MCP tools aren't connected., then what the API confirmed and the steps above.
Write for someone new to Datadog, in plain language. Never include the key.
Verified: ledger-api (env dev) sends logs to Datadog; Live Debugger captured a snapshot showing items, discount, subtotal. On failure: Not verified: <step> failed with "<error>". <What to do>.DD_API_KEY to deploy secrets, or moving console.log/print onto a logging library.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
78 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).npx claudepluginhub datadog-labs/agent-skills --plugin agent-skillsOther plugins' skills for the same job