forcedotcom/sf-skills

service-itsm-agentic-setup-agentforce-coordinate

Orchestrator for setting up Agentforce in Salesforce Service Cloud ITSM — Agentforce Studio enablement, the IT Service Fulfiller agent, and the IT Service Employee agent.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Agentforce for ITSM Setup Orchestrator

Guide the user through setting up Agentforce Studio, the IT Service Fulfiller agent, and the IT Service Employee agent in Salesforce Service Cloud ITSM by presenting the available capabilities, delegating to specialized child skills, and tracking progress.

Goal

Act as the coordinator for Agentforce feature configuration in ITSM. Present the user with a menu of configurable features, invoke the appropriate child skill for each selection, and after each feature completes, return to the menu with updated progress until the user is done.

Behavior

1. Extract context from conversation

Before presenting options, scan chat history for:

  • Which features the user has already set up (skip or mark as done)
  • Any preferences or constraints mentioned (e.g., "just enable Agentforce Studio", "we already have Studio on")
  • The target org (if mentioned)
  • Business context that informs which features are relevant

2. Confirm the target org

Agentforce setup performs writes against a real org (feature-toggle enablement, agent creation and activation). Before delegating to any child skill, confirm the target org with the user and state plainly that this org will be modified. Never assume production is safe to change — ask for explicit confirmation of the org.

3. Present the Agentforce feature menu as a multi-select

Show the user what's available and what's done, organized into the two sequential setup stagesStage 1: enable platform features (Agentforce Studio enablement) and Stage 2: install & activate agent templates (the Fulfiller and Employee agents). This separation is load-bearing: Stage 1 enables org-level platform toggles/preferences, while Stage 2 installs and activates agents from a template — they are distinct kinds of action and must read as distinct stages, not one undifferentiated list. Only features with a working child skill appear in the menu — use the Feature menu template in examples/output-templates.md. Collect the user's selections through a single multi-select prompt (use AskUserQuestion with multiSelect: true when tooling permits, otherwise ask the user to reply with a list of numbers such as 1, 2). Use the exact Item names from the Feature menu table as the multi-select option labels — verbatim, including each item's parenthetical note and the word "Agent" and its capitalization (Agentforce Studio enablement (Foundation for both agents), IT Service Fulfiller Agent, IT Service Employee Agent) — so the picker options and the table never diverge. Each item's Description column matches the wording on the Salesforce Setup → Agentforce for IT Service page (the Fulfiller and Employee agent-template descriptions are used verbatim) so a user evaluating which template to install reads the same purpose/scope here as they would in Setup — do not paraphrase or shorten that product copy. For the two Stage 2 agent templates, follow the verbatim product copy with one short trailing Setup: line stating what installing does (Setup: creates the agent from this template and activates a version.) so a single row carries purpose, scope, and the install action together. When raising AskUserQuestion, put that same Description text (product copy + the Setup: line) in each option's description field so the picker carries the detail too. Do NOT show placeholder features that cannot be executed.

Report file (harness / non-interactive runs). If a ${outputDir} is provided (via the harness's generated-file location directive), write the menu emission (attribution header + feature table with status + delegation targets + dependency signal + the multi-select prompt itself) to ${outputDir}/report.md before raising AskUserQuestion — so the report file always exists even when the harness parks at the confirmation gate. Overwrite the same file after each feature completes with the updated status table. Skip these writes when running interactively for a user in a chat surface — write only when ${outputDir} was passed as an explicit destination.

4. Delegate to child skills in dependency order

Studio-first rule (unconditional). If Agentforce Studio enablement (#1) is in the user's selection and not already done, run it first, always — regardless of the order the user listed their numbers in. Both the Fulfiller Agent (#2) and Employee Agent (#3) depend on Studio being enabled and will fail if attempted first. Reorder the queue silently so Studio runs before either agent. This rule is non-negotiable and applies whether the user selected two features (Studio + one agent) or all three.

User-order rule (between #2 and #3 only). Fulfiller Agent (#2) and Employee Agent (#3) are independent of each other — neither depends on the other. If both are selected, run them in the order the user listed them (default 2 → 3 when unspecified). This rule applies only to the ordering between #2 and #3; it never overrides the Studio-first rule above.

#FeatureChild Skill
1Agentforce Studio enablement (Foundation for both agents)service-itsm-agentic-setup-agentforce-studio-configure
2IT Service Fulfiller Agentservice-itsm-agentic-setup-fulfiller-agent-configure
3IT Service Employee Agentservice-itsm-agentic-setup-employee-agent-configure

service-itsm-agentic-setup-agentforce-studio-configure performs its own read-and-classify preflight (reading live toggle state before writing) rather than delegating to service-itsm-agentic-setup-agentforce-studio-validate — that skill is a separate, read-only entry point a user can invoke directly to check readiness without writes. This orchestrator does not need to call it as part of the delegation flow above.

5. After each feature completes

Once a child skill finishes:

  1. Verify the child skill's own deterministic verdict by running

node "<skill_dir>/scripts/verify-child-verdict.mjs" <studio|fulfiller|employee> <verdict> — never re-derive the success/failure comparison in prose. Pass Studio's overall field from classify-final-report.mjs, or Fulfiller/Employee Agent's Phase 8 aggregate verdict, as <verdict>. Exit code 0 means advance; exit code 1 means stop and surface the failure in plain language — do not advance to the next feature in the queue. A partially-enabled Studio (e.g. Einstein GenAI on but the parent umbrella still blocked, overall: PARTIAL) will make Fulfiller/Employee Agent creation fail too, so the script treats PARTIAL the same as FAILED for advancement purposes.

  1. Update the status — mark the completed feature as "Done"
  2. Suggest the next logical step — if another feature is available, recommend it based on the dependency order
  3. Re-present the menu with updated status — use the Post-feature progress template in examples/output-templates.md

6. Completion summary

When the user says they're done (or all available features are configured), present a final summary using the Completion summary template in examples/output-templates.md.


Setup Stages & Recommended Order

Setup runs in two sequential stages. Stage 1 (enable platform features) must complete before Stage 2 (install & activate agent templates).

text
Stage 1 — Foundation: enable platform features
  1. Agentforce Studio enablement (Foundation for both agents)   (turn ON org-level Agentforce + Einstein GenAI feature toggles)

Stage 2 — Agent templates: install & activate   (only after Stage 1)
  2. IT Service Fulfiller Agent     (install from template, commit, and activate the agent)
  3. IT Service Employee Agent      (install from template, commit, and activate the agent)

Stage 1 (Agentforce Studio enablement) is the foundation: it turns on the org-level Agentforce and Einstein GenAI feature toggles that both the Fulfiller and Employee agents are built on top of. Enable it first — attempting to install or activate either agent before this foundation is enabled will fail. The two Stage 2 items (Fulfiller and Employee) are independent siblings (neither depends on the other) — both can be selected together and installed in either order once Stage 1 is done.


Rules

  • ALWAYS show "(via service-itsm-agentic-setup-agentforce-coordinate)" in the setup header
  • ALWAYS present the feature menu before doing anything — do not assume which feature the user wants
  • ALWAYS present the feature menu as a multi-select — accept a set of one or more features in a single interaction
  • NEVER set up a feature without the user selecting it. (Explicit selection ensures the user confirms intent and avoids partial configurations if they cancel mid-flow; use the sequential-confirmation loop in the "set up everything" rule for bulk requests.)
  • NEVER show features that do not have a working child skill
  • If the user says "set up everything" or "all", walk through each available feature sequentially in the recommended order, confirming between each step
  • Track progress across the conversation — do not re-present completed features as "Not done"
  • NEVER advance to the next feature in the queue if the current one failed or only partially

succeeded — stop and surface the failure in plain language instead

  • If Agentforce Studio enablement reports the org lacks the Agentforce license (accessCheck), STOP

the whole flow — this is a license/edition requirement no API can grant, and neither the Fulfiller nor the Employee Agent can succeed without it

  • ALWAYS confirm the target org before delegating to any child skill, and state that the org will be modified
  • Do NOT expose internal technical jargon in user-facing output. This includes Salesforce record

IDs and org IDs, raw HTTP status codes (403, 500, …), API error codes (FUNCTIONALITY_NOT_ENABLED, DUPLICATE_VALUE, …), internal endpoint/API names, developer names (feature apiNames like sales-cloud-agent-studio), and CLI/tooling internals. Translate everything to plain, human-readable language. Child-skill names shown as next-step pointers are fine.

  • If the user asks about Agentforce features that are not yet available (e.g., Requester agent, custom topic packs, agent metrics dashboards), tell them those features are not yet available in this orchestrator and will be added as their child skills merge

Verification checklist

Before emitting any menu or summary in this skill, mentally confirm each of the following. If any box is unchecked, adjust the output before sending.

  • [ ] The header line ends with (via service-itsm-agentic-setup-agentforce-coordinate)
  • [ ] The target org was confirmed with the user, and they were told it will be modified, before any child skill ran
  • [ ] The current feature's child-skill result was verified as a full success before advancing to the next queued feature — a failed or partial result stopped the queue instead
  • [ ] Only features with a working child skill are shown; placeholder features are hidden
  • [ ] The feature menu is presented as a multi-select (single-select only if the user has already named a specific feature)
  • [ ] Each feature row's Status column reflects the actual tracked state from the conversation (Not done, In progress, or Done) — not a hard-coded default
  • [ ] Each feature row's Description matches the Salesforce Setup → Agentforce for IT Service page wording (Fulfiller and Employee agent-template descriptions verbatim, not paraphrased), the two Stage 2 rows end with the short Setup: install line, and the AskUserQuestion option descriptions carry the same text
  • [ ] For a completion summary, the header line and closing line are chosen by the rubric in examples/output-templates.md (all DoneComplete; any Not done/In progressFinished)
  • [ ] A feature is being configured only because the user explicitly selected it (or is being walked through sequentially with confirmation under an "all" / "everything" request)
  • [ ] Studio enablement is verified done before delegating to the Fulfiller Agent or Employee Agent child skill
  • [ ] The next action delegates to a child skill, never configures a feature inline
  • [ ] No Salesforce record IDs appear in the output — human-readable names only

Reference File Index

FileWhen to read
examples/output-templates.mdBehavior steps 3, 5, and 6 — feature menu (two-stage, multi-select), post-feature progress, and completion summary text blocks
scripts/verify-child-verdict.mjsBehavior step 5 — run via Bash (node) to check a child skill's verdict deterministically before advancing the queue
来自同一仓库

更多 Skills

全部 Skills
forcedotcom
社区

agentforce-d360-analyze

Data Cloud 360° view of a single Agentforce session. TRIGGER when user asks to trace, inspect, summarize, or describe a specific Agentforce session by session id (Agent Session UUID 019d… or MessagingSession id 0Mw…). Also triggers on session discovery — find/list/search sessions by time, agent, channel, outcome, or conversation text — when the user has no session id yet. DO NOT TRIGGER for design-time architecture questions (use agentforce-architecture-analyze instead) or for runtime perf/latency/SLO questions that require platform telemetry beyond Data Cloud.

安装量
1
GitHub Stars
972
最近更新
9月7日
forcedotcom
社区

agentforce-generate

Build, modify, audit, repair, optimize, debug, and deploy agents with Agentforce Agent Script. TRIGGER when: user creates, reviews, or changes .agent files or aiAuthoringBundle metadata; asks to fix AgentScript, audit an existing agent, run an AgentScript health check, common-pitfall review, or baseline-versus-candidate repair loop; changes a response, action, subagent, route, state flow, or Agent Spec; previews, debugs, deploys, publishes, or tests agents; uses sf agent generate/preview/publish/test; or manages Agentforce MCP servers, tools, assets, or authentication. DO NOT TRIGGER when: Apex, Flow, Prompt Template, Experience Cloud, or general Salesforce CLI work is unrelated to Agent Script; or the primary input is a production session or trace ID rather than an agent artifact.

安装量
1
GitHub Stars
972
最近更新
9月7日
forcedotcom
社区

platform-quick-deploy

Deploy validated metadata to a Production Salesforce org without re-running tests. TRIGGER when the user wants to deploy to production, says 'quick deploy', 'promote', 'ship to prod', or has just validated and wants to push the change live. REQUIRES a recent sf project deploy validate job ID (≤10 days old, ≤3 days for --use-most-recent). DO NOT TRIGGER for sandbox/scratch deploys (use platform-metadata-deploy) or unvalidated deploys (use platform-deploy-validate first).

安装量
1
GitHub Stars
972
最近更新
9月7日
forcedotcom
社区

agentforce-test

Write, run, and analyze structured test suites for Agentforce agents — functional AND security. TRIGGER when: user writes or modifies test spec YAML (AiEvaluationDefinition); runs sf agent test create, run, run-eval, or results commands; asks about test coverage strategy, metric selection, or custom evaluations; interprets test results or diagnoses test failures; asks about batch testing, regression suites, or CI/CD test integration; requests security testing, OWASP LLM Top 10, red-teaming, penetration testing, prompt-injection tests, a security grade, or a vulnerability assessment of an agent. DO NOT TRIGGER when: user creates, modifies, previews, or debugs .agent files (use agentforce-generate); deploys or publishes agents; writes Agent Script code; uses sf agent preview for development iteration; analyzes production session traces (use agentforce-observe); performs a static safety review of .agent file content (use agentforce-generate Section 15).

安装量
3
GitHub Stars
972
最近更新
9月7日