Guides setup and extension of the CrestApps Workforce for Contact Center module in Orchard Core. Covers agent scheduling, adherence, forecasting (Holt-Winters, Erlang C/A), intraday management, and Time Tracker integration.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an Orchard Core expert. Generate accurate setup, recipes and extension guidance for the CrestApps Workforce for Contact Center module. Workforce never references the Contact Center; this module references both. It makes every agent a worker (a Staff member, see orchardcore-staff), clocks agents in when they sign in, compares their states with their published shifts, forecasts queue work into coverage for the auto-scheduler, manages the day as it happens, and keeps agent states in Time Tracker.
CrestApps.OrchardCore.Workforce.ContactCenter (or the CrestApps.OrchardCore.Cms.Core.Targets bundle, which includes it) in the web/startup project.CrestApps.OrchardCore.Workforce.Forecasting, CrestApps.OrchardCore.Workforce.Intraday and CrestApps.OrchardCore.Workforce.Adherence.CrestApps.OrchardCore.ContactCenter.IntervalStatistics, which depends on Work Distribution (Queues)). It is enabled for you as a dependency.orchardcore-staff; shifts, the time clock and My Work by orchardcore-workforce; agents, queues and presence by orchardcore-contact-center; Time Tracker by orchardcore-time-tracker.{ "steps": [...] }.sealed modifier, except View Models.| Feature | ID | Depends on |
|---|---|---|
| Workforce for Contact Center | CrestApps.OrchardCore.Workforce.ContactCenter | CrestApps.OrchardCore.Workforce, CrestApps.OrchardCore.ContactCenter.Agents |
| Contact Center Sign-in Punches | CrestApps.OrchardCore.Workforce.ContactCenter.SignInPunches | CrestApps.OrchardCore.Workforce.ContactCenter, CrestApps.OrchardCore.Workforce.TimeClock |
| Workforce Forecasting | CrestApps.OrchardCore.Workforce.Forecasting | CrestApps.OrchardCore.Workforce.ContactCenter, CrestApps.OrchardCore.Workforce.ShiftPlanning, CrestApps.OrchardCore.ContactCenter.IntervalStatistics |
| Workforce Intraday | CrestApps.OrchardCore.Workforce.Intraday | CrestApps.OrchardCore.Workforce.Forecasting |
| Workforce Adherence | CrestApps.OrchardCore.Workforce.Adherence | CrestApps.OrchardCore.Workforce.ContactCenter, CrestApps.OrchardCore.Workforce.ShiftPlanning, CrestApps.OrchardCore.ContactCenter.IntervalStatistics |
| Contact Center Time Tracker | CrestApps.OrchardCore.Workforce.ContactCenter.TimeTracker | CrestApps.OrchardCore.Workforce.ContactCenter, CrestApps.OrchardCore.ContactCenter.IntervalStatistics, CrestApps.OrchardCore.TimeTracker |
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.ContactCenter.Queues",
"CrestApps.OrchardCore.Workforce.ContactCenter",
"CrestApps.OrchardCore.Workforce.ContactCenter.SignInPunches",
"CrestApps.OrchardCore.Workforce.Forecasting",
"CrestApps.OrchardCore.Workforce.Intraday",
"CrestApps.OrchardCore.Workforce.Adherence",
"CrestApps.OrchardCore.Workforce.ContactCenter.TimeTracker"
],
"disable": []
}
]
}
AgentWorkerService lists agents with their staff member ((AgentProfile, StaffMember) pairs), finds the agent of a staff member, and makes workers (EnsureWorkerAsync, CreateMissingAsync) through Staff's IStaffAccountService.EnsureAsync: a new staff member gets the Agent capability (AgentWorkerService.AgentCapability) and the job title "Agent", and someone who is already staff only gains the capability. The Contact Center module itself (with Staff on) also makes every new agent a staff member and adds an Agent card to the staff editor (orchardcore-contact-center). A catalog handler on AgentProfile creates the worker when an agent is created (not on updates, so frequent presence saves never look it up).Admin/workforce/agents, Create workers), which can put them in a team. Needs ManageWorkers.SignInPunchHandler (an IContactCenterEventHandler, delivered at least once through the Contact Center outbox) handles AgentStateChanged:
SignIn, or Offline to another state) clocks the worker in with source ContactCenter, unless already clocked in another way.SignOut, or any state to Offline) clocks out only when the open stretch began with a contact center punch.contact-center:<event id>, so a redelivered event punches once. A refused punch (no time clock policy, source not allowed) is logged and skipped.ContactCenter punch source is described by ContactCenterTimePunchSourceProvider (an ITimePunchSourceProvider), so time clock policies offer The contact center under Workers can punch from only while this feature is on.AdherenceCalculator (pure) builds the schedule from published shifts and compares each moment with the agent's state. Adherence = time in adherence over scheduled time less exceptions; conformance = time in a working state (available, reserved, busy, wrap-up) over scheduled work.AdherenceRuleSet (Name, TeamIds, Rules): one AdherenceRule per activity Kind or ActivityCodeId, with AllowedStatuses (AgentPresenceStatus names such as Available, Reserved, Busy, WrapUp, Break, Away, Offline, Meeting, Training), AllowedReasons, StartGraceMinutes, EndGraceMinutes, MinimumOutMinutes, AlertAfterMinutes. A team uses its own set or its nearest parent's, else AdherenceCalculator.DefaultRules (grace 2, shortest slip 1, alert after 5 minutes).AdherenceService: CurrentAsync, BoardAsync (live board), RaiseAlertsAsync (once per out-of-adherence episode, recorded in AdherenceAlert), ComputeDayAsync, SaveDayAsync (an AdherenceDay with segments, in the worker's zone from IWorkerTimeZoneService), exceptions as AdherenceException documents.IAgentStateHistory (in CrestApps.OrchardCore.ContactCenter.Core).Admin/my-work/adherence shows the worker's latest 14 saved days; Adherence appears in the My Work menu once a day is saved (MyAdherenceLinkProvider).PlanningGroup: Name, QueueIds, optional Channel, TeamId (who staffs it), ServiceLevelPercent and ServiceLevelSeconds and/or AverageSpeedOfAnswerSeconds, MaxOccupancyPercent, Concurrency (contacts at once), PatienceSeconds (turns on Erlang A), ShrinkagePercent, HistoryWeeks.ForecastEvent: Name, Kind (Holiday, Closure, Promotion, Outage, Custom), StartDate, EndDate, VolumeMultiplier (0 closes), RecursYearly, PlanningGroupIds (empty for all).ForecastService.CreateAsync reads the group's queue intervals in the team's zone and builds a Draft forecast: daily volume by WeightedHistory or HoltWinters (Auto back-tests both on two weeks and keeps the lower error, recording MAPE and WAPE), events applied, 15-minute intervals by each weekday's curve, handle time per interval, and staffing per interval with ErlangCalculator (Erlang C, or Erlang A with patience) to the service goal within the occupancy cap, then shrinkage.AdjustAsync changes days by a percentage; ActivateAsync makes it the group's Active forecast (the previous one is Superseded) and writes the team's coverage requirement Forecast: group name (CoverageSource.Forecast; minimum = agents needed, target = agents to schedule), which the planner board and auto-scheduler use unchanged.CapacityPlan: PlanningGroupId, StartDate moved to its Monday, up to 78 Weeks, WeeklyWorkloadHours or the last four weeks' average, GrowthPercentPerYear, HoursPerFte, CurrentFte, AttritionPercentPerMonth, HiringClasses with StartDate, Size, TrainingWeeks, RampWeeks). CapacityPlanner.Project (pure) works out agents needed against agents expected each week and the class that would cover the worst week.IntradayService.DayAsync shows a planning group's day every 15 minutes: forecast against actual volume, handle time and service level, agents needed against scheduled (ICoverageService) and available. ReforecastAsync scales the rest of the day by IntradayCalculator.ReforecastFactor (half the difference, 0.25 to 4) and updates coverage. IntradayCalculator.FindWindows finds the quietest times for a meeting. An IntradayOffer posts voluntary overtime or time off for a number of places; workers take it on the Offers page of My Work (Admin/my-work/offers), which lengthens or shortens their shift through IShiftService.ChangeTimesAsync as their own change (no predictability pay).
ContactCenterTimeStages site setting maps each AgentPresenceStatus and each break reason (which wins) to a Time Tracker stage by name; a state with no stage isn't tracked. Turning the feature on seeds Available, On a call, Wrap-up, Meeting and Training (in Paid and Worked) and Break and Away (no category). Set them on Time Tracker > Contact Center Stages (Admin/time/contact-center-stages).AgentStateTimeTrackerHandler rebuilds the last ten minutes of an agent's states on every AgentStateChanged with ITimeTrackerService.SyncAsync (ReplacesRangeOnly, ManagedBy Workforce.ContactCenter, overriding Workforce.TimeClock), so clocked work is cut around states while the agent is signed in. Works for any agent with a user, worker or not.| Menu | Routes (under Admin/) | Permission |
|---|---|---|
| Workforce > Contact Center Agents | workforce/agents | ManageWorkers |
| Workforce > Adherence > Real-Time, Exceptions | workforce/adherence, workforce/adherence/exceptions, workforce/adherence/worker/{workerId} | ViewWorkforceAdherence |
| Workforce > Adherence > Rule Sets | workforce/adherence/rule-sets | ManageWorkforceAdherence |
| Workforce > Forecasting > Intraday | workforce/intraday | ManageWorkforceForecasts |
| Workforce > Forecasting > Forecasts, Planning Groups, Capacity Plans, Forecast Events | workforce/forecasts, workforce/forecasting/planning-groups, workforce/capacity-plans, workforce/forecasting/events | ManageWorkforceForecasts |
| Time Tracker > Contact Center Stages | time/contact-center-stages | ManageTimeTrackerSettings |
| Contact Center interval statistics (rebuild) | contact-center/interval-statistics | Contact Center |
| Permission | Display name | Implied by | Default role |
|---|---|---|---|
ManageWorkforceForecasts | Manage forecasts (planning groups, events, forecasts, capacity plans, intraday and offers, forecast data set) | ManageAllWorkforce | Administrator |
ManageWorkforceAdherence | Manage adherence rules and exceptions | ManageAllWorkforce | Administrator |
ViewWorkforceAdherence | View adherence (board, days, exceptions, data sets, for managed teams) | ManageWorkforceAdherence | Administrator |
| Step | Feature | Sections |
|---|---|---|
WorkforceForecasting | Workforce Forecasting | PlanningGroups (queueNames, teamName), ForecastEvents (planningGroupNames, none for all), CapacityPlans (planningGroupName, hiringClasses) |
WorkforceAdherence | Workforce Adherence | RuleSets (teamNames; a rule's activity code by activityName) |
{
"steps": [
{
"name": "WorkforceForecasting",
"PlanningGroups": [
{ "name": "Support voice", "queueNames": [ "Support" ], "teamName": "Customer Care", "serviceLevelPercent": 80, "serviceLevelSeconds": 20, "maxOccupancyPercent": 85, "shrinkagePercent": 32, "historyWeeks": 8 }
],
"ForecastEvents": [
{ "name": "New Year's Day", "kind": "Holiday", "startDate": "2027-01-01", "endDate": "2027-01-01", "volumeMultiplier": 0.3, "recursYearly": true }
]
},
{
"name": "WorkforceAdherence",
"RuleSets": [
{
"name": "Customer Care",
"teamNames": [ "Customer Care" ],
"rules": [
{ "kind": "Work", "allowedStatuses": [ "Available", "Reserved", "Busy", "WrapUp" ], "startGraceMinutes": 2, "endGraceMinutes": 2, "minimumOutMinutes": 1, "alertAfterMinutes": 5 },
{ "kind": "Break", "allowedStatuses": [ "Break", "Away", "Offline" ], "startGraceMinutes": 2, "endGraceMinutes": 3, "minimumOutMinutes": 1, "alertAfterMinutes": 10 }
]
}
]
}
]
}
WorkforceAdherence), Forecasting setup (WorkforceForecasting), and the Contact Center time stages site settings step.WorkforceContactCenterSample) sets up a Customer Care team, a Support queue, a planning group, a holiday and a promotion, a capacity plan with two hiring classes and adherence rules. Full JSON is in references/workforce-contact-center-recipes.md.WorkforceOutOfAdherenceEvent, category Workforce, team filter), once per episode, input WorkerId, WorkerName, TeamId, Status, Reason, ScheduledActivity, OutSinceUtc, Minutes. Needs OrchardCore.Workflows.CrestApps.OrchardCore.AI): workforceForecastSummary (Forecasting, needs ManageWorkforceForecasts) and workforceOutOfAdherence (Adherence, needs ViewWorkforceAdherence).OrchardCore.DataPipelines.Core): WorkforceAdherenceDays and WorkforceAdherenceSegments (date-only Day, readers with View adherence, limited to their teams) and WorkforceForecastIntervals (Manage forecasts; filter Status to Active). The Contact Center data source lists Queue intervals and Agent intervals (orchardcore-report-builder).| Seam | Owner | Use it to |
|---|---|---|
IContactCenterEventHandler | Contact Center | React to AgentStateChanged and other outbox events, as the punch and Time Tracker handlers do. |
IAgentStateHistory | Contact Center Core | Read an agent's state spans for a range. |
IIntervalStatisticsReader | Contact Center Core | Read the 15-minute queue and agent statistics. |
IWorkerTimeZoneService | Workforce | A worker's zone (GetAsync(StaffMember, teamId): theirs, the team's, the site's). |
IStaffMemberManager, IStaffDirectory | Staff | Read workers (agents' staff members); StaffQuery { HasUser = true } lists the ones agents can be. |
ITimePunchSourceProvider | Workforce | Describe a new punch source for policies and timesheets. |
IMyWorkLinkProvider | Workforce | Add a page to the My Work menu (Offers and Adherence use it); GetLinksAsync receives the StaffMember. |
public sealed class ChatPunchSourceProvider : ITimePunchSourceProvider
{
internal readonly IStringLocalizer S;
public ChatPunchSourceProvider(IStringLocalizer<ChatPunchSourceProvider> stringLocalizer)
{
S = stringLocalizer;
}
public IEnumerable<TimePunchSourceDescriptor> GetSources()
{
// Name, display name, the phrase used inside sentences, and an optional hint.
yield return new TimePunchSourceDescriptor("ChatDesk", S["The chat desk"], S["the chat desk"], S["Agents opening and closing the chat desk."]);
}
}
// Startup: services.AddScoped<ITimePunchSourceProvider, ChatPunchSourceProvider>();
Punches with your source then go through ITimeClockService.PunchAsync with one idempotency key per event, as SignInPunchHandler does with contact-center:<event id>.
CrestApps.OrchardCore.Workforce meter (WorkforceTelemetry.RecordAdherenceAlert, tagged with the scheduled activity kind and status). See orchardcore-observability..ExclusiveToDocumentType() and .SingleRecordPerDocument().| Symptom | Check |
|---|---|
| Adherence board empty | No published shifts for the agents' workers, agents have no staff record (create them on Contact Center Agents), or their staff member isn't Active. |
| Agents not clocked in on sign-in | Sign-in Punches off, no time clock policy on the worker's team, or the policy doesn't allow the contact center source. |
| Forecast is flat or empty | The planning group's queues have no interval statistics yet; Interval Statistics needs history (rebuild it from its page). |
| Auto-scheduler ignores the forecast | Activate the forecast; only the active one writes coverage. |
| Offers don't appear in My Work | Intraday and the My Work Portal must be on and the worker on the staffing team. |
| Agent time shows twice in reports | Contact Center Time Tracker overrides the time clock only while signed in; check the stage mapping. |
Related skills: orchardcore-workforce, orchardcore-staff, orchardcore-contact-center, orchardcore-time-tracker, orchardcore-teams, orchardcore-skills, orchardcore-report-builder.
What SKILL.md sets; muted values are Claude Code's defaults
/crestapps-orchardcore:orchardcore-workforce-contact-centerfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job