skills/itsm/incident-lifecycle/SKILL.md
Complete incident lifecycle management from creation through resolution and closure
npx skillsauth add happy-technologies-llc/happy-servicenow-skills incident-lifecycleInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill covers the complete lifecycle of an incident in ServiceNow, following ITIL best practices:
itil for most operations, incident_manager for some overridesCreate a well-documented incident with all required information.
Using MCP:
Tool: SN-Create-Incident
Parameters:
short_description: "Brief summary of the issue"
description: "Detailed description including:
- What happened
- When it started
- Who is affected
- What has been tried"
caller_id: [user_sys_id or username]
category: software
subcategory: application
impact: 2
urgency: 2
assignment_group: Service Desk
Using REST API:
POST /api/now/table/incident
Content-Type: application/json
{
"short_description": "Brief summary",
"description": "Detailed description...",
"caller_id": "user_sys_id",
"category": "software",
"impact": "2",
"urgency": "2",
"assignment_group": "group_sys_id"
}
Best Practices for Creation:
Ensure the incident is properly classified.
Category Hierarchy:
Hardware
├── Computer
├── Monitor
├── Printer
└── Mobile Device
Software
├── Operating System
├── Application
├── Email
└── Database
Network
├── Connectivity
├── VPN
└── WiFi
Request
├── Access
├── Installation
└── Information
Priority Matrix: | Impact ↓ / Urgency → | 1-High | 2-Medium | 3-Low | |----------------------|--------|----------|-------| | 1-High | P1 | P2 | P3 | | 2-Medium | P2 | P3 | P4 | | 3-Low | P3 | P4 | P5 |
Route to the appropriate resolution team.
Using MCP:
Tool: SN-Assign-Incident
Parameters:
sys_id: [incident_sys_id]
assignment_group: Desktop Support
assigned_to: john.smith # Optional: specific person
work_notes: "Assigned based on hardware category"
Document all investigation steps.
Add Work Notes (Internal):
Tool: SN-Add-Work-Notes
Parameters:
sys_id: [incident_sys_id]
work_notes: |
Investigation Steps:
1. Verified user credentials - OK
2. Checked network connectivity - OK
3. Reviewed application logs - Found error
4. Identified root cause: Corrupted cache
Next: Clear application cache and test
Add Comments (Customer-visible):
Tool: SN-Add-Comment
Parameters:
sys_id: [incident_sys_id]
comment: "We are investigating your issue and have identified a potential cause. We will update you shortly with a solution."
State Transitions During Work:
New (1) → In Progress (2) → On Hold (3) → In Progress (2) → Resolved (6)
Update State:
Tool: SN-Update-Record
Parameters:
table_name: incident
sys_id: [incident_sys_id]
data:
state: 2 # In Progress
work_notes: "Starting investigation"
Document the fix and resolve the incident.
Using MCP:
Tool: SN-Resolve-Incident
Parameters:
sys_id: [incident_sys_id]
resolution_code: Solved (Permanently)
resolution_notes: |
Root Cause: Application cache was corrupted after update
Resolution:
1. Cleared application cache folder
2. Restarted application service
3. Verified user can now access the application
Prevention: Scheduled cache cleanup added to maintenance window
Resolution Codes:
Solved (Permanently) - Issue fully resolvedSolved (Workaround) - Temporary fix appliedNot Solved (Not Reproducible) - Could not reproduceNot Solved (Too Costly) - Fix not cost-effectiveClosed/Resolved by Caller - User resolved themselvesVerify with user and close the incident.
Add Customer Comment for Verification:
Tool: SN-Add-Comment
Parameters:
sys_id: [incident_sys_id]
comment: "Your incident has been resolved. Please confirm the issue is fixed. If you don't respond within 3 business days, this incident will be automatically closed."
Close the Incident:
Tool: SN-Close-Incident
Parameters:
sys_id: [incident_sys_id]
close_code: Solved (Permanently)
close_notes: "User confirmed resolution. Closing incident."
┌─────────┐ ┌────────────┐ ┌─────────┐
│ New │───►│ In Progress│───►│ On Hold │
│ (1) │ │ (2) │◄───│ (3) │
└────┬────┘ └─────┬──────┘ └─────────┘
│ │
│ ▼
│ ┌──────────┐ ┌─────────┐
└────────►│ Resolved │───►│ Closed │
│ (6) │ │ (7) │
└──────────┘ └─────────┘
| Phase | MCP Tools | REST Endpoints | |-------|-----------|----------------| | Create | SN-Create-Incident | POST /incident | | Update | SN-Update-Record | PATCH /incident/{id} | | Assign | SN-Assign-Incident | PATCH /incident/{id} | | Notes | SN-Add-Work-Notes, SN-Add-Comment | POST /sys_journal_field | | Resolve | SN-Resolve-Incident | PATCH /incident/{id} | | Close | SN-Close-Incident | PATCH /incident/{id} |
Cause: State transition not allowed or missing required fields Solution: Check state transition rules; ensure resolution fields are set before resolving
Cause: Journal field permissions or wrong field name
Solution: Verify role permissions; use work_notes not comments for internal notes
Cause: User replied to notification email Solution: Check inbound email actions; update work notes to acknowledge
itsm/incident-triage - Initial triage processitsm/major-incident - P1 incident handlingitsm/problem-analysis - Root cause analysisadmin/sla-management - SLA trackingtesting
Manage supplier onboarding, qualification, performance monitoring, and offboarding with auditable lifecycle controls
tools
Identify emerging risks, prioritize intake signals, and route candidates into formal GRC risk assessment workflows
documentation
Screen inbound documents for completeness, policy risk, and routing readiness before extraction or case workflows
testing
Generate concise task summaries with status, timeline, blockers, SLA risk, and recommended next actions