@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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: agentforce-bot-upgrade
3
- description: "Use this skill to Upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec generation, planner reconciliation across bots, agentforce-generate authoring, and post-conversion .agent enhancements. TRIGGER when: user asks to migrate, upgrade, or convert one or more Einstein Bots (BotDefinition/BotVersion chatbots) to Agentforce agents; runs a multi-bot bot-to-agent upgrade; needs Einstein Bot metadata turned into Agent Spec handoffs and generated .agent agents; convert bots to agents; upgrade my service bots; move bots to Agentforce. DO NOT TRIGGER when: user already has an approved Agent Spec and only wants direct .agent authoring, deploy, test, or observe flows; user wants to migrate or upgrade an EXISTING Agentforce agent from a legacy GenAiPlannerBundle to an NGA aiAuthoringBundle (that is agentforce-generate's 'Migrate a Legacy Agent to Agent Script' flow, not an Einstein Bot upgrade); the request is unrelated to Einstein Bot migration."
3
+ description: "Use this skill to upgrade Einstein Bots into Agentforce agents end-to-end in a single pass, orchestrating per-bot Agent Spec generation, agentforce-generate authoring, and post-conversion .agent enhancements. TRIGGER when: user asks to migrate, upgrade, or convert one or more Einstein Bots (BotDefinition/BotVersion chatbots) to Agentforce agents; runs a multi-bot bot-to-agent upgrade; needs Einstein Bot metadata turned into Agent Spec handoffs and generated .agent agents; convert bots to agents; upgrade my service bots; move bots to Agentforce. DO NOT TRIGGER when: user already has an approved Agent Spec and only wants direct .agent authoring, deploy, test, or observe flows; user wants to migrate or upgrade an EXISTING Agentforce agent from a legacy GenAiPlannerBundle to an NGA aiAuthoringBundle (that is agentforce-generate's 'Migrate a Legacy Agent to Agent Script' flow, not an Einstein Bot upgrade); the request is unrelated to Einstein Bot migration."
4
4
  argument-hint: "[--mode <online|offline>] [--org-alias <org-alias> --bots <bot1:v1,bot2:v2,...> | --offline-dir <offline-dir> [--bots <bot1,bot2,...>]] [--interactive <true|false>]"
5
5
  metadata:
6
6
  version: "1.0"
@@ -9,6 +9,12 @@ metadata:
9
9
  relatedSkills:
10
10
  - "agentforce-generate"
11
11
  cliTools:
12
+ - tool: ["jq"]
13
+ semver: ">=1.6.0"
14
+ - tool: ["node"]
15
+ semver: ">=20.0.0"
16
+ - tool: ["npm"]
17
+ semver: ">=9.0.0"
12
18
  - tool: ["sf"]
13
19
  semver: ">=2.0.0"
14
20
  ---
@@ -17,16 +23,72 @@ metadata:
17
23
 
18
24
  ## Purpose
19
25
 
20
- Run a multi-bot upgrade-and-handoff cycle:
26
+ Run a multi-bot upgrade-and-handoff cycle. Each bot is converted into its own Agentforce agent; bots are processed independently and never combined or restructured across one another:
21
27
 
22
28
  1. Parse and validate bot/version pairs from `--bots`
23
29
  2. Follow [Generate Agent Spec Reference](references/generate-agent-spec.md) per bot-version pair (parallelizable)
24
- 3. Aggregation step that requires all generated Agent Specs
25
- 4. `/agentforce-generate` per Agent Spec (parallelizable)
26
- 5. Post-conversion enhancement pass per generated Agent Script (parallelizable)
30
+ 3. `/agentforce-generate` per Agent Spec (parallelizable)
31
+ 4. Post-conversion enhancement pass per generated Agent Script (parallelizable)
32
+ 5. Consolidated run report
33
+
34
+ ### Run Completion Contract
35
+
36
+ The skill run is complete only after Step 4 and Step 5 have both been executed for every bot that reached Step 3. Generating the Agent Spec (Step 2) or the `.agent` file (Step 3) is NOT a completed run.
37
+
38
+ - A run is complete only when `report.md` has been written (Step 5). The only other way to end a run is a hard stop listed under Interactive Mode.
39
+ - None of these end the run:
40
+ - the Step 2 deliverables;
41
+ - `/agentforce-generate` finishing or printing its own completion summary;
42
+ - an approval or release gate inside `/agentforce-generate`;
43
+ - the Step 4 per-agent summary;
44
+ - a failed compile or a failed publish.
45
+
46
+ Record each outcome and continue to the next step.
47
+ - Online mode: Step 4 always ends with a publish (commit) attempt, or a recorded reason why no attempt was made (for example, compile failed). Every attempt gets a `publish-audit.jsonl` record. Never activate.
48
+ - If a step fails for a bot, record the failure and still run Step 5. `report.md` is written for partial runs too.
49
+ - Do not end your turn while any step from 1 to 5 is still pending. If you send a progress update, send the next tool call in the same response.
27
50
 
28
51
  **Scope — this skill only converts Einstein Bots** (`BotDefinition`/`BotVersion` chatbots) into new Agentforce agents. It does NOT migrate an existing Agentforce agent from a legacy `GenAiPlannerBundle` to an NGA `aiAuthoringBundle` — for that, use the **agentforce-generate** skill's "Migrate a Legacy Agent to Agent Script" flow.
29
52
 
53
+ ## Start-of-Run Disclaimer
54
+
55
+ Display this disclaimer to the user as the very first output of every invocation, in both online and offline mode, before Missing Input Handling, Step 1, or any tool call, file read, or org query. Rules:
56
+
57
+ 1. Output the block between `BEGIN DISCLAIMER` and `END DISCLAIMER` verbatim as rendered Markdown — not inside a code block, not summarized, reworded, or reordered. Keep every emoji marker; they are the color coding that draws the user's attention.
58
+ 2. Display it exactly once per invocation (not once per bot).
59
+ 3. Do not wait for an acknowledgement or end your turn after displaying it; continue the run in the same response with Missing Input Handling and Step 1. When `--interactive=false`, still display it.
60
+
61
+ BEGIN DISCLAIMER
62
+
63
+ > ## ⚠️ IMPORTANT — Read Before You Upgrade
64
+ >
65
+ > This upgrade uses generative AI to turn your Einstein Bot's dialogs, intents, and variables into an Agentforce agent with subagents and actions. The result is a **committed agent version that has not been activated**. Review and test it before you activate it.
66
+ >
67
+ > ### 🔵 How your bot's design is translated
68
+ > - **Menus become intent-based routing.** The agent doesn't reproduce menus and option-driven navigation. It identifies what the customer wants and routes to the right subagent. Each menu option's outcome is kept, but the step-by-step menu flow is not.
69
+ >
70
+ > ### 🔴 Not converted
71
+ > - **Bot goals.** Agents don't need them.
72
+ > - **Some action steps:** steps that produce no output, exist only to move between dialogs, or write feedback logs.
73
+ > - **Actions other than Apex classes and flows**, such as object search. You can add these to the agent as custom actions.
74
+ > - **Menus in welcome messages.** Use pre-chat configuration to collect routing information up front.
75
+ > - **Option buttons for questions with more than 11 options.** The options aren't shown as buttons.
76
+ > - **Rich content and messaging components.** Use adaptive response formats to format the agent's responses.
77
+ > - **File attachments**, sent or received.
78
+ > - **Steps that change the conversation language** partway through a conversation.
79
+ >
80
+ > ### 🟡 Configure after the upgrade
81
+ > - **Agent user.** Assign a user to the agent.
82
+ > - **Channels and Omni-Flows.** Connect the agent to your customer channels.
83
+ >
84
+ > ### 🟢 Recommendations
85
+ > - Configure intents along with their descriptions in your bot, to match the corresponding dialog functionality before upgrading. Results depend on how good the source bot is.
86
+ > - Review and test the agent before you activate it.
87
+ > - If your bot uses context variables, deploy the agent to an embedded messaging channel and test the main use cases there.
88
+ > - 💲 Agentforce Service Agent is billed on consumption, by usage type.
89
+
90
+ END DISCLAIMER
91
+
30
92
  ## Inputs
31
93
 
32
94
  Inputs:
@@ -47,11 +109,11 @@ If required inputs are missing, handle per the Missing Input Handling and Intera
47
109
  - `--interactive true` (default): resolve ambiguities, open questions, and approval gates by asking the user, as described in this skill and its references.
48
110
  - `--interactive false`: run autonomously. Do NOT prompt the user at any decision point. For every open question, ambiguity, or approval gate, apply the documented recommended default/solution and record the auto-applied decision in the run artifacts (Agent Spec, open questions, extraction summary). The only hard stops permitted without prompting are inputs that are missing or contradictory with no safe recommended default — a missing mandatory launch input (`--org-alias`/`--bots` for online, `--offline-dir` for offline), no bots discovered, or the same bot given multiple versions. In those cases, report the issue and halt without prompting.
49
111
 
50
- Propagate the effective `--interactive` value to the per-bot Generate Agent Spec workflow (Step 2), the planner workflow (Step 3), and the post-conversion enhancement pass (Step 5).
112
+ Propagate the effective `--interactive` value to the per-bot Generate Agent Spec workflow (Step 2) and the post-conversion enhancement pass (Step 4).
51
113
 
52
114
  ## Missing Input Handling
53
115
 
54
- Resolve missing required launch inputs before Step 1:
116
+ After displaying the Start-of-Run Disclaimer, resolve missing required launch inputs before Step 1:
55
117
 
56
118
  1. **Online mode — `--org-alias` not provided.** Resolve this before attempting to list bots (listing requires a target org).
57
119
  - Interactive: list the available aliases of logged-in orgs and ask the user to select the target org. Use the SF CLI patterns in [SF CLI Bot Reference](references/sf-cli-bot-reference.md).
@@ -69,13 +131,12 @@ Use these reference files during execution:
69
131
 
70
132
  1. [SF CLI Bot Reference](references/sf-cli-bot-reference.md)
71
133
  2. [Generate Agent Spec Reference](references/generate-agent-spec.md)
72
- 3. [Planner Workflow Reference](references/planner-workflow-reference.md)
73
- 4. [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md)
74
- 5. [Extraction Blueprint](references/extraction-blueprint.md)
75
- 6. [Input Contract](references/input-contract.md)
76
- 7. [Mapping Rules](references/mapping-rules.md)
77
- 8. [Handoff Output Format](references/handoff-output-format.md)
78
- 9. [Quality Checklist](references/quality-checklist.md)
134
+ 3. [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md)
135
+ 4. [Extraction Blueprint](references/extraction-blueprint.md)
136
+ 5. [Input Contract](references/input-contract.md)
137
+ 6. [Mapping Rules](references/mapping-rules.md)
138
+ 7. [Handoff Output Format](references/handoff-output-format.md)
139
+ 8. [Quality Checklist](references/quality-checklist.md)
79
140
 
80
141
  ## Execution Contract
81
142
 
@@ -123,52 +184,25 @@ Ensure each invocation (online/offline) uses isolated working directories to avo
123
184
  Hard rules:
124
185
  - Do not skip this step.
125
186
 
126
- ### Step 3: Aggregation + Planner Step (Conditional)
187
+ Collect results:
188
+ 1. Build a ready-for-authoring list containing one entry per bot whose Agent Spec was generated successfully.
189
+ - Each entry must include: `{bot_name, bot_version, run_project_dir, agent_spec_path, handoff_json_path, open_questions_path}`.
190
+ 2. Build a list of failed/incomplete upgrade runs (if any). Failed runs are excluded from Step 3 and reported in Step 5; they do not block other bots.
127
191
 
128
- After all upgrade invocations complete:
192
+ ### Step 3: Invoke Agentforce-Generate (Per Agent Spec)
129
193
 
130
- 1. Always build a consolidated list of `{bot_name, bot_version, run_project_dir, agent_spec_path}`.
131
- 2. Always build list of failed/incomplete upgrade runs (if any).
132
- 3. Always build an initial ready-for-authoring list containing only valid Agent Spec entries.
133
- - Each entry must include: `{bot_name, bot_version, run_project_dir, agent_spec_path, handoff_json_path, open_questions_path}`.
134
- 4. If total bot workload count is greater than 1:
135
- - Execute planner workflow from [Planner Workflow Reference](references/planner-workflow-reference.md) using:
136
- - all ready-for-authoring `agent_spec_path` values as `spec_paths`
137
- - orchestrator working directory as `working_dir`
138
- - the associated per-spec artifacts from each ready-for-authoring entry: `handoff_json_path` (handoff JSON) and `open_questions_path` (open questions)
139
- - Require output file at `<orchestrator working directory>/bot-upgrade-planner-output.json`.
140
- - Read `bot-upgrade-planner-output.json` and apply:
141
- - if `specs_changed=true`: replace ready-for-authoring entries using planner fields (`updated_spec_path`, `run_project_dir`, `handoff_json_path`, `open_questions_path`)
142
- - if `specs_changed=false`: keep original ready-for-authoring list unchanged
143
- 5. If total bot workload count is 1:
144
- - Skip planner workflow entirely.
145
- - Keep original ready-for-authoring list unchanged.
146
-
147
- Planner output expectations:
148
- 1. boolean `specs_changed`
149
- 2. `updated_specs` array with entries:
150
- - `original_spec_path`
151
- - `updated_spec_path`
152
- - `run_project_dir`
153
- - `handoff_json_path`
154
- - `open_questions_path`
155
- 3. `updated_specs` must be empty when `specs_changed=false`
156
-
157
- ### Step 4: Invoke Agentforce-Generate (Per Agent Spec)
158
-
159
- For each entry in final ready-for-authoring list (post Step 3 planner reconciliation):
194
+ For each entry in the ready-for-authoring list from Step 2:
160
195
 
161
196
  0. Add this recommendation to the generated invocation context before calling `/agentforce-generate`:
162
197
  - Do **not activate** Agent Script versions in this orchestrated run.
198
+ - Do **not publish (commit)** the authoring bundle in this step. The orchestrator commits each agent once, after post-conversion enhancements and a successful compile (Step 4).
163
199
  - Draft iteration is required: generating `.agent`, validating, deploying, and preview testing are allowed.
164
200
  - Activate should be deferred unless the user explicitly asks for release.
165
- 1. Resolve effective `run_project_dir` from the final ready-for-authoring entry.
201
+ 1. Resolve `run_project_dir` from the ready-for-authoring entry.
166
202
  2. Read `<run_project_dir>/agentforce-generate-invocation-prompt.md` fully.
167
- 3. If Step 3 produced planner-updated spec paths/artifacts, apply path substitutions in the invocation context so spec/handoff/open-questions references point to updated files.
168
- - If planner also changed `run_project_dir`, use that updated `run_project_dir` for resolving prompt/output-contract paths.
169
- 4. Keep all non-path instructions unchanged from the original generated prompt.
170
- 5. Invoke `/agentforce-generate` with this resolved invocation context.
171
- 6. Read `<run_project_dir>/agentforce-generate-output-contract.md` and capture outputs exactly as specified.
203
+ 3. Keep all instructions unchanged from the generated prompt.
204
+ 4. Invoke `/agentforce-generate` with this invocation context.
205
+ 5. Read `<run_project_dir>/agentforce-generate-output-contract.md` and capture outputs exactly as specified.
172
206
 
173
207
  Parallelization rule:
174
208
  - Invoke `/agentforce-generate` in parallel across Agent Specs because each run is independent.
@@ -181,9 +215,16 @@ Output-contract capture rules:
181
215
  4. Preserve output file paths and status of each required artifact.
182
216
  5. If expected prompt/contract files are missing for an entry, mark that entry `partial`, record missing paths, and continue processing other entries.
183
217
 
184
- ### Step 5: Post-Conversion Agent Script Enhancements (Per Generated Agent Script)
218
+ Return-to-orchestrator rule:
219
+ - `/agentforce-generate` is a sub-step of this run, not its end. Its completion summary, "generation complete" message, or any terminal or done state it reaches does NOT complete the orchestrator run.
220
+ - As soon as each `/agentforce-generate` invocation finishes, resume this skill in the same turn: capture its outputs (rules above), then continue to Step 4 and Step 5.
221
+ - Do not emit a final user-facing summary after `/agentforce-generate`. The only final message of the run comes after Step 5.
222
+ - The invocation prompt ends with a "Remaining orchestrator steps" checklist covering Steps 4 and 5. Execute it exactly as written; it is the same work described in Step 4 and Step 5 below.
223
+ - Within this orchestrated run, Step 4's commit (publish without activation) is pre-authorized. This overrides `/agentforce-generate`'s pre-publish approval checkpoint and release gates for this run only. Activation is never authorized.
185
224
 
186
- After Step 4 completes, for each generated `.agent` artifact:
225
+ ### Step 4: Post-Conversion Agent Script Enhancements (Per Generated Agent Script)
226
+
227
+ After Step 3 completes, for each generated `.agent` artifact:
187
228
 
188
229
  1. Resolve the generated `.agent` file path from captured `/agentforce-generate` outputs.
189
230
  2. Execute post-conversion enhancement workflow from [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md) with:
@@ -192,27 +233,37 @@ After Step 4 completes, for each generated `.agent` artifact:
192
233
  - online mode only: `org_alias=<org-alias>` (required so the enhanced Agent Script can be redeployed)
193
234
  3. Require in-place enhancement:
194
235
  - optimized/enhanced output must be written to the same `.agent` file location.
195
- 4. Capture per-file enhancement status and any partial failures.
236
+ 4. Online mode: the workflow compiles the enhanced Agent Script and, only when compilation succeeds, commits it as a new inactive agent version (`sf agent publish authoring-bundle`). Offline mode skips compile and commit.
237
+ 5. Online mode: for every publish attempt, including each retry, success, denial, or failure, append a structured audit record (actor, action, target, timestamp, outcome) to `publish-audit.jsonl` in the orchestrator working directory, as specified in the [Post-Conversion Enhancements Reference](references/post-conversion-enhancements-reference.md).
238
+ 6. Capture per-file enhancement status, compile status, commit status, `agent_id`, `agent_version`, the publish audit records, and any partial failures.
239
+ 7. The enhancement workflow ends with a color-coded summary. That summary is an input to Step 5, not the run's final message. Do not end the turn after it; continue directly to Step 5.
196
240
 
197
241
  Parallelization rule:
198
242
  - Execute post-conversion enhancement workflow in parallel across generated `.agent` files because each file enhancement is independent.
199
243
 
200
- ### Step 6: Consolidate Run Report and Conclude
244
+ ### Step 5: Consolidate Run Report and Conclude
245
+
246
+ After Step 4 completes for every bot in the workload:
201
247
 
202
- After Step 5 completes for every bot in the workload:
248
+ 1. Write a single consolidated, human-readable run report as a non-empty Markdown file named `report.md` (unless the caller names a different path) in the orchestrator working directory. Per bot, the report must state: the effective run mode, the bot id, the bot version, the generated Agent Spec path and generated `.agent` path, the commit status, agent ID, and agent version (online mode; state that the version is committed but not activated), the publish audit outcome with its timestamp and the path to `publish-audit.jsonl` (online mode), and — when `--interactive=false` — the auto-applied decisions.
249
+ 2. Treat the run report as the FINAL artifact: write it only after all other artifacts (Agent Spec(s), handoff JSON, open questions, and generated `.agent` file(s)) are already written.
250
+ 3. The run concludes only after `report.md` is written. Emit the final summary message then, and not before.
251
+ 4. Before emitting the final message, confirm for each bot:
252
+ - Step 4 ran;
253
+ - online mode only: a publish attempt was made, or the reason for skipping it is recorded, and `publish-audit.jsonl` holds a record for each attempt;
254
+ - `report.md` exists and is non-empty.
203
255
 
204
- 1. Write a single consolidated, human-readable run report as a non-empty Markdown file in the orchestrator working directory. Per bot, the report must state: the effective run mode, whether the planner ran (`executed` or `skipped`), the generated Agent Spec path and generated `.agent` path, the action inventory (including any `NEEDS_STUB` items), and — when `--interactive=false` — the auto-applied decisions.
205
- 2. Treat the run report as the FINAL artifact: write it only after all other artifacts (Agent Spec(s), handoff JSON, open questions, any planner output, and generated `.agent` file(s)) are already written.
256
+ If any of these is missing, go back and complete it first.
206
257
 
207
258
  ## Deliverable
208
259
 
209
260
  Return:
210
261
  1. parsed bot/version list
211
262
  2. per-bot upgrade execution status
212
- 3. aggregation output (full Agent Spec list + final ready-for-authoring subset)
213
- 4. planner workflow status (`executed` or `skipped`) and `bot-upgrade-planner-output.json` path when executed
214
- 5. per-spec `/agentforce-generate` execution status
215
- 6. generated handoff artifact paths per bot/spec (including planner-updated artifacts when applicable)
216
- 7. captured `/agentforce-generate` outputs per output contract
217
- 8. per-agent post-conversion enhancement status (including enhanced `.agent` file paths)
218
- 9. path to the consolidated run report written in Step 6
263
+ 3. ready-for-authoring Agent Spec list and failed/incomplete runs from Step 2
264
+ 4. per-spec `/agentforce-generate` execution status
265
+ 5. generated handoff artifact paths per bot/spec
266
+ 6. captured `/agentforce-generate` outputs per output contract
267
+ 7. per-agent post-conversion enhancement status (including enhanced `.agent` file paths, compile status, commit status, agent ID, and agent version)
268
+ 8. path to the consolidated run report written in Step 5
269
+ 9. path to `publish-audit.jsonl` (online mode)
@@ -0,0 +1,139 @@
1
+ # Agent Spec: Agent_API_Name
2
+
3
+ ## Purpose & Scope
4
+
5
+ Describe the agent's purpose in 1-2 sentences. What does it help users do?
6
+ What domain does it operate in?
7
+
8
+ ## Behavioral Intent
9
+
10
+ Describe the key behavioral rules that govern the agent:
11
+ - What must the agent know before taking action?
12
+ - What action implementation types are used (Apex, Flow, Prompt Template)?
13
+ - What guardrails apply, if any (for example, off-topic handling or escalation)?
14
+ - Which exact values, if any, must deterministic runtime logic consume?
15
+ - Which conversational facts remain in surviving history and therefore need no
16
+ variable?
17
+
18
+ ## Subagent Posture
19
+
20
+ For each subagent, specify posture and why:
21
+
22
+ | Subagent | Posture (scripted/mixed/agentic) | Why this posture? | Deterministic controls (if any) |
23
+ |----------|-----------------------------------|-------------------|-----------------------------------|
24
+ | primary | agentic | one focused objective and action set | none |
25
+
26
+ Use [references/posture-and-determinism.md](../../references/_vendored/posture-and-determinism.md) for posture rules.
27
+
28
+ ## Subagent Map
29
+
30
+ ```mermaid
31
+ %%{init: {'theme':'neutral'}}%%
32
+ graph TD
33
+ A[start_agent<br/>primary]
34
+ ```
35
+
36
+ Add another node only when its boundary changes objective, instructions,
37
+ available actions, authority, or escalation behavior and that difference
38
+ cannot remain coherent in `primary`. A greeting, cancellation acknowledgment,
39
+ completion message, ambiguity question, or ordinary dialogue step is a branch
40
+ by default. Expand the diagram to show justified boundaries, actions, and
41
+ required deterministic controls. Show a variable state change only when a
42
+ named later runtime expression or action consumes it. See the Subagent Map
43
+ Diagrams reference for conventions.
44
+
45
+ ## Variables (Optional)
46
+
47
+ Default: **None.** Surviving conversation history carries ordinary names,
48
+ preferences, prior answers, corrections, and current intent.
49
+
50
+ Add one row only for trusted action output, authorization/eligibility/
51
+ confirmation proof, exact later action data flow, required external ordering,
52
+ or persistence beyond the configured history window.
53
+
54
+ | Variable | Type / Default | Trusted Writer | Named Consumer | Cause | Reset / Expiry / Correction / Cancel |
55
+ |----------|----------------|----------------|----------------|-------|--------------------------------------|
56
+ | `verified_customer_id` | `mutable string = ""` | `verify_customer` output | protected action input and `available when` gate | authorization | reset on verification failure, expiry, logout, or user cancellation |
57
+
58
+ ## Actions
59
+
60
+ ### action_name (subagent_name subagent)
61
+
62
+ - **Target:** `apex://ClassName` or `flow://FlowName` or `prompt://PromptTemplateName`
63
+ - **Status:** EXISTS / NEEDS STUB / NEEDS CREATION
64
+
65
+ #### Inputs
66
+
67
+ | Name | Type | Required | Source |
68
+ |------|------|----------|--------|
69
+ | property_id | string | Yes | User input |
70
+ | max_results | integer | No | Defaults to 10 |
71
+
72
+ #### Outputs
73
+
74
+ | Name | Type | Visible to User? | Source | Notes |
75
+ |------|------|-------------------|--------|-------|
76
+ | property | object | Yes | `Property__c` | Complete property details |
77
+ | related_applications | list[object] | Yes | `Application__c` | Records for this property |
78
+ | active_listing | boolean | Yes | `Listing__c` | Listing status |
79
+ | hasData | boolean | No | Computed | Internal empty-result flag |
80
+
81
+ > **"Visible to User?"** maps to `filter_from_agent` in the `.agent` file: Yes → `filter_from_agent: False`, No → `filter_from_agent: True`.
82
+
83
+ #### Stubbing Requirement
84
+
85
+ If NEEDS STUB:
86
+
87
+ - Apex class name and inner class wrappers needed
88
+ - `complex_data_type_name` for each `object`/`list[object]` output
89
+ - Key queries or computation logic the stub must implement
90
+
91
+ Repeat for each action.
92
+
93
+ ## Action Invocation Strategy
94
+
95
+ For each action, decide how it gets invoked:
96
+
97
+ | Action | Subagent | Invocation Mode | Why |
98
+ |--------|----------|-----------------|-----|
99
+ | action_name | subagent_name | `run` / planner slot-fill / `setVariables` | Rationale |
100
+
101
+ **Modes:**
102
+ - **`run @actions.X` in `instructions: ->`** — Deterministic. Fires every time the condition holds. Use only when regulation, authorization, confirmed consequence, external ordering, or a reproduced trace failure requires it.
103
+ - **Planner slot-fill (`with param = ...` in `reasoning.actions:`)** — LLM decides when to invoke. Use for user-initiated actions where the LLM should judge intent.
104
+ - **`@utils.setVariables`** — LLM captures a value through a model-selected
105
+ tool call. The call updates state but does not itself define a turn boundary.
106
+ Any later reasoning or response follows the runtime's normal tool-loop
107
+ behavior; do not use this action to force either an end or another
108
+ iteration. Prompt text asking for the call does not execute it. Use only when
109
+ a named later deterministic consumer needs the exact value and it cannot
110
+ remain action-local. Do not use it to mirror conversational history.
111
+
112
+ ## Deterministic Controls (When Needed)
113
+
114
+ - `action_name` visibility: `available when @variables.variable_name != ""`
115
+ — Named cause, trusted writer, and protected outcome.
116
+
117
+ Include only controls required by regulation, authorization, confirmed
118
+ consequence, external ordering, or observed failures.
119
+
120
+ ## Architecture Pattern
121
+
122
+ Default to exactly one execution block: `start_agent <domain>:` with its
123
+ reasoning and actions, and zero `subagent` blocks. Do not create an
124
+ `agent_router` that only transitions to one domain. Add a boundary only when
125
+ objective, instructions, actions, authority, or escalation behavior changes
126
+ and cannot remain coherent in the current scope. Greeting, cancellation,
127
+ completion, ambiguity, and ordinary dialogue branches do not require their own
128
+ subagents. Use router-first only when multiple genuine domains require
129
+ current-intent classification.
130
+ State any externally ordered workflow-local flows inside the execution block
131
+ that owns them, including correction and cancellation paths.
132
+ Describe the routing strategy and how subagents relate to each other.
133
+
134
+ ## Agent Configuration
135
+
136
+ - **developer_name:** `Agent_API_Name`
137
+ - **agent_label:** `Agent Display Name`
138
+ - **agent_type:** `AgentforceEmployeeAgent` or `AgentforceServiceAgent` — state the reasoning based on prompt signals (e.g., "accessible by employees" → Employee, "customer-facing channel" → Service)
139
+ - **access.default_agent_user:** Required for `AgentforceServiceAgent`. Normally omitted for `AgentforceEmployeeAgent`. If specified, MUST be a **user name**, never a **user ID**, and the user MUST have an `Einstein Agent` license.