@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
@@ -7,14 +7,15 @@ definition-file authoring), see `scratch-org-create.md`.
7
7
 
8
8
  ---
9
9
 
10
- ## Security posture — pure pass-through (read first)
10
+ ## Security posture — credential filtering (read first)
11
11
 
12
12
  The skill relays every input to `sf` **unchanged** and surfaces the CLI's `--json` result —
13
- success or error — **as-is**. It does not pre-validate fields, does not normalize or translate
14
- field names, and does not add or strip error text; the CLI already frames its own output. The one
15
- place the skill actively protects the user is a live credential: it never runs `sf org display
16
- --verbose` (which returns a refresh token) and it never un-redacts a token the CLI already
17
- redacted.
13
+ success or error — for reporting. It does not pre-validate fields, does not normalize or translate
14
+ field names, and does not add or strip error text; the CLI already frames its own output. The skill
15
+ actively protects against credential leaks: it filters `accessToken` and `sfdxAuthUrl` from
16
+ written artifacts and agent context using `jq` before writing any output file. It never runs
17
+ `sf org display --verbose` (which returns a refresh token) and it never un-redacts a token the CLI
18
+ already redacted.
18
19
 
19
20
  The skill's own docs/examples never claim a feature is "not enabled" or that a permission is
20
21
  missing — that framing is the platform's job, delivered through the CLI's own error output.
@@ -43,7 +44,7 @@ sf org list --json
43
44
  Show details of one org.
44
45
 
45
46
  ```bash
46
- sf org display --target-org <alias> --json
47
+ sf org display --target-org <alias> --json | jq 'if .status == 0 then {status, result: {alias: .result.alias, username: .result.username, id: .result.id, instanceUrl: .result.instanceUrl, status: .result.status, expirationDate: .result.expirationDate}} else . end'
47
48
  ```
48
49
 
49
50
  - Plain output only — always the non-verbose form above. **Never add `--verbose`, and never run
@@ -51,13 +52,7 @@ sf org display --target-org <alias> --json
51
52
  would pull a live credential into agent context. If the user needs the auth URL, direct them to
52
53
  run `sf org display --verbose` themselves in their own terminal — do not run it from this skill.
53
54
  - **Report:** alias, username, orgId, instanceUrl, status, expiration.
54
- - **Artifact:** write the **wrapped** `{status, result}` JSON to `org-display-result.json`.
55
-
56
- > **Sanitize committed artifacts.** In any example/gold committed to the skill, the
57
- > `accessToken` and `sfdxAuthUrl` values must be redacted — begin them with `[REDACTED]`
58
- > regardless of CLI version (older supported CLIs do not auto-redact). Current CLIs emit
59
- > `"[REDACTED] Use 'sf org auth show-access-token' to view"`; either the bare marker or that
60
- > full string is acceptable. `instanceUrl` is a normal public field; keep it.
55
+ - **Artifact:** write the filtered output from the command above to `org-display-result.json`. Never pass accessToken, sfdxAuthUrl, or other credential fields to agent context.
61
56
 
62
57
  ---
63
58
 
@@ -67,16 +62,16 @@ Continue a create that ran with `--async` or timed out (exit code 69).
67
62
 
68
63
  ```bash
69
64
  # With an explicit job/request id
70
- sf org resume scratch --job-id <id> --json
65
+ sf org resume scratch --job-id <id> --json | jq 'del(.result.accessToken, .result.sfdxAuthUrl, .result.authFields.accessToken, .result.authFields.sfdxAuthUrl)'
71
66
 
72
67
  # Otherwise, the most recent job
73
- sf org resume scratch --use-most-recent --json
68
+ sf org resume scratch --use-most-recent --json | jq 'del(.result.accessToken, .result.sfdxAuthUrl, .result.authFields.accessToken, .result.authFields.sfdxAuthUrl)'
74
69
  ```
75
70
 
76
71
  Behavior: if the user gives an explicit `--job-id`, use it; otherwise default to
77
72
  `--use-most-recent`; if there is no recent job, surface the CLI's not-found result unchanged and
78
- point the user to `sf org list`. Do not invent a job id. **Artifact:** write the command's JSON
79
- as-is to `scratch-org-resume-result.json`.
73
+ point the user to `sf org list`. Do not invent a job id. **Artifact:** write the filtered output
74
+ from the command above to `scratch-org-resume-result.json`.
80
75
 
81
76
  ---
82
77
 
@@ -85,7 +80,7 @@ as-is to `scratch-org-resume-result.json`.
85
80
  Delete a scratch org. **Destructive — no undo.**
86
81
 
87
82
  ```bash
88
- sf org delete scratch --target-org <alias> --no-prompt --json
83
+ sf org delete scratch --target-org <alias> --no-prompt --json | jq 'del(.result.accessToken, .result.sfdxAuthUrl, .result.authFields.accessToken, .result.authFields.sfdxAuthUrl)'
89
84
  ```
90
85
 
91
86
  - **Always confirm first** ("Delete scratch org `X`?") before running — UNLESS the user already
@@ -94,7 +89,7 @@ sf org delete scratch --target-org <alias> --no-prompt --json
94
89
  confirmation.
95
90
  - `--no-prompt` is passed on the CLI *after* the skill's own confirmation, so the agent isn't
96
91
  left waiting on an interactive prompt.
97
- - **Artifact:** write the command's JSON as-is to `scratch-org-delete-result.json`.
92
+ - **Artifact:** write the filtered output from the command above to `scratch-org-delete-result.json`.
98
93
 
99
94
  ---
100
95
 
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: dx-packaging-convert-1gp-to-2gp-create
3
+ description: "Use this skill when users want to convert a managed-released 1GP package to a 2GP package with `sf package convert`, verify the converted package version and its code coverage, and optionally promote it to released. TRIGGER when: the user asks to convert a 1GP managed package to 2GP, create a converted 2GP package version from a released 1GP version, check whether a converted version passed code coverage, or troubleshoot an `sf package convert` failure. DO NOT TRIGGER for: migrating subscriber orgs from 1GP to 2GP, finalizing the irreversible move to 2GP development (use dx-packaging-move-to-2gp-migrate), creating or promoting native 2GP package versions that were not converted from 1GP, or enabling Dev Hub (use dx-org-devhub-configure)."
4
+ metadata:
5
+ relatedSkills:
6
+ - dx-org-devhub-configure
7
+ - dx-packaging-move-to-2gp-migrate
8
+ version: "1.0.0"
9
+ accessCheck: "UserPermissions.CreatePackaging"
10
+ cliTools:
11
+ - tool:
12
+ - "sf"
13
+ semver: ">=2.0.0"
14
+ domains:
15
+ - "Developer Experience"
16
+ ---
17
+
18
+
19
+ # Convert 1GP to 2GP
20
+
21
+ ## When to Use This Skill
22
+
23
+ Convert a managed-released 1GP package to 2GP with `sf package convert` when requested by an ISV. This workflow gathers and validates both Salesforce CLI org aliases, confirms the permanent Dev Hub association, runs conversion with `--code-coverage`, verifies the resulting 08c, 0Ho, 05i, and 04t records, and determines whether the converted beta version passed the code-coverage check required for promotion. After a successful conversion, it asks whether the customer wants to promote the verified version and, on an explicit yes, promotes and verifies it. It does not migrate subscriber orgs or finalize the irreversible Move-to-2GP development cutover.
24
+
25
+ ## Critical Constraints
26
+
27
+ **Preconditions:**
28
+
29
+ - The latest Salesforce CLI must be installed and the customer must be in a Salesforce DX project containing sfdx-project.json. (check: `SalesforceCliAndProjectAvailable`)
30
+ - The customer's Partner Business Org must have Dev Hub and second-generation managed packaging enabled, and its authenticated CLI alias must resolve successfully. (check: `DevHubOrgAuthenticated`)
31
+ - The 1GP packaging org must be authenticated with Salesforce CLI and its alias must resolve successfully. The namespace of the 1GP package must be linked to the selected Dev Hub. (check: `PackagingOrgAuthenticatedAndNamespaceLinked`)
32
+ - The source package must have at least one managed-released 1GP version. Source API-version eligibility is evaluated by the conversion command and is handled only if Salesforce returns that error. (check: `ManagedReleasedPackageVersionEligible`)
33
+ - The customer must choose either an installation key or installation-key bypass. Never ask the customer to paste an installation key into chat or store it in skill output. (check: `InstallationProtectionChoiceProvided`)
34
+
35
+ **Operational rules:**
36
+
37
+ - CONVERSATION RULE: ask exactly one question per turn and wait for the customer's answer before asking the next question. Never combine a confirmation, a command request, and a list of additional inputs in one message. When the customer must run a command, provide only that command and ask for its sanitized result; continue after they respond.
38
+ Start with collect-conversion-details and gather only the identity and package inputs sequentially: Dev Hub alias, 1GP packaging-org alias, 033 package ID, and package namespace. Do not ask about project, version mode, installation protection, wait time, definition file, seed metadata, unpackaged metadata, or apexTestAccess yet. Then run validate-salesforce-cli → validate-devhub-alias → validate-packaging-org-alias → validate-source-package → collect-conversion-options → validate-project-and-namespace → collect-conversion-settings → confirm-conversion-preflight → convert-package → verify-conversion-request → verify-code-coverage. After an explicit yes to the promotion question, continue to promote-converted-version → verify-promoted-version.
39
+ OPTION QUESTIONS: after identifying the package and released source version, ask every configurable option separately, exactly one question per turn. Show that question's default in brackets and accept either a specific answer or the word `default`. A `default` response applies only to the current question; never apply a bundle of defaults or skip later questions. Ask separately for: source version, DX project, installation protection, wait time, definition file changes, seed-metadata availability, unpackaged-metadata availability, and apexTestAccess permission sets. Ask for a seed-metadata directory path only when the customer says seed metadata exists, and for an unpackaged-metadata directory path only when the customer says packaged Apex tests need unpackaged metadata. The option defaults are latest released major.minor; create a new `<namespace>-conversion` project in the current working directory; installation-key bypass; wait 20 minutes; no changes to the project's default definition file; no seed metadata; no unpackaged metadata; and no apexTestAccess permission sets. Before creating a project, state the exact target path. Never silently reuse an existing project from an earlier conversation or run. The permanent Dev Hub association has no default and must be confirmed separately. Do not ask the customer which API version created the source 1GP version.
40
+ PROJECT DEFINITION FILE: create or validate the selected DX project before asking the remaining conversion-setting questions. Resolve and show the exact `<project-directory>/config/project-scratch-def.json` path and its current non-secret contents. Then ask: "Would you like to add or update anything in this definition file for conversion? [default: no changes]" Do not ask the customer to provide a definition-file path. Include `--definition-file` only when the customer confirms the file is required for conversion.
41
+ SEED METADATA: first ask: "Do you have seed metadata to include in the conversion? [default: no]" If the answer is no or `default`, omit `--seed-metadata` and continue. If the answer is yes, ask in the next turn for the exact seed-metadata directory path, validate it, and use that path.
42
+ UNPACKAGED METADATA: after the seed-metadata question, ask: "Do your packaged Apex tests need metadata that is not part of the package in order to run? For example, test-only Apex classes, custom objects or fields, or permission sets that must not ship in the package. [default: no]" If the answer is no or `default`, leave sfdx-project.json unchanged for unpackaged metadata and continue. If the answer is yes, ask in the next turn for the directory path relative to the DX project root, then confirm that the directory exists and contains source-format metadata. Explain the difference when the customer is unsure: seed metadata is deployed so the package metadata itself can deploy, while unpackaged metadata is deployed to the build org only so packaged Apex tests can run for code coverage, and it is never included in the converted package. There is no `sf package convert` flag for unpackaged metadata. Salesforce CLI reads `unpackagedMetadata.path` from the sfdx-project.json packageDirectories entry for this package, and only when `--code-coverage` is set, which this workflow always uses. That entry must have a `package` value that resolves through packageAliases to the converted package's 0Ho ID. On the first conversion, Salesforce CLI adds a packageAliases entry named after the 1GP package when it creates the converted package, so set `package` to the exact name Salesforce CLI uses for that alias; read it from the Dev Hub with `sf data query --use-tooling-api --target-org <devhub-alias> --query "SELECT Name FROM SubscriberPackage WHERE Id = '<033>'"`. On a later conversion, use the existing packageAliases entry or the 0Ho ID. The same `package` requirement applies to apexTestAccess. Show the customer the exact proposed change to that packageDirectories entry, for example `"package": "<package-name>", "unpackagedMetadata": { "path": "<directory>" }`, and update sfdx-project.json only after they confirm. Preserve every other setting in the file. If that entry already declares `package` or `unpackagedMetadata`, show the current values and ask whether to keep or change them instead of proposing a duplicate. When the customer also provides apexTestAccess permission sets, show both changes to the entry together in one proposal.
43
+ Treat the two aliases as different org roles. The Dev Hub alias owns the new converted Package2 and cannot be changed after the first conversion for this 1GP package. The packaging-org alias identifies the source 1GP DE org and is also required for supported org-shape and metadata troubleshooting. If an alias is missing, guide the customer through `sf org login web --alias <alias>` (add `--set-default-dev-hub` for the Dev Hub), then rerun the exact `sf org display` validation. Do not continue until the customer confirms the displayed org IDs match the intended organizations.
44
+ ALIAS DISCOVERY AND AUTHENTICATION: both orgs are required for conversion. Handle one org role at a time. Ask the customer for the packaging-org alias and Dev Hub alias if not already provided; never invent or select an alias. Run `sf org list --json` to check what is authenticated. If an alias is missing, give the customer the exact login command and wait: `sf org login web --alias <packaging-org-alias>` for the packaging org, and `sf org login web --alias <devhub-alias> --set-default-dev-hub` for the Dev Hub. For a nonstandard login domain, append a customer-provided `--instance-url <url>`. After login, require `sf org display --target-org <alias> --json`; show the alias, username, org ID, and instance URL and ask the customer to confirm the intended org. Never ask for or expose an access token, authorization URL, session ID, or credential file.
45
+ AUTHENTICATED TERMINAL: run org discovery, login, validation, package queries, conversion, and reporting in one CLI environment and operating-system user profile. The agent may run the displayed login command locally when browser OAuth is supported; otherwise the customer runs it and all remaining commands in their terminal. Never split validation and conversion across environments. Require a successful `sf org display --target-org <alias> --json` for each alias in the chosen environment. Immediately before conversion, require successful `sf org display` checks for both aliases in that same environment. When chat-local OAuth succeeded, run conversion in that chat-local environment. On the fallback path, present the conversion command with the instruction: "Run this in the same authenticated terminal where both org display checks succeeded." Do not describe an arbitrary new shell as authenticated merely because it can access the project.
46
+ Success requires all of the following: the conversion request reaches Status=Success; Package2Id, Package2VersionId, and SubscriberPackageVersionId are present; the converted version report shows ConvertedFromVersionId; and HasPassedCodeCoverageCheck is true. The converted version remains beta until the customer explicitly chooses promotion.
47
+ SUCCESS RESPONSE: give the customer a complete converted-package summary: source package name, namespace, 033 ID, source version and source 04t; Dev Hub alias and org ID; 08c request ID and status; Package2 name and 0Ho ID; Package2Version 05i ID; SubscriberPackageVersion 04t ID; converted version number; beta/released state; ConvertedFromVersionId; code-coverage percentage and HasPassedCodeCoverageCheck; metadata file count, total metadata size, and whether metadata was removed; build duration when available; installation URL; and any non-secret warnings. State explicitly that the converted version is still beta before promotion.
48
+ If and only if `HasPassedCodeCoverageCheck` is true, end the success response with exactly one question: "Would you like to promote this converted package version now?" If the customer says yes, run `sf package version promote` with the verified 04t and Dev Hub alias, then verify the same 04t reports `IsReleased=true`. Promotion is irreversible, so never infer consent. If the customer says no, leave the version beta. If coverage did not pass, do not offer promotion.
49
+ PROMOTION RESPONSE: after verified promotion, give the customer the complete package details again, including all conversion identifiers and source version details, the converted version number, code coverage, metadata counts and size, build duration, installation URL, and `Release state: Released`. State that promotion succeeded and do not ask the promotion question again.
50
+ CLI COMMAND CONTRACT — run from the validated Salesforce DX project. Validate each org separately with `sf org display --target-org <alias> --json`. Start conversion with `sf package convert --package <033> --target-dev-hub <devhub-alias> --code-coverage --wait 20 --json` plus exactly one of `--installation-key-bypass` or `--installation-key <enter-key-locally>`. Append `--patch-version <major.minor.patch>`, `--definition-file <path>`, or `--seed-metadata <directory>` only when the customer selected those options. Unpackaged metadata is never passed as a flag; it comes from the confirmed `unpackagedMetadata` setting in sfdx-project.json, so run conversion from the DX project root where that relative path resolves. Never place an installation key in chat, logs, generated files, or a command the agent executes on the customer's behalf.
51
+ If the convert command returns before completion, preserve its 08c ID and run `sf package version create report --package-create-request-id <08c> --target-dev-hub <devhub-alias> --json`; do not start a duplicate conversion. Once an 08c ID is available, use this report command immediately and then approximately every two minutes until the request reaches Success or Error. After every report, give the customer a short update containing the 08c ID, current status, and any non-secret status details returned by the CLI. Do not say that the same CLI process is still being monitored when request-report polling is available. After Status=Success, run `sf package version report --package <04t> --target-dev-hub <devhub-alias> --verbose --json` and require both a populated ConvertedFromVersionId and HasPassedCodeCoverageCheck=true.
52
+ TROUBLESHOOTING — do not proactively ask for or confirm the source package version's API version. If conversion returns an error that the selected 1GP version was created with an unsupported API version, tell the customer to upload a new managed-released 1GP version using API 57.0 or later, then retry conversion with that newly released version. For a RecordType dependency, declare the RecordType under object settings in a scratch-org definition file and retry with `--definition-file <path>`. For an org-shape error, run `sf org delete shape --target-org <packaging-org-alias>`, then `sf org create shape --target-org <packaging-org-alias>`, and retry once; recurring org-shape errors go to Salesforce Partner Support. For packaged Apex test or code-coverage errors, add required permission sets through `apexTestAccess` and the package name in sfdx-project.json, then retry. For a StandardValueSet or picklist-value error, retrieve the named StandardValueSet from the packaging org using the official Metadata API workflow, place only StandardValueSet metadata under the seed-metadata directory, and retry with `--seed-metadata <directory>`. When packaged Apex tests fail because test-only metadata that is not in the package is missing, configure unpackaged metadata as described above and retry. If the CLI reports that the un-packaged metadata directory does not exist, correct `unpackagedMetadata.path` so it is relative to the DX project root and retry from that root. If the CLI reports that unpackagedMetadata or apexTestAccess can't be resolved because the packageDirectories entry doesn't specify the package parameter, add `package` to that entry and retry. If it reports that the specified package isn't a valid package ID or package alias, set `package` to the packageAliases entry that maps to the converted 0Ho ID, or to the 0Ho ID itself, and retry; find the 0Ho ID with `sf package list --target-dev-hub <devhub-alias> --json`. If unpackaged metadata is configured but tests still fail as though it were missing, update Salesforce CLI, because older versions can ignore an unresolvable setting instead of reporting it. For unsupported metadata, report the metadata types named by the CLI; the customer must remove them from the source package or wait for managed 2GP support. For "namespace is not owned by the Dev Hub," stop and ask the customer to link the package namespace in Dev Hub Setup under Namespace Registries → Link Namespace. Revalidate both aliases in the same CLI environment, then retry conversion once. For authentication, project, or installation-protection errors, return to the matching validation step.
53
+ Retry conversion at most once after a documented remediation and prerequisite revalidation. For a timeout, poll the existing 08c request instead of converting again. When the CLI returns an internal Salesforce error identifier without a documented customer remediation, tell the customer that conversion failed with that identifier and that the failure could be intermittent. First confirm that no active 08c request exists, revalidate both aliases and the unchanged inputs, then retry the same conversion exactly once. If the retry returns the same identifier or message, stop and recommend a Salesforce Partner Support case. For any repeated or otherwise unclassified error, prepare a sanitized support bundle containing the CLI version, timestamp, exact redacted command, full sanitized output, 033/source-04t/08c identifiers, both org IDs and instance URLs, reproduction steps, relevant project configuration, and business impact. Never include installation keys, access tokens, session IDs, internal systems, or undocumented workarounds.
54
+
55
+ ## Verification Checklist
56
+
57
+ After every write operation, confirm the effect by re-reading state:
58
+
59
+ - After `convert-package`: call `verify-conversion-request`
60
+ - After `verify-conversion-request`: call `verify-code-coverage`
61
+ - After `promote-converted-version`: call `verify-promoted-version`
62
+
63
+ Read [Operations reference](references/conversion-operations.md) before executing this workflow. It contains the original operation definitions, dependencies, inputs, and verification instructions.
@@ -0,0 +1,252 @@
1
+ # Convert 1GP to 2GP Operations Reference
2
+
3
+ Operations grouped by purpose. Use these as the building blocks for the workflow in SKILL.md.
4
+
5
+ ## Summary
6
+
7
+ | Operation | Purpose | Status | Call | Depends on |
8
+ |-----------|---------|--------|------|------------|
9
+ | `collect-conversion-details` | validate | implemented | — | — |
10
+ | `validate-salesforce-cli` | validate | implemented | — | `collect-conversion-details` |
11
+ | `validate-devhub-alias` | validate | implemented | — | `validate-salesforce-cli` |
12
+ | `validate-packaging-org-alias` | validate | implemented | — | `validate-devhub-alias` |
13
+ | `validate-source-package` | validate | implemented | — | `validate-packaging-org-alias` |
14
+ | `collect-conversion-options` | validate | implemented | — | `validate-source-package` |
15
+ | `validate-project-and-namespace` | validate | implemented | — | `collect-conversion-options` |
16
+ | `collect-conversion-settings` | validate | implemented | — | `validate-project-and-namespace` |
17
+ | `confirm-conversion-preflight` | validate | implemented | — | `collect-conversion-settings` |
18
+ | `convert-package` | write | implemented | — | `confirm-conversion-preflight` |
19
+ | `verify-conversion-request` | verify | implemented | — | `convert-package` |
20
+ | `verify-code-coverage` | verify | implemented | — | `verify-conversion-request` |
21
+ | `promote-converted-version` | write | implemented | — | `verify-code-coverage` |
22
+ | `verify-promoted-version` | verify | implemented | — | `promote-converted-version` |
23
+ | `prepare-support-escalation` | validate | implemented | — | `convert-package` |
24
+
25
+ ## Dependency graph
26
+
27
+ ```mermaid
28
+ graph TD
29
+ collect_conversion_details["collect-conversion-details (validate)"]
30
+ validate_salesforce_cli["validate-salesforce-cli (validate)"]
31
+ validate_devhub_alias["validate-devhub-alias (validate)"]
32
+ validate_packaging_org_alias["validate-packaging-org-alias (validate)"]
33
+ validate_source_package["validate-source-package (validate)"]
34
+ collect_conversion_options["collect-conversion-options (validate)"]
35
+ validate_project_and_namespace["validate-project-and-namespace (validate)"]
36
+ collect_conversion_settings["collect-conversion-settings (validate)"]
37
+ confirm_conversion_preflight["confirm-conversion-preflight (validate)"]
38
+ convert_package["convert-package (write)"]
39
+ verify_conversion_request["verify-conversion-request (verify)"]
40
+ verify_code_coverage["verify-code-coverage (verify)"]
41
+ promote_converted_version["promote-converted-version (write)"]
42
+ verify_promoted_version["verify-promoted-version (verify)"]
43
+ prepare_support_escalation["prepare-support-escalation (validate)"]
44
+ collect_conversion_details --> validate_salesforce_cli
45
+ validate_salesforce_cli --> validate_devhub_alias
46
+ validate_devhub_alias --> validate_packaging_org_alias
47
+ validate_packaging_org_alias --> validate_source_package
48
+ validate_source_package --> collect_conversion_options
49
+ collect_conversion_options --> validate_project_and_namespace
50
+ validate_project_and_namespace --> collect_conversion_settings
51
+ collect_conversion_settings --> confirm_conversion_preflight
52
+ confirm_conversion_preflight --> convert_package
53
+ convert_package --> verify_conversion_request
54
+ verify_conversion_request --> verify_code_coverage
55
+ verify_code_coverage --> promote_converted_version
56
+ promote_converted_version --> verify_promoted_version
57
+ convert_package --> prepare_support_escalation
58
+ ```
59
+
60
+ ## Write operations
61
+
62
+ ### `convert-package`
63
+
64
+ Run the official Salesforce CLI package conversion from the validated DX project. Always include `--code-coverage`, the validated 033 package ID and Dev Hub alias, one installation-protection flag, and a wait duration. Salesforce CLI selects the latest released major.minor version unless the customer supplies `--patch-version major.minor.patch`. Add `--definition-file` and `--seed-metadata` only when required. Unpackaged metadata for packaged Apex tests has no flag; Salesforce CLI applies the confirmed `unpackagedMetadata` setting from sfdx-project.json.
65
+
66
+ **Status:** `implemented`
67
+
68
+ **Inputs:**
69
+
70
+ - `package_id` *(`String`)* — Validated managed 1GP package ID beginning with 033.
71
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
72
+ - `wait_minutes` *(`Integer`)* — Minutes for Salesforce CLI to wait before returning an in-progress request.
73
+ - `patch_version` *(`String`)* — Optional released major.minor.patch value.
74
+ - `definition_file` *(`String`)* — Source - output of collect-conversion-settings; the displayed project definition-file path only when the customer confirmed it is required.
75
+ - `seed_metadata_directory` *(`String`)* — Source - output of collect-conversion-settings; populated only after the customer confirmed seed metadata exists and supplied a validated directory path.
76
+
77
+ **Depends on:** `confirm-conversion-preflight`
78
+
79
+ **Rollback:** none. Package conversion does not alter the original 1GP package, but the association between this package and the selected Dev Hub cannot be transferred or changed. Do not attempt automatic cleanup or reassignment.
80
+
81
+ ### `promote-converted-version`
82
+
83
+ After code coverage passes and the customer explicitly says yes to the promotion question, promote the verified converted subscriber package version from beta to released. Never promote a different 04t and never infer consent from the original conversion request.
84
+
85
+ **Status:** `implemented`
86
+
87
+ **Inputs:**
88
+
89
+ - `subscriber_package_version_id` *(`String`)* — Source - output of verify-code-coverage; converted 04t whose coverage check passed.
90
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias used for conversion.
91
+ - `promotion_confirmed` *(`Boolean`)* — True only when the customer explicitly answered yes to the promotion question after conversion succeeded.
92
+
93
+ **Depends on:** `verify-code-coverage`
94
+
95
+ **Rollback:** none. Package-version promotion to Released is irreversible.
96
+
97
+ ## Verify operations
98
+
99
+ ### `verify-conversion-request`
100
+
101
+ Retrieve the Package2VersionCreateRequest identified by the 08c conversion request ID. Confirm it reached Success and returned the Package2, Package2Version, SubscriberPackageVersion, and converted-from identifiers. If the request is still pending, repeat this same report command approximately every two minutes, give the customer a status update after each report, and never start another conversion.
102
+
103
+ **Status:** `implemented`
104
+
105
+ **Inputs:**
106
+
107
+ - `request_id` *(`String`)* — Package version creation request ID beginning with 08c.
108
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
109
+
110
+ **Depends on:** `convert-package`
111
+
112
+ ### `verify-code-coverage`
113
+
114
+ Retrieve the converted subscriber package version and verify that code coverage was calculated and passed. HasPassedCodeCoverageCheck must be true for the converted beta version to qualify for promotion. Also confirm ConvertedFromVersionId is populated, proving this is a converted version.
115
+
116
+ **Status:** `implemented`
117
+
118
+ **Inputs:**
119
+
120
+ - `subscriber_package_version_id` *(`String`)* — Converted subscriber package version ID beginning with 04t.
121
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias.
122
+
123
+ **Depends on:** `verify-conversion-request`
124
+
125
+ ### `verify-promoted-version`
126
+
127
+ Re-read the promoted subscriber package version and require IsReleased to be true. Then present the complete package details again with the release state shown as Released.
128
+
129
+ **Status:** `implemented`
130
+
131
+ **Inputs:**
132
+
133
+ - `subscriber_package_version_id` *(`String`)* — Source - output of promote-converted-version.
134
+ - `devhub_alias` *(`String`)* — Validated Dev Hub alias used for promotion.
135
+
136
+ **Depends on:** `promote-converted-version`
137
+
138
+ ## Other operations
139
+
140
+ ### `collect-conversion-details`
141
+
142
+ Collect only the non-secret identity and package inputs needed for initial discovery: Dev Hub alias, 1GP packaging-org alias, 033 package ID, and package namespace. Defer every configurable conversion option until released versions have been queried.
143
+
144
+ **Status:** `implemented`
145
+
146
+ ### `validate-salesforce-cli`
147
+
148
+ Silently confirm Salesforce CLI is installed before using it. Do not make the customer confirm the CLI version or narrate this check unless the CLI is missing or a command fails because an update is required.
149
+
150
+ **Status:** `implemented`
151
+
152
+ **Depends on:** `collect-conversion-details`
153
+
154
+ ### `validate-devhub-alias`
155
+
156
+ Resolve the customer-provided Dev Hub alias and display its authenticated org identity. Confirm the alias points to the intended PBO/Dev Hub before package conversion permanently associates the converted package with it.
157
+
158
+ **Status:** `implemented`
159
+
160
+ **Inputs:**
161
+
162
+ - `devhub_alias` *(`String`)* — Dev Hub alias supplied during collect-conversion-details.
163
+
164
+ **Depends on:** `validate-salesforce-cli`
165
+
166
+ ### `validate-packaging-org-alias`
167
+
168
+ Resolve the customer-provided 1GP packaging-org alias and display its authenticated org identity. Confirm it is the source packaging org for the 033 package.
169
+
170
+ **Status:** `implemented`
171
+
172
+ **Inputs:**
173
+
174
+ - `packaging_org_alias` *(`String`)* — Packaging-org alias supplied during collect-conversion-details.
175
+
176
+ **Depends on:** `validate-devhub-alias`
177
+
178
+ ### `validate-source-package`
179
+
180
+ Query the 1GP packaging org through Salesforce CLI Tooling API to confirm the 033 package has at least one managed-released version and to identify the released versions available for conversion. For the default path, Salesforce CLI converts the latest released major.minor. For patch mode, confirm the requested major.minor.patch appears in this result before conversion.
181
+
182
+ **Status:** `implemented`
183
+
184
+ **Inputs:**
185
+
186
+ - `packaging_org_alias` *(`String`)* — Source - output of validate-packaging-org-alias.
187
+ - `package_id` *(`String`)* — Source - output of collect-conversion-details.
188
+
189
+ **Depends on:** `validate-packaging-org-alias`
190
+
191
+ ### `collect-conversion-options`
192
+
193
+ After released versions are known, collect the source-version choice and DX-project choice. Ask each option separately. Every option question displays its own default, and `default` applies only to that one question. Never silently reuse a DX project.
194
+
195
+ **Status:** `implemented`
196
+
197
+ **Inputs:**
198
+
199
+ - `released_versions` *(`List<Object>`)* — Source - output of validate-source-package.
200
+
201
+ **Depends on:** `validate-source-package`
202
+
203
+ ### `validate-project-and-namespace`
204
+
205
+ Confirm the working directory is a Salesforce DX project and its sfdx-project.json contains the 1GP namespace. When the customer selected a new project, create it with the official Salesforce CLI project-generation command, then update sfdx-project.json before conversion. The namespace must already be linked to the selected Dev Hub.
206
+
207
+ **Status:** `implemented`
208
+
209
+ **Inputs:**
210
+
211
+ - `project_directory` *(`String`)* — Source - output of collect-conversion-options.
212
+ - `namespace` *(`String`)* — Source - output of collect-conversion-details; namespace registered by the 1GP package and linked to the Dev Hub.
213
+
214
+ **Depends on:** `collect-conversion-options`
215
+
216
+ ### `collect-conversion-settings`
217
+
218
+ After the DX project and its default definition file are available, ask each remaining conversion-setting question separately. Show the actual definition-file path instead of asking the customer to discover it. Ask for a seed-metadata directory only when the customer confirms that seed metadata exists, and for an unpackaged-metadata directory only when the customer confirms that packaged Apex tests need it.
219
+
220
+ **Status:** `implemented`
221
+
222
+ **Inputs:**
223
+
224
+ - `definition_file_path` *(`String`)* — Source - output of validate-project-and-namespace; exact path to the project's default config/project-scratch-def.json.
225
+
226
+ **Depends on:** `validate-project-and-namespace`
227
+
228
+ ### `confirm-conversion-preflight`
229
+
230
+ Present the final preflight summary and require explicit confirmation of the permanent Dev Hub association, mandatory code coverage, installation-protection choice, and optional conversion inputs.
231
+
232
+ **Status:** `implemented`
233
+
234
+ **Inputs:**
235
+
236
+ - `devhub_org_id` *(`String`)* — Validated Dev Hub org ID.
237
+ - `packaging_org_id` *(`String`)* — Validated 1GP packaging-org ID.
238
+ - `package_id` *(`String`)* — Managed 1GP package ID beginning with 033.
239
+
240
+ **Depends on:** `collect-conversion-settings`
241
+
242
+ ### `prepare-support-escalation`
243
+
244
+ For an unresolved, internal, or repeatedly failing conversion, assemble a sanitized Partner Support bundle without using internal Salesforce systems. Include complete CLI output and stack traces, exact commands with secrets removed, error identifiers, package and request IDs, both org IDs and instance URLs, CLI version, timestamp with time zone, reproduction steps, relevant project configuration, business impact, and customer expectations.
245
+
246
+ **Status:** `implemented`
247
+
248
+ **Inputs:**
249
+
250
+ - `conversion_errors` *(`List<String>`)* — Sanitized errors from the conversion or request report.
251
+
252
+ **Depends on:** `convert-package`
@@ -6,7 +6,7 @@ metadata:
6
6
  - dx-org-devhub-configure
7
7
  - dx-pkg-post-install-configure
8
8
  - experience-ui-bundle-2gp-deploy
9
- version: "1.0"
9
+ version: "1.1"
10
10
  accessCheck: "UserPermissions.CreatePackaging"
11
11
  cliTools:
12
12
  - tool:
@@ -43,7 +43,7 @@ BACKEND / VERSIONING MECHANICS (relocated from the discover card — describe-on
43
43
 
44
44
  - REQUIRED: the 1GP DE (packaging) org must be reachable with valid credentials. This is the one org the finalize path needs — an `sf` alias is the convenient way to authenticate, but the skill is NOT coupled to the `sf` CLI: any caller that can present a valid bearer token for this org (e.g. a raw REST call) works equally. The 1GP DE org hosts MetadataPackageVersion (the authoritative highest-Released 1GP version for the eligibility gate), is the org the finalize Connect API endpoint (266) runs against, hosts the read-only PackageConversion Tooling exposure (264) the wire-verify queries, and is the org the pre-266 manual browser fallback opens. (check: `PackagingOrgAuthenticated`)
45
45
  - OPTIONAL (recommended): authenticating the DevHub org lets the agent proactively pre-check eligibility before dispatching finalize — the converted 2GP Package2Version at the matching major.minor exists and is Released (Package2 + Package2Version live on DevHub). It is NOT a hard prerequisite: if DevHub is unavailable the skill can still finalize, because the Connect endpoint validates eligibility server-side and returns a 400 with a specific reason (e.g. version mismatch) when the latest released version has not been converted + promoted. Skipping the pre-check trades a clear up-front message for a server-side reject; it does not make the workflow unsafe (the irreversibility is gated by the three affirmations, not by DevHub). (check: `DevHubOrgAuthenticated`)
46
- - User must have the CreatePackaging user permission (which implies CustomizeApplication) plus dev-org ownership of the package. This is the exact edit-access gate the finalize Connect endpoint enforces server-side — the same edit-access check the package's Setup detail page applies. A caller lacking it gets a 403 from the endpoint before any state is inspected (note: sysadmins do NOT clear this gate — edit access is org-dev scoped, not sysadmin-scoped). (check: `UserPermissions.CreatePackaging`)
46
+ - User must have the CreatePackaging user permission (which implies CustomizeApplication) plus dev-org ownership of the package. This is the exact edit-access gate the finalize Connect endpoint enforces server-side — the same edit-access check the package's Setup detail page applies. A caller lacking it gets a 403 from the endpoint before any state is inspected (note: sysadmins do NOT clear this gate — edit access is org-dev scoped, not sysadmin-scoped). (check: Create Packaging permission [CreatePackaging])
47
47
  - Package conversion testing must be complete. Per the Salesforce documentation, "Before you complete your move to 2GP package development, it's critical that you thoroughly test package conversions and subscriber migrations first." An agent MUST explicitly confirm this with the user before proceeding to the finalize step. See "Test Converted Packages and Subscriber Migrations" (linked from the workflow doc) for the testing checklist. (check: `ConversionTestingComplete`)
48
48
  - Source files for the package's latest converted version should be retrieved before finalize. Per the docs, the user runs `sf package version retrieve --package 04tXXX --output-dir my-folder --target-dev-hub <devhub>` to retrieve, then edits sfdx-project.json's versionName, versionNumber, and ancestorVersion. This is preparatory work for ongoing 2GP development AFTER finalize, but the doc places it in the workflow sequence — the agent should remind the user. (check: `PackageSourceRetrievedAndProjectFileUpdated`)
49
49
 
@@ -83,7 +83,6 @@ Only the 1GP DE (packaging) org is required for the finalize dispatch + wire-ver
83
83
 
84
84
  After every write operation, confirm the effect by re-reading state:
85
85
 
86
- - After `finalize-move-to-2gp`: call `verify-finalize-by-user-confirmation`
87
- - After `verify-finalize-by-user-confirmation`: call `verify-finalize-on-packaging-org`
86
+ - After `finalize-move-to-2gp`: call `verify-finalize-on-packaging-org` directly (normal 266+ path) OR `verify-finalize-by-user-confirmation` then `verify-finalize-on-packaging-org` (pre-266 manual fallback only).
88
87
 
89
88
  Read [Operations reference](references/api-operations.md) before executing this workflow. It contains the original operation definitions, dependencies, inputs, and verification instructions.
@@ -13,7 +13,7 @@ Operations grouped by purpose. Use these as the building blocks for the workflow
13
13
  | `confirm-affirmations` | validate | implemented | — | `check-already-done` |
14
14
  | `finalize-move-to-2gp` | write | implemented | `finalizeMoveTo2gp` | `confirm-affirmations` |
15
15
  | `verify-finalize-by-user-confirmation` | verify | implemented | — | `finalize-move-to-2gp` |
16
- | `verify-finalize-on-packaging-org` | verify | implemented | `queryPackageConversion` | `verify-finalize-by-user-confirmation` |
16
+ | `verify-finalize-on-packaging-org` | verify | implemented | `queryPackageConversion` | `finalize-move-to-2gp` |
17
17
 
18
18
  ### Dependency graph
19
19
 
@@ -33,7 +33,7 @@ graph TD
33
33
  check_already_done --> confirm_affirmations
34
34
  confirm_affirmations --> finalize_move_to_2gp
35
35
  finalize_move_to_2gp --> verify_finalize_by_user_confirmation
36
- verify_finalize_by_user_confirmation --> verify_finalize_on_packaging_org
36
+ finalize_move_to_2gp --> verify_finalize_on_packaging_org
37
37
  ```
38
38
 
39
39
  ### Read operations
@@ -47,7 +47,10 @@ Look up the 2GP Package2 record on DevHub for the 1GP package the user wants to
47
47
  **Inputs:**
48
48
 
49
49
  - `devhub_alias` *(`String`)* — Source: user_input. The `sf` alias of the user's DevHub org. Captured at skill start (see agent_guidance "AT START").
50
- - `subscriber_package_id` *(`String`)* — The 1GP package's SubscriberPackageId (033... key prefix). User provides this directly, or agent obtains it via a MetadataPackage name lookup on the 1GP DE org (see agent_guidance).
50
+ - `subscriber_package_id` *(`String`)* — The 1GP package's SubscriberPackageId (033... key prefix). User provides this directly, or agent obtains it via a MetadataPackage name lookup on the 1GP DE org (see agent_guidance). Validate it against the `validation` pattern before substituting it into any query or URL path; if it does not match, stop and ask the user for the correct Id.
51
+ - **Validation:** Must match `/^033[A-Za-z0-9]{12}([A-Za-z0-9]{3})?$/` (a 15- or 18-character 033-prefix Id). Reject any value containing single quotes, backslashes, or whitespace.
52
+
53
+ **Name lookup:** if the user only knows the package name, query `SELECT Id, Name, NamespacePrefix FROM MetadataPackage` on the 1GP DE org and filter the results client-side by Name. Do not interpolate user input into SOQL literals.
51
54
 
52
55
  ### Write operations
53
56
 
@@ -86,18 +89,18 @@ Human cross-check for the pre-266 manual fallback path ONLY: ask the user what t
86
89
 
87
90
  #### `verify-finalize-on-packaging-org`
88
91
 
89
- The canonical wire-verification: re-query the PackageConversion record on the 1GP DE org to confirm EndDate is populated (non-null). EndDate is set by the package-conversion finalization service as part of finalize and is the reliable post-finalize wire signal. Uses the read-only PackageConversion Tooling exposure shipped in 264 (1GP DE org auth is already a hard precondition for this skill, so no auth-state branching needed). This is the canonical wire-verify and supplements (rather than replaces) the optional user attestation in verify-finalize-by-user-confirmation. Note: the finalize step's own 266 response also returns finalizedAt + conversionId directly, so this step is a durable cross-check rather than the sole success signal.
92
+ The canonical wire-verification: re-query the PackageConversion record on the 1GP DE org to confirm EndDate is populated (non-null). EndDate is set by the package-conversion finalization service as part of finalize and is the reliable post-finalize wire signal. Uses the read-only PackageConversion Tooling exposure shipped in 264 (1GP DE org auth is already a hard precondition for this skill, so no auth-state branching needed). This is the canonical wire-verify and runs directly after finalize-move-to-2gp; on the pre-266 manual fallback it also follows the user attestation in verify-finalize-by-user-confirmation. Note: the finalize step's own 266 response also returns finalizedAt + conversionId directly, so this step is a durable cross-check rather than the sole success signal.
90
93
 
91
94
  **Call:** `queryPackageConversion` — status: `implemented`
92
95
 
93
96
  **Inputs:**
94
97
 
95
- - `packaging_org_alias` *(`String`)* — Source - output of verify-finalize-by-user-confirmation (transitively from check-eligibility-1gp-released.packaging_org_alias).
98
+ - `packaging_org_alias` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from check-eligibility-1gp-released.packaging_org_alias).
96
99
  - **Source:** output of `check-eligibility-1gp-released`
97
- - `subscriber_package_id` *(`String`)* — Source - output of verify-finalize-by-user-confirmation (transitively from discover-package-on-devhub.subscriber_package_id).
100
+ - `subscriber_package_id` *(`String`)* — Source - output of finalize-move-to-2gp (transitively from discover-package-on-devhub.subscriber_package_id).
98
101
  - **Source:** output of `discover-package-on-devhub`
99
102
 
100
- **Depends on:** `verify-finalize-by-user-confirmation`
103
+ **Depends on:** `finalize-move-to-2gp`
101
104
 
102
105
  **Notes:** 264 shipped the read-only public Tooling exposure of PackageConversion (available when packaging is enabled for the org). The fields queried here — Id, EndDate, FinalizedVersionId (FK → SubscriberPackageVersion), FinalizedVersionNumber, and the WHERE key ConvertedFromPackageId (FK → SubscriberPackage) — are all exposed read-only. EndDate non-null means finalize completed. Move-to-2GP does NOT auto-create native Package2Version records on DevHub (native creation is a separate user-driven step), so there is no Package2Version-based wire-verify; EndDate is the reliable signal.
103
106
 
@@ -0,0 +1,47 @@
1
+ # dx-packaging-push-upgrade-configure
2
+
3
+ A Salesforce agent skill that plans, schedules, and monitors **package push upgrades** from a
4
+ Dev Hub — end-to-end.
5
+
6
+ Push upgrades change a package **in the customer's org without their action**, so the skill's
7
+ default posture is **generate → preview → confirm → run**: it never calls `schedule` or `abort`
8
+ until the user has seen the batch plan and org list and said go.
9
+
10
+ ## What it does
11
+
12
+ - **Resolves** the package (`033`) and a valid target version (`04t`) against the Dev Hub.
13
+ - **Finds subscribers** via `PackageSubscriber`, then applies eligibility filters (installed only,
14
+ below target, production vs sandbox, org status, subscriber restrictions).
15
+ - **Batches a schedule** per best practices — pilot in sandboxes, stagger production, off-peak by
16
+ time zone, avoid risky windows — and generates the per-batch org CSVs.
17
+ - **Runs** the `sf package push-upgrade schedule` commands after explicit confirmation.
18
+ - **Monitors** results via CLI and `PackagePushRequest` / `PackagePushJob` / `PackagePushError`,
19
+ and verifies the upgrade actually landed.
20
+
21
+ Supports 2GP managed, unlocked, and 1GP→2GP push migrations (`--migrate-to-2gp`).
22
+
23
+ ## Inputs
24
+
25
+ The skill reads these from the request; provide whichever you have:
26
+
27
+ - `033…` → package ID
28
+ - `04t…` → target package version ID
29
+ - `0DV…` → existing push request ID (jumps straight to monitoring)
30
+ - a Dev Hub alias/username → the package-owning org (defaults to the configured `target-dev-hub`)
31
+
32
+ ### Prerequisites
33
+
34
+ - Salesforce CLI (`sf`) authenticated to the Dev Hub / package-owning org.
35
+ - 2GP managed packages must have passed AppExchange security review and have push upgrades enabled
36
+ via a Partner Support case. Unlocked packages have them enabled by default.
37
+ - The *Create and Update Second-Generation Packages* user permission on the Dev Hub.
38
+
39
+ ## Layout
40
+
41
+ | File | Purpose |
42
+ | --- | --- |
43
+ | `SKILL.md` | The skill definition and the phase-by-phase workflow. |
44
+ | `references/cli-reference.md` | Verified `sf package push-upgrade` subcommands and flags. |
45
+ | `references/objects.md` | Field reference for the push-upgrade objects. |
46
+ | `references/soql-recipes.md` | Ready-to-run subscriber and monitoring queries. |
47
+ | `references/best-practices.md` | Timing, testing, staggering, and communication guidance. |