udacity/cd14715-claude-code-classroom/sla-calculation
Claude Code and agent skill by udacity/cd14715-claude-code-classroom
- community
Checking that the SKILL.md file is still in the repository.
Calculate SLA deadlines for support tickets based on customer tier and urgency. Use when determining response deadlines, checking SLA compliance, or when user asks about SLA, deadline, or response time requirements.
Install
npx vskill@latest install udacity/cd14715-claude-code-classroom/sla-calculationSKILL.md
SLA Calculation Skill
This skill teaches Claude how to calculate Service Level Agreement (SLA) deadlines for support tickets.
When to Use This Skill
Use this skill when the user requests:
- "Calculate SLA for this ticket"
- "When is the response due?"
- "What's the deadline for this ticket?"
- "Check SLA compliance"
- "Is this ticket at risk?"
SLA Matrix
Response Time Requirements
| Customer Tier | Urgency | Response Time | Business Hours | |
|---|---|---|---|---|
| Enterprise | URGENT | Immediate | 24/7 | |
| Enterprise | HIGH | < 1 hour | 24/7 | |
| Enterprise | MEDIUM | < 4 hours | Business hours | |
| Enterprise | LOW | < 24 hours | Business hours | |
| Standard | URGENT | < 1 hour | 24/7 | |
| Standard | HIGH | < 4 hours | Business hours | |
| Standard | MEDIUM | < 4 hours | Business hours | |
| Standard | LOW | < 24 hours | Business hours |
Business Hours Definition
- Business hours: Monday-Friday, 9:00 AM - 5:00 PM (local timezone)
- 24/7 coverage: For Enterprise URGENT/HIGH and all URGENT tickets
- Weekend/holiday handling: Business hours SLAs pause, 24/7 SLAs continue
Calculation Process
Step 1: Identify Inputs
Gather:
- Submission time: When ticket was created
- Customer tier: Enterprise or Standard
- Urgency level: URGENT, HIGH, MEDIUM, LOW
- Current time: For calculating time remaining
- Timezone: Customer's local timezone (default: UTC)
Step 2: Determine SLA Window
From the matrix above, find:
- Response time requirement
- Business hours vs 24/7
Step 3: Calculate Deadline
For 24/7 SLAs:
For Business Hours SLAs:
Step 4: Calculate Time Remaining
Step 5: Determine Risk Level
- On track: >50% time remaining (green)
- At risk: 20-50% time remaining (yellow)
- Critical: <20% time remaining (red)
- Breached: Past deadline (red alert)
Examples
See examples.md for detailed calculation scenarios.
Example 1: Enterprise URGENT - 24/7
Inputs:
- Submission: Monday 2:00 PM
- Tier: Enterprise
- Urgency: URGENT
- SLA: Immediate
Calculation:
- Response time: Immediate (interpret as 15 minutes for system purposes)
- Coverage: 24/7
- Deadline: Monday 2:15 PM
- Type: Page on-call immediately
Example 2: Standard MEDIUM - Business Hours
Inputs:
- Submission: Friday 4:00 PM
- Tier: Standard
- Urgency: MEDIUM
- SLA: < 4 hours (business hours)
Calculation:
- Response time: 4 business hours
- Coverage: Business hours (M-F 9am-5pm)
- Friday 4pm + 1 hour = Friday 5pm (end of day)
- Remaining 3 hours → Monday 9am + 3 hours
- Deadline: Monday 12:00 PM
Example 3: Enterprise HIGH - 24/7
Inputs:
- Submission: Saturday 10:00 PM
- Tier: Enterprise
- Urgency: HIGH
- SLA: < 1 hour
Calculation:
- Response time: 1 hour
- Coverage: 24/7 (enterprise high priority)
- Deadline: Saturday 11:00 PM
- Weekend doesn't matter (24/7 coverage)
Business Hours Calculation Rules
Same Day Submission
If submitted during business hours with time remaining:
Weekend Submission
Business hours SLAs start next business day:
Holiday Handling
Holidays counted as non-business days:
Escalation Triggers
Escalate when:
- < 20% time remaining and still unassigned
- < 10% time remaining and not with senior engineer
- SLA breached → Alert manager + create incident
- Enterprise ticket at risk → Alert team lead
Output Format
Special Cases
Immediate Response (URGENT)
"Immediate" = operational definition:
- Immediate acknowledgment: Auto-reply sent immediately
- Initial response: < 15 minutes
- On-call paging: Immediately upon classification
- Escalation: If not picked up in 5 minutes
Timezone Handling
If ticket includes timezone:
- Calculate deadline in customer's timezone
- Convert to UTC for system tracking
- Display in customer's timezone in responses
If timezone unknown:
- Default to UTC
- Note assumption in output
- Recommend timezone confirmation
Multiple SLA Tiers
Some tickets qualify for multiple SLAs:
- Enterprise customer + URGENT → Use strictest (Immediate)
- Take minimum response time when ambiguous
- Document which SLA rule applied
Quality Checklist
Before finalizing SLA calculation:
- [ ] Customer tier identified correctly
- [ ] Urgency level confirmed
- [ ] Business hours vs 24/7 determined
- [ ] Weekends/holidays accounted for
- [ ] Timezone handled appropriately
- [ ] Risk level calculated accurately
- [ ] Escalation triggers checked
Integration with Classification
Typically used after ticket classification:
- Classify ticket (urgency + category)
- Calculate SLA deadline
- Check time remaining
- Determine if escalation needed
- Route to appropriate queue with priority
Tips
Calculating business hours:
- Count only M-F 9am-5pm
- Skip weekends entirely
- Holidays = non-business days
- Partial days calculated hour-by-hour
Handling edge cases:
- Submission at 4:59pm → 1 minute to EOD, rest next day
- Submission at 5:01pm → Starts next business day at 9am
- Submission during holiday → Starts next business day
Risk monitoring:
- Auto-check SLA status every 15 minutes
- Alert at 50%, 20%, 10%, 0%
- Escalate before breach, not after
Success Criteria
A good SLA calculation should:
- ✅ Be accurate within 1 minute
- ✅ Account for business hours correctly
- ✅ Handle timezones appropriately
- ✅ Identify escalation needs proactively
- ✅ Provide clear risk status
- ✅ Enable SLA monitoring and reporting
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglesson-04-claude-code-config/exercise/solution/.claude/skills/sla-calculation/SKILL.md
Popularity
- Repository stars
- 78
- Repository forks
- 147
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/udacity/cd14715-claude-code-classroom/sla-calculation)