sn-incident-create
Use when the user asks to create a new ServiceNow incident or requests a ticket for an unresolved investigation. Check for an existing incident, confirm the exact creation payload, and return the new record reference with any manual handoff details. Do NOT use for reading status alone, updating or annotating existing incidents, attachments, routing, assignment, closure, or Dynamics cases.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 78
- Forks
- 26
01 前言 Front Matter
- name
- sn-incident-create
- description
- Use when the user asks to create a new ServiceNow incident or requests a ticket for an unresolved investigation. Check for an existing incident, confirm the exact creation payload, and return the new record reference with any manual handoff details. Do NOT use for reading status alone, updating or annotating existing incidents, attachments, routing, assignment, closure, or Dynamics cases.
03 SKILL.md 正文
Create a ServiceNow Incident
Scope
Use the ServiceNow CreateRecord action, displayed as Create Record, when the user
asks to create a new incident. Creation covers the initial record only. It does not
include subsequent updates, notes, attachments, routing, assignment, or closure.
Tools
- Create an incident:
CreateRecord(Create Record). - Check for duplicates:
ListRecords(GetRecords). - Read one matching incident when needed:
GetRecord. - Shared user context:
GetMyProfile.
Inputs
Set tableType to incident. Always prepare:
short_description: a concise summary of the issue.- A detailed handoff summary containing the reported symptoms, affected service, relevant errors, attempted fixes, timestamps, and remaining impact.
Reuse known conversation details. Ask only for missing information required to create a
useful incident. ServiceNow must set caller_id server-side from the impersonated current
user. Do not send or invent a caller ID from chat, an email address, or GetMyProfile.
For the native ServiceNow CreateRecord action, send only short_description; Microsoft
documents that the action ignores description. Include a full description in the create
body only when a separately validated custom create-only operation proves it persists.
Procedure
- Use
ListRecordsto check the current impersonated user's own incidents for a relevant duplicate. Inspect a candidate withGetRecordwhen needed. If the check fails, do not treat it as "no duplicate." - If a suitable incident already exists, return its reference and stop creation. Do not create another incident to work around disabled updates.
- Prepare the proposed
short_descriptionand detailed handoff summary. For the native action, build thebodywithshort_descriptiononly. Never include an assignee, assignment group, owner, queue, state, priority override, closure field, or another lifecycle/routing field. - Show the exact summary, the detailed handoff, and which fields the selected create implementation will persist. Obtain explicit confirmation. If the payload changes materially, renew confirmation before submitting.
- Call
CreateRecordwithtableType: incidentand the confirmedbody. The backend sets the caller from the impersonated ServiceNow user and rejects caller overrides. - Report success only when the action returns an authoritative incident identifier. Do not perform an update, note, or attachment after creation.
Results and Failure Handling
Return the incident number or sys_id, confirmed fields, actual persisted state when
available, and any connector limitation. For native ServiceNow creation, state that only
short_description was submitted and preserve the confirmed detailed handoff separately.
For a custom create-only implementation, claim full description persistence only when the
result or a permitted read confirms it.
If CreateRecord is absent, denied, disconnected, fails, or times out, report the actual
error. For an unknown outcome, search with ListRecords before considering another
creation attempt. Never blindly retry, substitute another connector action, or repair an
incomplete incident through an update. No routing or post-creation write is part of this
skill.
04 同仓库更多 Skills
sn-knowledge-read
Search and read ServiceNow knowledge articles for IT how-to, policy, and troubleshooting questions.
sn-incident-update
Update only approved descriptive fields of an existing ServiceNow incident; never change routing, notes, priority, or lifecycle state.
sn-incident-read
Use when the user asks to find, list, inspect, or check the status of their own ServiceNow incidents, or when an enabled action needs an incident lookup or duplicate check. Retrieve bounded, authorized evidence through ListRecords and GetRecord. Do NOT use for knowledge or catalog searches, other users' incidents, full-population analytics, record mutations, or Dynamics cases.
sn-incident-note
Append an internal work note to an existing ServiceNow incident without changing other fields or publishing a public comment.
sn-incident-close
Close the user's own ServiceNow incident when they explicitly request closure.
sn-incident-attach
Attach approved, sanitized investigation evidence to an existing ServiceNow incident without changing its fields or lifecycle.