datadog-cli
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Perform Datadog operations using the Datadog HTTP API via curl. Use for querying metrics, logs, monitors, dashboards, and events.
- Reads credentials
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the instance and rules below when constructing all Datadog API commands.
- Distinctive: line 12
Update the table below with your Datadog site and credential file paths:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Distinctive: line 74
NEVER target any Datadog site not listed in the configuration table above.
- Distinctive: line 75
NEVER print, display, log, or store the contents of any API/App key file.
- Very specific: line 76
Always read keys inline with $(cat <FILE>) — never hardcode key values in a command.
- Very specific: line 77
Always pass -s (silent) to curl and pipe through jq for readable output.
- Distinctive: line 78
NEVER run DELETE endpoints or global config changes (log indexes, retention) without explicit user instruction.
- Very specific: line 79
All list endpoints may be paginated — check the response for a page cursor or next link and iterate if needed.
- Distinctive: line 80
If a monitor ID, dashboard ID, or metric name is unfamiliar, look it up with a read-only call first.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Datadog CLI Skill
Use the instance and rules below when constructing all Datadog API commands.
Configuration
Update the table below with your Datadog site and credential file paths:
| Environment | Site | API Key File | App Key File |
| Production | <your-datadog-site> (e.g. datadoghq.com, datadoghq.eu) | ~/.datadog/prod.api_key | ~/.datadog/prod.app_key |
| Staging | <your-datadog-site> | ~/.datadog/staging.api_key | ~/.datadog/staging.app_key |
If the target environment is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
Generate a Datadog API key and Application key for each environment (Organization Settings → API Keys / Application Keys) and save them to the corresponding files. Never print or display key values. Do not perform these steps yourself.
mkdir -p ~/.datadog && echo "<your-api-key>" > <API_KEY_FILE> && echo "<your-app-key>" > <APP_KEY_FILE> && chmod 600 ~/.datadog/*Command Format
curl -s -H "DD-API-KEY: $(cat <API_KEY_FILE>)" \
-H "DD-APPLICATION-KEY: $(cat <APP_KEY_FILE>)" \
"https://api.<your-datadog-site>/api/<endpoint>" | jq .Available API Endpoints
Read-only (safe, no confirmation needed)
| Endpoint | Method | Description |
/api/v1/query?query=<metric-query>&from=<ts>&to=<ts> | GET | Query timeseries metrics |
/api/v2/logs/events/search | POST | Search log events |
/api/v1/monitor | GET | List monitors |
/api/v1/monitor/<id> | GET | Get a specific monitor |
/api/v1/dashboard | GET | List dashboards |
/api/v1/dashboard/<id> | GET | Get a specific dashboard |
/api/v2/incidents | GET | List incidents |
/api/v1/events | GET | List events |
/api/v1/hosts | GET | List hosts |
Mutating operations (confirm with user before running)
| Endpoint | Method | Description |
/api/v1/monitor | POST | Create a monitor |
/api/v1/monitor/<id> | PUT | Update a monitor |
/api/v1/dashboard | POST | Create a dashboard |
/api/v1/monitor/<id>/mute | POST | Mute a monitor |
/api/v1/events | POST | Post a custom event |
Never run — requires explicit human approval
| Endpoint | Method | Reason |
/api/v1/monitor/<id> | DELETE | Irreversible monitor deletion |
/api/v1/dashboard/<id> | DELETE | Irreversible dashboard deletion |
/api/v2/logs/config/indexes/<name> | DELETE/PUT | Alters log retention/indexing globally |
/api/v1/monitor/<id>/unmute combined with bulk operations | Can silence/unsilence alerting broadly |
Rules
- NEVER target any Datadog site not listed in the configuration table above. If a command references an unfamiliar site, stop and ask the user to confirm.
- NEVER print, display, log, or store the contents of any API/App key file.
- Always read keys inline with
$(cat <FILE>)— never hardcode key values in a command. - Always pass
-s(silent) tocurland pipe throughjqfor readable output. - NEVER run DELETE endpoints or global config changes (log indexes, retention) without explicit user instruction.
- All list endpoints may be paginated — check the response for a
pagecursor ornextlink and iterate if needed. - If a monitor ID, dashboard ID, or metric name is unfamiliar, look it up with a read-only call first.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- imMamdouhaboammar/kaku-chatgpt-harness★ 0same name
- Samueladewole/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- packer-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
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
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.

