@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
@@ -0,0 +1,106 @@
1
+ # Push upgrade — object reference
2
+
3
+ All live on the **Dev Hub / License Management Org**, not subscriber orgs.
4
+
5
+ **Query with the standard data API — NOT `--use-tooling-api`.** `PackageSubscriber`,
6
+ `PackagePushRequest`, `PackagePushJob`, and `PackagePushError` return "sObject type not supported"
7
+ under the Tooling API; query them with plain `sf data query --target-org <devhub> --query "..."`.
8
+ `MetadataPackage` and `MetadataPackageVersion` work under either API — use the standard one for
9
+ consistency. (Field lists below were verified via `sf sobject describe`, which works on both APIs and
10
+ is not a guarantee the object is Tooling-queryable — the query itself is.)
11
+
12
+ ---
13
+
14
+ ## PackageSubscriber — who has the package installed
15
+
16
+ The discovery object. One row per org/package install.
17
+
18
+ | Field | Type | Notes |
19
+ |-------|------|-------|
20
+ | `Id` | id | |
21
+ | `MetadataPackageId` | reference | The **033** package ID. Filter on this to scope to your package. |
22
+ | `MetadataPackageVersionId` | reference | The **04t** version the subscriber currently has. Compare to your target to find orgs that are behind. |
23
+ | `InstalledStatus` | picklist | `i` = installed, `u` = not installed / uninstalled. Filter `= 'i'`. |
24
+ | `OrgKey` | string | **The org ID that goes in the schedule CSV / `--org-list`.** |
25
+ | `OrgName` | string | Subscriber org name. |
26
+ | `OrgType` | picklist | `Production`, `Sandbox`. Pilot in sandboxes first. |
27
+ | `OrgStatus` | picklist | `Active`, `Demo`, `Free`, `Inactive`, `Trial`. Usually skip `Inactive`. |
28
+ | `InstanceName` | string | Instance (e.g. `NA123`) — useful proxy for time-zone batching. |
29
+ | `ParentOrg` | string | Parent org key (sandboxes trace to a parent). |
30
+ | `IsCustomUpgradeAllowed` | boolean | Whether custom upgrade handling is allowed. |
31
+ | `CustomUpgradeType` | picklist | `None`, `BlockedBySubscriber`. |
32
+ | `HasRestrictionEnabled` | boolean | `true` = subscriber has restricted push upgrades — **exclude these**; pushing to them errors. |
33
+ | `SystemModstamp` | datetime | |
34
+
35
+ ---
36
+
37
+ ## MetadataPackageVersion — resolve/validate the target version
38
+
39
+ | Field | Type | Notes |
40
+ |-------|------|-------|
41
+ | `Id` | id | The **04t** version ID. |
42
+ | `MetadataPackageId` | reference | The **033** package. |
43
+ | `Name` | string | Version name. |
44
+ | `MajorVersion` / `MinorVersion` / `PatchVersion` / `BuildNumber` | int | Compare against subscriber versions to confirm "strictly higher". |
45
+ | `ReleaseState` | picklist | `Beta`, `Released`. Push target must be `Released`. |
46
+ | `IsDeprecated` | boolean | Must be `false`. |
47
+ | `SystemModstamp` | datetime | |
48
+
49
+ ---
50
+
51
+ ## PackagePushRequest — one scheduled push (the `0DV`)
52
+
53
+ | Field | Type | Notes |
54
+ |-------|------|-------|
55
+ | `Id` | id | The **0DV** request ID. |
56
+ | `PackageVersionId` | reference | Target 04t version. |
57
+ | `ScheduledStartTime` | datetime | The UTC start you requested (null = ASAP). |
58
+ | `Status` | picklist | `Created`, `Pending`, `InProgress`, `Succeeded`, `Failed`, `Canceled`. |
59
+ | `StartTime` / `EndTime` | datetime | Actual execution window. |
60
+ | `DurationSeconds` | int | |
61
+ | `IsMigration` | boolean | `true` for 1GP→2GP push migrations. |
62
+ | `SystemModstamp` | datetime | |
63
+
64
+ Note: CLI `--status` filter shows `Cancelled`/`In Progress` (spacing); the object picklist uses
65
+ `Canceled`/`InProgress`.
66
+
67
+ ---
68
+
69
+ ## PackagePushJob — one per org within a request
70
+
71
+ | Field | Type | Notes |
72
+ |-------|------|-------|
73
+ | `Id` | id | |
74
+ | `PackagePushRequestId` | reference | Parent **0DV** request. |
75
+ | `SubscriberOrganizationKey` | string | The org this job targets (matches `PackageSubscriber.OrgKey`). |
76
+ | `Status` | picklist | `Created`, `Pending`, `InProgress`, `Succeeded`, `Failed`, `Canceled`. |
77
+ | `StartTime` / `EndTime` | datetime | |
78
+ | `DurationSeconds` | int | |
79
+ | `IsMigration` | boolean | |
80
+ | `SystemModstamp` | datetime | |
81
+
82
+ ---
83
+
84
+ ## PackagePushError — failure detail, attached to a job
85
+
86
+ | Field | Type | Notes |
87
+ |-------|------|-------|
88
+ | `Id` | id | |
89
+ | `PackagePushJobId` | reference | Parent job. |
90
+ | `ErrorSeverity` | picklist | `Warning`, `Error`. |
91
+ | `ErrorType` | picklist | `DeployError`, `ApexTestFailure`, `LockingFailure`, `IneligibleUpgrade`, … |
92
+ | `ErrorTitle` | string | Short label. |
93
+ | `ErrorMessage` | string | Human-readable message. |
94
+ | `ErrorDetails` | string | Extended detail / stack. |
95
+ | `SystemModstamp` | datetime | |
96
+
97
+ ---
98
+
99
+ ## ID prefix cheat sheet
100
+
101
+ | Prefix | Object |
102
+ |--------|--------|
103
+ | `033` | MetadataPackage (the package) — used by `push-upgrade list`. |
104
+ | `04t` | MetadataPackageVersion (the version) — the push **target**, `push-upgrade schedule --package`. |
105
+ | `0DV` | PackagePushRequest — returned by `schedule`, consumed by `report`/`abort`. |
106
+ | `00D` | Subscriber org ID — the `OrgKey` values in the CSV. |
@@ -0,0 +1,144 @@
1
+ # SOQL recipes — subscribers & monitoring
2
+
3
+ Run all with `sf data query --target-org <devhub> --query "..."` (the **standard** data API — do **not**
4
+ add `--use-tooling-api`; the push objects return "sObject type not supported" under Tooling).
5
+ Add `--result-format csv` to pipe straight toward a CSV (strip the header before feeding `--org-file`).
6
+
7
+ Placeholders: `<033>` = package ID, `<04t>` = target version ID, `<0DV>` = push request ID.
8
+
9
+ ---
10
+
11
+ ## Discover subscribers
12
+
13
+ ### All currently-installed subscribers for a package
14
+ ```sql
15
+ SELECT OrgKey, OrgName, OrgType, OrgStatus, InstanceName,
16
+ MetadataPackageVersionId, InstalledStatus, HasRestrictionEnabled, CustomUpgradeType
17
+ FROM PackageSubscriber
18
+ WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i'
19
+ ```
20
+
21
+ ### Eligible production orgs, excluding restricted and already-on-target
22
+ ```sql
23
+ SELECT OrgKey, OrgName, OrgStatus, InstanceName, MetadataPackageVersionId
24
+ FROM PackageSubscriber
25
+ WHERE MetadataPackageId = '<033>'
26
+ AND InstalledStatus = 'i'
27
+ AND OrgType = 'Production'
28
+ AND OrgStatus != 'Inactive'
29
+ AND HasRestrictionEnabled = false
30
+ AND CustomUpgradeType != 'BlockedBySubscriber'
31
+ AND MetadataPackageVersionId != '<04t>'
32
+ ```
33
+ > `OrgType` (Production/Sandbox) and `OrgStatus` (Active/Demo/Free/Inactive/Trial) are **independent**
34
+ > — a Production org can be `Trial`, `Demo`, or `Free`, not just `Active`. Don't whitelist
35
+ > `OrgStatus = 'Active'` or you'll silently drop paying-but-non-`Active` production subscribers. Exclude
36
+ > only what you mean to (typically `Inactive`), and select `OrgStatus` so you can eyeball the mix.
37
+
38
+ ### Sandboxes only (pilot batch)
39
+ ```sql
40
+ SELECT OrgKey, OrgName, InstanceName, MetadataPackageVersionId
41
+ FROM PackageSubscriber
42
+ WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i' AND OrgType = 'Sandbox'
43
+ AND HasRestrictionEnabled = false
44
+ AND CustomUpgradeType != 'BlockedBySubscriber'
45
+ ```
46
+
47
+ ### Restricted / blocked orgs (report, then exclude from pushes)
48
+ ```sql
49
+ SELECT OrgKey, OrgName, HasRestrictionEnabled, CustomUpgradeType
50
+ FROM PackageSubscriber
51
+ WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i'
52
+ AND (HasRestrictionEnabled = true OR CustomUpgradeType = 'BlockedBySubscriber')
53
+ ```
54
+
55
+ ### Orgs on a specific old version (target a known-bad build)
56
+ ```sql
57
+ SELECT OrgKey, OrgName, OrgType, InstanceName
58
+ FROM PackageSubscriber
59
+ WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i'
60
+ AND MetadataPackageVersionId = '<04t-old-version>'
61
+ ```
62
+
63
+ ### Count by org type (population sanity check)
64
+ ```sql
65
+ SELECT OrgType, COUNT(Id) total
66
+ FROM PackageSubscriber
67
+ WHERE MetadataPackageId = '<033>' AND InstalledStatus = 'i'
68
+ GROUP BY OrgType
69
+ ```
70
+
71
+ > Note: `PackageSubscriber` has **no version-comparison operator** — you can only filter version by
72
+ > exact `MetadataPackageVersionId`. To push only to orgs *strictly below* the target, resolve each
73
+ > distinct installed version's numbers via `MetadataPackageVersion` and exclude any at/above the
74
+ > target before building the CSV.
75
+
76
+ ---
77
+
78
+ ## Resolve / validate versions
79
+
80
+ ### Released versions of a package, newest first
81
+ ```sql
82
+ SELECT Id, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber, ReleaseState, IsDeprecated
83
+ FROM MetadataPackageVersion
84
+ WHERE MetadataPackageId = '<033>' AND ReleaseState = 'Released'
85
+ ORDER BY MajorVersion DESC, MinorVersion DESC, PatchVersion DESC, BuildNumber DESC
86
+ ```
87
+
88
+ ### Validate a single target version
89
+ ```sql
90
+ SELECT Id, MetadataPackageId, Name, MajorVersion, MinorVersion, PatchVersion, BuildNumber,
91
+ ReleaseState, IsDeprecated
92
+ FROM MetadataPackageVersion
93
+ WHERE Id = '<04t>'
94
+ ```
95
+ Target is valid only if `ReleaseState = 'Released'` and `IsDeprecated = false`.
96
+
97
+ ---
98
+
99
+ ## Monitor push requests
100
+
101
+ ### Recent requests for a package
102
+ ```sql
103
+ SELECT Id, PackageVersionId, Status, ScheduledStartTime, StartTime, EndTime, DurationSeconds, IsMigration
104
+ FROM PackagePushRequest
105
+ WHERE PackageVersionId IN (
106
+ SELECT Id FROM MetadataPackageVersion WHERE MetadataPackageId = '<033>'
107
+ )
108
+ ORDER BY ScheduledStartTime DESC
109
+ ```
110
+
111
+ ### Jobs (per-org) for one request
112
+ ```sql
113
+ SELECT Id, SubscriberOrganizationKey, Status, StartTime, EndTime, DurationSeconds
114
+ FROM PackagePushJob
115
+ WHERE PackagePushRequestId = '<0DV>'
116
+ ORDER BY Status
117
+ ```
118
+
119
+ ### Job status rollup for one request
120
+ ```sql
121
+ SELECT Status, COUNT(Id) total
122
+ FROM PackagePushJob
123
+ WHERE PackagePushRequestId = '<0DV>'
124
+ GROUP BY Status
125
+ ```
126
+
127
+ ### Errors for a request (join through jobs)
128
+ ```sql
129
+ SELECT PackagePushJobId, ErrorSeverity, ErrorType, ErrorTitle, ErrorMessage, ErrorDetails
130
+ FROM PackagePushError
131
+ WHERE PackagePushJobId IN (
132
+ SELECT Id FROM PackagePushJob WHERE PackagePushRequestId = '<0DV>'
133
+ )
134
+ ```
135
+
136
+ ### Errors grouped by type (decide what to re-push)
137
+ ```sql
138
+ SELECT ErrorType, ErrorSeverity, COUNT(Id) total
139
+ FROM PackagePushError
140
+ WHERE PackagePushJobId IN (
141
+ SELECT Id FROM PackagePushJob WHERE PackagePushRequestId = '<0DV>'
142
+ )
143
+ GROUP BY ErrorType, ErrorSeverity
144
+ ```
@@ -152,8 +152,8 @@ All steps are sequential. Do not skip or reorder. If blocked, stop and ask for m
152
152
 
153
153
  Available at any time after step 10, not a required workflow step — use only when the user asks to spot-check a record or view a calendar range.
154
154
 
155
- - **Specific record** (e.g., "show me Fall 2025"): cold-read by its captured Id — `GET /services/data/<ver>/sobjects/AcademicTerm/<termId>` (returns all fields; do not use a `?fields=` selector) — or, if the Id was not captured, look it up by name with `GET /services/data/<ver>/query` and `queryParams: {"q": "SELECT Id FROM AcademicTerm WHERE Name = 'Fall 2025'"}` (pass the SOQL via `queryParams`, not inlined as `?q=` in the URL — inlining 404s). Display all field values in table format with parent hierarchy.
156
- - **Calendar view** (e.g., "show all dates for Summer 2026"): cold-read the term and each child session by their captured Ids — `GET /services/data/<ver>/sobjects/AcademicTerm/<termId>` and `GET /services/data/<ver>/sobjects/AcademicSession/<sessionId>` — and display as a table (Record Type, Name, Start Date, End Date, Duration, Registration Open, Registration Close, Add/Drop). Calculate and display overlap periods if applicable. See `examples/sample-output.md` for a filled-in rendering.
155
+ - **Specific record** (e.g., "show me Fall 2025"): cold-read by its captured Id — `GET /services/data/<ver>/query` with `queryParams: {"q": "SELECT Id,Name,Season,AcademicYearId,StartDate,EndDate,RegistrationOpenDate,RegistrationCloseDate FROM AcademicTerm WHERE Id='<termId>'"}` — or, if the Id was not captured, look it up by name with the same call and `queryParams: {"q": "SELECT Id FROM AcademicTerm WHERE Name = 'Fall 2025'"}` (pass the SOQL via `queryParams`, not inlined as `?q=` in the URL — inlining 404s). Display only the allowlisted fields in table format with parent hierarchy.
156
+ - **Calendar view** (e.g., "show all dates for Summer 2026"): cold-read the term and each child session by their captured Ids — `GET /services/data/<ver>/query` with `queryParams: {"q": "SELECT Id,Name,Season,AcademicYearId,StartDate,EndDate,RegistrationOpenDate,RegistrationCloseDate FROM AcademicTerm WHERE Id='<termId>'"}`, and the same call with `queryParams: {"q": "SELECT Id,Name,AcademicTermId,StartDate,EndDate,ClassStartDate,ClassEndDate,AddDropDeadline FROM AcademicSession WHERE Id='<sessionId>'"}` per session (a plain sObject GET with `?fields=` is not supported on headless-360, so select the calendar fields through SOQL) — and display as a table (Record Type, Name, Start Date, End Date, Duration, Registration Open, Registration Close, Add/Drop). Calculate and display overlap periods if applicable. See `examples/sample-output.md` for a filled-in rendering.
157
157
 
158
158
  ---
159
159
 
@@ -213,7 +213,7 @@ All steps are sequential. Do not skip or reorder. If blocked, stop and ask for m
213
213
  GET /services/data/vXX.X/sobjects/LearningCourse/<id>
214
214
  ```
215
215
 
216
- > **Headless-360 note**: SOQL `/query` is routable via the headless-360 dispatch tool (confirmed by live test) — a `CreatedDate = TODAY` query works as an alternative to iterating captured Ids with direct record GETs.
216
+ > **Headless-360 note**: SOQL `/query` is routable via the headless-360 dispatch tool (confirmed by live test). Always verify by the Ids captured from create responses; do not query by CreatedDate.
217
217
 
218
218
  Run the completeness helper **separately per sObject** — `CourseType` exists only on `LearningCourse`, `Description` only on `Learning`; combining both shapes into one call false-positives every parent as missing `CourseType`:
219
219
  ```bash
@@ -58,7 +58,7 @@ Send `false` to allow automatic sharing again.
58
58
  1. From Setup → Set Up Education Cloud → Recruitment & Admissions.
59
59
  2. Find **Application Materials Protection** and turn it on.
60
60
 
61
- **Before changing — confirm with customer.** UPDATE operation on org metadata. Present for approve / reject / modify before executing.
61
+ **Before changing — confirm with customer.** UPDATE operation on org metadata. Present for approve / reject / modify before executing. Enabling is a standard change; this skill does not disable the protection — see below.
62
62
 
63
63
  **API call (technical)** — metadata element `enableAppMaterialsProtection` (flat read `IsAppMaterialsProtectionEnabled`):
64
64
  ```http
@@ -71,7 +71,7 @@ PUT /services/data/v68.0/headless/metadata
71
71
  "xmlRep": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><IndustriesSettings xmlns=\"http://soap.sforce.com/2006/04/metadata\"><enableAppMaterialsProtection>true</enableAppMaterialsProtection></IndustriesSettings>"
72
72
  }
73
73
  ```
74
- Send `false` to remove post-submission edit protection.
74
+ Disabling post-submission edit protection weakens a security control. Do NOT send `false` for `enableAppMaterialsProtection` through this skill, and do not accept ordinary customer confirmation as sufficient. If the customer wants it off, stop and tell them to change it themselves in Setup → Set Up Education Cloud → Recruitment & Admissions only after written approval from their organization's security owner, and quote that approval in the run summary.
75
75
 
76
76
  #### Cold verification (mandatory — both sub-features)
77
77
 
@@ -231,15 +231,16 @@ Only report a setting as changed after both the metadata element and its flat `I
231
231
 
232
232
  #### Step 9 — Set Up Application Permissions and Sharing
233
233
 
234
- **What it does**: Configures OWD (Org-Wide Defaults) for Application object and sets up sharing rules.
234
+ **What it does**: Configures separate Internal and External OWD (Org-Wide Defaults) for the Application object.
235
235
 
236
236
  **Setup path**:
237
237
  1. Navigate to Setup → Sharing Settings → Application
238
- 2. Set OWD to Private or Public Read Only
239
- 3. Create sharing rules to ensure applicants can only see their own records
240
- 4. Assign permission sets to admissions staff with broader access
238
+ 2. Set External OWD for the Application object to Private.
239
+ 3. Set Internal OWD to the level required by admissions staff (Private or Public Read Only).
240
+ 4. Do NOT create sharing rules to restrict access already granted by OWD — sharing rules can only widen access. Verify that the External OWD alone prevents cross-applicant visibility.
241
+ 5. Assign permission sets to admissions staff with broader access
241
242
 
242
- **Verification**: Test with applicant user profile to confirm they see only their own application.
243
+ **Verification**: Test with an external applicant user to confirm they see only their own application, then test with an internal admissions user to confirm appropriate staff visibility.
243
244
 
244
245
  ---
245
246
 
@@ -115,6 +115,7 @@ All steps are sequential. Do not skip or reorder. If blocked, stop and ask for m
115
115
  - Show a summary BEFORE writing any records — new setup shows counts per level + RecordType; update/reconcile shows the delta explicitly (create/rename/move/unchanged/extra). See `examples/output_examples.md` for both templates.
116
116
  - If any EXTRA nodes exist and the user wants them removed, that deletion is destructive — confirm each explicitly in Step 7; default is to leave them.
117
117
  - Ask: "Proceed with these changes?" (Yes/No). If "No": stop workflow.
118
+ - If any record name is modified after this confirmation (e.g., DUPLICATE_VALUE recovery), re-present the changed name and obtain fresh confirmation before writing.
118
119
 
119
120
  7. **Apply changes (create / rename / move)**
120
121
  - Once the user confirmed in Step 6, apply the delta via the transport resolved in Mechanism — call shapes for create/rename/move/delete are in `references/mcp-invocation.md` (Step 7). Capture each created Account's returned Id. Do not stop at a "pending"/"intended delta" plan — the confirmation is the go-ahead.
@@ -47,7 +47,7 @@ Retry successful — all 23 BusinessProfiles created
47
47
 
48
48
  1. **Check if existing record is part of this hierarchy**: Look it up in `existingTree` (loaded in Step 5 via the `ChildAccounts` GET, or a SOQL `/query` — both are routable) — match on name under the intended parent.
49
49
  2. **If yes (reused / leftover from previous run)**: Reuse the existing Account ID instead of creating new — this is the normal update-mode path
50
- 3. **If no (different hierarchy)**: Append disambiguating suffix to name (e.g., campus name in parentheses)
50
+ 3. **If no (different hierarchy)**: Append disambiguating suffix to name (e.g., campus name in parentheses). **Present the revised name to the user and obtain explicit confirmation before retrying the create.** The Step 6 preview authorization was bound to the original name; the renamed record requires fresh approval.
51
51
 
52
52
  **Example**:
53
53
  ```text
@@ -56,7 +56,8 @@ Retry successful — all 23 BusinessProfiles created
56
56
  Found existing record under: North Campus
57
57
  Creating under: Main Campus
58
58
 
59
- Resolution: Renaming to "School of Arts & Sciences (Main Campus)"
59
+ Proposed resolution (not applied until the user confirms): rename to "School of Arts & Sciences (Main Campus)"
60
+ → Present to user: "The name 'School of Arts & Sciences' conflicts with an existing record. Proceed with 'School of Arts & Sciences (Main Campus)' instead? (Yes/No)"
60
61
  ```text
61
62
 
62
63
  ---
@@ -175,11 +176,11 @@ Main Campus has no colleges — is this correct, or should I look for college in
175
176
 
176
177
  For any unexpected API error:
177
178
 
178
- 1. **Capture full error message**: Log complete error text from API response
179
- 2. **Identify which record failed**: Include record Name and hierarchy level in error report
179
+ 1. **Capture error category and status code only**: Log the HTTP status code and Salesforce error code (e.g., DUPLICATE_VALUE, FIELD_CUSTOM_VALIDATION_EXCEPTION). Do NOT log the full error body -- it may contain credentials, tokens, or PII echoed in error details.
180
+ 2. **Identify which record failed**: Include the record Name and hierarchy level. Do NOT include field values, request bodies, or raw API response text.
180
181
  3. **Report status to user**: Show what succeeded so far vs. what failed
181
182
  4. **Offer retry or manual fix**: Ask user if they want to retry, skip failed record, or provide corrected info
182
- 5. **Do not fail silently**: Every error must be reported to user with context
183
+ 5. **Do not fail silently**: Every error must be reported to the user with the error code, record name, and hierarchy level. Redact any credential-like values, tokens, or full API response bodies before reporting.
183
184
 
184
185
  **Example error report**:
185
186
  ```text
@@ -187,7 +188,7 @@ For any unexpected API error:
187
188
 
188
189
  Record: Computer Science Department
189
190
  Parent: Technical Education (College)
190
- Error: FIELD_CUSTOM_VALIDATION_EXCEPTION: Name must be unique within College
191
+ Error code: FIELD_CUSTOM_VALIDATION_EXCEPTION (HTTP 400)
191
192
 
192
193
  Status: 11 of 12 Department Accounts created successfully
193
194
 
@@ -18,6 +18,8 @@ metadata:
18
18
  cliTools:
19
19
  - tool: ["sf"]
20
20
  semver: ">=2.0.0"
21
+ - tool: ["jq"]
22
+ semver: ">=1.7.0"
21
23
  accessCheck: "(OrgPermissions.EinsteinForEducationCloud) && (OrgPermissions.EinsteinAgentPlatform)"
22
24
  ---
23
25
 
@@ -5,6 +5,8 @@ Read this before your very first message to the customer, and re-check it at eve
5
5
  **CRITICAL: Words and framings to never say out loud, no exceptions:** "tier," "T1"/"T2"/"T3," "gate," a bare step number ("Step 9," "9a"), or anything that names or alludes to the skill's own existence or your process of following it — "per the doc," "according to the reference file," "the skill says," "the setup notes flagged this," "before delegating the clone work," "per my instructions." State the plain action itself instead: say *"Let me check who owns this flow first"* — never *"Per the doc, I need to confirm the flow owner constant before delegating the clone work."* If a sentence names a source, a process step, or an internal label — under any name, not just these — cut that clause and keep only the outcome.
6
6
 
7
7
  - **Say the outcome, never the reasoning or process behind it.** Don't hedge about "what some docs say" or use "despite X" framing if the skill's own content turns out to be wrong — that's a skill bug to report back, not something to narrate around. Don't narrate your own search or trial-and-error either — trying a candidate endpoint, discovering the right one, correcting a first attempt that failed, or explaining a shortcut you're taking over some other approach. **WRONG:** *"'shared-platform-mcp-context-connect-api' looks right — it returns current user identity."* **WRONG:** *"Good, adding SobjectType fixed it."* **WRONG:** *"Streams list is paginated and long — rather than page through it, I'll just attempt to create each stream directly."* **WRONG:** *"v67.0 again — retrying with the correct version."* Work it out silently and state only the result.
8
+
9
+ **Exception: material errors must be disclosed.** If an API call partially executed, wrote unexpected data, changed scope, or required recovery, state what happened and what was done about it. Silence about trial-and-error formatting is fine; silence about partial writes or changed outcomes is not.
8
10
  - **Open the run in plain language.** Your first message names what you're doing *for them* — e.g. **CORRECT:** *"First, let me confirm your org is ready to run the agent — I'll check a few prerequisites."* Do **not** open with the scaffolding: **WRONG:** *"Starting the preflight gate (Step 1)."* / **WRONG:** *"Now I'll start Step 1 — the hard preflight gate."*
9
11
  - **Keep API element names, tier tags, and endpoints in the technical detail, not the headline.** **CORRECT:** *"Turning on Einstein."* — not **WRONG:** *"Setting `enableEinsteinGptPlatform = true` via a T1 `EinsteinGptSettings` PUT."* (Show the call when it helps; the line a customer reads is the feature and what it does for them.)
10
12
  - **At every step boundary — not just the opening message — lead with the outcome, not the internal label.** **CORRECT:** *"Now I'll turn on the platform settings the agent needs."* — not **WRONG:** *"Step 2 — the T1 toggles."* The leak that actually happens in practice: at a step boundary, the model reads its own internal label (the number, the `[T1]`/`[T3]` tag, the bolded title) and repeats it as the "name" of what it's doing — e.g. saying "Step 8, tier 1" or "Step 9... from a generic Agentforce template." Use the phrase in the right column below instead, every time, regardless of what the step's internal heading says:
@@ -50,7 +50,7 @@ All calls over Headless `dispatch`/`dispatch_readonly`; substitute the org's cur
50
50
 
51
51
  ### Common edit for every cloned flow — system-context run mode
52
52
 
53
- Set `metadata.runInMode = "SystemModeWithoutSharing"` (the UI's *Show Advanced → How to Run the Flow → "System Context Without Sharing – Access All Data"*). **Mandatory** for the unauthenticated/Service path, not optional polish.
53
+ Set `metadata.runInMode = "SystemModeWithoutSharing"` (the UI's *Show Advanced → How to Run the Flow → "System Context Without Sharing – Access All Data"*). Required for the unauthenticated/Service path. **This removes sharing enforcement, so it needs written approval from the customer's security owner for each flow** (an *exception approval*): it must name the specific flow and the target org, and you quote it in the run summary. Before setting this mode on any clone, (1) confirm the flow's data access pattern requires system context (not just convenience) and (2) obtain that approval. If there is no approval, do not set the mode and do not activate that clone: stop the unauthenticated/Service path, tell the customer which flows are waiting on approval, and finish only the parts that don't depend on them. Do not apply `SystemModeWithoutSharing` as a blanket default.
54
54
 
55
55
  ### Consumer edits (wave 2) — subflow swap + owner constant
56
56
 
@@ -13,9 +13,9 @@ Read at Workflow steps 7–8 and 9. SRA grounding is **two separate mechanisms
13
13
 
14
14
  The `AnswerQuestionsWithKnowledge` action (`EmployeeCopilot__AnswerQuestionsWithKnowledge`) answers over **published Knowledge articles** surfaced through a **Knowledge-sourced data library**. Articles must be **Published (Online)** and cover the 4 areas: **learning programs, support programs, application processes, campus & support information**. No specific article type/data category is mandated.
15
15
 
16
- - **WARNING:** The FAQ action is **public** → articles must contain **NO non-public data**.
16
+ - **WARNING:** The FAQ action is **public** → articles must contain **NO non-public data**. Enforce this at the library level: set `isRestrictToPublicArticle: true` in the library's `knowledgeConfig` (see step 7b). Do not rely solely on article-authoring discipline.
17
17
  - Draft articles cause the agent to answer "no information" — the classic failure mode. Publish before testing.
18
- - A Knowledge-sourced library indexes the **live** Knowledge object: once wired (step 9), newly **Published (Online)** articles matching the library's filters are picked up automatically on the index's refresh cycle — **no re-wiring or re-publish of the agent**. Drafts, archived, and filtered-out articles are excluded. So after the one-time wiring, ongoing article authoring alone keeps the agent current — tell the customer this so they don't expect to re-touch the agent per article.
18
+ - A Knowledge-sourced library indexes the **live** Knowledge object: once wired (step 9), newly **Published (Online)** articles matching the library's filters are picked up automatically on the index's refresh cycle — **no re-wiring or re-publish of the agent**. Drafts, archived, and filtered-out articles are excluded. So after the one-time wiring, ongoing article authoring alone keeps the agent current — tell the customer this so they don't expect to re-touch the agent per article. Because newly published articles are picked up automatically, the `isRestrictToPublicArticle` filter is the only systematic guard against accidental exposure of internal articles through this channel.
19
19
 
20
20
  ### 7a — Author + publish a Knowledge article — 🟢 TIER 1
21
21
 
@@ -54,6 +54,7 @@ The FAQ subagent grounds on a **data library** whose source is Knowledge (NOT Da
54
54
  "groundingSource": {
55
55
  "sourceType": "KNOWLEDGE",
56
56
  "knowledgeConfig": {
57
+ "isRestrictToPublicArticle": true,
57
58
  "primaryIndexField1": "Title",
58
59
  "primaryIndexField2": "Summary",
59
60
  "contentFields": ["<bodyField__c>"]
@@ -61,9 +62,9 @@ The FAQ subagent grounds on a **data library** whose source is Knowledge (NOT Da
61
62
  }
62
63
  }
63
64
  ```
64
- → **201** returning `libraryId`, `dataSpaceScopeId`, `sourceType:"KNOWLEDGE"`, `status:"IN_PROGRESS"`, `featureAssignments:[]`. Use the **fixed `developerName` `SRA_Knowledge_Library`** (never a per-org-run name) so the step-9 wiring can re-find the library deterministically — by that exact developerName, not by `sourceType` (the org may already have other KNOWLEDGE libraries) and never by asking the customer what it was called. Re-running create with the same developerName returns a `DUPLICATE`-class error → treat as "already exists, read it back," not a failure. **BOTH `primaryIndexField1` AND `primaryIndexField2` are mandatory** (the UI's two "identifying fields" — text/textarea, keep ≤255 chars to stay under the 512-token cap); the create 400s naming each missing field in turn until both are present. **Content is the array key `contentFields`** (NOT `contentField1` — a singular key is silently dropped); the `*__kav` field API names come from describe (§7a step 1). Optional Knowledge filters live in `knowledgeConfig`: `isRestrictToPublicArticle`, `isDataCategoryRuleEnabled` + `dataCategorySelectionIds`/`Names` (SRA needs neither for the basic path). The KNOWLEDGE source skips the file-upload chain (`file-upload-urls`/`add-files`) — create alone kicks indexing.
65
+ → **201** returning `libraryId`, `dataSpaceScopeId`, `sourceType:"KNOWLEDGE"`, `status:"IN_PROGRESS"`, `featureAssignments:[]`. Use the **fixed `developerName` `SRA_Knowledge_Library`** (never a per-org-run name) so the step-9 wiring can re-find the library deterministically — by that exact developerName, not by `sourceType` (the org may already have other KNOWLEDGE libraries) and never by asking the customer what it was called. Re-running create with the same developerName returns a `DUPLICATE`-class error → treat as "already exists, read it back," not a failure — and check the read-back for `isRestrictToPublicArticle: true`: a library created earlier without it must be corrected (Tier 3: Setup → Agentforce → Data Library → the library's Knowledge filter → restrict to public articles) before it is wired, never reused as is; if it can't be corrected, stop and report. **BOTH `primaryIndexField1` AND `primaryIndexField2` are mandatory** (the UI's two "identifying fields" — text/textarea, keep ≤255 chars to stay under the 512-token cap); the create 400s naming each missing field in turn until both are present. **Content is the array key `contentFields`** (NOT `contentField1` — a singular key is silently dropped); the `*__kav` field API names come from describe (§7a step 1). Knowledge filters live in `knowledgeConfig`: `isRestrictToPublicArticle`, `isDataCategoryRuleEnabled` + `dataCategorySelectionIds`/`Names`. SRA **requires** `isRestrictToPublicArticle: true` because the FAQ action is public-facing — set it in the create payload's `knowledgeConfig`; omitting it exposes internal articles to unauthenticated users. The data-category filter is not needed for the basic path. The KNOWLEDGE source skips the file-upload chain (`file-upload-urls`/`add-files`) — create alone kicks indexing.
65
66
  - **Tier 3 fallback:** Setup → Agentforce → Data Library → New → Knowledge source, if the Connect call 403/404/501s on the org.
66
- - **Verify (T1 readonly):** `GET .../einstein/data-libraries/<libraryId>` returns the full config — confirm `sourceType:"KNOWLEDGE"` and `contentFields` is non-empty; `GET .../einstein/data-libraries` lists all. **Don't wait on indexing to finish here** — wiring the library into the agent (step 9) only needs the `libraryId`, not a completed index, and indexing runs on its own async schedule (large sets can take 30 min–several hours) with nothing in this flow gated on it.
67
+ - **Verify (T1 readonly):** `GET .../einstein/data-libraries/<libraryId>` returns the full config — confirm `sourceType:"KNOWLEDGE"`, `contentFields` is non-empty, and `knowledgeConfig.isRestrictToPublicArticle` is `true` (if not, the library exposes internal articles to unauthenticated users — fix it before step 9); `GET .../einstein/data-libraries` lists all. **Don't wait on indexing to finish here** — wiring the library into the agent (step 9) only needs the `libraryId`, not a completed index, and indexing runs on its own async schedule (large sets can take 30 min–several hours) with nothing in this flow gated on it.
67
68
 
68
69
  ### Wiring (step 9) — attach the data library to the agent — 🟢 TIER 1 (T3 fallback)
69
70
 
@@ -129,7 +129,7 @@ Confirm `InternalSharingModel = 'Read'` for all 6. (Note `ProgramTermApplnTimeli
129
129
 
130
130
  ### 6a — Campaign "Recruitment Event" picklist value (Campus Tours) — 🟡 Tier 1 attempt (confirmed org-dependent)
131
131
  Add a **"Recruitment Event"** value to Campaign **Type** (backing set `StandardValueSet:CampaignType`).
132
- - **Tier 1:** `PUT /services/data/vXX/headless/metadata`, `type:StandardValueSet`, `fullName:CampaignType`, `xmlRep` listing **all existing values + Recruitment Event** → `200 {success:true}`. **WARNING: Whole-set-replace semantics — you MUST echo every existing value** or the omitted ones are deleted. Read current values first (e.g. `ui-api/object-info/Campaign/picklist-values/{rtId}/Type`). ⚠️ **Confirmed failure mode:** both this write and a direct read (`GET .../headless/metadata?type=StandardValueSet&fullName=CampaignType`) can 400 `UNSUPPORTED_OPERATION: MetadataCrud does not support READ/UPDATE on type: StandardValueSet` on some orgs. On that error, go straight to Tier 2/3 — don't retry reshaped.
132
+ - **Tier 1:** `PUT /services/data/vXX/headless/metadata`, `type:StandardValueSet`, `fullName:CampaignType`, `xmlRep` listing **all existing values + Recruitment Event** → `200 {success:true}`. **WARNING: Whole-set-replace semantics — you MUST echo every existing value** or the omitted ones are deleted. Read current values first with `GET /services/data/vXX/headless/metadata?type=StandardValueSet&fullName=CampaignType` — not the record-type-scoped `ui-api` picklist endpoint, which may omit global values. If the read fails, fall back to Tier 2/3; never attempt a partial write. ⚠️ **Confirmed failure mode:** both this write and a direct read (`GET .../headless/metadata?type=StandardValueSet&fullName=CampaignType`) can 400 `UNSUPPORTED_OPERATION: MetadataCrud does not support READ/UPDATE on type: StandardValueSet` on some orgs. On that error, go straight to Tier 2/3 — don't retry reshaped.
133
133
  - **Tier 2/3 fallback:** `sf`-deploy the `StandardValueSet` source, or Setup → Object Manager → Campaign → Fields → Type → New value.
134
134
 
135
135
  **Verify (attempt T1 `/query` → `sf` fallback):**
@@ -37,7 +37,7 @@ Almost nothing here is *purely* manual. For each prerequisite, separate **can th
37
37
 
38
38
  | # | Requirement | Configure? (tier) | **Verify call (run this)** | Tier |
39
39
  |---|---|---|---|---|
40
- | P1 | Edition (Enterprise / Performance / Unlimited / Developer) | **No** — commercial | Edition has no SOQL/tooling query field and no tier-1 GET (this one genuinely has no `/query` form, unlike the WHERE-filter verifies below); verify at tier 2 (`sf`) or a tier-3 UI check (Setup → Company Information).<br>Tier 2: `sf org display --target-org <alias> --json` → check `.result.edition` ∈ {Enterprise, Performance, Unlimited, Developer} | T3 |
40
+ | P1 | Edition (Enterprise / Performance / Unlimited / Developer) | **No** — commercial | Edition has no SOQL/tooling query field and no tier-1 GET (this one genuinely has no `/query` form, unlike the WHERE-filter verifies below); verify at tier 2 (`sf`) or a tier-3 UI check (Setup → Company Information).<br>Tier 2: `sf org display --target-org <alias> --json \| jq '{edition: .result.edition}'` — extract only the edition field; never capture or display the full `sf org display` output, which includes the access token. Check `.edition` ∈ {Enterprise, Performance, Unlimited, Developer} | T3 |
41
41
  | P2 | Education Cloud enabled | **Yes** — verify here (step 2a); if off, send to `education-cloud-domain-configure`, then re-verify | **T1** — `dispatch_readonly` GET `/services/data/vXX/tooling/sobjects/IndustriesSettings/bWRjLzBIRS9JbmR1c3RyaWVzU2V0dGluZ3M=` (deterministic DurableId) → top-level **`IsEducationCloudEnabled == true`** (the top-level field; **not** `.Metadata.enableEducationCloud` — that's the write-path member name, see `platform-enablement.md`) | T1 |
42
42
  | P3 | **Einstein for Education Cloud license** (the license gate on the SRA toggle) | **No** — **commercial/license grant — verify only** — `OrgPermissions.EinsteinForEducationCloud`, granted by the *Einstein for Education Cloud add-on*. **If absent, the `RecruitmentAgentEnabled` toggle can't be enabled** (it's part of the toggle's `editAccess`). Report it and stop — the skill can't flip a license. | **T1** — `dispatch_readonly` `/query`: `SELECT Status FROM PermissionSetLicense WHERE DeveloperName='EinsteinForEducationCloudPsl'` → confirm **`Status='Active'`** (`OrgPermissions.EinsteinForEducationCloud` itself has no SOQL surface; this PermissionSetLicense is the underlying grant) → fall back to `sf data query` (T2) → UI (T3) | T1 verify (license itself is T3/commercial) |
43
43
  | P4 | **Agentforce provisioned** | **No** — **Salesforce grant — no API** | **Preflight STOP check — resolve at Step 1.** Attempt tier-1 `/query` (routable over `dispatch_readonly`) for `BotDefinition` existence → fall back to `sf data query` (T2) → tier-3 UI check.<br>Tier 2: `sf data query -q "SELECT Id FROM BotDefinition LIMIT 1" --target-org <alias>`.<br>**Read the result precisely:** a **`200` with zero rows = provisioned, just no agents yet → PASS** (do not stop). Only an **error / `INVALID_TYPE` / 501 (object not queryable) = NOT provisioned → STOP now**, don't defer to the Step-9 501. | T1 verify (dispatch_readonly /query) → T2 sf (provisioning itself T3) |
@@ -54,7 +54,7 @@ One inbound channel serves **one** agent, so build a full stack for **each** age
54
54
  });
55
55
  </script>
56
56
  ```
57
- 3. **Set the security level to Relaxed CSP.** Setup → Digital Experiences → the site → **Security & Privacy** → Security Level → **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts** (the inline `<script>` above won't run under the stricter default CSP).
57
+ 3. **CSP change (requires written approval).** The inline script requires Relaxed CSP. Do NOT lower CSP unless the customer's security owner has approved it in writing (an *exception approval* naming this site and the specific CSP change), quoted in the run summary; ordinary customer confirmation is not sufficient. If there is no approval, skip steps 3–6, do not publish, and tell the customer the web chat will not render on the site until the CSP change is approved. With approval in place, set the security level to Relaxed CSP: Setup → Digital Experiences → the site → **Security & Privacy** → Security Level → **Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts** (the inline `<script>` above won't run under the stricter default CSP).
58
58
  4. **Trust the site's own host for scripts.** Add the site as a trusted site for scripts (Security & Privacy → Trusted URLs / *Allow Hosts of Script Resources*). Get the site URL from Setup → Digital Experiences → **All Sites** → the site's URL in the list view.
59
59
  5. **Auth/AEA site only — activate user verification on the component** [T3, Experience Builder]: highlight the **Embedded Messaging** component → in the property editor check **Add credential-based user verification**. This is the site-side half of the channel's Add-User-Verification checkbox (sub-step 5); both must be set for the authenticated path. Skip on an unauthenticated/Service site.
60
60
  6. **Publish (or re-publish) the site** so the component, head markup, CSP changes, and (auth path) the verification setting all go live.