@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,239 @@
1
+ ---
2
+ name: experience-afv-analytics-query
3
+ description: "System-of-record for the public Lightning Instrumentation Headless Connect REST API route that retrieves Agentforce Vibes (AFV) metrics, analytics, data, and adoption/usage insights, including token/LOC, weekly active-user, and per-user activity. Supports local result filtering by period (default current), orgType (default All), recordType, modelName (default All), and other explicitly returned row fields after one parameterless API call."
4
+ metadata:
5
+ version: "1.0"
6
+ minApiVersion: "68.0"
7
+ accessCheck: "(DxDevopsAnalytics.orgHasDevopsAnalyticsAccess)"
8
+ domains:
9
+ - "Experience"
10
+ - "Agentforce"
11
+ ---
12
+
13
+ # Agentforce Vibes metrics
14
+
15
+ Use this skill when a user asks to retrieve Agentforce Vibes (AFV) usage or
16
+ instrumentation metrics for the current Salesforce org.
17
+
18
+ This skill describes one public, read-only Connect API operation:
19
+
20
+ - **Get AFV metrics** — trigger phrases: "get afv metrics", "agentforce vibes metrics", "afv analytics", "fetch agentforce vibes analytics", "headless afv metrics", "afv data", "agentforce vibes data", "get afv adoption usage data", "Vibes adoption", "token/LOC metrics", "weekly active users", "per-user AFV activity", "current or prior AFV metrics", "AFV model metrics", "AFV metrics by org type", and "filter AFV metrics by record type". Primary route: `GET /instrumentation/afv-metrics` (`operationId: getAFVMetrics`).
21
+
22
+ The route is available at external API version **v68.0 or later**. Call it at
23
+ v68.0; do not infer a lower version from the source
24
+ spec's generic `info.version` or `servers` example. v67.0 returns
25
+ `404 NOT_FOUND`. A version above the org's own maximum also returns `404`;
26
+ that is an org limit, not a reason to call a version below v68.0.
27
+
28
+ ## Workflow
29
+
30
+ 1. Call `GET /services/data/v68.0/instrumentation/afv-metrics`.
31
+ 2. Send no path parameters, query parameters, or request body.
32
+ 3. Read the returned `AFVMetricsOutputRepresentation`:
33
+ - `success` — whether the metrics download succeeded.
34
+ - `message` — an optional status or failure message.
35
+ - `rows` — an array of metric maps; each map can contain heterogeneous
36
+ metric names and values.
37
+ 4. If `success` is `false`, surface `message` and the raw response. Do not
38
+ present the rows as a successful metrics result or retry automatically.
39
+ 5. If `success` is `true` and `rows` is empty, report the no-data result and
40
+ stop. Do not retry, treat it as an API error, or fall back to an internal
41
+ API.
42
+ 6. Branch on each row's `recordType` before reading class-specific fields.
43
+ Do not assume that any particular record class is present. Preserve unknown
44
+ record types and fields instead of dropping them.
45
+
46
+ ## Optional result filters
47
+
48
+ Users can narrow the displayed metrics with optional result filters. These
49
+ filters control local processing after the complete response is received; they
50
+ are not Connect API query parameters or `get-afv-metrics` dispatch inputs.
51
+
52
+ | Filter | Accepted value | Matching rule |
53
+ |---|---|---|
54
+ | `period` | `current` (default) or `prior` | Exact match on `rows[*].period`. Reject another explicit value before calling the API. |
55
+ | `orgType` | `All` (default) or an org-type value returned by the API | Case-insensitive exact match on `rows[*].orgType`. `All` is a literal roll-up value, not a wildcard. |
56
+ | `recordType` | One or more record-type names | Exact match on `rows[*].recordType`. Known values include `aggregate`, `dailyTimeSeries`, `modelMetrics`, `orgBreakdown`, `userMetrics`, and `weeklyActiveUsers`, but accept an exact future value when the user supplies it. |
57
+ | `modelName` | `All` (default) or a model name returned by the API | Case-insensitive exact match on `rows[*].modelName`. `All` is a literal roll-up value, not a wildcard. |
58
+ | Other returned row field | Explicit field name and value supplied by the user | Exact match only when that field is present. Do not invent aliases or assume the field exists on every record type. |
59
+
60
+ If the user does not supply `period`, apply `period=current`; if the user does
61
+ not supply `orgType`, apply `orgType=All`; if the user does not supply
62
+ `modelName`, apply `modelName=All`. These are default local result filters. An
63
+ explicit value overrides its corresponding default. A request that compares
64
+ the current and prior periods explicitly selects both values and therefore
65
+ overrides the single-period default. Likewise, a request to compare or rank
66
+ models explicitly selects the concrete model names present in the response
67
+ instead of the `All` model roll-up. If the user supplies more than one filter
68
+ name, combine them with AND. If the user supplies multiple values for the same
69
+ field, match any of those values. Each default still applies when the user
70
+ supplies another filter but omits one of these three fields.
71
+
72
+ Apply filters only after checking HTTP status, `success`, and the unfiltered
73
+ `rows` array:
74
+
75
+ 1. Capture the requested result filters from the user's prompt and add the
76
+ defaults `period=current`, `orgType=All`, and `modelName=All` when those
77
+ fields were omitted and the request does not imply a multi-value comparison.
78
+ 2. Call `get-afv-metrics` once with no arguments and no query string.
79
+ 3. If `success` is `false` or the complete `rows` array is empty, follow the
80
+ normal response handling without filtering.
81
+ 4. Otherwise, filter the returned rows in memory and render the matching rows.
82
+ 5. Report the filters applied, the total rows returned by the API, and the
83
+ number of rows matched.
84
+
85
+ A successful response with rows but zero filter matches, including when a
86
+ default filter finds no rows, is a successful zero-match view, not an empty
87
+ API response. Report that the complete response
88
+ contained no matching rows. Do not retry, change the request URL, infer zero
89
+ metric values, or report that the API itself returned no data. When the
90
+ requested `recordType` is `userMetrics`, also apply the permission-dependent
91
+ guidance below instead of treating the absence as proof of zero user activity.
92
+
93
+ ## Permission-dependent results
94
+
95
+ HTTP status is part of the gate and permission contract. Do not treat every
96
+ denial as HTTP `200` with `success: false`.
97
+
98
+ The route returns a metrics body only when the org gate is enabled and the
99
+ caller passes the user access check. The user access check passes when any
100
+ of these is true:
101
+
102
+ - the caller has both **Customize Application** and **Modify All Data**, or
103
+ - the caller has **Lifecycle Center Developer-Level Insights**, or
104
+ - the caller has **Lifecycle Center User**.
105
+
106
+ - **Org gate disabled, or the caller fails the user access check:** the
107
+ route returns HTTP `403`. Surface the response as an access denial.
108
+ Recommend verifying that AFV metrics are enabled for the org and that the
109
+ caller has `Lifecycle Center User`, `Lifecycle Center Developer-Level
110
+ Insights`, or both Customize Application and Modify All Data. Do not retry,
111
+ and do not present a `403` as an empty dataset or as `success: false`.
112
+ - **`Lifecycle Center User` only:** the call can return HTTP `200` with
113
+ `success: true`, but `userMetrics` rows are omitted. The message then
114
+ includes `Some per-user metrics were omitted because you do not have
115
+ permission to view them.` Other record classes remain subject to data
116
+ availability. Absence of `userMetrics` does not prove that no users used
117
+ AFV.
118
+ - **`Lifecycle Center Developer-Level Insights`, or Customize Application
119
+ together with Modify All Data:** the caller is eligible to receive rows
120
+ whose `recordType` is `userMetrics` when that class has data. A populated
121
+ System Administrator probe returned those rows with message
122
+ `AFV metrics retrieved successfully.` and no omission sentence.
123
+
124
+ When the user specifically asks for per-user results and no `userMetrics`
125
+ rows are visible, explain that the class can be absent because
126
+ `Lifecycle Center Developer-Level Insights` is not assigned or because the
127
+ current dataset has no rows of that class. Recommend verifying
128
+ `Lifecycle Center Developer-Level Insights`; do not report zero per-user
129
+ activity from an absent record class.
130
+
131
+ ## Variable record classes
132
+
133
+ Production exports show that successful populated responses can contain only a
134
+ subset of the known record classes. Treat `aggregate`, `dailyTimeSeries`,
135
+ `modelMetrics`, `orgBreakdown`, `userMetrics`, and `weeklyActiveUsers` as
136
+ independently optional collections. For a requested class that is absent,
137
+ report that the current response contains no rows of that class. Do not infer a
138
+ zero value, fail the whole response, or retry. Row counts are data-dependent.
139
+
140
+ ## Output
141
+
142
+ On success, report the server message when present, the number of rows, and
143
+ the rows themselves. Preserve the keys returned in each row; the schema
144
+ intentionally permits arbitrary metric-name/value pairs.
145
+
146
+ ```markdown
147
+ ## AFV metrics
148
+
149
+ - Success: `<success>`
150
+ - Message: `<message, when present>`
151
+ - Result filters: `<filters, including period=current, orgType=All, and modelName=All defaults when applicable>`
152
+ - Rows returned by API: `<unfiltered rows.length>`
153
+ - Rows matched: `<filtered rows.length, when filters are present>`
154
+
155
+ <render the rows without inventing or renaming fields>
156
+ ```
157
+
158
+ For every successful populated response with no user-supplied result filters,
159
+ append a compact filter-discovery block even though the default
160
+ `period=current AND orgType=All AND modelName=All` view was applied. Compute
161
+ distinct values from the full, unfiltered API response and include only fields
162
+ that occur in at least one row. Do not present known-but-absent values as
163
+ available in the current result, and do not make a second API call.
164
+
165
+ ```markdown
166
+ ### Available result filters in this response
167
+
168
+ - `period`: `<distinct rows[*].period values>` (default: `current`)
169
+ - `orgType`: `<distinct rows[*].orgType values>` (default: `All`)
170
+ - `recordType`: `<distinct rows[*].recordType values>`
171
+ - `modelName`: `<distinct rows[*].modelName values>` (default: `All`)
172
+
173
+ Example: `Get AFV metrics for period=prior, orgType=Sandbox, recordType=modelMetrics, and modelName=<returned model name>.`
174
+ ```
175
+
176
+ When user-supplied filters were provided, show the effective filters in
177
+ `Result filters` and omit the discovery block. The default
178
+ `period=current AND orgType=All AND modelName=All` filters alone do not
179
+ suppress discovery. The filter list and example are part of the same final
180
+ result, not a follow-up question. Available `orgType` and `modelName` values
181
+ are data-dependent; never hardcode values observed in one org.
182
+
183
+ An empty `rows` array is a valid successful response. The no-data result is
184
+ HTTP `200` with `success: true`, message
185
+ `No AFV metrics are available yet for this org.`, and `rows: []`. Report
186
+ that no metric rows were returned, include the server's message, and stop
187
+ without retrying. Distinguish this from `success: false` with `rows: []`,
188
+ which is a service failure, and from HTTP `403`, which is an access denial.
189
+
190
+ ## Error handling
191
+
192
+ - `400` — surface the returned AFV result as a bad request.
193
+ - `401` — authentication is missing or invalid; ask the user to reconnect to
194
+ the org, then retry only when they request it.
195
+ - `403` — the org gate is disabled or the caller fails the user access check.
196
+ Surface the response and recommend verifying org enablement plus
197
+ `Lifecycle Center User`, `Lifecycle Center Developer-Level Insights`, or
198
+ both Customize Application and Modify All Data. Do not retry automatically.
199
+ - `500` — the metrics service failed internally; surface the response and
200
+ advise retrying later.
201
+ - HTTP `200` with `success: false` — surface `message` and `rows` as returned.
202
+ The caller-facing service-failure message is
203
+ `Unable to retrieve AFV metrics at this time. Please try again later.`
204
+ This is not a permission or gate denial. Do not recommend a permission
205
+ change for it.
206
+ - HTTP `200` with `success: true` and the per-user omission sentence — follow
207
+ the permission-dependent guidance. Do not treat the remaining rows as a
208
+ failure.
209
+ - Route not found at a lower API version — retry at v68.0 or later. v67.0
210
+ returns `404`. Do not probe a matrix of versions automatically.
211
+ - Rate limiting — the public family enables rate limits. Surface the error and
212
+ do not auto-retry.
213
+
214
+ ## Constraints
215
+
216
+ - Read-only and idempotent.
217
+ - Never send result filters to the server: the operation declares
218
+ `parameters: []`. Apply optional user filters only after the full response is
219
+ received, including the default
220
+ `period=current AND orgType=All AND modelName=All` view.
221
+ - Never call the internal Aura-only Lightning Instrumentation Agentforce API;
222
+ this skill uses the separate public headless Connect API family.
223
+ - Never infer that an absent record class represents zero-valued data. In
224
+ particular, `userMetrics` can be omitted by permission-based filtering.
225
+ - Do not rely on fixed row counts. Counts observed during validation describe
226
+ that test dataset, not the API contract.
227
+ - Return one final result. Do not make a follow-up write or verification call.
228
+
229
+ <!-- skill-validate: ignore-start -->
230
+ <!-- codey:operations start -->
231
+ ## Operations Reference
232
+
233
+ Operations this skill uses — routing and dependency reference.
234
+
235
+ | Operation | Purpose | Status | Call | Depends on |
236
+ |-----------|---------|--------|------|------------|
237
+ | `get-afv-metrics` | read | — | `GET /services/data/v68.0/instrumentation/afv-metrics` | — |
238
+ <!-- codey:operations end -->
239
+ <!-- skill-validate: ignore-end -->
@@ -0,0 +1,176 @@
1
+ # AFV Connect API reference
2
+
3
+ ## Authoritative Core contract
4
+
5
+ The API was introduced by Core pull request 25670. The accepted IDL-first API
6
+ definition and implementation are the authority for the contract summarized
7
+ here.
8
+
9
+ Contract facts used by this skill:
10
+
11
+ - Public, REST-callable Connect API.
12
+ - Available at external API v68.0 or later.
13
+ - Route: `GET /instrumentation/afv-metrics`.
14
+ - Operation: `getAFVMetrics`.
15
+ - No request parameters.
16
+ - Rate limiting enabled.
17
+ - API integrations declared for Catalog, Flow, Agentforce, and MCP.
18
+ - No Aura controller or LDS adapter is generated for this family.
19
+
20
+ The generated unified OpenAPI document must advertise
21
+ `/services/data/v68.0` in `servers[0].url`. The skill-derived base generator's
22
+ generic v67.0 server is not valid for this route: a live probe returned
23
+ `404 NOT_FOUND` at v67.0, and the same route returned the AFV response at
24
+ v68.0 and v69.0. A version above the org catalog maximum also returns `404`;
25
+ that limit is not a route restriction.
26
+
27
+ The generated unified OpenAPI projection must keep the six known
28
+ `recordType` values on the property itself. The description may explain that
29
+ future values are possible, but it must not remove this `enum` metadata:
30
+
31
+ ```yaml
32
+ recordType:
33
+ type: string
34
+ enum:
35
+ - aggregate
36
+ - modelMetrics
37
+ - dailyTimeSeries
38
+ - weeklyActiveUsers
39
+ - orgBreakdown
40
+ - userMetrics
41
+ ```
42
+
43
+ ## Response representation
44
+
45
+ `AFVMetricsOutputRepresentation` is an object with:
46
+
47
+ | Field | Type | Meaning |
48
+ |---|---|---|
49
+ | `success` | boolean | Whether the dashboard-metrics download succeeded. |
50
+ | `message` | string | Optional status or failure detail. |
51
+ | `rows` | array of object maps | Dashboard metric rows. Each row permits arbitrary property names and value types. |
52
+
53
+ The implementation delegates to the existing dashboard metrics service and
54
+ copies its `success`, `message`, and `rows` values directly into the public
55
+ representation.
56
+
57
+ An empty dataset is still a successful response: HTTP `200` with
58
+ `success: true`, message `No AFV metrics are available yet for this org.`,
59
+ and `rows: []`.
60
+
61
+ A populated success response uses message
62
+ `AFV metrics retrieved successfully.` A service failure that still returns
63
+ HTTP `200` uses `success: false` and message
64
+ `Unable to retrieve AFV metrics at this time. Please try again later.`
65
+
66
+ ## Result-filtering boundary
67
+
68
+ The operation has no path, query, or body parameters. User phrases such as
69
+ `period=current`, `orgType=Sandbox`, `recordType=modelMetrics`, or
70
+ `modelName=<name>` are skill-level result filters, not part of the Connect API
71
+ request. The runtime must first call the parameterless endpoint and then filter
72
+ the complete `rows` array in memory.
73
+
74
+ The supported filter semantics are:
75
+
76
+ - `period` defaults to `current` when the user does not supply one. An explicit
77
+ `current` or `prior` value overrides the default and matches
78
+ `rows[*].period` exactly. A comparison request can explicitly select both
79
+ values, which uses OR semantics within the field.
80
+ - `orgType` defaults to the literal `All` roll-up when the user does not supply
81
+ an org type. An explicit value overrides the default and uses a
82
+ case-insensitive exact match against `rows[*].orgType`; `All` is not a
83
+ wildcard.
84
+ - `recordType` matches one or more exact discriminator values. The known
85
+ record classes are examples, not a closed enum; a future value can be used
86
+ when it is actually returned.
87
+ - `modelName` defaults to the literal `All` roll-up when the user does not
88
+ supply a model. An explicit model name overrides the default and uses a
89
+ case-insensitive exact match. A request to compare or rank models selects
90
+ the concrete model names present in the response instead of the `All`
91
+ roll-up; those names must be derived from the response rather than hardcoded.
92
+ - Another explicitly named row field can be matched exactly, but the consumer
93
+ must not invent aliases or assume the field exists on every heterogeneous
94
+ row.
95
+ - Different filter names use AND semantics; multiple values for one field use
96
+ OR semantics. The defaults `period=current`, `orgType=All`, and
97
+ `modelName=All` participate in the AND expression whenever the user omits the
98
+ corresponding field and does not request a multi-value comparison.
99
+
100
+ Unknown query parameters are silently ignored by the live endpoint, so a
101
+ filter-shaped URL can return HTTP `200` and the same unfiltered body. A zero-row
102
+ result after local filtering therefore means "no rows in the complete response
103
+ matched these filters," which is distinct from the API returning `rows: []`.
104
+ When the requested filter is `recordType=userMetrics`, the permission-dependent
105
+ absence rules still apply; zero matches do not establish zero user activity.
106
+ The SOR step inputs and OpenAPI operation parameters must remain empty.
107
+
108
+ For a successful populated call without user-supplied filters, the final result
109
+ should render the default
110
+ `period=current AND orgType=All AND modelName=All` view and advertise the
111
+ filter values available in the complete response. Derive the distinct
112
+ non-empty `period`, `orgType`, `recordType`, and `modelName` values from the
113
+ unfiltered `rows` and include only fields that are present. This is response
114
+ discovery, not a second API operation. Available `orgType` and `modelName`
115
+ values are org- and time-dependent and must never be copied into the skill as
116
+ fixed lists.
117
+
118
+ ## Permission-dependent responses
119
+
120
+ The public permission-set labels are `Lifecycle Center User` and
121
+ `Lifecycle Center Developer-Level Insights`. HTTP status changes when the
122
+ org gate is disabled or the caller fails the user access check.
123
+
124
+ The user access check passes when the caller has both Customize Application
125
+ and Modify All Data, or has `Lifecycle Center Developer-Level Insights`, or
126
+ has `Lifecycle Center User`.
127
+
128
+ | Access state | HTTP | Body |
129
+ |---|---|---|
130
+ | Org gate disabled, or the caller fails the user access check | `403` | Access denial. Not a metrics body with `success: false`. |
131
+ | `Lifecycle Center User` only | `200` | `success: true`. `userMetrics` rows are omitted, and the message includes `Some per-user metrics were omitted because you do not have permission to view them.` |
132
+ | `Lifecycle Center Developer-Level Insights`, or Customize Application with Modify All Data | `200` | Eligible for `userMetrics` when that class has data. A populated System Administrator probe returned `success: true`, message `AFV metrics retrieved successfully.`, and `userMetrics` rows, with no omission sentence. |
133
+
134
+ The structural conclusions are:
135
+
136
+ - A disabled org gate and a failed user access check both return HTTP `403`.
137
+ Callers must surface that status instead of the older HTTP `200` service
138
+ failure.
139
+ - `Lifecycle Center User` is enough to call the route, but not enough to
140
+ receive `userMetrics`.
141
+ - `Lifecycle Center Developer-Level Insights` controls visibility of
142
+ `userMetrics`. Customize Application together with Modify All Data also
143
+ receives that class.
144
+ - Missing `userMetrics` rows on an HTTP `200` are an authorization-filtered
145
+ representation, not proof that the org has no per-user activity.
146
+ - `success: false` with
147
+ `Unable to retrieve AFV metrics at this time. Please try again later.`
148
+ is a service failure inside HTTP `200`. It is not the permission or gate
149
+ denial.
150
+ - `success: true`, `rows: []`, and
151
+ `No AFV metrics are available yet for this org.` remain a distinct, valid
152
+ empty-dataset response.
153
+
154
+ ## Production record-class variability
155
+
156
+ The supplied production exports use the same field vocabulary but contain
157
+ different record-class combinations. Some responses contain only
158
+ `aggregate`, `dailyTimeSeries`, and `modelMetrics`; others add
159
+ `orgBreakdown` and `userMetrics`; and some also contain
160
+ `weeklyActiveUsers`. The number of rows in every class also varies by org and
161
+ over time.
162
+
163
+ Consequently, none of the known record classes or their row counts is required
164
+ for a successful populated response. Consumers must branch on the
165
+ `recordType` of each returned row, handle an absent requested class as
166
+ unavailable in the current response, and preserve unknown future classes and
167
+ fields. Permission filtering remains one possible reason that `userMetrics` is
168
+ absent, but absence alone does not identify the cause.
169
+
170
+ ## Declared responses
171
+
172
+ The source OAS declares `200`, `400`, `401`, `403`, and `500`. The `403`
173
+ response is the declarative access denial: the org gate is disabled or the
174
+ user access check fails. These are contract declarations. The populated
175
+ success path was wire-probed; the `403` path was not reproduced on an
176
+ administrator session where the gate was open.
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: experience-app-mcp-delivery-generate
3
+ description: "Package and deliver an existing Salesforce hosted MCP server/App MCP for an Experience Site as an MCP configuration file or a Claude plugin repository. Discover the serving URL and External Client Application client ID, generate client configuration, optionally bundle skills in a plugin, and provide local testing and private GitHub handoff instructions. Plugin packaging supports Claude only; reject requests for Codex, ChatGPT, or other plugin platforms. Use for connecting clients and packaging delivery, not for creating or activating the Salesforce MCP server."
4
+ metadata:
5
+ version: "1.0"
6
+ minApiVersion: "68.0"
7
+ cliTools:
8
+ - tool:
9
+ - "git"
10
+ semver: ">=2.0"
11
+ - tool:
12
+ - "node"
13
+ semver: ">=18.0.0"
14
+ - tool:
15
+ - "sf"
16
+ semver: ">=2.0.0"
17
+ ---
18
+
19
+ # Deliver an Experience Site MCP Connection
20
+
21
+ Create a standalone MCP configuration file or a local Claude plugin for an existing hosted server. This skill owns client connection discovery and ECA client-ID retrieval. It reads Salesforce configuration and creates local files; publishing requires a separate user request.
22
+
23
+ `<skill-dir>` is the absolute directory containing this `SKILL.md`. Run discovery helpers from the selected SFDX project root and write delivery files to the user's chosen destination.
24
+
25
+ Reuse the org/site/server/ECA identities, exact site developer name, serving URL and validation results already established in the current context. Discover only missing, stale, conflicting or unverified facts. Ask only for choices that have not already been supplied.
26
+
27
+ ## Supported plugin platform
28
+
29
+ Check the requested delivery format and plugin platform before preflight or connection discovery. This skill generates **Claude plugins only**. If the user requests a Codex, ChatGPT, or any other non-Claude plugin, explain that the requested plugin platform is unsupported and stop without running helpers or creating files. Do not substitute a Claude plugin, claim cross-platform compatibility, or use `authStyle: "requested"` to bypass this boundary. Changing the delivery format requires a new, explicit user choice.
30
+
31
+ If the user asks for a plugin without naming its platform, ask which platform they want and state that this skill supports Claude plugins only. Determine the platform from the requested artifact, not from the application running this skill; an explicit request for a Claude plugin remains supported when made in Codex or ChatGPT. Standalone MCP configuration requests continue through the configuration-only path.
32
+
33
+ ## 0. Preflight
34
+
35
+ For supported delivery requests, reuse the target org alias or ask if missing. Run from the selected SFDX project root before every supported entry path, including repair and resume. Unsupported plugin requests stop at the platform check above without running preflight. Proceed only on `decision: continue`.
36
+
37
+ If the project root has no `sfdx-project.json`, create it before running any bundled script, with `packageDirectories` `[{"path": "force-app", "default": true}]` and `sourceApiVersion` `"68.0"`. Do not change an existing one.
38
+
39
+ IMPORTANT: Set `<skill-named>` to `true` only if the user's request explicitly names `experience-app-mcp-delivery-generate`; otherwise use `false`. Do not count the agent's own skill selection or messages.
40
+
41
+ ```bash
42
+ node "<skill-dir>/scripts/preflight.mjs" <target-org-alias> --skill-named <skill-named>
43
+ ```
44
+
45
+ Read the JSON `decision`:
46
+
47
+ - `continue`: proceed to step 1.
48
+ - `skip`: immediately exit this skill and pursue the original request another way. Say nothing about this skill, its check, or the result.
49
+ - `disabled`: say only the returned `userMessage`, without error details; exit this skill and pursue the original request another way.
50
+ - `needs_input` or `error`: show only `userMessage` and `nextAction`, obtain corrections and rerun preflight. Proceed only on `continue`; never infer entitlement from errors.
51
+
52
+ ## 1. Choose the delivery format
53
+
54
+ Reuse known choices. Establish whether the user wants **MCP configuration only** or an explicitly selected **Claude plugin**, following the supported-platform check above. Configuration-only delivery requires no plugin name, author, version, icon or bundled skills. Ask for its target client, an absolute path to a new JSON file, and missing connection facts. Read [standalone configuration delivery](references/mcp-config-delivery.md).
55
+
56
+ For a Claude plugin, load [package format and publishing](references/plugin-format-and-publishing.md) and ask together for missing inputs:
57
+
58
+ - Target org alias, MCP server DeveloperName, and Experience Site, if not already known.
59
+ - Where to create the plugin's GitHub repository locally: an absolute path to a **new directory**. Never assume the Salesforce project or this skill's directory is the destination.
60
+ - Kebab-case plugin name, short purpose/description, author, and semantic version (suggest `1.0.0` for the first release). Ask for the intended private `github.com` repository owner/name and license if the user knows them; both can be skipped for local testing. Do not invent author details or choose a license for them.
61
+ - Ask: **“Do you want to bundle any skills in this plugin?”** If yes, ask whether the user wants to include one or more existing skills, create one or more new skills, or both. For each new skill, ask for its goal, intended users, and the MCP tasks it should help with. For each existing skill, ask for the absolute folder path containing `SKILL.md`.
62
+ - Establish the OAuth callback port choice for every plugin request. Reuse an explicitly selected port or an explicit decision to skip from this session; otherwise ask: **“Provide the callback port matching your ECA's registered callback URL, or choose to skip setting a fixed port.”** If provided, pass it as the numeric `mcp.callbackPort` (integer 1–65535); the Claude Code profile writes it as `oauth.callbackPort`. Omit the field from both the generation config and `.mcp.json` when the user skips it or cannot provide a port—do not add a default, `null`, empty string or guessed port. Note any unverified callback registration as pending; packaging does not modify the ECA.
63
+ - Ask: **“Would you like to add a plugin icon? Provide an image file path, or skip for now.”** Reuse an image only if the user selected it for this plugin; do not reuse a removed icon or substitute Anthropic branding. Supply `iconPath` according to the reference's input requirements. Omit it when the user skips and continue with local testing.
64
+
65
+ Do not repeatedly ask for permission to inspect configuration, read the selected skill, generate new local files in the chosen scope, or validate them. Resolve ambiguity and incompatible existing files before proceeding. Do not deploy or activate a server, change ECA settings or permissions, authenticate as another user, or create/push any GitHub repository as part of packaging alone.
66
+
67
+ ## 2. Discover and confirm the connection
68
+
69
+ ```bash
70
+ node "<skill-dir>/scripts/discover_mcp_context.mjs" <target-org-alias> [SERVER_DEV_NAME]
71
+ ```
72
+
73
+ The helper prints only selected non-secret org fields, Tooling MCP server/access records, Network sites with their developer names, and ECA names/record IDs. Use the selected site's `DeveloperName` from this output. It captures `sf org display` internally; never print its full raw response because it contains an access token. A non-empty `errors` array or `incomplete` status indicates a failed or incomplete lookup, not absence. Report which lookup failed and resolve only the missing facts.
74
+
75
+ Select the exact deployed server and site from those results. Confirm the selected server's activation state; if it is inactive or activation lookup failed, report readiness as pending rather than activating it. An ECA need not share the server's name, and the server inventory does not prove an ECA association. Reuse a previously selected ECA or ask the user to choose its DeveloperName from the inventory.
76
+
77
+ Users do not need to know the full serving URL. Reuse an authoritative HTTPS URL from the existing server setup when available. Otherwise the generator builds the URL from route components; the path depends on the org environment:
78
+
79
+ | Environment | `https://api.salesforce.com/platform/mcp/v1/p/…` |
80
+ |---|---|
81
+ | `production` | `{my-domain}/{site-dev-name}/custom/{server-name}` |
82
+ | `developer` | `{my-domain}/develop/{site-dev-name}/custom/{server-name}` (token usually ends in `-dev-ed`) |
83
+ | `sandbox` | `{my-domain}--{sandbox-name}/sandbox/{site-dev-name}/custom/{server-name}` |
84
+ | `scratch` | `{my-domain}/scratch/{site-dev-name}/custom/{server-name}` |
85
+
86
+ - **Environment**: select `production`, `developer`, `sandbox`, or `scratch`. If the user explicitly requests one, use it. Otherwise use the discovery helper's `environment.value` (from the Organization record) and confirm it equals `domainCandidate.hostEnvironment` (from the instance hostname). If they differ or either is missing, report both pieces of evidence and ask; never guess.
87
+ - **My Domain token** is `domainCandidate.value`, **not** the full hostname, when its `hostEnvironment` matches the selected environment. When the user requests an environment other than the connected org's, or the host is unrecognized, ask only for that environment's token (for a sandbox, `{my-domain}--{sandbox-name}`) or resolve it through read-only org configuration.
88
+ - `site-dev-name` is the selected site's exact developer name, including case. Use its `DeveloperName` from the discovery output or current setup context. If it is missing, resolve the failed lookup and ask only for the missing authoritative value. Never substitute the display name, URL prefix, or a guessed bundle name.
89
+ - `server-name` is the exact deployed server DeveloperName, including case. Keep it separate from the plugin slug and MCP configuration key.
90
+
91
+ Pass `mcp.environment`, `mcp.domain`, `mcp.siteDeveloperName` and `mcp.mcpName` to the generator; never assemble the URL by hand or convert one environment's URL into another by editing path segments. Pass `mcp.url` instead only for an authoritative URL from existing setup. The legacy `mcp.sitePrefix` configuration is rejected. Show the environment, the resulting URL and their evidence in the delivery preview. Ask only about missing, ambiguous or conflicting components; do not require the user to research or assemble the URL.
92
+
93
+ Do not invoke business tools to determine a route. A correctly constructed URL does not prove the selected org has Experience Site MCP support enabled, its server is active, or OAuth and user access work. Record those connection checks as unverified until checked in the intended client.
94
+
95
+ ## 3. Retrieve the ECA client ID
96
+
97
+ Read [ECA lookup and recovery](references/eca-consumer-key.md).
98
+
99
+ If the caller already supplied a consumer key from a successful lookup in this session for the same selected org and ECA, reuse it. Otherwise run:
100
+
101
+ ```bash
102
+ node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> --json
103
+ ```
104
+
105
+ Use the returned **`clientId`** as the public OAuth client ID in the delivery output. Never fetch a consumer secret or copy an access/refresh token.
106
+
107
+ A non-zero exit means lookup/validation failed. Exit `0` with `status: not_found` proves no deployed ECA matched; `status: selection_required` lists consumer IDs/names and requires a selection. On `selection_required`, ask once which consumer to use, then rerun with its ID before `--json`. Do not guess a key or print candidate keys. Packaging does not change callback URLs, scopes, or permissions; note any needed readiness work in the generated README/handoff.
108
+
109
+ ## 4. Deliver configuration or prepare plugin skills
110
+
111
+ For **MCP configuration only**, follow [standalone configuration delivery](references/mcp-config-delivery.md), validate the written JSON and report the destination, client profile and pending connection checks. Stop there; do not run plugin generation, plugin validation or publication steps below.
112
+
113
+ For a **Claude plugin**, continue below.
114
+
115
+ For **no skills**, use `skills: []` in the generation config and create an MCP-only plugin.
116
+
117
+ For **each new skill**, inspect the selected server's available tool definitions/descriptions through an authenticated, read-only client connection when available. Otherwise use existing server metadata and backing-action descriptions as evidence, and mark unverified runtime tool names instead of inventing them. Write each focused `SKILL.md` and any necessary companions in a temporary staging directory: kebab-case name, concise trigger description, the user's stated goal, guidance on using the actual MCP tools, and consent before actions that change business data. Do not invoke business actions while authoring the skills, embed org credentials, or promise tools that are not exposed. Match tool references to the client-visible names once the plugin is loaded. Keep each skill self-contained; only bundle resources that serve its goal.
118
+
119
+ For **each existing skill**, inspect the chosen `SKILL.md`, its references, scripts, assets and local dependencies. Review it for public sharing, required companions and third-party license notices. Pass its absolute directory path in the configuration's `skills` array; the generator handles resource copying and file permissions. Create a staged copy only when edits are needed, such as resolving missing dependencies or machine-specific absolute references; pass that staged directory instead and leave the original unchanged. Resolve reported symlinks or credential files in the staged copy before retrying.
120
+
121
+ ## 5. Generate and validate
122
+
123
+ Create a temporary JSON configuration using the input contract in the reference. Omit `authStyle` or set it to `"claude-code"` for Claude Code. Select the custom `"requested"` OAuth profile only when the user explicitly requests it for the Claude plugin; leave runtime compatibility pending until validated. An OAuth profile changes connection settings, not the supported plugin platform. Supply the public client ID, never a secret.
124
+
125
+ Run the bundled generator to preview and write the package:
126
+
127
+ ```bash
128
+ node "<skill-dir>/scripts/generate_plugin.mjs" /path/to/package-config.json
129
+ node "<skill-dir>/scripts/generate_plugin.mjs" /path/to/package-config.json --write
130
+ ```
131
+
132
+ Show the preview: destination, manifest identity/version, MCP URL, public client ID source, auth profile, bundled skills and file inventory. Resolve uncertain routing/auth facts or naming changes in one question. Once the plan is within the user's selected scope, create the files with `--write`; do not ask a second time just to create them. Existing destinations block generation and are never overwritten.
133
+
134
+ On a blocked result or nonzero exit, report the generator's error, resolve the invalid inputs and rerun the preview; do not bypass the generator by constructing the output manually. Inspect the written files against the approved inputs: identity/version, server URL, public client ID, selected profile, icon and skill resources. Check that referenced resources resolve and that no credentials or private material entered the package.
135
+
136
+ Run `claude plugin validate <absolute-plugin-path>` after generation and after any correction; report its exit status and actual output, including warnings. If `claude` is not on PATH, look for an existing installation before declaring the CLI unavailable. Fix packaging errors within scope and rerun; unresolved errors mean the package is not validated. If the CLI is unavailable, report validation as pending rather than passed. Follow the reference for local `--plugin-dir` and `/mcp` OAuth/listing checks. Do not confuse file/schema validation with a verified connection or successful business action.
137
+
138
+ ## 6. Handoff for publication
139
+
140
+ Read the generated `README.md` and present its local testing and publication instructions to the user. Preserve its separate command blocks, safe path quoting and stop-on-error guidance. Adapt the instructions when the user's actual repository, account, version or installed CLI requires it; follow the reference for those cases. Present the launch command for the user to run, without starting an interactive Claude session automatically.
141
+
142
+ Report the local folder, files, chosen site/server/ECA, final serving URL, selected authentication profile, actual validation results and unresolved routing/OAuth or licensing work. Creating a repository, uploading, tagging or submitting requires a separate user request; presenting the README's commands does not authorize executing them. Keep hosting private unless the user explicitly requests another visibility, and review directory eligibility separately. Report publication or approval only when actually completed. Make the final documentation link in the completion message [Submit your plugin](https://claude.com/docs/plugins/submit).
@@ -0,0 +1,26 @@
1
+ # ECA client ID lookup
2
+
3
+ This delivery skill owns consumer-key retrieval. Run its helper from the selected SFDX project root; `<skill-dir>` is this skill's absolute directory.
4
+
5
+ ```bash
6
+ node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> --json
7
+ ```
8
+
9
+ The helper reads the project's `sourceApiVersion`, queries `ExternalClientApplication` by exact `DeveloperName`, and requests only the public key using GET `/services/data/v<version>/apps/oauth/credentials/<ECA-record-id>?part=key`. Do not query a `ConsumerKey` sObject field or retrieve a consumer secret.
10
+
11
+ Default successful output is the public consumer key. With `--json`, the response contains `apiVersion`, `ecaDeveloperName`, `ecaId`, `oauthConsumerId`, and `clientId`. Only `clientId` is the public OAuth client ID; the other IDs identify Salesforce records. Reuse a successful same-session lookup for the same selected org and ECA. Never copy access or refresh tokens into an output.
12
+
13
+ ### Consumer-key retrieval
14
+
15
+ | Exit | Meaning | Next step |
16
+ |---|---|---|
17
+ | `2` | Lookup, API, or response validation failed | Resolve the reported failure; it doesn't establish that the ECA or consumer is missing |
18
+ | `3` | The query succeeded and no ECA matched the DeveloperName | Confirm the exact ECA name and deployment; allow for propagation before retrying |
19
+ | `4` | An OAuth consumer must be selected | Show the returned consumer names and IDs and ask the user which is intended |
20
+
21
+ After the user selects an OAuth consumer, rerun the helper owned by `experience-app-mcp-delivery-generate` with that ID. Run it from the selected SFDX project root:
22
+ ```bash
23
+ node "<skill-dir>/scripts/retrieve_eca_consumer_key.mjs" <target-org-alias> <ECA_DEV_NAME> <oauth-consumer-id>
24
+ ```
25
+
26
+ For a permission error, report that the authenticated user needs `View External Client App Consumer Secrets in Metadata` and point the user to the ECA OAuth consumer details in Setup. Retry only `retrieve_eca_consumer_key.mjs` after resolving the failure, or have the user read the consumer key from that screen. Never retrieve the consumer secret. Use the lookup command and output contract above.
@@ -0,0 +1,38 @@
1
+ # Standalone MCP configuration delivery
2
+
3
+ Use when the user wants connection configuration without a plugin. Ask for the target client and an absolute path to a **new JSON file**. Do not change an existing client configuration; generate a file the user can review and import or merge using their client's supported workflow.
4
+
5
+ The delivery workflow is client-neutral; configuration schemas still depend on the client. The current generator supports the `claude-code` profile (default, `oauth.clientId`) and an explicitly requested custom `requested` profile (`auth.CLIENT_ID`). Do not claim either schema works in every client. For another client, establish its supported schema before generating; report unsupported formats rather than guessing.
6
+
7
+ A configuration input needs only `destination`, `mcp`, and optionally `authStyle`:
8
+
9
+ ```json
10
+ {
11
+ "destination": "/absolute/user-selected/new-mcp-config.json",
12
+ "authStyle": "claude-code",
13
+ "mcp": {
14
+ "serverName": "partner-tools",
15
+ "environment": "production",
16
+ "domain": "your-my-domain",
17
+ "siteDeveloperName": "PartnerPortal",
18
+ "mcpName": "PartnerTools",
19
+ "clientId": "actual-public-eca-consumer-key"
20
+ }
21
+ }
22
+ ```
23
+
24
+ Substitute the selected environment (`production`, `developer`, `sandbox` or `scratch`), its My Domain token and the exact site/server developer names as described in the skill; the generator builds the environment's route, so users need not supply or assemble the URL. Replace the four route components with `url` only when reusing an authoritative setup URL. An explicitly selected integer `mcp.callbackPort` is supported only for `claude-code`; omit it when skipped. Plugin identity, author, icon, repository and skills are unnecessary.
25
+
26
+ Preview:
27
+
28
+ ```bash
29
+ node "<skill-dir>/scripts/generate_mcp_config.mjs" /path/to/delivery-config.json
30
+ ```
31
+
32
+ Create the selected file:
33
+
34
+ ```bash
35
+ node "<skill-dir>/scripts/generate_mcp_config.mjs" /path/to/delivery-config.json --write
36
+ ```
37
+
38
+ Inspect the written JSON: `mcpServers` wraps the selected server key; its entry contains `type: "http"`, the exact HTTPS URL and the selected public client ID in the target profile. Confirm an omitted callback port remains absent. The generator refuses existing destinations and does not write plugin files or a README. Report the file path, selected org/site/server/ECA, profile and validation results. Provide import/merge guidance for the selected client; leave OAuth, routing, tool listing and user permissions pending until verified there. Do not run `claude plugin validate` on a standalone configuration file or provide publication steps unless separately requested.