Logo: Triaging Incidents

Triaging Incidents

Communautéit
jschuller
triaging-incidents

Creating, triaging, updating, and analyzing ServiceNow incidents, including trend reports. Assess severity, check affected CIs, find related incidents, and recommend assignments. Use when the user mentions incidents, INC numbers, outages, service disruptions, ticket creation, triage, priority, severity, ITSM operations, SLA breaches, assignment groups, incident trends, 'what's on fire', or 'open P1 incidents'.

Iwwersiicht

Editeurjschuller
Repositorymcp-server-servicenow
Skill-Nummtriaging-incidents
Stären
27
Forks
10
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    jschuller huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Triaging Incidents an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/jschuller/mcp-server-servicenow/tree/main/examples/incident-triage/skills/triaging-incidents
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jschuller/mcp-server-servicenow.git /tmp/mcp-server-servicenow
mkdir -p .claude/skills
cp -r /tmp/mcp-server-servicenow/examples/incident-triage/skills/triaging-incidents .claude/skills/triaging-incidents
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Triaging Incidents an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Triaging Incidents automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Triaging Incidents net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Triaging ServiceNow Incidents

Create, triage, investigate, and analyze incidents. See references/incident-fields.md for the priority matrix, states, categories, and encoded query patterns.

Tables and roles

TablesReadable with
incident, problem, change_request, sys_user_groupitil (+ snc_read_only for a read-only identity)
cmdb_ci (affected CIs), cmdb_rel_ci (their dependencies)itil; snc_read_only alone gets 403 on cmdb_ci

Some incident fields stay hidden even from itil. For example, the change links rfc and caused_by can be ACL-protected. list_records then warns that they are missing from every row, and conditions on them are ignored.

When access is denied

  • 403 on a table: not assessable with this identity. Say which table, and report what you could read.
  • 0 rows or missing fields: possibly hidden by an ACL. Don't report "no incidents" from a read that may be filtered.
  • aggregate_records refused (401 under API-key auth, or 403): use the list_records fallback in workflow 5.

Workflows

1. List Recent Incidents

Get a summary of recent incidents by priority, state, or assignment group.

Progress checklist (copy into your response):

- [ ] Query incidents with filters
- [ ] Summarize by priority and state
- [ ] Highlight critical/P1 incidents
  1. List recent incidents (last 24 hours, open):
    list_records(table_name="incident", query="active=true^sys_created_on>=javascript:gs.daysAgoStart(1)", fields="number,short_description,priority,state,assignment_group,assigned_to,sys_created_on", limit=20, order_by="-priority")
  2. For a specific assignment group:
    list_records(table_name="incident", query="active=true^assignment_groupLIKE<group_name>", fields="number,short_description,priority,state,assigned_to", limit=20)
  3. Summarize: total count, breakdown by priority (P1/P2/P3/P4), breakdown by state, highlight any P1/P2 incidents.

2. Triage a New Incident

Assess impact and urgency, then suggest priority, category, and assignment group.

Progress checklist:

- [ ] Get incident details
- [ ] Assess impact and urgency
- [ ] Check affected CI and its dependencies
- [ ] Suggest priority, category, assignment group
- [ ] Recommend next steps
  1. Get the incident details:
    get_record(table_name="incident", sys_id="<incident_sys_id>")
  2. If a CI is attached, check its relationships to assess blast radius:
    get_ci(sys_id="<cmdb_ci_sys_id>")
    get_ci_relationships(sys_id="<cmdb_ci_sys_id>")
  3. Look for similar recent incidents (same CI or category):
    list_records(table_name="incident", query="cmdb_ci=<ci_sys_id>^sys_created_on>=javascript:gs.daysAgoStart(30)", fields="number,short_description,state,priority", limit=10)
  4. Recommend triage decisions:
    • Priority: Based on impact x urgency matrix (see references/incident-fields.md)
    • Category: Based on the affected CI class and description keywords
    • Assignment group: Based on CI ownership or category routing rules
  5. Present recommendations with reasoning.

3. Investigate an Incident

Deep-dive into an existing incident — full context, related CIs, similar incidents.

Progress checklist:

- [ ] Get full incident details
- [ ] Get affected CI details and relationships
- [ ] Find similar recent incidents
- [ ] Check for related problems or changes
- [ ] Summarize findings and recommend actions
  1. Get the full incident record:
    get_record(table_name="incident", sys_id="<incident_sys_id>")
  2. If a CI is attached, get its details and dependency chain:
    get_ci(sys_id="<cmdb_ci_sys_id>")
    get_ci_relationships(sys_id="<cmdb_ci_sys_id>")
  3. Find similar recent incidents:
    list_records(table_name="incident", query="categoryLIKE<category>^sys_created_on>=javascript:gs.daysAgoStart(30)", fields="number,short_description,state,priority,resolution_notes", limit=10)
  4. Check for related problems:
    list_records(table_name="problem", query="cmdb_ci=<ci_sys_id>^active=true", fields="number,short_description,state", limit=5)
  5. Check for recent changes on the same CI:
    list_records(table_name="change_request", query="cmdb_ci=<ci_sys_id>^sys_created_on>=javascript:gs.daysAgoStart(7)", fields="number,short_description,state,type", limit=5)
  6. Summarize: incident context, CI dependency impact, related incidents/problems/changes, recommended actions.

4. Create an Incident

Create a new incident with validated fields and appropriate defaults.

Progress checklist:

- [ ] Validate required fields are provided
- [ ] Suggest category from description
- [ ] Set appropriate defaults (state, priority)
- [ ] Create the incident
- [ ] Confirm creation with INC number
  1. Validate required fields: short_description is mandatory. Confirm caller_id is provided.
  2. Suggest category based on description keywords (see references/incident-fields.md).
  3. Set defaults for missing fields:
    • state: 1 (New)
    • impact: 3 (Low) unless specified
    • urgency: 3 (Low) unless specified
    • priority is auto-calculated from impact x urgency
  4. Create the incident:
    create_record(table_name="incident", data={"short_description": "...", "description": "...", "caller_id": "...", "category": "...", "impact": "3", "urgency": "3", "cmdb_ci": "..."})
  5. Confirm creation: return the INC number, priority, and link.

If create_record is not among your tools, the identity is read-only: give the user the field values to enter instead.

5. Trends and Bulk Analysis

Analyze incident trends: volumes over time, top categories, repeat-offender CIs, SLA status.

Progress checklist:

- [ ] Count by category, priority and group (aggregate, or the fallback)
- [ ] Compare this period with the previous one
- [ ] Identify repeat CIs (frequent flyers)
- [ ] Check SLA breaches
- [ ] Present trends and recommendations
  1. Count first, without pulling rows. RELATIVE operators express "in the last N days" without script:
    aggregate_records(table_name="incident", query="opened_atRELATIVEGT@dayofweek@ago@30", group_by="category")
    aggregate_records(table_name="incident", query="opened_atRELATIVEGT@dayofweek@ago@30", group_by="priority")
    For the previous period, use a range. The list UI writes ranges with @ between the two ends:
    aggregate_records(table_name="incident", query="opened_atBETWEENjavascript:gs.daysAgoStart(60)@javascript:gs.daysAgoEnd(31)", group_by="category")
  2. If aggregate_records is refused (401 under API-key auth, where the Aggregate API needs its own access policy, or 403), count from rows instead:
    • Pull only the fields you group by, with the same query:
      list_records(table_name="incident", query="opened_atRELATIVEGT@dayofweek@ago@30", fields="number,category,priority,assignment_group,cmdb_ci", limit=500)
    • Keep paging with offset until a page comes back empty. A short page doesn't mean the end, because the limit is applied before ACLs remove rows.
    • Count the rows yourself.
    • Say that the numbers come from the rows this identity can read.
  3. Identify repeat CIs — which CIs appear in multiple incidents?
    list_records(table_name="incident", query="cmdb_ci=<frequent_ci_sys_id>^opened_atRELATIVEGT@dayofweek@ago@30", fields="number,short_description,priority,state", limit=20)
  4. Check for SLA breaches:
    list_records(table_name="incident", query="active=true^sla_due<javascript:gs.daysAgoEnd(0)", fields="number,short_description,priority,sla_due,assignment_group", limit=20)
  5. Find resolution patterns: which categories resolve fastest and slowest (resolved_at minus opened_at on closed incidents, state=7, same window).
  6. Present as a trend report: volume against the previous period, top categories, repeat-offender CIs, SLA breach count, resolution patterns, and recommendations for reducing incident volume. Separate facts from recommendations, and say which counts came from the fallback.

Tips

  • The priority matrix is impact x urgency — see references/incident-fields.md for the full mapping.
  • RELATIVE operators: RELATIVEGT, RELATIVEGE, RELATIVELT, RELATIVELE and RELATIVEEE, written field<OP>@<unit>@ago@<n>. Units include minute, hour, dayofweek (days), month and year. Use dayofweek for days: @day@ silently matched nothing on a Brazil instance.
  • Before trusting a filtered count, compare it with the unfiltered one. A condition on a hidden field is ignored, not rejected.
  • Use active=true to filter out resolved/closed incidents. Closed incidents have state=7.
  • SLA fields (sla_due, made_sla) track whether response/resolution targets are met.
  • Assignment groups can be looked up: list_records(table_name="sys_user_group", query="nameLIKE<keyword>", fields="name,sys_id").
  • See references/incident-fields.md for encoded query patterns and field reference.

Notes on writes

update_record changes the incident immediately. Before a change the user did not ask for in so many words, show the record's current values and the change, and wait for their go. In a subagent or headless run, report the proposed change instead of making it. If write tools are unavailable (a read-only identity or --read-only), propose the change instead.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Triaging Incidents?

Creating, triaging, updating, and analyzing ServiceNow incidents, including trend reports. Assess severity, check affected CIs, find related incidents, and recommend assignments. Use when the user mentions incidents, INC numbers, outages, service disruptions, ticket creation, triage, priority, severity, ITSM operations, SLA breaches, assignment groups, incident trends, 'what's on fire', or 'open P1 incidents'.

Firwat Triaging Incidents op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Triaging Incidents besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Triaging Incidents an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/jschuller/mcp-server-servicenow/tree/main/examples/incident-triage/skills/triaging-incidents an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Triaging Incidents benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Triaging Incidents benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Triaging Incidents domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Triaging Incidents gratis?

Jo. jschuller huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇