Use for any customer support operations question - SLA attainment and breaches (first response, resolution, business hours, weekends, tickets about to breach), how many agents to schedule per hour for a phone, chat or email queue and where the roster is short (Erlang C, service level, handle time, shrinkage, occupancy, backlog), or which ticket topics to deflect with help-center articles, automate with macros or fix as product bugs. Works from a helpdesk ticket export with stdlib scripts.
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Portability: 3 stdlib Python scripts over CSV/JSON you export from any helpdesk. No helpdesk API, no credentials.
Support teams usually argue from anecdotes: "we're swamped", "the SLA is fine", "we need an FAQ". The ticket export settles each one. This skill measures SLA attainment on the clock the contract actually uses, sizes the team with queueing math instead of tickets-per-agent rules of thumb, and separates topics an article can deflect from topics only a product fix will.
# 1 - Are we keeping the promise? What breaches next?
python scripts/sla_check.py --tickets tickets.csv --policy sla_policy.json
# 2 - How many people, when?
python scripts/staffing_plan.py --mode live --intervals volumes.csv --aht 420 --concurrency 2
python scripts/staffing_plan.py --mode async --arrivals 30 --aht 600 --backlog 120
# 3 - Which contact reasons should stop reaching agents?
python scripts/deflection_finder.py --tickets tickets.csvStep 1 computes first-response and resolution attainment per priority on
business or calendar hours (holidays included), p50/p90, open tickets already
breached or due within --risk-hours, backlog age and reopen rate. Open
tickets past target count as misses.
Step 2 uses Erlang C for phone and chat (service level, ASA, occupancy cap,
shrinkage, chat concurrency) and workload plus backlog drain for email. With a
staffed column it shows the gap per interval.
Step 3 ranks the Pareto head of contact reasons and routes each one: DEFLECT when one answer resolves most tickets and few reopen, AUTOMATE when agents adapt a common answer, FIX_ROOT_CAUSE when tickets reopen or describe a defect, REVIEW otherwise.
sla_check.py, don't count hours by hand. Business-hours arithmetic across evenings and weekends is where manual counts go wrong. Name each breached and at-risk ticket with the time left, and say when a clock started later than the ticket (after hours, weekend).Answer in the reply, not only in a file, and never edit the user's input files. Show the working a reviewer would check: the load in Erlangs (arrivals x AHT / 3600), the agent count one below the answer and the service level it misses with, scheduled = on line / (1 - shrinkage), and for each breached or at-risk ticket the time used, the time left and when its clock started (a ticket that arrives after hours or on a weekend starts at the next opening).
| Script | Role | Exit codes |
|---|---|---|
scripts/sla_check.py | Attainment, p50/p90, breached and at-risk open tickets, backlog age, reopens | 0 ok · 2 at risk / below target · 3 bad input · 4 open breaches |
scripts/staffing_plan.py | Agents on line and scheduled per interval, roster gap | 0 ok · 2 roster short · 3 bad input |
scripts/deflection_finder.py | Pareto of contact reasons with DEFLECT / AUTOMATE / FIX_ROOT_CAUSE / REVIEW | 0 none · 2 candidates · 3 bad input |
All support --help, --sample and --output json (--format is an alias).
references/sla_design_and_measurement.md: metrics, clocks, setting targets (5 sources)references/staffing_and_erlang_c.md: the model, its gaps, defaults (5 sources)references/deflection_and_kcs.md: deflect vs automate vs fix, KCS, honest savings claims (5 sources)assets/sla_policy.example.json, assets/tickets.example.csv, assets/intervals.example.csvalirezarezvani/claude-skills
ea7b5ab
Also appears in
since Nov 17, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.