/itsm-tooling-skills:pagerduty-opsgenie-configuration-validationfrom itsm-tooling-skills
Validates PagerDuty and Opsgenie escalation policies and schedules for coverage gaps, single points of failure, and broken repeat/timeout settings before incidents expose them.
Ships in itsm-tooling-skills. 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.
Read when SKILL.md points to them; scripts run unread.
An escalation policy that looks correct in the console — three rungs, reasonable timeouts — can still be a single point of failure if rung 2 resolves to the same one person as rung 1, or a schedule can have a silent gap where no layer is active for a specific week because a rotation's end date was never extended. These defects are invisible until the exact moment they matter: a real page that nobody receives. This skill covers systematically validating PagerDuty/Opsgenie escalation policies and schedules — for coverage gaps, single points of failure, and structurally broken repeat/timeout settings — as a recurring check, not a one-time read-through. It assumes the configuration already exists (see pagerduty-and-opsgenie-oncall-configuration for how to build it); this skill is strictly about proving it's correct before an incident is the first time anyone finds out otherwise.
${PAGERDUTY_API_TOKEN} /
${OPSGENIE_API_KEY}) to pull escalation policies, schedules, and
their resolved on-call membership — validation needs the resolved
membership (who a schedule actually points to right now and for the
next N weeks), not just the policy's static JSON.scripts/ — no
third-party dependencies required for the coverage-logic check itself
(add requests only if wiring it directly to the live API rather than
exported JSON).Pull the resolved configuration, not just the static policy. A
schedule's escalation_rules reference a schedule_reference, but
the actual humans on call rotate weekly — resolve each schedule
target to its current (and near-future) on-call user(s) via
GET /schedules/{id}/users?since=...&until=... (PagerDuty) or
GET /v2/schedules/{id}/on-calls (Opsgenie) before checking coverage,
so the check reflects who's actually reachable this week, not an
abstract schedule definition.
Check every escalation rung resolves to at least one target. A rung whose target was a user who left the company, or a schedule that was deleted, silently resolves to nothing — the escalation "moves on" to the next rung instantly with no page sent at all.
Check that at least two rungs resolve to genuinely distinct humans. The core single-point-of-failure check: flatten every rung's resolved user set and confirm the union has ≥2 distinct people, and that at least one later rung introduces someone not already covered by an earlier rung. A policy with rung 1 = "Alice" and rung 2 = "Alice" (via a schedule that also resolves to Alice this week) is not actually redundant just because it has two rungs.
Check num_loops/repeat behavior is non-zero for any policy
backing a service that can page overnight or on weekends — a policy
with no repeat silently gives up after running through its rungs once
if nobody acknowledges, leaving the incident open and unescalated
with no further notification.
Check schedule layers for date-range gaps. Query the resolved
on-call user for every day in the next 4-6 weeks
(GET /schedules/{id}/users?since=<today>&until=<+6w>); any day
returning zero on-call users is a hard gap — often caused by a
rotation's rotation_turn_length_seconds/end date lapsing, or an
override that was added but never removed and now blocks the
underlying layer from ever resuming.
Check for stale overrides and expired maintenance windows left active past their intended end — an override that was meant to cover one person's PTO week but was never removed continues silently routing pages to whoever covered for them, long after that person is back and unaware they're still officially "on call" for someone else.
Run the reference script (scripts/check_escalation_coverage.py)
against exported policy JSON as a concrete starting point for either
a CI gate or a scheduled audit job:
python3 scripts/check_escalation_coverage.py payments-escalation.json
Adapt load_policy() in the script to call the live PagerDuty/
Opsgenie API directly rather than reading a static export, once this
is wired into a recurring job.
Report findings back into a place people will actually see them — post failures to the team's ops channel or open a ticket, don't let a validation job run silently and log to a file nobody reads. This is a natural place to route findings into chatops-runbook-automation's incident-channel bot as a scheduled notification, or into servicenow-itsm-integration as a tracked problem-record if the org runs ITSM change control over on-call configuration.
Symptom: An escalation policy has three rungs configured, and it looks properly redundant in the console — but during a real incident, all three rungs paged the same one person because two of the three targets were schedules that both currently resolve to them. Fix: Validate resolved membership, not rung count — flatten every rung's actual on-call user(s) for the current period and confirm the union includes at least two distinct people, using the check in step 3 (and the reference script) rather than eyeballing the policy structure.
Symptom: A schedule was set up with a rotation that has an implicit end (e.g. a fixed number of turns configured months ago), and three months later a specific week has zero on-call coverage — nobody notices until a page during that week goes unanswered. Fix: Proactively query resolved on-call coverage 4-6 weeks forward on a recurring basis (step 5) and alert on any day with zero on-call users, rather than discovering the gap only when an incident falls into it.
Symptom: An engineer's PTO override was added to cover one week, but was never removed — months later, pages meant for the original rotation member are still silently routed to the PTO-covering colleague, who has long since stopped expecting them. Fix: Audit overrides for ones past their intended end date on the same cadence as the rest of the validation, and require overrides to always be created with an explicit end time rather than open-ended.
Symptom: num_loops on a production escalation policy is left at
its default (no repeat); an unacknowledged Sev1 page runs through all
rungs once, reaches the final rung's target, and then simply stops
with the incident still unacknowledged and no further notification.
Fix: Explicitly set num_loops >= 1 (or Opsgenie's equivalent
repeat setting) for any policy backing a service capable of paging
outside business hours, and include this as a checked condition (step
4) rather than trusting the default.
Scenario: A monthly audit job validates all escalation policies for
the payments and checkout teams before the on-call load review.
Exported policy for checkout-team-escalation (resolved schedule
membership already expanded for the current week):
{
"name": "checkout-team-escalation",
"num_loops": 1,
"escalation_rules": [
{
"targets": [
{ "type": "schedule_reference", "id": "SCHED-CHECKOUT-PRI", "members": ["U-FRANK"] }
]
},
{
"targets": [
{ "type": "schedule_reference", "id": "SCHED-CHECKOUT-SEC", "members": ["U-FRANK"] }
]
},
{
"targets": [
{ "type": "user_reference", "id": "U-MANAGER-GRACE" }
]
}
]
}
Running the reference script:
python3 scripts/check_escalation_coverage.py checkout-team-escalation.json
Output:
FAIL checkout-team-escalation.json
- checkout-team-escalation: rung 2 adds no new humans beyond earlier rungs (['U-FRANK']) — escalation would loop back to the same person/people instead of reaching someone new.
Investigation shows SCHED-CHECKOUT-SEC (the "secondary" schedule) was
created by copying the primary schedule's layer as a starting template
during setup, and the second rotation member was never actually swapped
in — the secondary schedule silently resolves to the same person as
primary for the current week. The fix: correct the secondary schedule's
membership to a genuinely different rotation, re-run the script to
confirm it now passes, and add this check as a required CI step whenever
checkout-team-escalation's Terraform definition changes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pagerduty, opsgenie, escalation-policy, on-call, incident-response
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin itsm-tooling-skills6 skills in this plugin
/chatops-runbook-automationGuides building ChatOps incident-channel bots (Slack/Microsoft Teams) and automated runbook execution (StackStorm/Rundeck-style) — slash commands that run a diagnostic or remediation action from inside the incident channel, permission-scoped and confirmation-gated destructive actions, audit logging of every executed action, and balancing automation speed against the risk of an accidental or unauthorized destructive action. Use when the user asks to "build a Slack bot for incident response," "automate a runbook so on-call can run it from chat," "wire a restart/rollback command into our incident channel," "add a confirmation step before a destructive ChatOps action," or "audit what runbook actions were executed during an incident."
/linear-issue-tracking-best-practicesGuides Linear's cycle-based workflow model — Issues, Projects, and time-boxed Cycles instead of Jira's sprint/board configuration, Linear's opinionated status workflow (Triage → Backlog → Todo → In Progress → In Review → Done/Cancelled), its keyboard-driven/low- friction issue creation philosophy, and the Linear API/SDK for programmatic issue management. Use when the user asks to "set up Linear for our team," "should we use Linear or Jira," "create a Linear issue via the API," "design our Linear cycle/project structure," "why did our Jira migration to Linear feel different," or "reduce process overhead in our issue tracker." Cross-references the Jira-focused ticket-workflow skill for teams comparing or migrating between tools.
/pagerduty-and-opsgenie-oncall-configurationConfigures on-call schedules, escalation policies, and alert routing/ deduplication rules in PagerDuty and Opsgenie — the tool-specific API/ Terraform configuration that implements an on-call rotation, not the generic on-call process design. Use when the user asks to "set up a PagerDuty schedule," "configure an Opsgenie escalation policy," "route alerts to the right team in PagerDuty," "add alert deduplication so we stop getting paged 50 times for one outage," "add a secondary on-call layer," or "configure a maintenance window/override in PagerDuty or Opsgenie."
/servicenow-itsm-configuration-validationValidates ServiceNow Incident/Change/Problem workflow, approval, and assignment-routing configuration before it blocks or misroutes a real incident — checking CMDB CI-to-team mappings for gaps, Emergency Change approval routing for actual reachability, sync-flow idempotency, and workflow transition logic for dead ends. Use when the user asks to "validate our ServiceNow change workflow before we depend on it," "check our CMDB assignment routing for gaps," "test the emergency change approval path actually works," "why do incidents keep landing in the wrong assignment group," or "audit our ServiceNow flows before a real incident is the first time we find a bug." Pairs with the existing servicenow-itsm-integration skill.
/servicenow-itsm-integrationIntegrates ServiceNow Incident, Change, and Problem management with engineering paging/incident tools (PagerDuty, Opsgenie) for ITIL-heavy enterprises that need an auditable, compliance-grade record alongside fast real-time paging — Table API incident sync, Change Request approval workflow (including emergency changes during an active incident), Problem record linkage, and CMDB-based assignment routing. Use when the user asks to "sync PagerDuty incidents into ServiceNow," "set up a ServiceNow change request for a production deploy," "link an incident to a problem record," "route a ServiceNow incident to the right assignment group," or "our ServiceNow and PagerDuty incidents are out of sync."
Other plugins' skills for the same job