/polymath-observability:query-during-incidentfrom polymath-observability
Run the right Datadog queries during an incident to narrow cause — error rates, latency percentiles, deploys, recent changes — and surface them concisely.
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.
Inside a live incident, run the focused queries that narrow root cause fastest. Output is a short situation summary, not a dashboard.
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.
5xx_rate{service:X} over the last 30 min vs 24h ago same window.p50/p95/p99 latency{service:X} over the last 30 min vs 24h ago.5xx_rate for the service's main dependencies.deploy:*, config_change:*, feature_flag:*.Datadog situation: refund-p99-500ms (triggered 14:02 UTC)
Vs 24h baseline:
refund 5xx rate 14:02–14:10: 2.4% (24h ago: 0.1%)
refund p99 latency 14:02–14:10: 880ms (24h ago: 320ms)
refund pod CPU steady ~45% (no signal)
refund DB pool wait p99 140ms (24h ago: 12ms) ← bumped
stripe-client 5xx rate 0.2% (24h ago: 0.2%) (no signal)
Recent change events (last 60 min):
- 13:50 deploy_succeeded service:refund-service sha:abc123 v0.5.1
- 13:50 feature_flag_change refund_async_writes=true
Most likely cause:
Coincident with 13:50 deploy + flag flip. DB pool wait increased >10×;
the new code path may hold connections longer.
Second-most-likely:
Stripe-client error rate is flat — downstream looks unaffected. If the
rollback doesn't help, suspect a slow DB query, not Stripe.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-observability9 skills in this plugin
/author-monitorAuthor a Datadog monitor — query, threshold, evaluation window, no-data behavior, notification routing; pair with polymath-sre:slo-design for SLO burn-rate monitors./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.Other plugins' skills for the same job