agentleFS
alanalvestechalanalvestech/hitank/skills/datadog/SKILL.md

datadog

Skill38 starsChanged 8 months agoMITView on GitHub

Monitor infrastructure, query metrics, manage monitors and events via Datadog API

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kubernetes, docker and 3 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mjunaidcaSkill

    kubernetes

    Production-grade Kubernetes manifests and debugging for containerized applications. This skill should be used when users ask to deploy to Kubernetes, create K8s manifests, containerize for K8s, set up Deployments/Services/Jobs/StatefulSets/CronJobs, create namespaces with resource quotas, set up multi-team isolation, configure ResourceQuota/ LimitRange, secure with RBAC (ServiceAccount, Role, RoleBinding), configure init containers (model download, db wait, migrations), set up sidecars (logging, metrics), or debug pods (CrashLoopBackOff, logs, exec, describe, events). Auto-detects from Dockerfile/code, generates hardened manifests with educational comments. CKAD-aligned.

    Also in 3 projects that use this

  • wrsmith108Skill

    docker

    Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request.

    Also in 3 projects that use this

  • NVIDIASkill

    github

    Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the output is OK, proceed to the Flow section.

    line 35
  2. Very specific:

    If the output is SETUP_NEEDED, guide the user step by step.

    line 37
  3. Distinctive:

    If the script outputs an error, the keys are invalid.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/datadog

Connect to the Datadog API to manage monitors, dashboards, events, metrics and hosts. Pure Ruby, zero gems — stdlib only.

Structure

scripts/
├── auth.rb          # API key + App key auth + dd_request helper (required by all scripts)
├── check_setup.rb   # Check if keys exist (outputs OK or SETUP_NEEDED)
├── save_token.rb    # Save and validate API key + App key
├── monitors.rb      # List all monitors
├── monitor.rb       # Get monitor details
├── mute_monitor.rb  # Mute a monitor
├── unmute_monitor.rb# Unmute a monitor
├── dashboards.rb    # List dashboards
├── events.rb        # List events (last 24h by default)
├── metrics.rb       # List active metrics
└── hosts.rb         # List infrastructure hosts

Setup (check before using)

ruby ~/.claude/skills/datadog/scripts/check_setup.rb

If the output is OK, proceed to the Flow section.

If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.

Step 1 — Ask the user to create API and Application keys:

You need a Datadog API key and an Application key. You can create them in the Datadog Organization Settings:

API Keys: https://app.datadoghq.com/organization-settings/api-keys Application Keys: https://app.datadoghq.com/organization-settings/application-keys

Copy both keys and paste them here (API key first, then Application key).

Step 2 — When the user pastes both keys, save them:

ruby ~/.claude/skills/datadog/scripts/save_token.rb 'API_KEY' 'APP_KEY'

If the script outputs an error, the keys are invalid. Ask the user to double-check and try again.

If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.

Flow

The argument $ARGUMENTS may contain a monitor ID or metric name.

Step 1: Overview

ruby ~/.claude/skills/datadog/scripts/monitors.rb

Present the monitors to the user. If $ARGUMENTS matches a monitor ID, use that monitor. Otherwise ask what the user wants to do.

Step 2: Actions

List all monitors:

ruby ~/.claude/skills/datadog/scripts/monitors.rb

Get monitor details:

ruby ~/.claude/skills/datadog/scripts/monitor.rb MONITOR_ID

Mute a monitor (requires user confirmation):

Show monitor details first, then ask: "Do you want to mute this monitor?" Only execute after a "yes".

ruby ~/.claude/skills/datadog/scripts/mute_monitor.rb MONITOR_ID

Unmute a monitor (requires user confirmation):

Show monitor details first, then ask: "Do you want to unmute this monitor?" Only execute after a "yes".

ruby ~/.claude/skills/datadog/scripts/unmute_monitor.rb MONITOR_ID

List dashboards:

ruby ~/.claude/skills/datadog/scripts/dashboards.rb

List events (last 24 hours by default):

ruby ~/.claude/skills/datadog/scripts/events.rb
ruby ~/.claude/skills/datadog/scripts/events.rb --hours 48

List active metrics:

ruby ~/.claude/skills/datadog/scripts/metrics.rb
ruby ~/.claude/skills/datadog/scripts/metrics.rb --host myhost

List infrastructure hosts:

ruby ~/.claude/skills/datadog/scripts/hosts.rb

Notes

  • Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
  • Auth via DD-API-KEY and DD-APPLICATION-KEY headers
  • API key file: ~/.config/datadog/api_key (outside the repo, never commit)
  • App key file: ~/.config/datadog/app_key (outside the repo, never commit)
  • Muting and unmuting monitors require explicit user confirmation
  • Base URL: https://api.datadoghq.com/api/v1

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.