@salesforce/afv-skills 1.68.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/package.json +1 -1
  2. package/skills/afcc-setup-coordinate/SKILL.md +348 -0
  3. package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
  4. package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
  5. package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
  6. package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
  7. package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
  8. package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
  9. package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
  10. package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
  11. package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
  12. package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
  13. package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
  14. package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
  15. package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
  16. package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
  17. package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
  18. package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
  19. package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
  20. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
  21. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
  22. package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
  23. package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
  24. package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
  25. package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
  26. package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
  27. package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
  28. package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
  29. package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
  30. package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
  31. package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
  32. package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
  33. package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
  34. package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
  35. package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
  36. package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
  37. package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
  38. package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
  39. package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
  40. package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
  41. package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
  42. package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
  43. package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
  44. package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
  45. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
  46. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
  47. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
  48. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
  49. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
  50. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
  51. package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
  52. package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
  53. package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
  54. package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
  55. package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +23 -31
  56. package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
  57. package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
  58. package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
  59. package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
  60. package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
  61. package/skills/commerce-react-storefront-create/SKILL.md +54 -21
  62. package/skills/data360-code-extension-generate/SKILL.md +160 -252
  63. package/skills/data360-code-extension-generate/references/README.md +34 -172
  64. package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
  65. package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
  66. package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
  67. package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
  68. package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
  69. package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
  70. package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
  71. package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
  72. package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
  73. package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
  74. package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
  75. package/skills/dx-lifecycle-center/SKILL.md +24 -18
  76. package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
  77. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  78. package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
  79. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  80. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  81. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  82. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  83. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  84. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  85. package/skills/dx-org-manage/SKILL.md +12 -12
  86. package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
  87. package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
  88. package/skills/dx-org-manage/references/opening-org.md +1 -1
  89. package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
  90. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  91. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  92. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +3 -4
  93. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
  94. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  95. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  96. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  97. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  98. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  99. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  100. package/skills/education-cloud-academic-calendar-generate/SKILL.md +2 -2
  101. package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
  102. package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
  103. package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
  104. package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
  105. package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
  106. package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
  107. package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
  108. package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
  109. package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
  110. package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
  111. package/skills/education-cloud-student-recruitment-agent-configure/references/routing.md +1 -1
  112. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  113. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  114. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  115. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  116. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  117. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  118. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  119. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  120. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  121. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  122. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  123. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  124. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  125. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  126. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  127. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  128. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  129. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  130. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  131. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  132. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  133. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  134. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  135. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  136. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  137. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  138. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  139. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  140. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  141. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  142. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  143. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  144. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  145. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  146. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  147. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  148. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  149. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  150. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  151. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  152. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  153. package/skills/experience-cms-content-type-generate/SKILL.md +8 -7
  154. package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
  155. package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
  156. package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
  157. package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
  158. package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
  159. package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
  160. package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
  161. package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
  162. package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
  163. package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
  164. package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
  165. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  166. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  167. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  168. package/skills/platform-custom-application-generate/SKILL.md +97 -104
  169. package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
  170. package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
  171. package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
  172. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  173. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  174. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  175. package/skills/platform-datamask-run/SKILL.md +1 -1
  176. package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
  177. package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
  178. package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
  179. package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
  180. package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
  181. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  182. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  183. package/skills/platform-metadata-grounding-get/SKILL.md +7 -7
  184. package/skills/platform-policy-rule-generate/SKILL.md +9 -7
  185. package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
  186. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
  187. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
  188. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
  189. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
  190. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
  191. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
  192. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
  193. package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
  194. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
  195. package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
  196. package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
  197. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
  198. package/skills/platform-report-generate/SKILL.md +29 -8
  199. package/skills/platform-report-generate/references/column-names.md +12 -1
  200. package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
  201. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  202. package/skills/platform-report-generate/references/verification-checklist.md +12 -0
  203. package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
  204. package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
  205. package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
  206. package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
  207. package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
  208. package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
  209. package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
  210. package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
  211. package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
  212. package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
  213. package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
  214. package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
  215. package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
  216. package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
  217. package/skills/service-de-channel-activate/SKILL.md +10 -10
  218. package/skills/service-de-channel-activate/references/gotchas.md +4 -4
  219. package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
  220. package/skills/service-de-channel-create/SKILL.md +1 -1
  221. package/skills/service-de-channel-create/references/facebook.md +1 -1
  222. package/skills/service-de-channel-create/references/whatsapp.md +33 -6
  223. package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
  224. package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
  225. package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
  226. package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
  227. package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
  228. package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
  229. package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
  230. package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
  231. package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
  232. package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
  233. package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
  234. package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
  235. package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
  236. package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -108
  237. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
  238. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  239. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  240. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  241. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  242. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
  243. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +17 -21
  244. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  245. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  246. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  247. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  248. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  249. package/skills/service-digital-engagement-deployment-configure/SKILL.md +2 -2
  250. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
  251. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
  252. package/skills/service-e911-configure/SKILL.md +242 -0
  253. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  254. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  255. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  256. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  257. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  258. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  259. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  260. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  261. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  262. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  263. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  264. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  265. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  266. package/skills/service-omni-command-center-configure/SKILL.md +1 -1
  267. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  268. package/skills/data360-schema-get/SKILL.md +0 -388
  269. package/skills/data360-schema-get/references/README.md +0 -191
  270. package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
  271. package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
  272. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
  273. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
  274. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
  275. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
  276. package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
  277. package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
  278. package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
  279. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  280. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  281. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  282. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
  283. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
  284. package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/afv-skills",
3
- "version": "1.68.0",
3
+ "version": "1.70.0",
4
4
  "description": "Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools.",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -0,0 +1,348 @@
1
+ ---
2
+ name: afcc-setup-coordinate
3
+ description: "Orchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly."
4
+ allowed-tools: Bash(sf org display:*) Bash(sf data query:*) Bash(sf api request rest:*) Bash(sf project deploy start:*) Bash(sf project retrieve start:*) Bash(scripts/*) Bash(./scripts/*) Bash(bash scripts/*) Read Write AskUserQuestion
5
+ metadata:
6
+ version: "1.0"
7
+ minApiVersion: "67.0"
8
+ domains: ["Service", "Agentforce"]
9
+ cliTools:
10
+ - tool: ["sf"]
11
+ semver: ">=2.0.0"
12
+ - tool: ["jq"]
13
+ semver: ">=1.6"
14
+ relatedSkills:
15
+ - "service-agentforce-contact-center-coordinate"
16
+ - "service-omni-agent-users-create"
17
+ - "service-omni-base-settings-configure"
18
+ - "service-omni-queue-deploy"
19
+ - "service-omni-queue-routing-config-deploy"
20
+ - "service-omni-queue-members-assign"
21
+ - "service-omni-presence-status-deploy"
22
+ - "service-omni-permission-set-assign"
23
+ - "service-omni-sidebar-configure"
24
+ ---
25
+
26
+ # afcc-setup-coordinate: Agentforce Contact Center End-to-End Setup
27
+
28
+ Orchestrates full headless provisioning of an Agentforce Contact Center org. Scans existing org state before every write, presents a delta plan at the Approve gate, and delegates each configuration step to the appropriate sub-skill. Interactive at key decision points — never assumes country, number type, queue names, or user counts.
29
+
30
+ ## Scope
31
+
32
+ **In scope:** demo user provisioning (or reusing existing users), Omni-Channel base settings, human queue + routing config + members, presence statuses, permission set assignment (including the Contact Center Admin set the executing user needs), PSTN voice number procurement, PstnVoice MessagingChannel creation wired to the queue, and a Lightning console app that surfaces Omni so the setup can be tested end to end.
33
+
34
+ **Out of scope:** Agentforce agent setup, escalation flows, digital channels (WhatsApp/SMS/LINE/Apple/Facebook), Service AI features, supervisor configuration, and org authentication (the target org must already be authenticated before invoking this skill).
35
+
36
+ ---
37
+
38
+ ## Prerequisites
39
+
40
+ - **Authenticated org** — run `sf org login web --alias <name> --instance-url <url>` before invoking this skill. This skill never runs an interactive login.
41
+ - **Salesforce CLI** (`sf`) ≥ 2.0.0 and `jq` ≥ 1.6 installed.
42
+ - **AFCC-entitled org** — org must have Agentforce Contact Center and Service Cloud Voice licenses available. Creating agent users also needs a free Service Cloud User feature-license seat; without one, reuse existing users (Step 1).
43
+ - **Contact Center Admin permission set** — the executing user needs `ContactCenterAdminNativeCCaaS` (label "Agentforce Contact Center Admin (Salesforce Voice)") before the number and voice channel can be created. Step 4 assigns it. The sibling sets are `ContactCenterAgentNativeCCaaS` (Rep) and `ContactCenterSupervisorNativeCCaaS`.
44
+ - **Sub-skill assets** — the repo copies of `service-omni-presence-status-deploy` and `service-omni-permission-set-assign` do not bundle the DX assets their scripts need (they exit with "Assets DX project not found" / "Omni_Agent missing"). This skill does not modify them: it carries the missing files in `assets/sub-skill-assets/<sub-skill>/` and overlays them onto a temporary copy of the sub-skill at run time (Step 4).
45
+
46
+ ---
47
+
48
+ ## Stage: INTAKE
49
+
50
+ Collect three required inputs before any org access. Gather all three in a single `AskUserQuestion` call:
51
+
52
+ 1. **Org alias** — "What is your org alias?"
53
+ 2. **Voice number type** — Toll Free or 10DLC
54
+ 3. **Country** — US or CA
55
+
56
+ After collecting the alias, verify the org is reachable:
57
+
58
+ ```bash
59
+ sf org display --target-org <alias> --json
60
+ ```
61
+
62
+ Read `result.instanceUrl` to confirm success. If this command fails, stop immediately and tell the user to authenticate first — do not attempt an interactive login.
63
+
64
+ Store all three inputs. Every downstream stage reads them from context — do not re-ask.
65
+
66
+ ---
67
+
68
+ ## Stage: AUDIT
69
+
70
+ Run the audit script to probe the org and write `org_profile.json`:
71
+
72
+ ```bash
73
+ bash scripts/audit_org.sh <alias> org_profile.json
74
+ ```
75
+
76
+ This queries (read-only — no writes):
77
+
78
+ | What | SOQL |
79
+ |---|---|
80
+ | Active users | `SELECT Id, Name, Username, Profile.Name FROM User WHERE IsActive=true ORDER BY Name` |
81
+ | Service channels | `SELECT Id, DeveloperName, MasterLabel FROM ServiceChannel` |
82
+ | Queues | `SELECT Id, Name, DeveloperName FROM Group WHERE Type='Queue'` |
83
+ | Routing configs | `SELECT Id, DeveloperName, MasterLabel, RoutingModel FROM QueueRoutingConfig` |
84
+ | Presence statuses | `SELECT Id, DeveloperName, MasterLabel FROM ServicePresenceStatus` |
85
+ | Messaging channels | `SELECT Id, DeveloperName, MasterLabel, MessageType, IsActive FROM MessagingChannel` |
86
+ | Channel lines | `SELECT Id, Code, CodeStatus FROM CommunicationChannelLine` (Tooling API) |
87
+ | Permission sets | `SELECT Id, Name, Label FROM PermissionSet WHERE Name IN ('Omni_Agent','ContactCenterAdminNativeCCaaS','ContactCenterAgentNativeCCaaS','ContactCenterSupervisorNativeCCaaS')` plus the `PermissionSetAssignment` rows for the active users |
88
+ | Console apps | `SELECT DurableId, DeveloperName, Label, NavType FROM AppDefinition WHERE NavType='Console'` |
89
+
90
+ All results are written to `org_profile.json`. Every downstream step reads from this file — do not re-query what the audit already resolved. The audit also checks the artifacts a freshly licensed AFCC org ships with — service channels `sfdc_livemessage` and `sfdc_phone`, the queue `Default_Queue_Agentforce_Contact_Center`, and the permission sets `ContactCenterAdminNativeCCaaS` / `ContactCenterAgentNativeCCaaS` / `ContactCenterSupervisorNativeCCaaS` — and lists any that are absent under `missingDefaults`. Absent means someone most likely deleted them, or the org is not fully licensed. Do not silently plan a create for these: show them at APPROVE with `⚠ missing — looks deleted`, tell the user they should exist by default and need restoring (re-provision the license or recreate them), and let the user decide to continue or stop. Presence statuses are not in this list; they are normally created by Step 4.
91
+
92
+ A query that fails is recorded under `errors` in `org_profile.json` and the script exits non-zero, so a failed query is never mistaken for an empty result; stop and report it instead of planning from partial data.
93
+
94
+ ---
95
+
96
+ ## Stage: APPROVE
97
+
98
+ Present the delta plan based on `org_profile.json`. **No write happens until the user approves.**
99
+
100
+ Render one row per artifact:
101
+
102
+ ```text
103
+ STEP ARTIFACT FOUND IN ORG DEFAULT ACTION
104
+ 1 Agent users <N active users> reuse / create new
105
+ 2 Omni base settings present / missing reuse / configure
106
+ 3 Queue <list names or none> reuse / create new
107
+ Routing config present / missing reuse / create new
108
+ 4 Presence statuses <N found or none> reuse / create new
109
+ Permission sets partial / missing assign missing
110
+ Contact Center Admin held / not held assign to executing user
111
+ 5 Voice number <number + status / none> reuse / procure new
112
+ 6 Voice channel present / missing reuse / create new
113
+ 7 Console app + Omni <app names or none> reuse / create new
114
+
115
+ → Proceed with this plan, or tell me which rows to change.
116
+ ```
117
+
118
+ **Status:**
119
+ - `✅` — exists and reusable → default is SKIP
120
+ - `➕` — missing → will create
121
+ - `♻️` — exists but stale or mismatched → will recreate
122
+ - `⚠` — an out-of-the-box artifact from `missingDefaults` is absent (likely deleted) → ask the user to restore it before relying on it
123
+
124
+ Wait for the user to confirm. If any row is changed, update the plan before proceeding.
125
+
126
+ ---
127
+
128
+ ## Execute
129
+
130
+ All steps run sequentially. Stop and report the full error if any step fails — do not continue past a failure.
131
+
132
+ Print one line per step:
133
+ - `✔` — completed this run
134
+ - `⏭ SKIP` — already present, reused per approval
135
+ - `⧗` — in progress
136
+ - `⚠` — UI-only gap, pausing for user input
137
+ - `⛔` — blocked, stopping
138
+
139
+ ---
140
+
141
+ ### Step 1 — Demo users
142
+
143
+ **Delegates to:** `service-omni-agent-users-create`
144
+
145
+ Check `org_profile.json § existing.users`. Present the existing users and ask:
146
+
147
+ ```text
148
+ AskUserQuestion:
149
+ "I found <N> active users on this org. How many agent users do you need for AFCC?"
150
+ (Existing users will be reused where possible; only missing ones will be created.)
151
+ ```
152
+
153
+ Pass the target count and alias to the sub-skill. It handles user creation, profile assignment, and PSL assignment.
154
+
155
+ **Reuse existing users:** creating a user sets the Service Cloud User feature flag, which needs a free feature-license seat. If the sub-skill fails with `LICENSE_LIMIT_EXCEEDED` ("content feature license limit exceeded"), that seat is the cause, not the user-license pool, and its strip-and-retry path does not catch it. Do not retry; ask which existing users should act as agents and carry their usernames forward as the explicit-members list for Steps 3 and 4.
156
+
157
+ **Skip:** if the org already has sufficient active users and the user approved reuse at APPROVE, emit `⏭ SKIP — reusing <N> existing users`.
158
+
159
+ ---
160
+
161
+ ### Step 2 — Omni-Channel base settings
162
+
163
+ **Delegates to:** `service-omni-base-settings-configure`
164
+
165
+ Check `org_profile.json § existing.serviceChannels`. If both `sfdc_livemessage` and `sfdc_phone` service channels are already present, Omni base settings are configured.
166
+
167
+ **Skip:** if both standard service channels exist, emit `⏭ SKIP — Omni base settings already configured`.
168
+
169
+ ---
170
+
171
+ ### Step 3 — Queue + routing config + queue members
172
+
173
+ **Delegates to:** `service-omni-queue-deploy`, `service-omni-queue-routing-config-deploy`, `service-omni-queue-members-assign`
174
+
175
+ Check `org_profile.json § existing.queues`. If queues exist, ask:
176
+
177
+ ```text
178
+ AskUserQuestion:
179
+ "I found these queues: <list queue names>.
180
+ Use one of these or create a new queue?"
181
+ Options: [each existing queue name] + [Create new queue]
182
+ ```
183
+
184
+ If creating new, ask for the queue name (suggest `AFCC_Support_Queue` as default but do not auto-apply — wait for user input).
185
+
186
+ Sub-skill responsibilities and required order:
187
+ 1. `service-omni-queue-routing-config-deploy` — creates `QueueRoutingConfig` with `RoutingModel=LeastActive`, `CapacityWeight=1`, `RoutingPriority=1` (must be created FIRST — has no `QueueId` field)
188
+ 2. `service-omni-queue-deploy` — creates the `Group` record WITHOUT `QueueRoutingConfigId`, then POSTs a `QueueSobject` (`SobjectType=VoiceCall`), then PATCHes `Group.QueueRoutingConfigId` to link the config
189
+ 3. `service-omni-queue-members-assign` — assigns users from Step 1 as `GroupMember` records
190
+
191
+ When Step 1 reused existing users, pass their usernames to `service-omni-queue-members-assign` in its explicit-members mode (4th argument) instead of the generated `agent{N}.<suffix>` pattern.
192
+
193
+ Store the resolved queue Id for use in Step 6.
194
+
195
+ **Skip:** if the user selected an existing queue at APPROVE, emit `⏭ SKIP — reusing queue <name> (<Id>)`.
196
+
197
+ ---
198
+
199
+ ### Step 4 — Presence statuses + permission set assignment
200
+
201
+ **Delegates to:** `service-omni-presence-status-deploy`, `service-omni-permission-set-assign`
202
+
203
+ Check `org_profile.json § existing.presenceStatuses`. If statuses exist, ask:
204
+
205
+ ```text
206
+ AskUserQuestion:
207
+ "I found <N> existing presence statuses: <list names>.
208
+ Reuse these or create new ones?"
209
+ ```
210
+
211
+ Sub-skill responsibilities:
212
+ - `service-omni-presence-status-deploy` — creates `ServicePresenceStatus` records. Run it with the `VoiceCall` channel so `Available_Voice` (mapped to `sfdc_phone`) and `Busy` exist.
213
+ - `service-omni-permission-set-assign` — assigns `Omni_Agent` to the agent users. It is generated at run time and grants access to the presence statuses that exist.
214
+
215
+ **Run the sub-skills from a temporary copy, never edit them in place.** For each of the two sub-skills: copy the sub-skill directory to a temp dir, copy `assets/sub-skill-assets/<sub-skill>/.` over its `assets/`, then run its script from the temp copy. This supplies the DX project, the `Available_Voice`/`Busy` status XMLs, and the `Omni_Agent` placeholder that gates the permission-set self-heal.
216
+
217
+ `service-omni-permission-set-assign` resolves only the generated `agent{N}.<suffix>` users and has no way to be told otherwise. When Step 1 reused existing users, still run it, because it deploys `Omni_Agent` before it looks up users, and expect it to then block with "Expected N ACTIVE agent users"; that block is not a failure here. Assign `Omni_Agent` to the reused users with a direct `PermissionSetAssignment` POST, after checking `org_profile.json § existing.permissionSetAssignments` so an existing assignment is reused.
218
+
219
+ Then assign `ContactCenterAdminNativeCCaaS` to the executing user (a direct `PermissionSetAssignment` POST; check the audit first so an existing assignment is reused). Steps 5 and 6 fail without it. It is a license-bound standard set: it cannot be retrieved, edited, or given presence-status access, so presence access always comes from `Omni_Agent`, and the admin set is assigned in addition to it.
220
+
221
+ **Skip:** if presence statuses exist and user approved reuse at APPROVE, emit `⏭ SKIP — reusing <N> presence statuses`.
222
+
223
+ ---
224
+
225
+ ### Step 5 — Voice number procurement
226
+
227
+ **Delegates to:** `service-agentforce-contact-center-coordinate` (number procurement path only)
228
+
229
+ Check `org_profile.json § existing.channelLines`. If a `CommunicationChannelLine` with `CodeStatus=Live` already exists, ask:
230
+
231
+ ```text
232
+ AskUserQuestion:
233
+ "I found an existing Live number: <phone number>.
234
+ Use this number or procure a new one?"
235
+ ```
236
+
237
+ If procuring new, pass country and number type from INTAKE to the sub-skill. The sub-skill:
238
+
239
+ 1. Resolves the org's max API version at runtime — never hardcodes a version
240
+ 2. Fetches available numbers: `GET .../connect/number-management/v1/numbers?countryCode=US&phoneNumberType=Toll%20Free` (URL-encode `Toll Free` → `Toll%20Free`; required params are `countryCode` and `phoneNumberType`)
241
+ 3. Presents the returned pool (up to 5) for the user to pick (max 4 options per `AskUserQuestion`)
242
+ 4. Procures the chosen number via `POST .../connect/number-management/v1/number` with `{phoneNumberType, country, phoneNumber}` (201/200 on success)
243
+ 5. Calls `POST .../connect/number-management/v1/numberStateReconcile` with `{phoneNumber}`, then polls `CommunicationChannelLine WHERE Code='<phone>'` (Tooling API) until `CodeStatus=Live` (5s × 3 retries)
244
+
245
+ Store the procured number (E.164) and `CommunicationChannelLine` Id for Step 6.
246
+
247
+ **Stop:** if the sub-skill exits with code 4 (reconcile returned non-2xx), stop and report the error. Do not proceed to Step 6.
248
+
249
+ **Wait for Live, then stop:** the sub-skill's own polling (5s × 3) is short, so if the number is not `Live` when it returns, keep polling `SELECT Id, Code, CodeStatus FROM CommunicationChannelLine WHERE Code='<phone>'` every 15s for up to 3 minutes. Proceed to Step 6 the moment `CodeStatus=Live`. If it is still `Provisioning` or `Requested` at 3 minutes, stop: tell the user the number is not live after 3 minutes, give its `CommunicationChannelLine` Id and last `CodeStatus`, record it in `gap_report.md`, and let them decide whether to wait longer and re-run (the procured number is reused, not re-bought) or abandon. Do not create the channel on a non-live line.
250
+
251
+ ---
252
+
253
+ ### Step 6 — Voice channel create + bind number to queue
254
+
255
+ **Delegates to:** `service-agentforce-contact-center-coordinate` (channel creation path)
256
+
257
+ Inputs read from prior steps:
258
+ - Procured number in E.164 format (Step 5)
259
+ - `CommunicationChannelLine` Id (Step 5)
260
+ - Queue Id (Step 3)
261
+
262
+ The sub-skill creates a `PstnVoice` `MessagingChannel` via REST POST with:
263
+
264
+ | Field | Value | Notes |
265
+ |---|---|---|
266
+ | `MessageType` | `PstnVoice` | Required |
267
+ | `ChannelLineId` | `<CommunicationChannelLine.Id>` | The number binding; the sub-skill's `create-voice-channel.sh` binds this way. Drop only if the field is not present on this org |
268
+ | `MessagingPlatformKey` | `<E.164 phone>` | Createable, NOT updateable. Populated automatically from the channel line when `ChannelLineId` is set; send it explicitly only if `ChannelLineId` is dropped |
269
+ | `SessionHandlerId` | `<Queue.Id>` | Routes calls to the queue |
270
+ | `IsActive` | `true` | Required |
271
+
272
+ **Skip:** if `org_profile.json § existing.messagingChannels` already contains an active `PstnVoice` channel wired to the correct queue, ask whether to reuse or recreate.
273
+
274
+ **Stop:** any non-2xx response stops the run and prints the full request + response for diagnosis.
275
+
276
+ ---
277
+
278
+ ### Step 7 — Console app with Omni (rep surface)
279
+
280
+ **Delegates to:** `service-omni-sidebar-configure` (reuse path only); the create path deploys `assets/console-app/` directly because no sub-skill creates a console app.
281
+
282
+ Without a Lightning console app that shows Omni, reps cannot answer the new number and the setup cannot be tested end to end. Check `org_profile.json § existing.consoleApps`, then ask:
283
+
284
+ ```text
285
+ AskUserQuestion:
286
+ "I found these console apps: <list or none>.
287
+ Reuse one (Omni sidebar gets enabled) or create AFCC_Service_Console?"
288
+ Options: [each existing console app] + [Create AFCC_Service_Console]
289
+ ```
290
+
291
+ **Create:** deploy `assets/console-app/` from a temporary DX project (an `sfdx-project.json` plus `force-app/main/default/{applications,profiles}`), with explicit metadata flags so nothing else is deployed:
292
+
293
+ ```bash
294
+ sf project deploy start --target-org <alias> \
295
+ --metadata CustomApplication:AFCC_Service_Console \
296
+ --metadata Profile:Admin --metadata Profile:Standard
297
+ ```
298
+
299
+ The app is a Lightning console (`navType` Console, tabs Home/Case/Contact/Account) with `isOmniPinnedViewEnabled=true`. The two Profile files only carry `applicationVisibilities`, so the deploy is a partial update that changes nothing else on System Administrator (`Admin`) or Standard User (`Standard`). The app is visible only to the profiles listed; add more profile files to widen it.
300
+
301
+ **Reuse:** run `service-omni-sidebar-configure <alias> <app DeveloperName>` to turn on the pinned Omni sidebar.
302
+
303
+ **Verify:** query `AppDefinition` for the app and confirm `isOmniPinnedViewEnabled` by retrieving the `CustomApplication`. Run the retrieve from the same temporary DX project and `mkdir -p force-app` first; otherwise it fails with `MissingPackageDirectoryError` because `sfdx-project.json` points at a `force-app` directory that doesn't exist yet.
304
+
305
+ **Skip:** if the chosen console app already has `isOmniPinnedViewEnabled=true` and is visible to the target profiles, emit `⏭ SKIP — console app <name> already surfaces Omni`.
306
+
307
+ The Omni surface is the pinned sidebar. A utility-bar Omni item is not created: its FlexiPage component name could not be resolved (guesses under `runtime_service_omnichannel:` fail with "couldn't retrieve the design time component information"), so add one by hand in App Manager if wanted.
308
+
309
+ Hand the user the test recipe: App Launcher → the app → Omni-Channel → set status "Available for Voice" → call the procured number.
310
+
311
+ ---
312
+
313
+ ## Stage: HANDOFF
314
+
315
+ Write `gap_report.md` using `assets/gap_report_template.md`. Fill every field with values from this run:
316
+
317
+ - Org alias + instance URL
318
+ - Country + number type
319
+ - Each step: status glyph + artifact name + Id
320
+ - Procured phone number
321
+ - `CommunicationChannelLine` Id + CodeStatus
322
+ - Queue name + Id
323
+ - `MessagingChannel` Id, DeveloperName, `MessagingPlatformKey`, `SessionHandlerId`, `IsActive`
324
+ - Console app name + whether Omni is pinned, and which profiles can see it
325
+ - Any gaps or deferred verifications
326
+
327
+ End with one line: **`Outcome: SUCCESS`** or **`Outcome: FAILED at Step <N> — <exact error>`**.
328
+
329
+ ---
330
+
331
+ ## Rules / Constraints
332
+
333
+ | Constraint | Reason |
334
+ |---|---|
335
+ | Never run an interactive login | Auth lifecycle is out of scope |
336
+ | Scan org before every create | Idempotency — never blindly recreate what already exists |
337
+ | Never hardcode IDs (queue, channel, user) | All IDs are org-specific; always resolve by name |
338
+ | Never hardcode API version | Resolve org max version at runtime; hardcoded v68 silently 404s on orgs with lower ceiling |
339
+ | Bind number via `ChannelLineId` (and `MessagingPlatformKey`) at create time | `MessagingPlatformKey` is createable but NOT updateable; a channel created without the binding cannot be corrected |
340
+ | Stop on non-2xx API response | Partial setup left silent is worse than a clear failure |
341
+ | Present delta plan before any write | User must approve before any org modification |
342
+ | One `AskUserQuestion` per decision point | Never trickle one question per step — batch where possible |
343
+
344
+ ---
345
+
346
+ ## Gotchas
347
+
348
+ Known failures and fixes for each step are in `references/gotchas.md`. Read it when a step errors, for example `LICENSE_LIMIT_EXCEEDED` in Step 1, a non-live number in Step 5, or `FIELD_INTEGRITY_EXCEPTION` in Step 6.
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
3
+ <brand>
4
+ <headerColor>#0070D2</headerColor>
5
+ <shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
6
+ </brand>
7
+ <description>Agentforce Contact Center service console with the Omni-Channel utility</description>
8
+ <formFactors>Large</formFactors>
9
+ <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
10
+ <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled>
11
+ <isOmniPinnedViewEnabled>true</isOmniPinnedViewEnabled>
12
+ <label>AFCC Service Console</label>
13
+ <navType>Console</navType>
14
+ <tabs>standard-home</tabs>
15
+ <tabs>standard-Case</tabs>
16
+ <tabs>standard-Contact</tabs>
17
+ <tabs>standard-Account</tabs>
18
+ <uiType>Lightning</uiType>
19
+ </CustomApplication>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Profile xmlns="http://soap.sforce.com/2006/04/metadata">
3
+ <applicationVisibilities>
4
+ <application>AFCC_Service_Console</application>
5
+ <default>false</default>
6
+ <visible>true</visible>
7
+ </applicationVisibilities>
8
+ </Profile>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Profile xmlns="http://soap.sforce.com/2006/04/metadata">
3
+ <applicationVisibilities>
4
+ <application>AFCC_Service_Console</application>
5
+ <default>false</default>
6
+ <visible>true</visible>
7
+ </applicationVisibilities>
8
+ </Profile>
@@ -0,0 +1,35 @@
1
+ # AFCC Setup Report
2
+
3
+ ## Run Details
4
+ - **Org Alias:** <alias>
5
+ - **Instance URL:** <instanceUrl>
6
+ - **Country:** <US|CA>
7
+ - **Number Type:** <Toll Free|10DLC>
8
+ - **Run Date:** <date>
9
+
10
+ ## Steps
11
+
12
+ | Step | Artifact | Status | Id / Value |
13
+ |---|---|---|---|
14
+ | 1 | Agent users | ✔ / ⏭ SKIP | <user names> |
15
+ | 2 | Omni base settings | ✔ / ⏭ SKIP | — |
16
+ | 3 | Queue | ✔ / ⏭ SKIP | <name> (<Id>) |
17
+ | | Routing config | ✔ / ⏭ SKIP | <DeveloperName> (<Id>) |
18
+ | | Queue members | ✔ / ⏭ SKIP | <N> members assigned |
19
+ | 4 | Presence statuses | ✔ / ⏭ SKIP | <names> |
20
+ | | Permission sets | ✔ / ⏭ SKIP | assigned to <N> users |
21
+ | 5 | Voice number | ✔ / ⏭ SKIP | <E.164 phone> |
22
+ | | CommunicationChannelLine | ✔ | <Id> — CodeStatus: <Live|Provisioning> |
23
+ | 6 | MessagingChannel | ✔ / ⏭ SKIP | <Id> |
24
+ | | DeveloperName | | <DeveloperName> |
25
+ | | MessagingPlatformKey | | <E.164 phone> |
26
+ | | SessionHandlerId | | <Queue Id> |
27
+ | | IsActive | | true |
28
+
29
+ ## Gaps / Deferred Verifications
30
+
31
+ <list any UI-only gaps or deferred steps — or "None">
32
+
33
+ ## Outcome
34
+
35
+ `SUCCESS` or `FAILED at Step <N> — <exact error message>`
@@ -0,0 +1,16 @@
1
+ {
2
+ "alias": "",
3
+ "orgId": "",
4
+ "instanceUrl": "",
5
+ "apiVersion": "",
6
+ "isSandbox": false,
7
+ "existing": {
8
+ "users": [],
9
+ "serviceChannels": [],
10
+ "queues": [],
11
+ "routingConfigs": [],
12
+ "presenceStatuses": [],
13
+ "messagingChannels": [],
14
+ "channelLines": []
15
+ }
16
+ }
@@ -0,0 +1,22 @@
1
+ # afcc-setup-coordinate gotchas
2
+
3
+ Symptoms and resolutions seen while running the steps in `SKILL.md`.
4
+
5
+ | Issue | Resolution |
6
+ |---|---|
7
+ | `QueueRoutingConfig` create fails with "capacity field must be defined" | Always POST `CapacityWeight=1` and `RoutingPriority=1` together with `RoutingModel` |
8
+ | `404 NOT_FOUND` on `number-management/v1/numbers` | Almost always an API version pin bug — resolve org max version and retry at that version |
9
+ | `CommunicationChannelLine` not found right after procurement | Records propagate async — retry with backoff (sub-skill handles this) |
10
+ | `MessagingChannel` create fails with `INVALID_FIELD: ChannelLine` | Field is release-gated — drop it and rely on `MessagingPlatformKey` for the binding |
11
+ | `MessagingChannel` create fails with `FIELD_INTEGRITY_EXCEPTION: Communication Channel Line ID` | Salesforce validates `MessagingPlatformKey` against a Live `CommunicationChannelLine`. Do not proceed to Step 6 until `CodeStatus=Live`. |
12
+ | Number stays `Provisioning` or `Failed` after the 3-minute wait | On test/sandbox orgs carrier provisioning may not complete. Stop and tell the user (Step 5); the channel is not created on a non-live line. Re-running later reuses the procured number |
13
+ | `ChannelLine` vs `ChannelLineId` confusion | `ChannelLine` is the relationship name; `ChannelLineId` is the writable field on create |
14
+ | `MessageType=Phone` conflict | Only one `Phone`-type channel allowed per org — use `PstnVoice`, not `Phone` |
15
+ | `QueueRoutingConfig` has no `QueueId` field | Link the routing config to the queue AFTER queue creation via PATCH on `Group.QueueRoutingConfigId` |
16
+ | `QueueSobject` missing for VoiceCall | Create a `QueueSobject` record (`SobjectType=VoiceCall`, `QueueId=<id>`) BEFORE attaching routing config to the queue |
17
+ | `phoneNumberType` URL encoding | Toll Free must be URL-encoded as `Toll%20Free` in GET params — `TollFree` (no space) returns `BAD_REQUEST` |
18
+ | Step 1 fails with `LICENSE_LIMIT_EXCEEDED, content feature license limit exceeded` | The Service Cloud User feature-license seat is exhausted, not the user licenses. Reuse existing users (Step 1) |
19
+ | Number/channel calls fail for the executing admin | Assign `ContactCenterAdminNativeCCaaS` first (Step 4) |
20
+ | Presence-status access cannot be added to `ContactCenterAdminNativeCCaaS` | It is a license-bound standard set (not retrievable; `SetupEntityAccess` returns `INVALID_CROSS_REFERENCE_KEY`). Grant presence access through `Omni_Agent` |
21
+ | Profile deploy for the console app | Standard profile API names are `Admin` (System Administrator) and `Standard` (Standard User); a file with only `applicationVisibilities` is a partial update |
22
+ | Shell `USERNAME` env var conflict | `USERNAME` is a macOS env variable set to the system username. Never use `USERNAME=...` in scripts — use `NEW_USER` or `SF_NEW_USER` instead |
@@ -0,0 +1,159 @@
1
+ #!/usr/bin/env bash
2
+ # Probes the target org and writes org_profile.json.
3
+ # Usage: bash audit_org.sh <alias> [output_file]
4
+ set -euo pipefail
5
+
6
+ ALIAS="$1"
7
+ OUT_FILE="${2:-org_profile.json}"
8
+
9
+ echo "⧗ Auditing org: $ALIAS"
10
+
11
+ # Org identity
12
+ ORG_JSON=$(sf org display --target-org "$ALIAS" --json 2>/dev/null)
13
+ ORG_ID=$(echo "$ORG_JSON" | jq -r '.result.id // empty')
14
+ INSTANCE_URL=$(echo "$ORG_JSON" | jq -r '.result.instanceUrl // empty')
15
+ API_VERSION=$(echo "$ORG_JSON" | jq -r '.result.apiVersion // "67.0"')
16
+ IS_SANDBOX=$(echo "$ORG_JSON" | jq -r '.result.isSandbox // false')
17
+
18
+ if [ -z "$ORG_ID" ]; then
19
+ echo "✖ Could not retrieve org info for alias '$ALIAS'. Is the org authenticated?"
20
+ exit 1
21
+ fi
22
+
23
+ echo " Org: $ORG_ID | API: $API_VERSION | Sandbox: $IS_SANDBOX"
24
+
25
+ # A failed query must not look like an empty result. run_query runs inside $(...), a subshell, so it
26
+ # records failures in a file the parent reads back after the probes; a shell variable would be lost.
27
+ ERR_FILE=$(mktemp)
28
+ trap 'rm -f "$ERR_FILE"' EXIT
29
+ run_query() {
30
+ local label="$1"; shift
31
+ local out err_tmp rc=0
32
+ err_tmp=$(mktemp)
33
+ # stderr is kept apart from the JSON: sf CLI warnings/update notices must not turn a good query into a failure.
34
+ out=$(sf data query --target-org "$ALIAS" "$@" --json 2>"$err_tmp") || rc=$?
35
+ if echo "$out" | jq -e '.status == 0' >/dev/null 2>&1; then
36
+ echo "$out" | jq '.result.records // []'
37
+ else
38
+ local msg
39
+ msg=$(echo "$out" | jq -r '.message // empty' 2>/dev/null || true)
40
+ [ -n "$msg" ] || msg=$(grep -v '^ *Warning' "$err_tmp" | head -3 | tr '\n' ' ')
41
+ [ -n "$msg" ] || msg="sf data query exited $rc with no output"
42
+ jq -cn --arg l "$label" --arg m "$msg" '{query: $l, error: $m}' >> "$ERR_FILE"
43
+ echo " ✖ query failed: $label" >&2
44
+ echo '[]'
45
+ fi
46
+ rm -f "$err_tmp"
47
+ }
48
+
49
+ # Active users
50
+ echo " Querying users..."
51
+ USERS=$(run_query "users" --query "SELECT Id, Name, Username, IsActive, Profile.Name FROM User WHERE IsActive=true ORDER BY Name")
52
+
53
+ # Service channels
54
+ echo " Querying service channels..."
55
+ SERVICE_CHANNELS=$(run_query "serviceChannels" --query "SELECT Id, DeveloperName, MasterLabel FROM ServiceChannel")
56
+
57
+ # Queues
58
+ echo " Querying queues..."
59
+ QUEUES=$(run_query "queues" --query "SELECT Id, Name, DeveloperName FROM Group WHERE Type='Queue'")
60
+
61
+ # Queue routing configs
62
+ echo " Querying routing configs..."
63
+ ROUTING_CONFIGS=$(run_query "routingConfigs" --query "SELECT Id, DeveloperName, MasterLabel, RoutingModel FROM QueueRoutingConfig")
64
+
65
+ # Presence statuses
66
+ echo " Querying presence statuses..."
67
+ PRESENCE_STATUSES=$(run_query "presenceStatuses" --query "SELECT Id, DeveloperName, MasterLabel FROM ServicePresenceStatus")
68
+
69
+ # Messaging channels
70
+ echo " Querying messaging channels..."
71
+ MESSAGING_CHANNELS=$(run_query "messagingChannels" --query "SELECT Id, DeveloperName, MasterLabel, MessageType, IsActive FROM MessagingChannel")
72
+
73
+ # Communication channel lines (Tooling API)
74
+ echo " Querying communication channel lines..."
75
+ CHANNEL_LINES=$(run_query "channelLines" --use-tooling-api --query "SELECT Id, Code, CodeStatus FROM CommunicationChannelLine")
76
+
77
+ # Permission sets the skill assigns or depends on, and who holds them
78
+ echo " Querying permission sets..."
79
+ PERMISSION_SETS=$(run_query permissionSets \
80
+ --query "SELECT Id, Name, Label FROM PermissionSet WHERE Name IN ('Omni_Agent','ContactCenterAdminNativeCCaaS','ContactCenterAgentNativeCCaaS','ContactCenterSupervisorNativeCCaaS')")
81
+ PERMISSION_SET_ASSIGNMENTS=$(run_query permissionSetAssignments \
82
+ --query "SELECT AssigneeId, Assignee.Username, PermissionSet.Name FROM PermissionSetAssignment WHERE PermissionSet.Name IN ('Omni_Agent','ContactCenterAdminNativeCCaaS','ContactCenterAgentNativeCCaaS','ContactCenterSupervisorNativeCCaaS')")
83
+
84
+ # Console apps (Step 7 reuses one if present)
85
+ echo " Querying console apps..."
86
+ CONSOLE_APPS=$(run_query consoleApps \
87
+ --query "SELECT DurableId, DeveloperName, Label, NavType FROM AppDefinition WHERE NavType='Console'")
88
+
89
+ # Artifacts a freshly licensed AFCC org ships with. If one is absent it was most likely deleted, so
90
+ # it is reported for restoring rather than planned as a normal create.
91
+ PERMISSION_SET_LICENSE_NAMES='["ContactCenterAdminNativeCCaaS","ContactCenterAgentNativeCCaaS","ContactCenterSupervisorNativeCCaaS"]'
92
+ ERRORS=$(jq -cs '.' "$ERR_FILE")
93
+
94
+ MISSING_DEFAULTS=$(jq -n \
95
+ --argjson channels "$SERVICE_CHANNELS" --argjson queues "$QUEUES" --argjson psets "$PERMISSION_SETS" \
96
+ --argjson psnames "$PERMISSION_SET_LICENSE_NAMES" '
97
+ [ (["sfdc_livemessage","sfdc_phone"][] as $d | select(($channels | map(.DeveloperName) | index($d)) == null)
98
+ | {type: "ServiceChannel", name: $d}),
99
+ (select(($queues | map(.DeveloperName) | index("Default_Queue_Agentforce_Contact_Center")) == null)
100
+ | {type: "Queue", name: "Default_Queue_Agentforce_Contact_Center"}),
101
+ ($psnames[] as $d | select(($psets | map(.Name) | index($d)) == null)
102
+ | {type: "PermissionSet", name: $d}) ]')
103
+ # A type whose source query failed has no data to judge, so it must not be reported as deleted.
104
+ MISSING_DEFAULTS=$(jq -n --argjson md "$MISSING_DEFAULTS" --argjson errs "$ERRORS" '
105
+ {ServiceChannel: "serviceChannels", Queue: "queues", PermissionSet: "permissionSets"} as $src
106
+ | $md | map(select(. as $m | ($errs | map(.query) | index($src[$m.type])) == null))')
107
+ if [ "$(echo "$MISSING_DEFAULTS" | jq 'length')" -gt 0 ]; then
108
+ echo " ⚠ Expected out-of-the-box artifacts are missing (likely deleted):" >&2
109
+ echo "$MISSING_DEFAULTS" | jq -r '.[] | " - \(.type) \(.name)"' >&2
110
+ fi
111
+
112
+ # Write org_profile.json
113
+ jq -n \
114
+ --arg alias "$ALIAS" \
115
+ --arg orgId "$ORG_ID" \
116
+ --arg instanceUrl "$INSTANCE_URL" \
117
+ --arg apiVersion "$API_VERSION" \
118
+ --argjson isSandbox "$IS_SANDBOX" \
119
+ --argjson users "$USERS" \
120
+ --argjson serviceChannels "$SERVICE_CHANNELS" \
121
+ --argjson queues "$QUEUES" \
122
+ --argjson routingConfigs "$ROUTING_CONFIGS" \
123
+ --argjson presenceStatuses "$PRESENCE_STATUSES" \
124
+ --argjson messagingChannels "$MESSAGING_CHANNELS" \
125
+ --argjson channelLines "$CHANNEL_LINES" \
126
+ --argjson permissionSets "$PERMISSION_SETS" \
127
+ --argjson permissionSetAssignments "$PERMISSION_SET_ASSIGNMENTS" \
128
+ --argjson consoleApps "$CONSOLE_APPS" \
129
+ --argjson errors "$ERRORS" \
130
+ --argjson missingDefaults "$MISSING_DEFAULTS" \
131
+ '{
132
+ alias: $alias,
133
+ orgId: $orgId,
134
+ instanceUrl: $instanceUrl,
135
+ apiVersion: $apiVersion,
136
+ isSandbox: $isSandbox,
137
+ errors: $errors,
138
+ missingDefaults: $missingDefaults,
139
+ existing: {
140
+ users: $users,
141
+ serviceChannels: $serviceChannels,
142
+ queues: $queues,
143
+ routingConfigs: $routingConfigs,
144
+ presenceStatuses: $presenceStatuses,
145
+ messagingChannels: $messagingChannels,
146
+ channelLines: $channelLines,
147
+ permissionSets: $permissionSets,
148
+ permissionSetAssignments: $permissionSetAssignments,
149
+ consoleApps: $consoleApps
150
+ }
151
+ }' > "$OUT_FILE"
152
+
153
+ if [ "$(echo "$ERRORS" | jq 'length')" -gt 0 ]; then
154
+ echo "✖ Org profile written to $OUT_FILE with query errors:" >&2
155
+ echo "$ERRORS" | jq -r '.[] | " - \(.query): \(.error)"' >&2
156
+ exit 1
157
+ fi
158
+
159
+ echo "✔ Org profile written to $OUT_FILE"