/sf-service-itsm:service-itsm-agentic-setup-incident-sla-configurefrom sf-service-itsm
Configures a complete Incident SLA pipeline for Service Cloud ITSM: Business Hours, MilestoneTypes, SLA Policy (SlaProcess), Milestones with criteria, and Entitlement so Incidents get EntityMilestones with computed TargetDates.
Ships in sf-service-itsm. 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.
First action, before any question to the user: read the IT Service Enablement gate (Phase 1a) with
dispatch_readonly on GET /services/data/v68.0/connect/setup/discovery/features, filtered to the exact
apiName service-cloud-itsm-setup. Ask nothing else until it is ENABLED.
Configures a complete Incident SLA pipeline for Service Cloud ITSM — the chain deriving an
EntityMilestone (with a computed TargetDate) on every Incident with an Entitlement, all via the
Salesforce-hosted headless-360 MCP server (org from the OAuth JWT). Requires the org-level
IT Service Management enablement (the Phase 1a gate) and SLA Management for IT Service
setup item (the Phase 1c gate), plus Incident Management (the Phase 1b gate).
The custom pipeline (four ordered writes): MilestoneType (what you measure) → SLA Policy
(SlaProcess, Incident-scoped, created inactive, entry/exit criteria) → Milestone (time trigger +
criteria) → activate the policy (createEntitlement=true, which auto-provisions the Entitlement —
matching Incidents then engage the SLA per-Incident via EntitlementId, with no Account). An
org-wide auto-apply entitlement criterion is an optional fifth write, dispatched only on an
explicit always-match request (Phase 4A step 6) — never by default. (The predefined/OOB
seed fork differs — it does none of this by hand: a single seed call provisions the whole active
bundle — policy, milestones, and Entitlement — in one shot; see Phase 2 / Phase 4B.)
This skill owns all the Incident-SLA interaction (gates, forks, milestone strategy,
verification); the raw write operations are delegated to the approved SLA
leaf capabilities (csp-sun/MilestoneTypes, create-sla-policy, create-milestone,
create-milestone-action, activate-sla-policy, create-entitlement-criteria), which own the
approved Connect contracts — discover → describe → dispatch each rather than re-deriving its shape here.
The Phase 1c enable (+ Versioning) and Phase 4B seed writes delegate to
itsm-shakti/SLASettings (owns the SLA-Management settings surface) — same discover → describe → dispatch.
headless-360 MCP.Never print a raw Salesforce record Id (15/18-char: 55…, 550…, 0ny…, 00…, Account 001…) — full or
masked (557VW…R3XVYA0 still leaks) — in any user-facing text: interim narration and the
final report. Holds for artifacts you created and ones you detected/reused — name each (the
name you supplied on create, or matched on reuse), keep its Id internal (chaining only). Verifying or
matching via SOQL? Report the verified attributes/name, never the Id you queried by. Looking up
an Id is the same rule — resolving Business Hours (resolved, user-selected, or created in Phase 4A step 1) or an existing policy returns
{Id, Name}; narrate the resolved name only and keep the returned Id internal — never echo it
back as Resolved "<name>" (001VW…). One
exception: on a halt you may relay the raw error body verbatim even if it embeds an Id —
don't hand-edit it.
SLA policy created (552VW…) · Incident created (0ny…) · First Response → 557VW…R3XVYA0 (reuse)Created SLA policy "Standard Support for Incidents" · reusing the existing First Response milestone type · the test Incident is "the test Incident" until Phase 6, then its IncidentNumber;
milestones by MilestoneType name.Reads → mcp__headless-360__dispatch_readonly, writes → mcp__headless-360__dispatch. Both take raw
HTTP {"url","method","body"?,"query_params"?} — not {operation_id, arguments}; read body
from {status_code, body}. Full route table with request/response shapes: references/mcp-invocation.md.
Ask only what you cannot infer from context (pre-populate; note "(from conversation)"). Resolve the
Phase 1a gate, then the Phase 1b Incident Management gate, then the Phase 1c gate, first and in that order. Then: (headless-360 binds to the current OAuth session, so do not ask which org); milestone strategy? (Phase 3b); milestone criteria? (default
Status != Closed + pattern-specific filters). Do not ask for an Account — Incident has no
Account field; engagement is per-Incident via EntitlementId. Business Hours: ask only when the
user's choice is ambiguous or the org has none (Phase 3a step 4); never ask on the Predefined path.
Default suggestion: SLA Policy Incident SLA Policy, suggested default Business Hours (confirmed at
Phase 3c), Entitlement
auto-provisioned on activation (no Account), engagement per-Incident via EntitlementId, milestone
strategy resolved per Phase 3b.
Sequential — always read before you write; every call goes through mcp__headless-360__*.
Per-phase detail (reads, delegated writes, API quirks) lives in references/workflow.md — read it
before executing. Phase index and their non-negotiable gates:
dispatch_readonly this session on this
org, unwritten since; a user statement is never cache-eligible.service-cloud-itsm-setup). Exact ENABLED continues.
Exact NOT_ENABLED with no blocked reasons → ask “IT Service Enablement is off — enable it now?” via AskUserQuestion (Yes/No, never plain text; No halts) → delegate to
the IncidentMgmt SOR with that confirmation → use its verify step before continuing. Missing,
error, blocked, or any other status halts and points to Setup.service-cloud-itsm-incident). Exact ENABLED continues; NOT_AVAILABLE → HALT; exact
NOT_ENABLED with no blocked reasons → its own Yes/No “Incident Management is off — enable it now?” via AskUserQuestion, delegate to the
IncidentMgmt SOR (MCP steps, never Skill), verify exact ENABLED; No halts.itsm-shakti/SLASettings. Read both flags first. If either is off, ask with
AskUserQuestion before ANY write, as two separate questions: Q1 “SLA Management for IT Service
is off — enable it now?” (Yes/No; only when SLA Management is off), then Q2 the SLA Versioning
permanence ack (Enable / Stop; exact wording in references/mcp-invocation.md). Never merge them, never
preview later steps before each is answered, and never treat a Yes at Phase 1a/1b or the original
request as consent; any No → HALT.Incident.Priority picklist before the fork (custom values → recommend Custom); warn if the
priority matrix is off (only the default tier fires); Business Hours note only if the user
specified hours. Predefined → 4B → 5 (if asked) → 6 → STOP;
Custom → 3a → 3b → 3c → 4A → 5 (if asked) → 6.discover/describe the SLA ops, Incident describe,
resolve Business Hours, idempotency probe. No Account. 401/403/404 → halt with the raw error.examples/milestone-patterns.md.MilestoneTypes →
create-sla-policy → create-milestone ×N → activate-sla-policy; optional step 6 criterion
only on an explicit always-match request.save-selected-options ({"selectedOptions":["incident"]}), delegated
to itsm-shakti/SLASettings; verify and name its Business Hours.EntityMilestone; matrix
off or still order-1 after one retry → stop and report the other tiers unchecked.| Constraint | Rationale |
|---|---|
| Gate IT Service Management enablement (Phase 1a), then Incident Management (Phase 1b, its own Yes/No) before Phase 1c — exact apiNames only, never a look-alike; rules as in the phase list above | Higher-level org gate sits above every ITSM feature |
Gate SLA Management first (Phase 1c) — two separate writes (SLA Management, then the one-way SLA Versioning); two separate AskUserQuestions before any write (Q1 SLA Management Yes/No, then Q2 permanence) — never merged, never inferred from an earlier gate's Yes; decline/blocked/verify-fail → HALT; re-read + report real state | Versioning is irreversible; writes don't confirm state |
| Offer predefined (OOB) first (Phase 2, Incident only); detect before seed; if chosen, seed → verify → STOP (no custom upsell) | OOB seed isn't idempotent — re-seed duplicates |
discover + describe before any mutation | Catches a missing SLA surface / disabled Incident Mgmt early |
Ask (AskUserQuestion) the milestone strategy — never silently default to Single | Real ITSM policies have >1 milestone |
| Reuse one MilestoneType per shared name; a distinct one per distinct concern | Runtime keys milestones by MilestoneType |
| Multi-milestone: halt on any milestone-create failure (no half-attached policy) | Partial attach diverges from the confirmed plan |
Priority-tiered: reconcile every Priority value against the live picklist before dispatch — drop/rename standard rows that don't match and add a milestone for each custom active value the org added | Server accepts any string → an unknown value is a dead milestone; a custom value with no milestone gets no SLA |
Delegate every owned write — prerequisite feature enables to the IncidentMgmt SOR; SLA writes to their approved SLA leaves (MilestoneTypes, create-sla-policy, create-milestone, create-milestone-action, activate-sla-policy, create-entitlement-criteria). The Phase 4A step 1 Business Hours create remains inline because no served SOR owns it | Single contract-owner per write; re-deriving an owned contract here would drift from its served owner |
Business Hours (Custom): honor a named schedule, described calendar, or time zone (time zone only → ask 24×7 (recommended) or custom hours; reuse a match, else create one after the Phase 3c confirm); zero active → offer a 24×7 create. Never set IsDefault or modify an existing record. Predefined: the seeder always uses the org default — warn only if the user specified hours | Default 24×7 or the customer's own calendar; BusinessHours is not API-deletable, so creates are confirmed first |
Custom flow: activation provisions the auto-Entitlement (activate-sla-policy: isActive + createEntitlement as QUERY params) — matching Incidents then engage per-Incident via EntitlementId (not a manual sObject Entitlement, and no Account). An org-wide auto-apply criterion via create-entitlement-criteria is optional — only on an explicit always-match request, never by default. OOB seed path: one seeder call (save-selected-options, lowercase selectedOptions) provisions the entire active bundle incl. the Entitlement — no per-leaf calls, no manual POST /sobjects/Entitlement, no activate PATCH | Custom: one call activates and provisions, so a manual POST /sobjects/Entitlement would duplicate it. OOB: the platform seeder builds and activates the whole default bundle server-side, so the skill neither rebuilds it leaf-by-leaf nor provisions the Entitlement by hand |
No record Id in any message (see Output contract, incl. reused artifacts); AskUserQuestion labels customer-facing (no "demo"/internal defaults) | Leaked Ids / internal framing look unprofessional to the customer |
Another Incident policy already active + Custom chosen → narrate coexistence only. The custom policy is targeted per-Incident via EntitlementId (Incident has no Account field to scope on) and additive; the existing (predefined/broad) policy stays the org-wide one. Never offer, plan, or perform — in the fork or the closing report — deactivating an existing policy, reordering its entitlement criteria, broadening the custom policy to match-all / auto-apply-to-all, or "deciding/resolving precedence" across policies. Target specific Incidents via EntitlementId; the existing policy stays active (see references/workflow.md → Coexistence) | Changing a policy the user didn't ask to touch is out of scope — this skill configures a new coexisting custom policy, not edits to an existing one. Deactivating (activate-sla-policy can send isActive=false) or re-ranking another policy's criteria risks disrupting a live SLA, and no leaf arbitrates cross-policy precedence (predefined: no un-seed path, manual delete only). Both are meant to coexist — the agent otherwise improvises an out-of-scope deactivation/reorder/precedence upsell |
Additional API quirks: references/mcp-invocation.md.
service-cloud-itsm-setup read exact ENABLED, or exact NOT_ENABLED with no blocked reasons received one Yes/No enable question delegated to the IncidentMgmt SOR and its verify step confirmed exact ENABLED; declined, blocked, missing, error, or unexpected status → HALTED before Phase 1b.service-cloud-itsm-incident ENABLED via live read, or delegated to the IncidentMgmt SOR after its own Yes/No when NOT_ENABLED (NOT_AVAILABLE → HALT); its verify step confirmed ENABLED — not a user assertion, not a look-alike.AskUserQuestion; reported state = a re-read, not the write. Declined / blocked / verify-fail → HALTED before Phase 2/3a, no artifacts.discover/describe confirmed the SLA Connect ops.EntitlementId, SlaStartDate, SlaExitDate.AskUserQuestion; Priority-tiered / Custom reconciled every Priority/criteria value against the live picklist before dispatch (dropped/renamed unmatched standard rows and added a milestone for each custom active Priority value).EntitlementId (no Account), per-milestone list) narrated before Phase 4A.body.success + actionMappings, not the 201; full set narrated before write.TargetDate (the engagement proof; Priority matched for Priority-tiered); expected milestone(s) present. Matrix off / still order-1 after one retry → reported "other tiers not checked" + pointed to the Priority Matrix setting in Setup, no recreate loop. SlaStartDate populated confirms it too, but may be null when the Entitlement is auto-applied via criteria — not a failure. Skip on no-op.IncidentNumber (see Output contract).Use the examples/output-templates.md templates; fill placeholders as-is. The success report must carry, unambiguously: the SLA Policy; every milestone by MilestoneType name + time + criteria; the Entitlement (auto-provisioned, no Account — Incident has no Account field); every requested action by milestone tier/MilestoneType name (never a milestone Id) + Warning/Violation role + offset + how confirmed; a Verification section (SOQL-confirmed policy + test-Incident SlaStartDate/EntityMilestones, or an honest partial note); created-vs-reused per artifact; a scope line (only the Incident SLA). No record Id anywhere. If another Incident policy is already active, state the coexistence plainly (both stay active; the existing/predefined policy stays the broad org-wide one; the custom is targeted per-Incident via EntitlementId) and do not offer to deactivate or reorder it, to broaden the custom policy to auto-apply to all Incidents, or to "decide precedence" across policies.
| File | When to read |
|---|---|
references/workflow.md | Executing — the full step-by-step Phase 1–6 detail (per-phase reads, delegated writes, API quirks); the constraints table + verification checklist stay in this SKILL.md body |
references/mcp-invocation.md | Every phase — call shapes, templates, response envelope, discovery, gotchas |
examples/milestone-patterns.md | Phase 3b — the five strategies: times, criteria, MilestoneType reuse, filter extensions |
assets/attach-milestone.json | Phase 4A step 4 — milestone POST body; substitute ids/timeTrigger/order; append filterItems |
assets/attach-milestone-action.json | Phase 5 — Warn/Escalate action body templates (Field Update); pair with mcp-invocation.md (Milestone Actions) |
examples/output-templates.md | Output Format — success/partial report templates; fill placeholders, no record Id |
The priority matrix (Impact × Urgency → Priority) is separate and not configured here;
if a Priority-tiered strategy is requested but Incident.Priority lacks values, direct the user to the
Priority Matrix setting in Setup first. Other ITSM flows (Major Incident Mgmt, custom fields) are out of scope.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cloudzlab/sf-team-skills --plugin sf-service-itsm28 skills in this plugin
/service-add-agents-to-contact-center-createAdds one or more agents (users) to a Contact Center (also known as Call Center). The action accepts user identifiers in multiple formats (User Id, Email, UserName, FirstName, LastName, or Alias) and a contact center identifier (CallCenter Id, Display name, or Internal name). Optionally creates quick connect configuration for the agents if requested by the user. Works with User, CallCenter metadata. Use this skill for add agents to contact center, add users to contact center, add agents to call center, add reps to contact center, add reps to call center, add users to call center, enroll agents in contact center, enroll users in contact center, assign agents to contact center, assign users to contact center, add agents with quick connect, add agents with quickconnect./service-agentforce-contact-center-coordinateCoordinates end-to-end setup of an Agentforce Contact Center voice channel: gathers country and phone-number-type selections, procures a chosen number, resolves its CommunicationChannelLine, verifies the number is live, and creates an active PstnVoice MessagingChannel. The user picks the routing model: Omni Queue (route to the contact center queue) or Omni Flow (route to an Agentforce agent, creating or reusing the agent plus its routing flows). Use when the user asks to set up an Agentforce Contact Center, provision a contact center phone number and voice channel together, or put an Agentforce agent on native voice. TRIGGER when the user says set up agentforce contact center, configure contact center voice, or create a voice channel with omni flow and an agentforce agent. DO NOT TRIGGER when only wiring an existing channel to an existing agent with no number to procure, or creating a non-voice messaging channel.3 plugins ship this exact skill · first indexed Nov 1, 2026
Other plugins' skills for the same job