用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill dd-pup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Token-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类
正在显示 SKILL.md
| name | dd-pup |
| description | Datadog CLI (Go). OAuth2 auth with token refresh. |
| metadata | {"version":"1.0.0","author":"datadog-labs","repository":"https://github.com/datadog-labs/agent-skills","tags":"datadog,cli,dd-pup,pup","alwaysApply":"false"} |
Pup CLI for Datadog API operations. Supports OAuth2 and API key auth.
| Task | Command |
|---|---|
| Search error logs | pup logs search --query "status:error" --duration 1h |
| List monitors | pup monitors list |
| Mute a monitor | pup monitors mute --id 123 --duration 1h |
| Find slow traces | pup apm traces list --service api --min-duration 500ms |
| List active incidents | pup incidents list --status active |
| Create incident | pup incidents create --title "Issue" --severity SEV-2 |
| Query metrics | pup metrics query --query "avg:system.cpu.user{*}" |
| List hosts | pup hosts list |
| Check SLOs | pup slos list |
| Who's on call | pup on-call who --team my-team |
| Security signals | pup security signals list --severity critical |
| Check auth | pup auth status |
| Refresh token | pup auth refresh |
# Install pup
go install github.com/datadog-labs/pup@latest
export PATH="$HOME/go/bin:$PATH"
pup auth login # OAuth2 browser flow (recommended)
pup auth status # Check token validity
pup auth refresh # Refresh expired token (no browser)
pup auth logout # Clear credentials
⚠️ Tokens expire (~1 hour). If a command fails with 401/403 mid-conversation:
pup auth refresh # Try refresh first
pup auth login # If refresh fails, full re-auth
# Use env vars or:
export DD_API_KEY=your-api-key
export DD_APP_KEY=your-app-key
export DD_SITE=datadoghq.com # or datadoghq.eu, etc.
pup monitors list --limit 10
pup monitors list --tags "env:prod"
pup monitors get --id 12345
pup monitors mute --id 12345 --duration 1h
pup monitors unmute --id 12345
pup monitors create --name "High CPU" --type "metric alert" \
--query "avg(last_5m):avg:system.cpu.user{*} > 80" \
--message "CPU high @slack-ops"
pup logs search --query "status:error" --duration 1h
pup logs search --query "service:payment-api" --duration 1h --limit 100
pup logs search --query "@http.status_code:5*" --duration 24h
pup logs search --query "env:prod level:error" --duration 1h --json
pup metrics query --query "avg:system.cpu.user{*}" --duration 1h
pup metrics query --query "sum:trace.express.request.hits{service:api}" --duration 1h
pup metrics list --filter "system.*"
pup apm services list
pup apm traces list --service my-service --duration 1h
pup apm traces list --service api --min-duration 500ms --duration 1h
pup apm traces list --service api --status error --duration 1h
pup apm traces get abc123def456
pup incidents list --status active
pup incidents list --status resolved --duration 7d
pup incidents create --title "API Degradation" --severity SEV-2
pup incidents update --id abc-123 --status stable
pup incidents resolve --id abc-123
pup dashboards list
pup dashboards list --tags "team:platform"
pup dashboards get --id abc-123
pup dashboards create --title "My Dashboard" --description "..." --widgets '[...]'
pup slos list
pup slos get --id slo-123
pup slos history --id slo-123 --duration 30d
pup synthetics list
pup synthetics results --test-id abc-123
pup synthetics trigger --test-id abc-123
pup on-call teams list
pup on-call schedules list
pup on-call who --team platform-team
pup hosts list --limit 50
pup hosts list --filter "env:prod"
pup hosts mute --hostname web-01 --duration 1h
pup hosts get --hostname web-01
pup events list --duration 24h
pup events list --tags "source:deploy"
pup events post --title "Deploy started" --text "v1.2.3" --tags "env:prod"
pup downtime list
pup downtime create --scope "env:staging" --duration 2h --message "Maintenance"
pup downtime cancel --id 12345
pup users list
pup teams list
pup security signals list --duration 24h
pup security signals list --severity critical
pup services list
pup services get --name payment-api
pup notebooks list
pup notebooks get --id 12345
pup workflows list
pup workflows trigger --id workflow-123 --input '{"key": "value"}'
pup --help # List all commands
pup <command> --help # Command-specific help
| Error | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Token expired | pup auth refresh |
| 403 Forbidden | Missing scope | Check app key permissions |
| 404 Not Found | Wrong ID/resource | Verify resource exists |
| Rate limited | Too many requests | Add delays between calls |
go install github.com/DataDog/pup@latest
# Check if pup is in PATH
which pup
# If not found, check if it was installed
ls ~/go/bin/pup
If pup is installed but which pup returns nothing, Go's bin directory isn't in your PATH.
Check where pup is:
ls ~/go/bin/pup # Standard location
ls $GOPATH/bin/pup # If GOPATH is set
ls $GOBIN/pup # If GOBIN is set
Add to PATH (pick your shell):
For zsh (macOS default):
# Add this line to ~/.zshrc
export PATH="$HOME/go/bin:$PATH"
# Then reload
source ~/.zshrc
For bash:
# Add this line to ~/.bashrc or ~/.bash_profile
export PATH="$HOME/go/bin:$PATH"
# Then reload
source ~/.bashrc
For fish:
# Add this line to ~/.config/fish/config.fish
fish_add_path $HOME/go/bin
# Or set permanently
set -Ux fish_user_paths $HOME/go/bin $fish_user_paths
# Then reload
source ~/.config/fish/config.fish
Verify:
which pup # Should show path
pup --version # Should show version
If you don't want to modify PATH, use the full path:
~/go/bin/pup auth login
~/go/bin/pup monitors list
Or create an alias:
alias pup="$HOME/go/bin/pup"
| Site | DD_SITE value |
|---|---|
| US1 (default) | datadoghq.com |
| US3 | us3.datadoghq.com |
| US5 | us5.datadoghq.com |
| EU1 | datadoghq.eu |
| AP1 | ap1.datadoghq.com |
| US1-FED | ddog-gov.com |