Skip to main content
skill

datadog-cli — Claude Code skill: what it does, how to install

Enables Claude Code to query logs and inspect metrics directly via Datadog CLI during incident triage.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill ai-research/datadog-cli
Open on GitHub

What datadog-cli does

This skill guides Claude Code to run @leoflores/datadog-cli commands through npx. The agent can search log streams, aggregate facets, group error patterns, and inspect distributed traces.

The tool also handles timeseries metric checks and dashboard updates. Non-US regions can be targeted with the --site flag, such as datadoghq.eu. Output can be exported into a JSON file or formatted with --pretty.

Without valid DD_API_KEY and DD_APP_KEY environment variables, the CLI cannot authenticate against Datadog. Node.js must be installed to run the underlying commands.

What it helps with

  • search recent error logs for a specific service
  • correlate log entries around a distributed trace ID
  • compare error counts across two time periods
  • query timeseries system metrics
  • cluster recurring log messages into patterns

Example prompts for the agent

  • Search for recent API service errors from the past hour using datadog-cli.
  • Compare error log volume between the current hour and the previous one.
  • Find logs associated with trace ID abc123def456 and show the context.

How to install datadog-cli

1claude-code-templates

npx claude-code-templates@latest --skill ai-research/datadog-cli

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill datadog-cli -a claude-code

3Manually: put the files in place

~/.claude/skills/datadog-cli/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/datadog-cli/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about datadog-cli

How to install datadog-cli in Claude Code?

Run npx claude-code-templates@latest --skill ai-research/datadog-cli or npx skills add davila7/claude-code-templates --skill datadog-cli -a claude-code. Alternatively, copy the skill definition to ~/.claude/skills/datadog-cli/SKILL.md.

What does the datadog-cli skill do?

It gives the agent instructions to execute Datadog queries using npx @leoflores/datadog-cli. Claude Code can triage production issues, inspect metrics, and analyze traces inside the terminal.

What credentials are required for datadog-cli?

Set the DD_API_KEY and DD_APP_KEY environment variables in your shell. If your organization is on an EU site, pass --site datadoghq.eu to your queries.

Similar skills

All skills for DevOps and infrastructure →

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor