/itsm-tooling-skills:servicenow-itsm-integrationfrom itsm-tooling-skills
Syncs ServiceNow Incident, Change, and Problem records with PagerDuty/Opsgenie for ITIL-compliant incident management. Handles Table API sync, change approval workflows, problem record linkage, and CMDB-based routing.
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.
None: SKILL.md is the whole skill.
Engineering incident tools like PagerDuty and Opsgenie are optimized for speed — page the right human in seconds. ServiceNow's Incident, Change, and Problem management modules are optimized for something different: an auditable, ITIL-compliant record of what happened, who approved what, and how it connects to the CMDB — the record a compliance auditor, a change advisory board, or an enterprise-wide reporting dashboard needs, and that PagerDuty was never designed to be. In an ITIL-heavy enterprise these aren't a choice between one or the other; a real incident needs both a paged human acting in minutes and a synced ServiceNow record that's got the right assignment group, links to the change that likely caused it, and (if a fix requires a production change mid-incident) an emergency change request that doesn't wait for a weekly CAB meeting. This skill covers that integration and sync — not how to design the on-call paging itself (see pagerduty-and-opsgenie-oncall-configuration) or the incident-command process running in parallel (see incident-response-and-on-call-management).
${SNOW_INSTANCE_URL}, e.g.
https://yourcompany.service-now.com) with Table API access enabled
and an integration user account holding at minimum the itil role
(incident/problem read-write) and change-management roles as needed
(change_manager or scoped ACLs for the Change table) — use OAuth2 or
a scoped API key stored as ${SNOW_CLIENT_ID}/${SNOW_CLIENT_SECRET},
never basic auth with a hardcoded password.Create the ServiceNow Incident from the paging tool's incident trigger, via the Table API, carrying over the paging tool's incident ID as a correlation field so later updates target the same record instead of creating duplicates:
POST /api/now/table/incident
Host: ${SNOW_INSTANCE_URL}
Authorization: Bearer ${SNOW_ACCESS_TOKEN}
Content-Type: application/json
{
"short_description": "Checkout success rate dropped sharply",
"description": "Auto-created from PagerDuty incident PD-INC-48213. See link for live timeline.",
"urgency": "1",
"impact": "1",
"cmdb_ci": "checkout-api",
"correlation_id": "PD-INC-48213",
"correlation_display": "PagerDuty",
"assignment_group": "checkout-team"
}
correlation_id is the field every subsequent update must query on
(GET /api/now/table/incident?sysparm_query=correlation_id=PD-INC-48213)
— this is what makes the sync idempotent instead of duplicate-prone.
Sync status changes bidirectionally through a defined mapping, not a free-text guess — PagerDuty/Opsgenie states map onto ServiceNow incident states explicitly:
| Paging tool state | ServiceNow incident_state |
|---|---|
| Triggered | 2 (In Progress) |
| Acknowledged | 2 (In Progress) |
| Resolved | 6 (Resolved) |
| (Postmortem complete) | 7 (Closed) |
Implement this as a Flow Designer flow (webhook trigger →
incident_state field update) or a scripted REST endpoint the paging
tool calls on state transitions — and make the same mapping work in
reverse (a ServiceNow-side status edit reflected back), guarding
against the sync-loop pitfall below.
Route incidents by CMDB CI → assignment group, not a static default queue:
incident.cmdb_ci → looks up → cmdb_rel_ci (or a dedicated
ci_to_team mapping table) → incident.assignment_group
Configure this as a Business Rule or Flow Designer flow on incident
insert/update that resolves assignment_group from the CI's owner
relationship, so a new service only needs its CMDB CI's owner set
correctly once, rather than a routing rule maintained per-service in
two places.
Model change types deliberately — most ServiceNow instances ship with three:
{
"short_description": "Emergency rollback of checkout-api v2.14.1",
"type": "emergency",
"justification": "Mitigating active Sev1 incident INC0048213 — rolling back to v2.14.0",
"cmdb_ci": "checkout-api",
"risk": "moderate",
"assignment_group": "checkout-team"
}
Link the Change Request to the active Incident record
(change_request.parent_incident or a related-list relationship) so
the audit trail shows exactly which incident justified bypassing
standard CAB timing.
Require an actual (even if fast) emergency-change approval, not a silent bypass. Configure the Emergency change type's approval definition to route to a small, always-reachable on-call approver group (mirroring the paging tool's own on-call schedule) with a tight SLA (e.g. 15 minutes), rather than either (a) requiring the full weekly CAB — too slow for an active Sev1 — or (b) no approval at all — which erases the audit trail the whole ITSM integration exists to provide.
Link recurring/unresolved incidents to a Problem record for root-cause tracking that outlives the incident:
POST /api/now/table/problem
{
"short_description": "Recurring checkout-api replica lag causing intermittent 5xx",
"cmdb_ci": "checkout-db",
"incident": "INC0048213"
}
Then relate every future incident with the same root cause back to
this Problem record (problem_id field on the incident) instead of
letting each recurrence be investigated from scratch.
Guard every inbound webhook/sync call with an idempotency key —
use the paging tool's incident ID (already captured as
correlation_id) to check-then-update rather than blindly inserting,
so a retried webhook delivery (both PagerDuty and Opsgenie retry on
timeout) doesn't create a duplicate ServiceNow incident for the same
underlying page.
correlation_id and
query on it before any write — this single field is what keeps sync
idempotent under retries and prevents duplicate records.Symptom: A PagerDuty incident and its synced ServiceNow record bounce a status update back and forth — PagerDuty resolves, the sync flow marks ServiceNow Resolved, a ServiceNow business rule fires and pushes a status back to PagerDuty, which re-triggers the sync flow again, and so on. Fix: Give the sync flow a clear single source of truth per field and direction (e.g. paging-tool status is authoritative while an incident is open; ServiceNow becomes authoritative only after Resolved, for closure/RCA fields) and have each sync leg check whether the target value already matches before writing, rather than writing unconditionally on every event.
Symptom: During an active Sev1, the fix requires a production rollback, but the Change Request created for it sits waiting for the next weekly CAB meeting — the incident drags on for hours because the Change process, not the technical fix, is the bottleneck. Fix: Configure and use the Emergency change type (step 4/5) with a fast, always-reachable approver group instead of routing every production change through Normal/CAB regardless of urgency — this needs to be set up and tested before the incident, not requested for the first time mid-Sev1.
Symptom: A retried PagerDuty webhook delivery (e.g. after a
transient network timeout) creates a second, duplicate ServiceNow
incident for the same underlying page, and both get worked
independently by different assignees.
Fix: Query by correlation_id before inserting (step 1/7) —
check-then-update, not insert-always — so a retried delivery updates
the existing record instead of creating a new one.
Symptom: A new microservice's incidents consistently land in a generic "Unassigned" ServiceNow queue instead of the owning team, so they sit until someone notices manually. Fix: The service's CMDB CI either doesn't exist yet or has no owning-group relationship configured — this is a CMDB data-quality gap to fix at onboarding time for every new service, not a routing exception to patch per incident.
Scenario: checkout-api's Sev1 (from the worked example in
incident-response-and-on-call-management)
needs both the PagerDuty incident and a synced ServiceNow record, plus
an emergency Change Request for the rollback that mitigates it.
PagerDuty incident PD-INC-48213 triggers; a Flow Designer flow
(webhook-triggered) creates the ServiceNow incident:
{
"short_description": "Checkout success rate dropped sharply",
"urgency": "1",
"impact": "1",
"cmdb_ci": "checkout-api",
"correlation_id": "PD-INC-48213",
"assignment_group": "checkout-team"
}
Response: 201 Created, number: "INC0048213".
The Tech Lead identifies a bad config in the latest deploy and proposes a rollback. Because this is an active Sev1, an Emergency Change is raised instead of waiting for the weekly CAB:
{
"short_description": "Emergency rollback of checkout-api v2.14.1",
"type": "emergency",
"justification": "Mitigating active Sev1 INC0048213 — rolling back to v2.14.0",
"cmdb_ci": "checkout-api",
"parent_incident": "INC0048213",
"assignment_group": "checkout-team"
}
The on-call emergency-CAB approver (a role staffed 24/7, distinct
from the normal weekly CAB) approves within 6 minutes; the change
record (CHG0031840) is now the audit trail for the rollback.
The rollback completes and checkout's error rate recovers. The sync
flow updates INC0048213's incident_state to 6 (Resolved) when
PagerDuty's incident is resolved, using correlation_id to target
the exact record rather than searching by description text.
Because this is the second time in a month checkout-api has had a config-related rollback, a Problem record is opened and linked:
{
"short_description": "Recurring checkout-api deploy-config regressions",
"cmdb_ci": "checkout-api",
"incident": "INC0048213"
}
giving the team a durable place to track the underlying root cause across incidents, separate from any single incident's record.
correlation_id here.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
servicenow, itsm, incident-management, change-management, pagerduty, opsgenie
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."
/pagerduty-opsgenie-configuration-validationValidates PagerDuty and Opsgenie escalation policy and schedule configuration for coverage gaps and single points of failure before an incident exposes them — checking that every rung resolves to a genuinely independent human, that schedules have no unstaffed windows, and that num_loops/repeat settings actually repeat. Use when the user asks to "audit our escalation policies," "check if our on-call schedule has gaps," "make sure this policy isn't a single point of failure," "test our PagerDuty/Opsgenie configuration before relying on it," or after any roster/schedule change to confirm coverage still holds.
/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.
Other plugins' skills for the same job