/polymath-observability:author-monitorfrom polymath-observability
Author a Datadog monitor — query, threshold, evaluation window, no-data behavior, notification routing; pair with polymath-sre:slo-design for SLO burn-rate monitors.
Ships in polymath-observability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write one Datadog monitor and create it via the MCP server. Output is the monitor JSON + the rationale.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
MCP binding (read before any tool call): if your host has a
datadogMCP server, use its tools for this skill's data access. Check your own tool list — it may be registered under another name (a Claude Code connector appears asmcp__claude_ai_<Name>__*). Tool names differ between servers: use the closest match, and say so when the server is read-only. Never install or start a second copy. If there is none, work without MCP tool calls (give the user the queries or steps to run) and ask before suggesting an install.
polymath-sre:slo-design).If the host's Datadog server is read-only (no create tool — the default for the hosted server), do steps 1-8, validate, then output the monitor JSON for the user to apply instead of creating it. Say so up front. When a create tool exists, still show the final JSON and get explicit approval before creating — a new monitor can page people at 3am.
(monitorA && monitorB) || monitorC.slo alert) — alerts on how fast an SLO's error budget is burning; the right type for SLO paging (see polymath-sre:slo-design for the windows).validate_monitor_definition), run it on the finished definition.notify_no_data: true, no_data_timeframe: 10. For things that legitimately go quiet (low traffic at night): notify_no_data: false with a comment explaining why.{{value}} and {{#is_alert}} Datadog template syntax.@pagerduty-<service> for pages; @slack-<channel> for tickets. Tag the team owner.team:, service:, severity:, slo: so monitors can be filtered.Monitor: refund-p99-500ms
Type: metric alert
Query: avg(last_5m):p99:trace.http.request{service:refund-service} > 0.5
Thresholds:
critical: 0.5 (500ms, matches SLO threshold)
warning: 0.4
Evaluation window: 5 minutes (fast symptom alert; the SLO burn-rate pages
live in separate `slo alert` monitors).
No-data: notify_no_data=true, no_data_timeframe=10 (refund is a hot path).
Message:
@pagerduty-payments
## Refund p99 latency above SLO
p99 latency on refund-service is {{value}}s (threshold 0.5s, the
latency SLO's target). Check the SLO burn-rate monitor for budget impact.
Runbook: <link>
Dashboard: <link>
Tags: team:payments, service:refund-service, severity:sev2, slo:refund-latency
notify_no_data explicitly set, not defaulted.@pagerduty-<service> (not a person), tagged with team owner.What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/dashboard-snapshotCapture a Grafana dashboard snapshot for incident timelines + postmortem evidence — snapshot URL, time range pinned, variables resolved./logging-strategyDefine a service's logging strategy — structured JSON, level discipline, redaction, sampling for noisy paths, cost-aware retention./log-searchRun a typed, time-bounded log search against Elasticsearch — refuses unbounded scans, aggregates by trace id / status / route, returns a short evidence packet.Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-observability