# datadog-cli

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

- skill · `type=skill` · Claude Code · 100 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/datadog-cli
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/datadog-cli

## What it 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.

## Requirements
- Works with: Datadog

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill ai-research/datadog-cli
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill datadog-cli -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/datadog-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/datadog-cli/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/datadog-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/datadog-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates datadog-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/datadog-cli/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/datadog-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/datadog-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/ai-research/datadog-cli

## When to use it
- 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
- 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.

## Similar
- [wizard](https://affpapa.org/en/nevibecode/skills/wizard.md) — skill · 553369 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [setup-pre-commit](https://affpapa.org/en/nevibecode/skills/setup-pre-commit.md) — skill · 489289 installs
- [using-git-worktrees](https://affpapa.org/en/nevibecode/skills/using-git-worktrees.md) — skill · 217153 installs
- [finishing-a-development-branch](https://affpapa.org/en/nevibecode/skills/finishing-a-development-branch.md) — skill · 214439 installs
- [orca-cli](https://affpapa.org/en/nevibecode/skills/orca-cli.md) — skill · 354000 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
