eli0shin/.dotfiles/datadog-observability

Claude Code and agent skill by eli0shin/.dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Route Datadog observability tasks between pup-datadog-cli and datadog-mcp. Use this first when the user asks about Datadog and it is not obvious whether the stable pup CLI or the Datadog MCP discovery/enrichment layer is the right tool.

Install

npx vskill@latest install eli0shin/.dotfiles/datadog-observability

SKILL.md

Datadog Observability Router

Use this skill first for Datadog work when tool choice is unclear. It routes between:

  • pup-datadog-cli: stable, scriptable Datadog API CLI
  • datadog-mcp: Datadog MCP discovery/enrichment/validation layer

Default rule

  • Known query/resource + repeatable command → use pup-datadog-cli.
  • Discovery/enrichment/validation/investigation helper → use datadog-mcp.
  • Exploration first, then runbook → use datadog-mcp to discover, then translate final query to pup.

Route to pup-datadog-cli

Use pup when the user asks for:

  • metrics query with known metric/tags
  • logs/traces/RUM search or aggregation with known fields
  • monitors/dashboards/SLOs/notebooks listed or fetched by known filters/IDs
  • APM service stats, operations, dependencies, or flow maps using known env/service
  • commands that should be pasted into a terminal, script, CI job, or runbook
  • stable JSON/table/yaml/csv output and jq processing
  • notebook CRUD/writing flows

Load pup-datadog-cli/SKILL.md, then the relevant detail doc.

Examples:

bash
pup metrics query --query='avg:system.cpu.user{env:prod} by {host}' --from=1h
pup traces aggregate --query='service:api' --compute='count' --group-by='@http.status_code' --from=1h
pup --no-agent monitors list --tags='team:payments' --output=json

Important: use pup --no-agent for scripts/runbooks/CI so output shape matches a normal user shell.

Route to datadog-mcp

Use Datadog MCP when the user asks for:

  • “what tags does this metric have?”
  • “what span/log/RUM attributes exist?”
  • “find related dashboards/monitors/SLOs/notebooks for this metric”
  • DDSQL schema discovery, SQL querying, saved DDSQL queries, DDSQL UI links
  • Kubernetes resource state, manifests, or describes without local kubeconfig
  • error tracking issues
  • incidents, service catalog-ish search, service dependencies
  • monitor templates, coverage, threshold recommendation, message generation, validation
  • dashboard widget rendering or ad-hoc visualization
  • notebook cell validation
  • Datadog MCP skills/guidance

Load datadog-mcp/SKILL.md.

Examples:

bash
../datadog-mcp/scripts/datadog-mcp get-datadog-metric-context \
--metric-name trace.http.request.duration \
--include-tag-values \
--scope-tags '["env:prod"]' \
--telemetry '{}'
../datadog-mcp/scripts/datadog-mcp search-datadog-spans \
--query 'service:api' \
--custom-attributes '["*"]' \
--from now-1h \
--max-tokens 20000 \
--telemetry '{}'

Common routing decisions

User asksUseWhy
Query avg:system.cpu.user{env:prod}pupKnown metric query
Find available tags for system.cpu.userdatadog-mcpMetric context/tag discovery
Count traces by @http.status_codepupKnown span facet aggregation
Discover span attributes for a servicedatadog-mcpAttribute discovery via sampled spans
Search logs for errorspup if query known; MCP if discovering fieldsDepends on certainty
Count/group logspup or MCP aggregate/analyze; never raw fetch + local countAggregation first
Inspect crashing pods across clustersdatadog-mcpK8s resource search/describe via Datadog
Create a runbook commandpupStable CLI and --no-agent
Validate a monitor JSONdatadog-mcpDedicated validation tool
Write/update notebookpupExisting pup notebook writing support
Validate notebook cellsdatadog-mcpDedicated cell validation
Find dashboards using a metricdatadog-mcpRelated assets from metric context
Fetch dashboard by IDpup if simple; MCP if widget/rendering neededDepends on follow-up

Mixed workflow templates

Discover metric tags, then write a reusable query
  1. Use MCP:
bash
../datadog-mcp/scripts/datadog-mcp get-datadog-metric-context \
--metric-name '<metric>' \
--include-tag-values \
--scope-tags '["env:prod"]' \
--telemetry '{}'
  1. Use pup for the final repeatable command:
bash
pup metrics query --query='avg:<metric>{env:prod} by {service}' --from=1h
Discover span attributes, then aggregate reliably
  1. Use MCP:
bash
../datadog-mcp/scripts/datadog-mcp search-datadog-spans \
--query 'service:<service>' \
--custom-attributes '["*"]' \
--from now-1h \
--max-tokens 20000 \
--telemetry '{}'
  1. Use pup:
bash
pup traces aggregate --query='service:<service>' --compute='count' --group-by='@candidate.attribute' --from=1h

Anti-patterns

  • Do not use MCP as a runbook output format if pup can express the final known query.
  • Do not use pup to brute-force discover unknown attributes by fetching huge raw datasets.
  • Do not omit time ranges.
  • Do not write scripts with agent-mode pup output; include --no-agent.
  • Do not use broad wildcard MCP discovery (["*"]) over wide time ranges.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/eli0shin/.dotfiles/datadog-observability/badge)](https://verified-skill.com/skills/eli0shin/.dotfiles/datadog-observability)

Something wrong with this skill or its page? Tell us.