@salesforce/afv-skills 1.68.0 → 1.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/package.json +1 -1
  2. package/skills/afcc-setup-coordinate/SKILL.md +348 -0
  3. package/skills/afcc-setup-coordinate/assets/console-app/AFCC_Service_Console.app-meta.xml +19 -0
  4. package/skills/afcc-setup-coordinate/assets/console-app/Admin.profile-meta.xml +8 -0
  5. package/skills/afcc-setup-coordinate/assets/console-app/Standard.profile-meta.xml +8 -0
  6. package/skills/afcc-setup-coordinate/assets/gap_report_template.md +35 -0
  7. package/skills/afcc-setup-coordinate/assets/org_profile_template.json +16 -0
  8. package/skills/afcc-setup-coordinate/references/gotchas.md +22 -0
  9. package/skills/afcc-setup-coordinate/scripts/audit_org.sh +159 -0
  10. package/skills/agentforce-bot-upgrade/SKILL.md +117 -66
  11. package/skills/agentforce-bot-upgrade/assets/_vendored/agent-spec-template.md +139 -0
  12. package/skills/agentforce-bot-upgrade/references/_vendored/agent-design-and-spec-creation.md +1211 -0
  13. package/skills/agentforce-bot-upgrade/references/_vendored/agent-script-core-language.md +1390 -0
  14. package/skills/agentforce-bot-upgrade/references/_vendored/agent-subagent-map-diagrams.md +341 -0
  15. package/skills/agentforce-bot-upgrade/references/_vendored/agent-user-setup.md +672 -0
  16. package/skills/agentforce-bot-upgrade/references/_vendored/agent-validation-and-debugging.md +904 -0
  17. package/skills/agentforce-bot-upgrade/references/_vendored/agentscript-toolchain.md +112 -0
  18. package/skills/agentforce-bot-upgrade/references/_vendored/architecture-patterns.md +277 -0
  19. package/skills/agentforce-bot-upgrade/references/_vendored/common-control-flow-pitfalls.md +255 -0
  20. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-actions-sequencing.md +198 -0
  21. package/skills/agentforce-bot-upgrade/references/_vendored/control-flow-lifecycle-side-effects.md +87 -0
  22. package/skills/agentforce-bot-upgrade/references/_vendored/data-library-reference.md +891 -0
  23. package/skills/agentforce-bot-upgrade/references/_vendored/instruction-resolution.md +658 -0
  24. package/skills/agentforce-bot-upgrade/references/_vendored/org-setup-for-adl.md +551 -0
  25. package/skills/agentforce-bot-upgrade/references/_vendored/patterns-by-requirement.md +88 -0
  26. package/skills/agentforce-bot-upgrade/references/_vendored/posture-and-determinism.md +215 -0
  27. package/skills/agentforce-bot-upgrade/references/extraction-blueprint.md +11 -4
  28. package/skills/agentforce-bot-upgrade/references/generate-agent-spec.md +19 -3
  29. package/skills/agentforce-bot-upgrade/references/handoff-output-format.md +82 -52
  30. package/skills/agentforce-bot-upgrade/references/input-contract.md +8 -8
  31. package/skills/agentforce-bot-upgrade/references/mapping-rules.md +19 -6
  32. package/skills/agentforce-bot-upgrade/references/post-conversion-enhancements-reference.md +65 -6
  33. package/skills/agentforce-bot-upgrade/references/quality-checklist.md +4 -4
  34. package/skills/agentforce-bot-upgrade/references/sf-cli-bot-reference.md +17 -3
  35. package/skills/agentforce-hyperclassifier-configure/README.md +24 -0
  36. package/skills/agentforce-hyperclassifier-configure/SKILL.md +111 -0
  37. package/skills/agentforce-hyperclassifier-configure/assets/customer-org.env.example +4 -0
  38. package/skills/agentforce-hyperclassifier-configure/assets/sample_descriptions.json +8 -0
  39. package/skills/agentforce-hyperclassifier-configure/assets/sample_evals.csv +17 -0
  40. package/skills/agentforce-hyperclassifier-configure/references/api-contract.md +41 -0
  41. package/skills/agentforce-hyperclassifier-configure/references/authentication.md +35 -0
  42. package/skills/agentforce-hyperclassifier-configure/references/evaluation.md +46 -0
  43. package/skills/agentforce-hyperclassifier-configure/references/installation.md +35 -0
  44. package/skills/agentforce-hyperclassifier-configure/references/onboarding.md +93 -0
  45. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/__init__.py +1 -0
  46. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/client.py +219 -0
  47. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/eca.py +178 -0
  48. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/evaluation.py +207 -0
  49. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/onboarding.py +191 -0
  50. package/skills/agentforce-hyperclassifier-configure/scripts/hcopt/optimizer.py +187 -0
  51. package/skills/agentforce-hyperclassifier-configure/scripts/hyperclassifier.py +111 -0
  52. package/skills/agentforce-hyperclassifier-configure/scripts/report_hyperclassifier.py +149 -0
  53. package/skills/agentforce-hyperclassifier-configure/scripts/setup_hyperclassifier.py +74 -0
  54. package/skills/agentforce-hyperclassifier-configure/scripts/tests/test_hyperclassifier_skill.py +887 -0
  55. package/skills/agentforce-offline-experimentation-run/scripts/btlib/judge.py +23 -31
  56. package/skills/agentforce-offline-experimentation-run/scripts/btlib/messages.py +2 -1
  57. package/skills/agentforce-offline-experimentation-run/scripts/btlib/sfap.py +118 -2
  58. package/skills/agentforce-offline-experimentation-run/scripts/build_report.py +2 -2
  59. package/skills/agentforce-offline-experimentation-run/scripts/resolve-token.sh +9 -2
  60. package/skills/agentforce-offline-experimentation-run/scripts/sfap_replay.py +12 -1
  61. package/skills/commerce-react-storefront-create/SKILL.md +54 -21
  62. package/skills/data360-code-extension-generate/SKILL.md +160 -252
  63. package/skills/data360-code-extension-generate/references/README.md +34 -172
  64. package/skills/data360-code-extension-generate/references/environment-setup.md +198 -0
  65. package/skills/data360-code-extension-generate/references/mcp-integration.md +36 -0
  66. package/skills/data360-code-extension-generate/references/quick-reference.md +132 -202
  67. package/skills/data360-code-extension-generate/references/run-logs.md +31 -0
  68. package/skills/data360-code-extension-generate/references/schema-discovery.md +45 -0
  69. package/skills/data360-code-extension-generate/references/troubleshooting.md +45 -0
  70. package/skills/data360-code-extension-generate/scripts/check_env.sh +197 -0
  71. package/skills/data360-code-extension-generate/scripts/venv_hook.sh +22 -0
  72. package/skills/dx-devops-work-item-manage/SKILL.md +24 -8
  73. package/skills/dx-devops-work-item-manage/examples/common-workflows.md +32 -0
  74. package/skills/dx-devops-work-item-manage/references/review-api.md +95 -0
  75. package/skills/dx-lifecycle-center/SKILL.md +24 -18
  76. package/skills/dx-lifecycle-center/examples/workflows.md +57 -34
  77. package/skills/dx-lifecycle-center/references/connect-api.md +33 -4
  78. package/skills/dx-lifecycle-center/references/connect-org.md +59 -28
  79. package/skills/dx-lifecycle-center/references/deploy.md +3 -3
  80. package/skills/dx-lifecycle-center/references/hub-org.md +19 -3
  81. package/skills/dx-lifecycle-center/references/list-orgs.md +50 -24
  82. package/skills/dx-lifecycle-center/references/troubleshooting.md +22 -1
  83. package/skills/dx-lifecycle-center/scripts/hub-get.sh +41 -0
  84. package/skills/dx-lifecycle-center/scripts/resolve-environment.sh +151 -4
  85. package/skills/dx-org-manage/SKILL.md +12 -12
  86. package/skills/dx-org-manage/examples/scratch-orgs/display_output.json +1 -3
  87. package/skills/dx-org-manage/examples/scratch-orgs/success_shape.json +1 -3
  88. package/skills/dx-org-manage/references/opening-org.md +1 -1
  89. package/skills/dx-org-manage/references/scratch-org-operations.md +15 -20
  90. package/skills/dx-packaging-convert-1gp-to-2gp-create/SKILL.md +63 -0
  91. package/skills/dx-packaging-convert-1gp-to-2gp-create/references/conversion-operations.md +252 -0
  92. package/skills/dx-packaging-move-to-2gp-migrate/SKILL.md +3 -4
  93. package/skills/dx-packaging-move-to-2gp-migrate/references/api-operations.md +10 -7
  94. package/skills/dx-packaging-push-upgrade-configure/README.md +47 -0
  95. package/skills/dx-packaging-push-upgrade-configure/SKILL.md +355 -0
  96. package/skills/dx-packaging-push-upgrade-configure/references/best-practices.md +61 -0
  97. package/skills/dx-packaging-push-upgrade-configure/references/cli-reference.md +148 -0
  98. package/skills/dx-packaging-push-upgrade-configure/references/objects.md +106 -0
  99. package/skills/dx-packaging-push-upgrade-configure/references/soql-recipes.md +144 -0
  100. package/skills/education-cloud-academic-calendar-generate/SKILL.md +2 -2
  101. package/skills/education-cloud-course-catalog-migrate/SKILL.md +1 -1
  102. package/skills/education-cloud-domain-configure/references/domain-features/recruitment-admissions.md +8 -7
  103. package/skills/education-cloud-multi-campus-configure/SKILL.md +1 -0
  104. package/skills/education-cloud-multi-campus-configure/references/error_handling.md +7 -6
  105. package/skills/education-cloud-student-recruitment-agent-configure/SKILL.md +2 -0
  106. package/skills/education-cloud-student-recruitment-agent-configure/references/customer-narration.md +2 -0
  107. package/skills/education-cloud-student-recruitment-agent-configure/references/flows.md +1 -1
  108. package/skills/education-cloud-student-recruitment-agent-configure/references/grounding.md +5 -4
  109. package/skills/education-cloud-student-recruitment-agent-configure/references/permissions.md +1 -1
  110. package/skills/education-cloud-student-recruitment-agent-configure/references/prerequisites.md +1 -1
  111. package/skills/education-cloud-student-recruitment-agent-configure/references/routing.md +1 -1
  112. package/skills/experience-afv-analytics-query/SKILL.md +239 -0
  113. package/skills/experience-afv-analytics-query/references/references.md +176 -0
  114. package/skills/experience-app-mcp-delivery-generate/SKILL.md +142 -0
  115. package/skills/experience-app-mcp-delivery-generate/references/eca-consumer-key.md +26 -0
  116. package/skills/experience-app-mcp-delivery-generate/references/mcp-config-delivery.md +38 -0
  117. package/skills/experience-app-mcp-delivery-generate/references/plugin-format-and-publishing.md +80 -0
  118. package/skills/experience-app-mcp-delivery-generate/scripts/developer_name.mjs +9 -0
  119. package/skills/experience-app-mcp-delivery-generate/scripts/discover_mcp_context.mjs +114 -0
  120. package/skills/experience-app-mcp-delivery-generate/scripts/generate_mcp_config.mjs +27 -0
  121. package/skills/experience-app-mcp-delivery-generate/scripts/generate_plugin.mjs +184 -0
  122. package/skills/experience-app-mcp-delivery-generate/scripts/mcp_config.mjs +57 -0
  123. package/skills/experience-app-mcp-delivery-generate/scripts/preflight.mjs +109 -0
  124. package/skills/experience-app-mcp-delivery-generate/scripts/retrieve_eca_consumer_key.mjs +143 -0
  125. package/skills/experience-app-mcp-generate/SKILL.md +174 -0
  126. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.eca-meta.xml +7 -0
  127. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaGlblOauth-meta.xml +15 -0
  128. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauth-meta.xml +6 -0
  129. package/skills/experience-app-mcp-generate/assets/__ECA_NAME__.ecaOauthPlcy-meta.xml +12 -0
  130. package/skills/experience-app-mcp-generate/assets/__ECA_NAME___defaultPolicy.ecaPlcy-meta.xml +7 -0
  131. package/skills/experience-app-mcp-generate/assets/__MCP_SERVER_NAME__.mcpServerDefinition-meta.xml +5 -0
  132. package/skills/experience-app-mcp-generate/references/eca-fields.md +76 -0
  133. package/skills/experience-app-mcp-generate/references/mcp-objects.md +66 -0
  134. package/skills/experience-app-mcp-generate/references/tool-bindings.md +85 -0
  135. package/skills/experience-app-mcp-generate/references/troubleshooting.md +41 -0
  136. package/skills/experience-app-mcp-generate/references/ui-frameworks.md +19 -0
  137. package/skills/experience-app-mcp-generate/references/widget-resources.md +96 -0
  138. package/skills/experience-app-mcp-generate/scripts/activate_server.mjs +166 -0
  139. package/skills/experience-app-mcp-generate/scripts/check_setup_progress.mjs +212 -0
  140. package/skills/experience-app-mcp-generate/scripts/list_sites.mjs +211 -0
  141. package/skills/experience-app-mcp-generate/scripts/merge_tools.mjs +407 -0
  142. package/skills/experience-app-mcp-generate/scripts/preflight.mjs +127 -0
  143. package/skills/experience-app-mcp-generate/scripts/render_eca.mjs +144 -0
  144. package/skills/experience-app-mcp-generate/scripts/render_mcp_server.mjs +64 -0
  145. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_prompts.mjs +145 -0
  146. package/skills/experience-app-mcp-generate/scripts/retrieve_existing_tools.mjs +72 -0
  147. package/skills/experience-app-mcp-generate/scripts/scan_tool_candidates.mjs +195 -0
  148. package/skills/experience-app-mcp-generate/scripts/utils/callback_url.mjs +36 -0
  149. package/skills/experience-app-mcp-generate/scripts/utils/developer_name.mjs +9 -0
  150. package/skills/experience-app-mcp-generate/scripts/utils/eca_check.mjs +156 -0
  151. package/skills/experience-app-mcp-generate/scripts/utils/metadata_path.mjs +13 -0
  152. package/skills/experience-app-mcp-generate/scripts/verify_server.mjs +118 -0
  153. package/skills/experience-cms-content-type-generate/SKILL.md +8 -7
  154. package/skills/experience-cms-content-type-generate/references/agent-checklist.md +3 -3
  155. package/skills/experience-cms-content-type-generate/references/anti-patterns.md +2 -2
  156. package/skills/experience-cms-content-type-generate/references/discovery-details.md +1 -1
  157. package/skills/experience-cms-content-type-generate/references/retrieve-and-reconcile.md +5 -9
  158. package/skills/experience-ui-bundle-custom-app-generate/scripts/resolve-uibundle-path.mjs +10 -0
  159. package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +2 -2
  160. package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +2 -2
  161. package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +1 -1
  162. package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1 -1
  163. package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +2 -2
  164. package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +2 -2
  165. package/skills/nonprofit-fundraising-configure/SKILL.md +1 -1
  166. package/skills/nonprofit-fundraising-configure/references/mcp-invocation.md +52 -4
  167. package/skills/nonprofit-fundraising-configure/references/permission-targeting.md +19 -2
  168. package/skills/platform-custom-application-generate/SKILL.md +97 -104
  169. package/skills/platform-custom-application-generate/references/app-properties.md +52 -0
  170. package/skills/platform-custom-application-generate/references/app-visibility.md +19 -0
  171. package/skills/platform-custom-application-generate/references/utility-bar.md +55 -0
  172. package/skills/platform-custom-field-generate/SKILL.md +24 -16
  173. package/skills/platform-custom-metadata-type-generate/SKILL.md +1 -0
  174. package/skills/platform-custom-setting-generate/SKILL.md +1 -0
  175. package/skills/platform-datamask-run/SKILL.md +1 -1
  176. package/skills/platform-datamask-run/references/policy-authoring.md +41 -18
  177. package/skills/platform-dataspace-access-configure/SKILL.md +25 -10
  178. package/skills/platform-dsar-policy-manage/SKILL.md +7 -6
  179. package/skills/platform-dsar-policy-manage/references/export-and-history.md +10 -8
  180. package/skills/platform-dsar-policy-manage/references/report-format.md +4 -2
  181. package/skills/platform-flexipage-generate/SKILL.md +7 -10
  182. package/skills/platform-flexipage-generate/references/mcp_action_examples.md +42 -38
  183. package/skills/platform-metadata-grounding-get/SKILL.md +7 -7
  184. package/skills/platform-policy-rule-generate/SKILL.md +9 -7
  185. package/skills/platform-policy-rule-generate/references/condition-model.md +3 -3
  186. package/skills/platform-policy-rule-generate/references/conjunction-expression.md +9 -1
  187. package/skills/platform-policy-rule-generate/references/consumer-datacloud-ui.md +9 -1
  188. package/skills/platform-policy-rule-generate/references/examples/ExistsJoinRLS/policyRuleDefinitionSets/ExistsJoinRLS.policyRuleDefinitionSet +1 -2
  189. package/skills/platform-policy-rule-generate/references/examples/FieldReadDeny/policyRuleDefinitionSets/FieldReadDeny.policyRuleDefinitionSet +1 -2
  190. package/skills/platform-policy-rule-generate/references/examples/LastCharactersFieldMasking/policyRuleDefinitionSets/LastCharactersFieldMasking.policyRuleDefinitionSet +1 -2
  191. package/skills/platform-policy-rule-generate/references/examples/PrincipalFieldMatchRLS/policyRuleDefinitionSets/PrincipalFieldMatchRLS.policyRuleDefinitionSet +1 -2
  192. package/skills/platform-policy-rule-generate/references/examples/TaggedObjectAccess/policyRuleDefinitionSets/TaggedObjectAccess.policyRuleDefinitionSet +1 -0
  193. package/skills/platform-policy-rule-generate/references/headless-transport.md +2 -2
  194. package/skills/platform-policy-rule-generate/references/policy-schema-full.md +1 -1
  195. package/skills/platform-policy-rule-generate/references/policy-shapes.md +33 -0
  196. package/skills/platform-policy-rule-generate/references/templates-advanced.md +1 -1
  197. package/skills/platform-policy-rule-generate/references/ui-compatibility.md +5 -5
  198. package/skills/platform-report-generate/SKILL.md +29 -8
  199. package/skills/platform-report-generate/references/column-names.md +12 -1
  200. package/skills/platform-report-generate/references/errors-and-troubleshooting.md +1 -1
  201. package/skills/platform-report-generate/references/summary-formulas-sorting-limits.md +118 -0
  202. package/skills/platform-report-generate/references/verification-checklist.md +12 -0
  203. package/skills/platform-sharing-rules-generate/SKILL.md +12 -3
  204. package/skills/platform-sharing-rules-generate/references/rule-types.md +1 -0
  205. package/skills/service-agentforce-channel-configure/SKILL.md +6 -3
  206. package/skills/service-agentforce-channel-configure/references/agent-wiring.md +5 -3
  207. package/skills/service-agentforce-channel-configure/references/channel-branch-email.md +24 -15
  208. package/skills/service-agentforce-channel-configure/references/input-validation.md +23 -0
  209. package/skills/service-agentforce-channel-configure/references/live-traffic-gate.md +13 -7
  210. package/skills/service-agentforce-channel-configure/references/queue-resolution.md +3 -1
  211. package/skills/service-agentforce-human-escalation-configure/references/_vendored/input-validation.md +23 -0
  212. package/skills/service-agentforce-human-escalation-configure/references/_vendored/queue-resolution.md +146 -0
  213. package/skills/service-agentforce-human-escalation-configure/references/escalation-mechanism.md +1 -1
  214. package/skills/service-agentforce-human-escalation-configure/scripts/tests/_bootstrap.py +42 -11
  215. package/skills/service-agentforce-human-escalation-configure/scripts/tests/test_escalation_contracts.py +45 -0
  216. package/skills/service-agentforce-human-escalation-configure/scripts/verify-and-configure.sh +23 -9
  217. package/skills/service-de-channel-activate/SKILL.md +10 -10
  218. package/skills/service-de-channel-activate/references/gotchas.md +4 -4
  219. package/skills/service-de-channel-activate/references/phone-verification.md +43 -19
  220. package/skills/service-de-channel-create/SKILL.md +1 -1
  221. package/skills/service-de-channel-create/references/facebook.md +1 -1
  222. package/skills/service-de-channel-create/references/whatsapp.md +33 -6
  223. package/skills/service-de-channel-routing-configure/SKILL.md +5 -1
  224. package/skills/service-de-channel-routing-configure/references/gotchas.md +3 -1
  225. package/skills/service-de-channel-routing-configure/references/named-queue.md +39 -0
  226. package/skills/service-de-channel-settings-configure/SKILL.md +3 -1
  227. package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +2 -2
  228. package/skills/service-de-channel-settings-configure/references/gotchas.md +12 -1
  229. package/skills/service-de-headless-channel-configure/SKILL.md +68 -74
  230. package/skills/service-de-headless-channel-configure/references/gotchas.md +6 -2
  231. package/skills/service-de-headless-channel-configure/references/inputs.md +19 -0
  232. package/skills/service-de-headless-channel-configure/references/output-envelopes.md +23 -1
  233. package/skills/service-de-headless-channel-configure/references/partial-success.md +1 -0
  234. package/skills/service-de-headless-channel-configure/references/requested-settings.md +55 -0
  235. package/skills/service-de-headless-channel-configure/references/worked-examples.md +35 -1
  236. package/skills/service-digital-engagement-channel-configure/SKILL.md +45 -108
  237. package/skills/service-digital-engagement-channel-configure/assets/messaging_channel_template.xml +2 -0
  238. package/skills/service-digital-engagement-channel-configure/examples/asa_agent_channel.xml +2 -2
  239. package/skills/service-digital-engagement-channel-configure/examples/auth_queue_channel.xml +58 -0
  240. package/skills/service-digital-engagement-channel-configure/examples/omni_flow_channel.xml +2 -2
  241. package/skills/service-digital-engagement-channel-configure/examples/omni_queue_channel.xml +3 -3
  242. package/skills/service-digital-engagement-channel-configure/references/channel_settings.md +18 -14
  243. package/skills/service-digital-engagement-channel-configure/references/onboarding_contract.md +17 -21
  244. package/skills/service-digital-engagement-channel-configure/references/prechat_params.md +10 -0
  245. package/skills/service-digital-engagement-channel-configure/references/recaptcha_handoff.md +38 -0
  246. package/skills/service-digital-engagement-channel-configure/references/user_verification.md +9 -0
  247. package/skills/service-digital-engagement-channel-configure/scripts/check-api-version.sh +4 -4
  248. package/skills/service-digital-engagement-channel-configure/scripts/normalize-channel-name.sh +12 -7
  249. package/skills/service-digital-engagement-deployment-configure/SKILL.md +2 -2
  250. package/skills/service-digital-engagement-deployment-configure/references/onboarding_contract.md +4 -2
  251. package/skills/service-digital-engagement-deployment-configure/scripts/check-api-version.sh +1 -1
  252. package/skills/service-e911-configure/SKILL.md +242 -0
  253. package/skills/service-itsm-agentic-setup-agent-runtime-access-assign/SKILL.md +1 -1
  254. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +1 -1
  255. package/skills/service-itsm-agentic-setup-agentforce-studio-configure/SKILL.md +1 -1
  256. package/skills/service-itsm-agentic-setup-agentforce-studio-validate/SKILL.md +1 -1
  257. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +1 -1
  258. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +1 -1
  259. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +47 -44
  260. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +110 -83
  261. package/skills/service-itsm-agentic-setup-incident-management/references/manage-incidents-with-ai.md +7 -3
  262. package/skills/service-itsm-agentic-setup-incident-management/references/priority-matrix.md +7 -5
  263. package/skills/service-itsm-agentic-setup-incident-management/references/sla-milestones.md +2 -2
  264. package/skills/service-itsm-agentic-setup-incident-management/references/status-checks.md +437 -0
  265. package/skills/service-itsm-agentic-setup-itsm-agentforce-permset-assign/SKILL.md +1 -1
  266. package/skills/service-omni-command-center-configure/SKILL.md +1 -1
  267. package/skills/agentforce-bot-upgrade/references/planner-workflow-reference.md +0 -78
  268. package/skills/data360-schema-get/SKILL.md +0 -388
  269. package/skills/data360-schema-get/references/README.md +0 -191
  270. package/skills/data360-schema-get/scripts/get_dlo_schema.py +0 -244
  271. package/skills/data360-schema-get/scripts/get_dmo_schema.py +0 -233
  272. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/connect-connected.json +0 -65
  273. package/skills/dx-lifecycle-center/assets/widgets/connect-connected/schema.json +0 -32
  274. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/connect-sign-in.json +0 -57
  275. package/skills/dx-lifecycle-center/assets/widgets/connect-sign-in/schema.json +0 -21
  276. package/skills/dx-lifecycle-center/scripts/card-policy.jq +0 -71
  277. package/skills/dx-lifecycle-center/scripts/fill-widget.jq +0 -29
  278. package/skills/dx-lifecycle-center/scripts/widget.sh +0 -28
  279. package/skills/experience-content-media-image-generate/SKILL.md +0 -83
  280. package/skills/experience-content-media-image-generate/scripts/download-image.sh +0 -84
  281. package/skills/experience-content-media-stock-image-search/SKILL.md +0 -193
  282. package/skills/experience-content-media-stock-image-search/scripts/download-stock-image.py +0 -102
  283. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +0 -646
  284. package/skills/field-service-voice-to-form-configure/SKILL.md +0 -650
@@ -1,193 +1,55 @@
1
- # data360-code-extension-generate Skill
1
+ # data360-code-extension-generate
2
2
 
3
- ## Overview
3
+ An agent skill for building Data 360 (Data Cloud) code extensions. Code extensions are custom PySpark transformations and Search Index Chunking functions, developed, tested and deployed with the `sf data-code-extension` CLI plugin and the `salesforce-data-customcode` SDK.
4
4
 
5
- A skill that provides a complete workflow for developing, testing, and deploying custom Python code extensions to Salesforce Data Cloud using the SF CLI plugin.
5
+ The skill is **agent-agnostic**. It works in any tool that can read a `SKILL.md` and run shell commands, and it has no dependency on a particular LLM or client.
6
6
 
7
- ## What It Does
7
+ ## What it does
8
8
 
9
- This skill helps you create Data Cloud Code Extensions through a complete workflow:
9
+ 0. **Environment check**: runs the read-only `scripts/check_env.sh`, picks a Python mode, and sets up Python 3.11, the SDK, Java and the sf plugin. If `python3` is already 3.11 (typical in cloud workspaces and containers), it installs into that Python with no venv. Otherwise (typical on macOS) it creates a project `.venv`.
10
+ 1. **Init**: scaffolds a script or function package.
11
+ 2. **Discover schemas**: fetches the source and target DLO fields and prints a field mapping, before any code is written.
12
+ 3. **Develop**: writes the PySpark transformation from that mapping.
13
+ 4. **Scan**: generates `config.json` and `requirements.txt`.
14
+ 5. **Run**: tests locally against real org data.
15
+ 6. **Deploy**: deploys to Data 360, with redeploy and cleanup guidance.
16
+ 7. **Verify**: runs the data transform and checks the output.
10
17
 
11
- 1. **Init** - Create new code extension project with scaffolding
12
- 2. **Develop** - Write Python transformation logic
13
- 3. **Scan** - Auto-detect permissions and generate config
14
- 4. **Run** - Test locally against Data Cloud org
15
- 5. **Deploy** - Package and deploy to Data Cloud
18
+ ## Defaults without prompting
16
19
 
17
- ## Usage
20
+ The agent doesn't ask for the project folder or org when the environment already decides them. In **Code Builder**, it uses `/home/codebuilder/dx-project` and the single Connected (default) org, prints them, and continues. Elsewhere it uses the current folder and the CLI default org (if Connected) or the only Connected org. It asks only when several orgs are Connected and none is the default. To pin values without prompting, set `D360_PROJECT_DIR` and `D360_TARGET_ORG`.
18
21
 
19
- **Initialize a project:**
20
- ```text
21
- "Create a new Data Cloud code extension project called employee-transform"
22
- "Initialize a code extension to transform employee data"
23
- ```
24
-
25
- **Test locally:**
26
- ```text
27
- "Run the code extension in my-transform directory against afvibe org"
28
- "Test the entrypoint.py file locally"
29
- ```
30
-
31
- **Scan for permissions:**
32
- ```text
33
- "Scan the entrypoint.py to generate config"
34
- "Update permissions in config.json"
35
- ```
36
-
37
- **Deploy:**
38
- ```text
39
- "Deploy Employee_Upper code extension to afvibe"
40
- "Deploy this transform with package-version 1.0.0"
41
- ```
42
-
43
- ### Direct Command Usage
22
+ ## Manual prerequisite (no API)
44
23
 
45
- ```bash
46
- # Initialize project
47
- sf data-code-extension script init --package-dir <directory>
48
-
49
- # Scan for permissions
50
- sf data-code-extension script scan --entrypoint ./payload/entrypoint.py
51
-
52
- # Test locally
53
- sf data-code-extension script run --entrypoint ./payload/entrypoint.py --target-org <org_alias>
54
-
55
- # Deploy
56
- sf data-code-extension script deploy --target-org <org_alias> --name <name> --package-version <version> --description <description> --package-dir ./payload
57
- ```
58
-
59
- ## Prerequisites
24
+ An org admin must enable **Code Extension** in **Data Cloud Setup → Feature Manager**.
60
25
 
61
- 1. **SF CLI with Plugin**
62
- ```bash
63
- sf plugins install @salesforce/plugin-data-codeextension
64
- ```
26
+ ## Install the skill
65
27
 
66
- 2. **Python 3.11**
67
- ```bash
68
- python --version # Must be 3.11.x
69
- ```
28
+ The skill is a folder with `SKILL.md`, `references/` and `scripts/`. Copy or symlink the whole folder to wherever your agent loads skills from:
70
29
 
71
- 3. **Data Cloud Custom Code SDK**
72
- ```bash
73
- pip install salesforce-data-customcode
74
- ```
75
-
76
- 4. **Docker** (for deploy only)
77
- - Docker Desktop or equivalent
78
-
79
- 5. **Authenticated Org**
80
- ```bash
81
- sf org login web --alias <org_alias>
82
- ```
83
-
84
- ## Quick Start
85
-
86
- ### Complete End-to-End Example
30
+ | Agent | Typical location |
31
+ |---|---|
32
+ | Claude Code | `~/.claude/skills/` or `<project>/.claude/skills/` |
33
+ | Codex CLI | `~/.codex/skills/` or `<project>/.codex/skills/` |
34
+ | Gemini CLI, Cursor, Copilot, others | That tool's skills or rules folder. Otherwise, reference `SKILL.md` from your project's `AGENTS.md` or rules file |
87
35
 
88
36
  ```bash
89
- # 1. Create project
90
- mkdir employee-transform && cd employee-transform
91
- sf data-code-extension script init --package-dir .
92
-
93
- # 2. Edit payload/entrypoint.py with your transformation
94
-
95
- # 3. Scan for permissions
96
- sf data-code-extension script scan --entrypoint ./payload/entrypoint.py
97
-
98
- # 4. Test locally
99
- sf data-code-extension script run --entrypoint ./payload/entrypoint.py --target-org afvibe
100
-
101
- # 5. Deploy (MUST include --package-dir ./payload)
102
- sf data-code-extension script deploy \
103
- --target-org afvibe \
104
- --name Employee_Upper \
105
- --package-version 1.0.0 \
106
- --description "Uppercase employee positions" \
107
- --package-dir ./payload
108
- ```
109
-
110
- ## Example Transformation
111
-
112
- **Read from DLO, transform, write to DLO:**
113
-
114
- ```python
115
- from datacustomcode import Client
116
-
117
- client = Client()
118
-
119
- # Read employee data from DLO
120
- employees = client.read_dlo('Employee__dll')
121
-
122
- # Transform - uppercase position field
123
- employees['position_upper'] = employees['position'].str.upper()
124
-
125
- # Select output columns
126
- output = employees[['id', 'name', 'position_upper']]
127
-
128
- # Write to output DLO
129
- client.write_to_dlo('Employee_Upper__dll', output, 'overwrite')
130
-
131
- print(f"Processed {len(output)} employee records")
37
+ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git ~/sf-skills
38
+ ln -s ~/sf-skills/skills/data360-code-extension-generate <your-agent-skills-dir>/data360-code-extension-generate
132
39
  ```
133
40
 
134
- ## Project Structure
135
-
136
- After `init`, you'll have:
41
+ ## Example prompts
137
42
 
138
43
  ```text
139
- my-transform/
140
- ├── payload/
141
- │ ├── entrypoint.py # Your transformation code
142
- │ └── config.json # Permissions and configuration
143
- ├── requirements.txt # Python dependencies
144
- └── README.md
145
- ```
146
-
147
- ## Common Operations
148
-
149
- ### Read/Write DLOs
150
- ```python
151
- # Read
152
- df = client.read_dlo('Employee__dll')
153
-
154
- # Write (modes: 'overwrite', 'append')
155
- client.write_to_dlo('Employee_Upper__dll', df, 'overwrite')
156
- ```
157
-
158
- ### Read/Write DMOs
159
- ```python
160
- # Read
161
- df = client.read_dmo('EmployeeDMO')
162
-
163
- # Write (modes: 'upsert', 'insert')
164
- client.write_to_dmo('EmployeeDMO', df, 'upsert')
44
+ Set up my Mac for Data 360 code extension development against org myorg in ~/projects/d360-ext
45
+ Create a code extension that uppercases Employee__dll.position__c into Employee_Upper__dll
46
+ Scan and run my code extension locally against myorg
47
+ Deploy employee_upper to myorg as version 0.0.1
48
+ I changed the code. Redeploy employee_upper
165
49
  ```
166
50
 
167
- ## Troubleshooting
168
-
169
- | Error | Quick Fix |
170
- |-------|-----------|
171
- | Plugin not found | `sf plugins install @salesforce/plugin-data-codeextension` |
172
- | Python SDK missing | `pip install salesforce-data-customcode` |
173
- | Wrong Python version | Use pyenv to install 3.11.0 |
174
- | Org not connected | `sf org login web --alias <alias>` |
175
- | Config missing | Run scan command |
176
- | DLO not found | Check DLO name, use data360-schema-get skill |
177
- | Docker error | Start Docker Desktop |
178
-
179
- ## CPU Size Selection
180
-
181
- | CPU Size | Use Case | Data Volume |
182
- |----------|----------|-------------|
183
- | CPU_L | Small datasets | < 1M records |
184
- | CPU_XL | Medium datasets | 1M-5M records |
185
- | CPU_2XL | Large datasets (default) | 5M-10M records |
186
- | CPU_4XL | Very large datasets | > 10M records |
187
-
188
51
  ## Resources
189
52
 
190
- - **SF CLI Plugin**: https://github.com/salesforcecli/plugin-data-code-extension
191
- - **Python SDK**: https://github.com/forcedotcom/datacloud-customcode-python-sdk
192
- - **Data Cloud Docs**: https://help.salesforce.com/s/articleView?id=sf.c360_a_intro.htm
193
- - **SDK on PyPI**: https://pypi.org/project/salesforce-data-customcode/
53
+ - SF CLI plugin: https://github.com/salesforcecli/plugin-data-code-extension
54
+ - Python SDK: https://github.com/forcedotcom/datacloud-customcode-python-sdk (PyPI: `salesforce-data-customcode`)
55
+ - Hosted MCP servers: https://developer.salesforce.com/docs/platform/hosted-mcp-servers/overview
@@ -0,0 +1,198 @@
1
+ # Environment Setup for Data 360 Code Extensions
2
+
3
+ Follow only the sections that `scripts/check_env.sh` reported as ❌. Every block checks first and skips anything that's already installed.
4
+
5
+ Commands are shown for **macOS (Homebrew)**. Linux and Windows notes follow each section. Section 3 covers both single-Python environments (no venv) and machines that need a venv.
6
+
7
+ **Steps the user must do themselves (the agent stops and asks):**
8
+
9
+ - installing Homebrew
10
+ - `sudo` commands
11
+ - installing or starting Docker Desktop
12
+ - browser login
13
+ - enabling the Code Extension feature
14
+
15
+ ---
16
+
17
+ ## 1. Base tools
18
+
19
+ ### Homebrew (macOS)
20
+
21
+ ```bash
22
+ command -v brew >/dev/null 2>&1 && echo "brew present, skipping" || echo "USER ACTION: install Homebrew from https://brew.sh"
23
+ ```
24
+
25
+ The Homebrew installer is interactive and asks for a password, so the user has to run it themselves.
26
+
27
+ ### git, Node.js, jq
28
+
29
+ ```bash
30
+ for pair in git:git node:node jq:jq; do
31
+ cmd=${pair%%:*}; pkg=${pair##*:}
32
+ command -v "$cmd" >/dev/null 2>&1 && echo "$cmd present, skipping" || brew install "$pkg"
33
+ done
34
+ ```
35
+
36
+ - Node.js LTS or newer is needed if you install `sf` through npm.
37
+ - macOS 15 and later ship `/usr/bin/jq`.
38
+ - **Linux:** use `apt`/`dnf install git nodejs jq`. **Windows:** use `winget install Git.Git OpenJS.NodeJS.LTS jqlang.jq`.
39
+
40
+ ### Java
41
+
42
+ PySpark (used by local `run`) needs a JDK. **JDK 17 is recommended**; PySpark 3.5 also supports 11.
43
+
44
+ **JDK 21** isn't officially supported by PySpark 3.5 (Spark 4.0 added it), but it's often the only JDK on Ubuntu-based cloud workspaces. Tested with PySpark 3.5.1 on JDK 21:
45
+
46
+ | Works | Fails |
47
+ |---|---|
48
+ | The SDK's local read path (`read_dlo`/`read_dmo`, which builds Spark DataFrames from pandas with Arrow), PySpark column functions, Python UDFs, and the printed output of local `run` | `toPandas()` with Arrow fails with `sun.misc.Unsafe or java.nio.DirectByteBuffer.<init>(long, int) not available`. `-Dio.netty.tryReflectionSetAccessible=true` doesn't fix it. pandas UDFs also use Arrow and are likely affected (not tested) |
49
+
50
+ So on a JDK 21 machine, keep it unless the code needs `toPandas()` or pandas UDFs. Otherwise either install JDK 17 (Linux: `sudo apt install openjdk-17-jdk`, a user action, then `export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64` in the same block as `<PY_ENV>`), or turn Arrow off just before the call: `spark.conf.set("spark.sql.execution.arrow.pyspark.enabled", "false")`. This affects local `run` only; the deployed package doesn't include your local JDK.
51
+
52
+ ```bash
53
+ if /usr/libexec/java_home -v 17 >/dev/null 2>&1 || /usr/libexec/java_home -v 11 >/dev/null 2>&1; then
54
+ echo "JDK present: $(/usr/libexec/java_home), skipping"
55
+ else
56
+ brew install openjdk@17
57
+ echo "USER ACTION (sudo): sudo ln -sfn \"$(brew --prefix)/opt/openjdk@17/libexec/openjdk.jdk\" /Library/Java/JavaVirtualMachines/openjdk-17.jdk"
58
+ fi
59
+ ```
60
+
61
+ - PySpark finds Java through `JAVA_HOME`, or else `java` on `PATH`. On macOS, the `/Library/Java/JavaVirtualMachines` symlink above makes `/usr/bin/java` resolve the JDK, so nothing else is needed. To pin a version, add `export JAVA_HOME="$(/usr/libexec/java_home -v 17)"` to the shell profile.
62
+ - **Linux:** `apt install openjdk-17-jdk` puts `java` on `PATH`. Cloud workspaces often have no JDK; check with `java -version`.
63
+ - **Windows:** install Temurin 17 and set `JAVA_HOME`.
64
+
65
+ ### Docker (deploy only)
66
+
67
+ ```bash
68
+ docker info --format '{{.ServerVersion}}' 2>/dev/null || echo "USER ACTION: install/start Docker Desktop (https://www.docker.com/products/docker-desktop/)"
69
+ ```
70
+
71
+ Some cloud workspaces can't run Docker. There you can still init, scan and run locally; deploy from a machine that has Docker.
72
+
73
+ ---
74
+
75
+ ## 2. Salesforce CLI
76
+
77
+ ### Install `sf`
78
+
79
+ ```bash
80
+ command -v sf >/dev/null 2>&1 && echo "sf present: $(sf --version), skipping" || npm install --global @salesforce/cli
81
+ ```
82
+
83
+ Alternatives: `brew install sf`, or the installers at https://developer.salesforce.com/tools/salesforcecli
84
+
85
+ ### Code extension plugin
86
+
87
+ ```bash
88
+ sf plugins | grep -q data-code-extension && echo "plugin present, skipping" \
89
+ || sf plugins install @salesforce/plugin-data-code-extension
90
+ sf plugins | grep data-code-extension # expect 1.4.x or newer
91
+ ```
92
+
93
+ ### Log in to the org (user action)
94
+
95
+ ```bash
96
+ sf org display --target-org <ORG_ALIAS> --json 2>/dev/null | jq -e '.result.connectedStatus == "Connected"' >/dev/null \
97
+ && echo "<ORG_ALIAS> connected, skipping" \
98
+ || echo "USER ACTION: sf org login web --instance-url <ORG_URL> --alias <ORG_ALIAS>"
99
+ ```
100
+
101
+ - Use the org's My Domain URL (`https://<mydomain>.my.salesforce.com`), or `https://test.salesforce.com` for sandboxes.
102
+ - Don't use `--set-default`. Every command passes `--target-org`. (If an org already is the CLI default and Connected, as in Code Builder, `check_env.sh` picks it and the agent writes it explicitly into each command.)
103
+ - Verify with `sf org display --target-org <ORG_ALIAS> --json 2>/dev/null | jq '.result | {connectedStatus, username, instanceUrl}'`. Never print `accessToken`.
104
+
105
+ ---
106
+
107
+ ## 3. Python 3.11: system mode or venv mode
108
+
109
+ The plugin requires **exactly Python 3.11** (any 3.11.x, including pre-releases such as `3.11.0rc1`). It runs whatever `python3` is on `PATH` (falling back to `python`), finds packages through `pip3`/`pip`/`python3 -m pip`, and calls `pipreqs` from `PATH`. PySpark workers also default to `python3`.
110
+
111
+ So the only question is whether `python3` is already 3.11 and can take package installs:
112
+
113
+ | | **3a. System mode** | **3b. Venv mode** |
114
+ |---|---|---|
115
+ | Use when | `python3` is 3.11, `python3 -m pip` works, and the Python isn't externally managed (PEP 668). Typical: cloud dev workspaces, containers, Ubuntu 22.04 images with a single 3.11 | `python3` is another version (typical macOS: 3.12+ from Homebrew), system pip is blocked (Debian 12+, Ubuntu 23.04+), or the user wants isolation |
116
+ | Install target | User site-packages (`--user`) | `<PROJECT_DIR>/.venv` |
117
+ | `PYSPARK_*` | Not needed (driver and workers are both `python3`) | Added to `.venv/bin/activate` by `scripts/venv_hook.sh` |
118
+ | `<PY_ENV>` | `export PATH="<user-base>/bin:$PATH"`, with the literal folder `check_env.sh` prints (for example `/home/codebuilder/.local/bin`) | `source <PROJECT_DIR>/.venv/bin/activate` |
119
+
120
+ `scripts/check_env.sh` picks the mode automatically and prints `MODE=` and `PY_ENV=`. An existing `.venv` always means venv mode. To force a mode, pass it as the third argument: `bash check_env.sh <PROJECT_DIR> <ORG_ALIAS> venv`.
121
+
122
+ `PROJECT_DIR` can be an existing, non-empty folder. An SFDX project isn't required for code extensions.
123
+
124
+ ### 3a. System mode (no venv)
125
+
126
+ ```bash
127
+ python3 --version # must be 3.11.x
128
+ python3 -m pip --version || echo "USER ACTION: install pip for this Python (apt install python3-pip, or python3 -m ensurepip --user)"
129
+ <PY_ENV>
130
+ python3 -m pip install --user --upgrade salesforce-data-customcode pipreqs
131
+ ```
132
+
133
+ - **Always use `python3 -m pip`**, never bare `pip3`. On some images `pip3` belongs to a different Python (for example the distro's 3.10), so packages would land where `python3` can't import them. The plugin's check would still pass, because it accepts the package from any pip, and `run` fails later.
134
+ - `--user` installs console scripts such as `pipreqs` into the user-base `bin` folder (`python3 -m site --user-base`, plus `/bin`; usually `~/.local/bin`). `check_env.sh` prints it as a literal path in `PY_ENV`. Agent and non-login shells often don't have it on `PATH`, which is why `<PY_ENV>` adds it. If you install as root or into a writable system Python, drop `--user`; `<PY_ENV>` is then harmless.
135
+ - If pip refuses with `externally-managed-environment`, switch to venv mode. Don't use `--break-system-packages`.
136
+ - A pre-release such as `3.11.0rc1` passes the plugin's version check and PySpark 3.5 supports 3.11, but it isn't a tested SDK configuration. If you see unexplained interpreter errors, install a final 3.11 release.
137
+
138
+ Verify:
139
+
140
+ ```bash
141
+ <PY_ENV>
142
+ python3 -c "import datacustomcode; print(datacustomcode.__file__)"
143
+ command -v pipreqs
144
+ ```
145
+
146
+ ### 3b. Venv mode
147
+
148
+ Install Python 3.11 alongside the default `python3`. Don't change the system or default `python3`.
149
+
150
+ ```bash
151
+ command -v python3.11 >/dev/null 2>&1 && echo "python3.11 present, skipping" || brew install python@3.11
152
+ python3.11 --version
153
+ ```
154
+
155
+ - **Linux:** use `apt install python3.11 python3.11-venv`, or `pyenv install 3.11`.
156
+ - **Windows:** use `py -3.11` from the python.org installer.
157
+
158
+ Create the venv, pin PySpark to it, and install:
159
+
160
+ ```bash
161
+ mkdir -p "<PROJECT_DIR>" && cd "<PROJECT_DIR>"
162
+ [ -x .venv/bin/python ] && echo "venv present, skipping" || python3.11 -m venv .venv
163
+ bash <SKILL_DIR>/scripts/venv_hook.sh "<PROJECT_DIR>"
164
+ source <PROJECT_DIR>/.venv/bin/activate
165
+ python3 -m pip install --upgrade pip
166
+ python3 -m pip install --upgrade salesforce-data-customcode pipreqs
167
+ ```
168
+
169
+ - Use `python3.11 -m venv`, **not `uv venv`**. A `uv` venv has no `pip`, so `pip install` silently installs into the global Python. `uv pip install` has also been seen to hang.
170
+ - `venv_hook.sh` appends `PYSPARK_PYTHON` and `PYSPARK_DRIVER_PYTHON` exports to `.venv/bin/activate`, once. Without them, Spark workers pick up the global `python3` and `run` fails with `PYTHON_VERSION_MISMATCH`. Because the hook lives in `activate`, a developer who activates the venv by hand in a terminal gets it too.
171
+ - **Recreating the venv regenerates `activate` and drops the hook.** Rerun `venv_hook.sh` afterwards. `check_env.sh` reports it if it's missing.
172
+ - **Windows:** `venv_hook.sh` doesn't cover `.venv\Scripts\Activate.ps1` or `activate.bat`. Add `$env:PYSPARK_PYTHON = "$env:VIRTUAL_ENV\Scripts\python.exe"` (and the same for `PYSPARK_DRIVER_PYTHON`) to `Activate.ps1`, or `set` lines to `activate.bat`.
173
+ - Add `.venv/` to `.gitignore`.
174
+
175
+ Verify:
176
+
177
+ ```bash
178
+ source <PROJECT_DIR>/.venv/bin/activate
179
+ python3 --version # 3.11.x
180
+ python3 -c "import datacustomcode; print(datacustomcode.__file__)" # path under .venv/
181
+ echo "$PYSPARK_PYTHON" # .../.venv/bin/python
182
+ ```
183
+
184
+ ---
185
+
186
+ ## 4. Org feature: Code Extension (user action, UI only)
187
+
188
+ There is no API for this. Ask the user to:
189
+
190
+ 1. Open **Data Cloud Setup → Feature Manager**.
191
+ 2. Turn on **Code Extension**.
192
+ 3. Confirm back that it's enabled.
193
+
194
+ ## 5. Finish
195
+
196
+ Rerun `bash <SKILL_DIR>/scripts/check_env.sh "<PROJECT_DIR>" "<ORG_ALIAS>"`. Every line should show ✅. Docker can stay ⚠️ until you deploy. Note the `PY_ENV=` line it prints: that is the `<PY_ENV>` that starts every shell block in SKILL.md.
197
+
198
+ Optional: connect the hosted Data 360 MCP server (https://developer.salesforce.com/docs/platform/hosted-mcp-servers/overview).
@@ -0,0 +1,36 @@
1
+ # Using the Data 360 MCP Server (optional)
2
+
3
+ The hosted **Data 360 MCP server** (`data/data360`, GA with API v66.0+) gives the agent direct access to Data 360 Connect APIs. It is **optional** for this skill: every step below has a CLI or UI fallback in SKILL.md.
4
+
5
+ - **Set up:** follow the Salesforce hosted MCP servers docs: https://developer.salesforce.com/docs/platform/hosted-mcp-servers/overview
6
+ - **Detect:** check whether the agent has tools from a Data 360 MCP server, named `search`, `payload_examples` and `execute`. Clients add their own prefixes (for example `mcp__prod_d360_mcp__search`), so match on the suffix. Many hosts list MCP tools as **deferred** (name only, schema loaded on demand). They still count as available: load them, don't skip to the CLI fallback.
7
+
8
+ ## How the server works
9
+
10
+ It exposes three meta-tools. The concrete `d360_*` tools are discovered at runtime and the list may change. For a tool named in the table below, go straight to `payload_examples`; call `search` only when that tool isn't found or you need a different one.
11
+
12
+ 1. `search`: describe the intent, for example `"code extension list deploy delete"`. It returns tool families and tool names. **Send only the query.** The tool's schema lists `limit`, but the server rejects it (`JSON_PARSER_ERROR: Unrecognized field "limit"`).
13
+ 2. `payload_examples`: get the parameter schema and an example for a named tool. Call it before the first `execute` of each tool in a session; don't hardcode payloads, because inputs differ by tool (DLO, DMO, query and others) and can change.
14
+ 3. `execute`: run the named tool with JSON parameters.
15
+
16
+ Calls count against Connect API limits and Flex Credits. Don't poll in tight loops.
17
+
18
+ ## Where it helps
19
+
20
+ | Skill phase | Intent to `search` for | Example tools (verify with `search`) | Fallback |
21
+ |---|---|---|---|
22
+ | Phase 2: discover schemas | "get DLO schema fields" | `d360_dlo_get` (one DLO per call; returns fields, status and record count) |
23
+ | Phase 2: sample input data | "query data sql" | `d360_query_sql` with `SELECT ... FROM <INPUT_DLO> LIMIT 20` | `sf api request rest .../ssot/query-sql` |
24
+ | Phase 6: redeploy | "delete data transform", "delete code extension" | transform delete tool, `d360_code_extension_delete` | UI: Data Transforms, then Code Extensions |
25
+ | Phase 6: inspect deployments | "list code extensions" | `d360_code_extension_list`, `d360_code_extension_get` | UI: Code Extensions |
26
+ | Phase 7: run and verify | "run data transform", "code extension execution history" | transform run tool, `d360_code_extension_executions_list`, `d360_code_extension_execution_get` | UI: Data Transforms → Run Now |
27
+ | Phase 7: check output | "query data", "row count" | `d360_query_sql` | UI: Data Explorer |
28
+ | Phase 7: check run logs | "query data" | `d360_query_sql` with the latest-run query on `DataCustomCodeLogs__dll` from run-logs.md | `sf api request rest .../ssot/query-sql`, UI: Data Explorer |
29
+
30
+ ## Rules
31
+
32
+ - **Confirm with the user before every create, update, delete or run.** These change the org.
33
+ - Delete order for a redeploy or cleanup: **data transform first, then code extension.**
34
+ - Prefer the `sf data-code-extension ... deploy` CLI for deploys. It builds the package with Docker. Use MCP for discovery, runs, history and deletes.
35
+ - If a call fails with `Session not found` (HTTP 404), the server dropped an idle session. Retry the same call once; many clients reconnect on the next call. If it fails again, fall back to the CLI for this step, and tell the user to reconnect or restart the Data 360 MCP server in their agent's MCP settings.
36
+ - If the MCP server returns an auth error, ask the user to re-authenticate in their MCP client. Never extract or print tokens or client IDs.