trend-analysis
Skill41 starsChanged 18 days agoApache-2.0View on GitHub
Incident volume trends, category distribution, seasonal patterns, and predictive indicators
10 other projects use a version of this.
Adopted by
Most recently taken up by
- GoogleCloudPlatform/cloud-solutionstheir own version, first seen Oct 13, 2026
- awslabs/agentcore-samplestheir own version, first seen Oct 13, 2026
- jerry609/PaperBottheir own version, first seen Oct 8, 2026
- modeled-information-format/mif-docs-plugintheir own version, first seen Oct 8, 2026
- awslabs/amazon-bedrock-agentcore-samplestheir own version, first seen Oct 8, 2026
- Latifox/find-me-saastheir own version, first seen Sep 6, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- awslabs/agentcore-samples★ 3.5ksame name
- awslabs/amazon-bedrock-agentcore-samples★ 3.5ksame name
- MaxKmet/idea-validation-agents★ 449same name
- GoogleCloudPlatform/cloud-solutions★ 139same name
- jerry609/PaperBot★ 108same name
- Latifox/find-me-saas★ 10same name
- xiejianjun000/FlowWiki★ 4same name
- Lotus-7/creator-toolkit★ 3same name
- modeled-information-format/mif-docs-plugin★ 1same name
- CAPP-Financials/Consulting_Brain★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository184 other files it gives its agents.
- happy-platform-skillsSkill
- application-scopeSkill
- batch-operationsSkill
- configuration-validationSkill
- deployment-workflowSkill
- generic-crud-operationsSkill
- instance-managementSkill
- schema-discoverySkill
- script-executionSkill
- script-syncSkill
- smart-assessmentSkill
- task-analysisSkill
- task-summarizationSkill
- update-set-managementSkill
- user-provisioningSkill
- workflow-creationSkill
- workspace-insightsSkill
- approval-summarizationSkill
- approval-workflowsSkill
- catalog-builder-aiSkill
- catalog-item-generationSkill
- item-creationSkill
- multi-turn-orderingSkill
- request-fulfillmentSkill
- ui-policiesSkill
- variable-managementSkill
- ci-discoverySkill
- cmdb-search-analysisSkill
- data-qualitySkill
- impact-analysisSkill
- relationship-mappingSkill
- service-graph-diagnosisSkill
- activity-responseSkill
- csm-case-summarizationSkill
- chat-recommendationSkill
- email-recommendationSkill
- csm-kb-generationSkill
- resolution-notesSkill
- csm-sentiment-analysisSkill
- csm-sidebar-summarizationSkill
- csm-suggested-stepsSkill
- trending-topicsSkill
- automated-testingSkill
- business-rulesSkill
- client-scriptsSkill
- code-assistSkill
- code-reviewSkill
- data-importSkill
- debugging-techniquesSkill
- fluent-sdkSkill
- glide-api-referenceSkill
- mcp-server-installationSkill
- mcp-serverSkill
- notificationsSkill
- performance-optimizationSkill
- scheduled-jobsSkill
- scripted-rest-apisSkill
- script-includesSkill
- servicenow-docs-mcpSkill
- test-generationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Access: Read access to incident, problem, and related tables
- Distinctive: line 319
If daily count exceeds threshold, investigate:
- Distinctive: line 360
Consistent Time Zones: Ensure all queries use the same timezone
- Distinctive: line 361
Statistical Significance: Use 90+ days for reliable patterns
- Distinctive: line 364
Visualization: Use charts for pattern recognition
- Distinctive: line 383
Solution: Wait for more data; use industry benchmarks as proxy
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Trend Analysis
Overview
This skill provides comprehensive trend analysis for ServiceNow ITSM data. It enables you to:
- Analyze incident volume trends over time (daily, weekly, monthly, quarterly)
- Identify category and priority distribution changes
- Detect seasonal and cyclical patterns
- Recognize predictive indicators for capacity planning
- Generate actionable insights for resource allocation
When to use: For capacity planning, resource forecasting, identifying systemic issues, preparing trend reports, or detecting anomalies requiring investigation.
Prerequisites
- Roles:
report_admin,itil, oranalytics_admin - Access: Read access to incident, problem, and related tables
- Knowledge: Basic statistics and understanding of organizational patterns
- Data: Minimum 90 days of historical data recommended; 12 months ideal for seasonal analysis
Procedure
Step 1: Establish Baseline Metrics
Query historical data to establish baselines for comparison.
Using MCP (Claude Code/Desktop):
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 90 days@javascript:gs.daysAgoStart(90)@javascript:gs.daysAgoEnd(0)
fields: sys_id,number,sys_created_on,priority,category,state,assignment_group
limit: 5000Using REST API:
GET /api/now/table/incident?sysparm_query=sys_created_onONLast 90 days@javascript:gs.daysAgoStart(90)@javascript:gs.daysAgoEnd(0)&sysparm_fields=sys_id,number,sys_created_on,priority,category,state,assignment_group&sysparm_limit=5000Step 2: Daily Volume Trend Analysis
Track incident creation patterns by day.
Query for Daily Breakdown (Using GlideAggregate):
Tool: SN-Execute-Background-Script
Parameters:
script: |
var ga = new GlideAggregate('incident');
ga.addQuery('sys_created_on', '>=', gs.daysAgo(30));
ga.addAggregate('COUNT');
ga.groupBy('sys_created_on');
ga.orderBy('sys_created_on');
ga.query();
var dailyCounts = [];
while (ga.next()) {
var dateStr = ga.getValue('sys_created_on').substring(0, 10);
dailyCounts.push({
date: dateStr,
count: parseInt(ga.getAggregate('COUNT'))
});
}
gs.info('Daily Volume: ' + JSON.stringify(dailyCounts));
description: Aggregate daily incident countsManual Calculation (Without GlideAggregate): Query incidents for specific date ranges:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onON2024-01-15@javascript:gs.dateGenerate('2024-01-15','00:00:00')@javascript:gs.dateGenerate('2024-01-15','23:59:59')
fields: sys_id
limit: 500Step 3: Weekly Volume Comparison
Compare week-over-week to identify trends.
Current Week:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)
fields: sys_id,priority,category
limit: 1000Previous Week:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 7 days@javascript:gs.daysAgoStart(14)@javascript:gs.daysAgoEnd(7)
fields: sys_id,priority,category
limit: 1000Week-over-Week Analysis:
| Week | Volume | Change | % Change |
| Current | 145 | +12 | +9.0% |
| Previous | 133 | -5 | -3.6% |
| 2 Weeks Ago | 138 | +8 | +6.2% |
| 3 Weeks Ago | 130 | - | Baseline |
Step 4: Category Distribution Analysis
Track how incident categories change over time.
Query Category Distribution:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
fields: sys_id,category
limit: 2000Process results to create distribution:
Category Distribution (Last 30 Days):
| Category | Count | % of Total | Prev Month % | Change |
|----------|-------|------------|--------------|--------|
| Software | 245 | 32% | 28% | +4% |
| Network | 189 | 25% | 30% | -5% |
| Hardware | 152 | 20% | 18% | +2% |
| Email | 98 | 13% | 12% | +1% |
| Security | 76 | 10% | 12% | -2% |Step 5: Priority Trend Analysis
Monitor priority distribution changes.
Query Priority Distribution Over Time:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
fields: sys_id,priority,sys_created_on
limit: 2000Priority Shift Indicators:
| Indicator | Meaning | Action |
| P1/P2 increasing | Critical issues rising | Investigate root cause |
| P3/P4 increasing | Normal growth or triage issues | Review triage process |
| P1 stable, P2 rising | Escalation threshold changing | Review urgency criteria |
Step 6: Day-of-Week Patterns
Identify which days see highest incident volume.
Query Incidents by Day:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 90 days@javascript:gs.daysAgoStart(90)@javascript:gs.daysAgoEnd(0)
fields: sys_id,sys_created_on
limit: 5000Process to extract day of week:
Day of Week Analysis (90-Day Average):
| Day | Avg Volume | vs Overall Avg | Staffing Recommendation |
|-----|------------|----------------|------------------------|
| Monday | 32 | +23% | Full staff + OT |
| Tuesday | 28 | +8% | Full staff |
| Wednesday | 26 | 0% | Normal |
| Thursday | 25 | -4% | Normal |
| Friday | 24 | -8% | Normal, early close OK |
| Saturday | 8 | -69% | Weekend skeleton |
| Sunday | 7 | -73% | Weekend skeleton |Step 7: Hour-of-Day Patterns
Identify peak hours for staffing optimization.
Query with Time Breakdown:
Tool: SN-Execute-Background-Script
Parameters:
script: |
var ga = new GlideAggregate('incident');
ga.addQuery('sys_created_on', '>=', gs.daysAgo(30));
ga.addAggregate('COUNT');
ga.query();
// Note: For hourly analysis, use sys_created_on timestamp
// and extract hour component in processing
var total = ga.getAggregate('COUNT');
gs.info('Total incidents: ' + total);
description: Count incidents for hourly analysisTypical Hour Distribution:
Hourly Volume Pattern (30-Day Analysis):
Peak Hours: 8am-11am (35% of daily volume)
Secondary Peak: 1pm-3pm (25% of daily volume)
Low Period: 6pm-6am (15% of daily volume)
Staffing Recommendation:
- Core Hours (8am-5pm): 80% of staff
- Extended Hours (5pm-8pm): 15% of staff
- Night/Weekend: 5% of staffStep 8: Seasonal and Cyclical Patterns
Identify recurring patterns based on calendar events.
Query Monthly Volumes (Year-over-Year): For each month, query:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onON2024-01-01@javascript:gs.dateGenerate('2024-01-01','00:00:00')@javascript:gs.dateGenerate('2024-01-31','23:59:59')
fields: sys_id
limit: 2000Common Seasonal Patterns:
| Period | Pattern | Likely Cause |
| January | +15-20% | Holiday backlog, new year issues |
| March/April | +10% | Fiscal year-end, system changes |
| June-August | -10-15% | Vacation period, reduced activity |
| September | +20% | Back-to-school/work, new hires |
| November | +5% | Pre-holiday changes |
| December | -20% | Holiday shutdown |
Step 9: Predictive Indicators
Identify leading indicators for future incident volume.
Change Volume Correlation: High change volume often precedes incident spikes.
Tool: SN-Query-Table
Parameters:
table_name: change_request
query: sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
fields: sys_id,type,cmdb_ci
limit: 500Problem Creation as Leading Indicator:
Tool: SN-Query-Table
Parameters:
table_name: problem
query: sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
fields: sys_id,category,first_reported_by_task
limit: 100Leading Indicators to Monitor:
| Indicator | Correlation | Lag Time |
| Change volume | +0.65 | 1-3 days |
| New employee count | +0.45 | 1-2 weeks |
| Software deployments | +0.72 | 1-7 days |
| Infrastructure alerts | +0.80 | 0-24 hours |
| Problem records created | +0.55 | 1-4 weeks |
Step 10: Anomaly Detection
Identify unusual patterns requiring investigation.
Calculate Statistical Boundaries:
Rolling 30-Day Average: 26 incidents/day
Standard Deviation: 6 incidents
Upper Threshold (2σ): 38 incidents/day
Lower Threshold (2σ): 14 incidents/day
Any day outside 14-38 range = Anomaly requiring investigationQuery Recent Anomalies: If daily count exceeds threshold, investigate:
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^ORDERBYcategory
fields: sys_id,category,short_description,cmdb_ci
limit: 100Tool Usage
MCP Tools Reference
| Tool | When to Use |
SN-Query-Table | Primary tool for querying historical data |
SN-Natural-Language-Search | Natural language queries for quick exploration |
SN-Execute-Background-Script | Complex aggregations using GlideAggregate |
REST API Reference
| Endpoint | Method | Purpose |
/api/now/table/incident | GET | Query incident history |
/api/now/stats/incident | GET | Statistical aggregations |
/api/now/table/change_request | GET | Change correlation data |
Key Fields for Trend Analysis
| Field | Purpose |
| sys_created_on | Incident creation timestamp |
| category | Category classification |
| priority | Priority level |
| assignment_group | Team assignment |
| cmdb_ci | Configuration item |
| state | Current state |
Best Practices
- Consistent Time Zones: Ensure all queries use the same timezone
- Statistical Significance: Use 90+ days for reliable patterns
- Seasonal Adjustment: Compare same periods year-over-year
- Correlation Analysis: Link incidents to changes, problems, and CIs
- Visualization: Use charts for pattern recognition
- Automate Alerts: Set up alerts for statistical anomalies
- Document Exceptions: Note one-time events that skew data
Troubleshooting
"Data shows unexpected spikes"
Cause: Major incident, system outage, or bulk ticket creation Solution: Filter out known major incidents; document the event as an exception
"Year-over-year comparison not matching"
Cause: Business changes, mergers, or organizational restructuring Solution: Normalize for headcount or scope changes; note structural differences
"Seasonal patterns not appearing"
Cause: Insufficient historical data (less than 12 months) Solution: Wait for more data; use industry benchmarks as proxy
"Day-of-week patterns inconsistent"
Cause: Holidays, company events, or remote work changes Solution: Exclude holiday weeks; separate analysis for remote vs. office periods
Examples
Example 1: Weekly Trend Report
Objective: Generate weekly trend summary for management
Queries:
// This Week
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)
fields: sys_id,priority,category,sys_created_on
limit: 500
// Previous Week
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 7 days@javascript:gs.daysAgoStart(14)@javascript:gs.daysAgoEnd(7)
fields: sys_id,priority,category,sys_created_on
limit: 500
// Same Week Last Year (if available)
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onON2023-01-15@javascript:gs.dateGenerate('2023-01-15','00:00:00')@javascript:gs.dateGenerate('2023-01-21','23:59:59')
fields: sys_id,priority,category
limit: 500Output Report:
=== WEEKLY TREND REPORT ===
Week: Jan 15-21, 2024
VOLUME COMPARISON:
| Period | Volume | Change |
|--------|--------|--------|
| This Week | 152 | - |
| Last Week | 138 | +10.1% |
| Same Week Last Year | 165 | -7.9% |
| 4-Week Average | 142 | +7.0% |
TREND ASSESSMENT: Moderate Increase (within normal range)
DAILY BREAKDOWN:
| Day | Volume | vs Avg |
|-----|--------|--------|
| Mon | 35 | +17% |
| Tue | 28 | -7% |
| Wed | 25 | -17% |
| Thu | 22 | -27% |
| Fri | 24 | -20% |
| Sat | 10 | -67% |
| Sun | 8 | -73% |
Monday spike correlates with 3 changes deployed over weekend.
CATEGORY SHIFTS:
| Category | This Week | Last Week | Change |
|----------|-----------|-----------|--------|
| Software | 52 (34%) | 42 (30%) | +4% |
| Network | 38 (25%) | 42 (30%) | -5% |
| Hardware | 30 (20%) | 28 (20%) | 0% |
| Email | 18 (12%) | 14 (10%) | +2% |
| Security | 14 (9%) | 12 (9%) | 0% |
SOFTWARE TREND: +4% increase requires investigation
- 15 incidents related to new CRM deployment
- Recommend knowledge article for common CRM issues
FORECAST (Next Week):
Based on 8-week trend and scheduled changes:
Expected Volume: 145-160 incidents
Confidence: Medium (upcoming holiday may reduce volume)Example 2: Capacity Planning Report
Objective: Forecast staffing needs for next quarter
Analysis Process:
- Historical Volume (Last 12 Months):
Tool: SN-Query-Table
Parameters:
table_name: incident
query: sys_created_onONLast 365 days@javascript:gs.daysAgoStart(365)@javascript:gs.daysAgoEnd(0)
fields: sys_id,sys_created_on,priority
limit: 10000- Calculate Monthly Averages:
Monthly Volume Summary:
Jan: 720 | Feb: 680 | Mar: 750
Apr: 710 | May: 695 | Jun: 620
Jul: 580 | Aug: 590 | Sep: 780
Oct: 740 | Nov: 700 | Dec: 550
Average: 676/month
Peak: September (780) - Back to school/work
Low: December (550) - Holiday period- Forecast Next Quarter:
=== Q2 2024 CAPACITY FORECAST ===
VOLUME PROJECTION:
| Month | Projected | Confidence | Factors |
|-------|-----------|------------|---------|
| April | 720-750 | High | Fiscal year end |
| May | 700-730 | High | Normal |
| June | 630-660 | Medium | Summer start |
STAFFING REQUIREMENTS:
Current Capacity: 750 incidents/month (5 FTEs)
Incidents per FTE: 150/month
| Month | Volume | FTEs Needed | Current | Gap |
|-------|--------|-------------|---------|-----|
| April | 735 | 5.0 | 5 | 0 |
| May | 715 | 4.8 | 5 | +0.2 |
| June | 645 | 4.3 | 5 | +0.7 |
RECOMMENDATIONS:
1. April: Full staffing required, no vacations
2. May: Normal operations, 1 vacation slot OK
3. June: Good time for training, 2 vacation slots OK
RISK FACTORS:
- ERP upgrade scheduled for April 15: +20% volume risk
- New office opening in May: +50 incidents/month expected
ADJUSTED FORECAST WITH RISKS:
| Month | Base | Risk Adjusted | FTEs Needed |
|-------|------|---------------|-------------|
| April | 735 | 880 | 6.0 |
| May | 715 | 815 | 5.5 |
| June | 645 | 695 | 4.7 |
Recommendation: Hire 1 contractor for April-May to cover ERP riskExample 3: Root Cause Trend Investigation
Objective: Investigate why Software incidents increased 15% this month
Step 1: Identify the increase
Tool: SN-Query-Table
Parameters:
table_name: incident
query: category=Software^sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
fields: sys_id,short_description,cmdb_ci,subcategory,assignment_group,sys_created_on
limit: 500Step 2: Drill down by subcategory
Software Incident Breakdown:
| Subcategory | This Month | Last Month | Change |
|-------------|------------|------------|--------|
| CRM | 85 | 45 | +89% |
| Email | 42 | 48 | -12% |
| ERP | 38 | 35 | +9% |
| Office Suite | 35 | 40 | -12% |
| Other | 45 | 42 | +7% |
CRM subcategory driving entire increase!Step 3: Analyze CRM incidents
Tool: SN-Query-Table
Parameters:
table_name: incident
query: category=software^cmdb_ci.nameLIKECRM^sys_created_on>=javascript:gs.beginningOfThisMonth()
fields: sys_id,short_description,sys_created_on
limit: 100Step 4: Identify patterns
=== CRM INCIDENT TREND ANALYSIS ===
TIMELINE:
- Month start (Day 1-10): 15 incidents (normal)
- Mid-month (Day 11-20): 45 incidents (+200%)
- Month end (Day 21-30): 25 incidents (+67%)
CORRELATION:
- CRM v4.2 deployed on Day 10
- 70% of incidents reference "login" or "sync" issues
- All incidents assigned to Application Support
TOP ISSUES:
1. "Unable to sync contacts" - 32 incidents
2. "Login timeout errors" - 28 incidents
3. "Report generation failing" - 15 incidents
4. Other - 10 incidents
ROOT CAUSE:
CRM v4.2 deployment introduced authentication bug
affecting mobile sync and session timeout.
RECOMMENDATIONS:
1. IMMEDIATE: Deploy hotfix for authentication issue
2. SHORT-TERM: Create knowledge article for workaround
3. LONG-TERM: Improve deployment testing for auth changes
PREDICTED IMPACT:
After hotfix deployment, expect:
- Week 1: 50% reduction in CRM incidents
- Week 2: Return to baseline (45/month)Related Skills
reporting/sla-analysis- SLA performance trackingreporting/executive-dashboard- Executive KPI generationitsm/incident-lifecycle- Full incident managementitsm/problem-analysis- Root cause investigation
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

