@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
@@ -46,7 +46,7 @@ Identical body shape to CREATE, with `"method": "PUT"`.
46
46
  }
47
47
  ```
48
48
 
49
- The response body contains `xmlRep` with the persisted XML. Use this as the verification step after every CREATE/UPDATE, and to confirm the UI-renderable-contract check (see `SKILL.md` step 12): the parent set's `xmlRep` must carry server-added `<builderCompatible>false</builderCompatible>` and `<builderValidated>false</builderValidated>` even though neither was authored.
49
+ The response body contains `xmlRep` with the persisted XML. Use this as the verification step after every CREATE/UPDATE, and to confirm the UI-renderable-contract check (see `SKILL.md` step 12): the parent set's `xmlRep` must carry the authored `<builderCompatible>true</builderCompatible>` (or `false` if the user opted out) plus a server-set `<builderValidated>` (observed `true` when `builderCompatible=true` was authored; do not assert a specific value).
50
50
 
51
51
  ### DELETE — Data 360 MCP `d360_data_governance_access_policy_delete` (NOT `/headless/metadata`)
52
52
 
@@ -59,7 +59,7 @@ Data 360 MCP: execute(tool=d360_data_governance_access_policy_delete, params={ "
59
59
  A `PolicyRuleDefinitionSet` created via this skill surfaces as an **Access Policy** keyed by its developer name. `access_policy_delete` is a **whole-policy delete** — one call removes the policy **and every embedded rule** (its `PolicyRuleDefinition` members). Consequences:
60
60
 
61
61
  - There is **no leaf-before-parent ordering** and **no discrete single-rule delete**. To drop a single rule while keeping the policy, re-author the surviving rule set via `d360_data_governance_access_policy_rule_replace`.
62
- - Hand-authored sets are `builderCompatible: false`, so `d360_data_governance_access_policy_list` needs `includeIncompatible: true` to enumerate them; `access_policy_get` and `access_policy_delete` address them by `name` regardless.
62
+ - Sets with the default `builderCompatible: true` appear in a plain `d360_data_governance_access_policy_list`; opted-out (`false`) sets need `includeIncompatible: true` to enumerate them. `access_policy_get` and `access_policy_delete` address sets by `name` regardless.
63
63
  - Confirm the delete with `d360_data_governance_access_policy_get` by `name`: a not-found result (or the policy being absent from an `includeIncompatible` list) is the success signal.
64
64
 
65
65
  There is no `sf` CLI fallback. On the off-core Data Cloud path this delete can fail on DC connectivity — surface that as a provisioning gap to the operator.
@@ -73,7 +73,7 @@ Outside contract: `SESSION_CONSUMER_ID`, `CONTEXT_AGENT_ID`, `CONTEXT_AGENT_VERS
73
73
 
74
74
  | Element | Notes |
75
75
  |---------|-------|
76
- | `<clause>` | `WHEN` or `UNLESS` — match the wrapper |
76
+ | `<clause>` | Always `WHEN`. Do not author `UNLESS`; use the negated operator (`CONTAINS_NONE`, `NOT_EQUALS`) instead |
77
77
  | `<operator>` | Always required |
78
78
  | `<resourcePath>` | What about the resource to inspect |
79
79
  | `<principalPath>` | What about the principal to inspect |
@@ -42,6 +42,39 @@ Start with two conditions in this exact order: entity type `OBJECT`, entity type
42
42
 
43
43
  The validated FLS example uses `Forbid`. Condition 1 is entity type `FIELD`; it has no `OBJECT` condition. Add requested principal conditions and tag/classification resource conditions after it. Construct the conjunction from the requested semantics rather than copying the example's grouping blindly. This evidence does not establish whether a Permit FLS variant is valid.
44
44
 
45
+ ### Deny unless
46
+
47
+ Request: "block field F for everyone unless they have custom permission P" (or "only people with P can see it"). The UI-renderable shape is `Forbid` + `Read` + `FIELD`, with the exemption written as a negated principal condition in the `WHEN` conjunction. Do not emit `<unlessPolicyRuleDefinitionClauseConjunction>` or `<clause>UNLESS</clause>`: the Data Governance UI nulls it on save and cannot open the policy.
48
+
49
+ ```xml
50
+ <whenPolicyRuleDefinitionClauseConjunction>
51
+ <conditions> <!-- 1: entity type -->
52
+ <clause>WHEN</clause><operator>IS</operator>
53
+ <policyRuleValueSet><valueText>FIELD</valueText></policyRuleValueSet>
54
+ <resourcePath>ENTITYTYPE</resourcePath>
55
+ </conditions>
56
+ <conditions> <!-- 2: the field's tag -->
57
+ <clause>WHEN</clause><operator>CONTAINS_ANY</operator>
58
+ <policyRuleValueSet>
59
+ <valueReference>{RESOLVED_TAG}</valueReference>
60
+ <valueReferenceType>STANDARD_TAG</valueReferenceType>
61
+ </policyRuleValueSet>
62
+ <resourcePath>TAG</resourcePath>
63
+ </conditions>
64
+ <conditions> <!-- 3: user.permission != P -->
65
+ <clause>WHEN</clause><operator>CONTAINS_NONE</operator>
66
+ <policyRuleValueSet>
67
+ <valueReference>{RESOLVED_CUSTOM_PERMISSION}</valueReference>
68
+ <valueReferenceType>CUSTOM_PERMISSION</valueReferenceType>
69
+ </policyRuleValueSet>
70
+ <principalPath>ASSIGNED_PERMISSIONS_PATH</principalPath>
71
+ </conditions>
72
+ <conjunctionExpression>(AND 1 (AND 2) (AND 3))</conjunctionExpression>
73
+ </whenPolicyRuleDefinitionClauseConjunction>
74
+ ```
75
+
76
+ Check before deploy: no `UNLESS` anywhere, the permission condition uses `CONTAINS_NONE` (not `CONTAINS_ANY`), and the permission is a resolved developer name. If the user instead asks to deny the permission *holders*, that is `CONTAINS_ANY` and a different request; ask rather than rewriting. The category is `GOVERNANCE_POLICY_RULE_DEFINITION` for this DATACLOUD FLS/OLS shape, as in `examples/FieldReadDeny/`.
77
+
45
78
  ## Masking
46
79
 
47
80
  Use category `TRANSFORM_POLICY_RULE_DEFINITION`, effect `Transform`, action `Read`, and resource scope `FIELD`. Set `resourceTransform` to the requested transform. Condition 1 is entity type `FIELD`. Do not add an `OBJECT` condition.
@@ -26,7 +26,7 @@ Source: `conjunctionExpressionSteelthread`
26
26
  </unlessPolicyRuleDefinitionClauseConjunction>
27
27
  ```
28
28
 
29
- > Note: `<unlessPolicyRuleDefinitionClauseConjunction>` blocks are **not UI-editable** — silently dropped on first save. Prefer WHEN + negated operator for UI-compatible policies.
29
+ > Note: `<unlessPolicyRuleDefinitionClauseConjunction>` blocks are **not UI-editable** — silently dropped on first save. Never author UNLESS; always use WHEN + negated operator (see `policy-shapes.md` "Deny unless"). This block is shown only so you can recognize it in retrieved API-only policies.
30
30
 
31
31
  ---
32
32
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  The Data Governance Policy Builder edits a **strict subset** of the MDAPI. Anything outside that subset must be maintained through the MDAPI package path for the policy's lifetime — admins cannot open it in the builder without silent data loss or a hard crash.
4
4
 
5
- > **Default goal**: produce policies that can eventually be validated in Policy Builder. `<builderCompatible>` and `<builderValidated>` are both server-managed fields — the server sets them on save/create, authoring either one in generated XML has no effect, and authoring `true` is never legitimate regardless of how many items on this checklist a shape satisfies. Omit both. Only an actual Policy Builder open/save/retrieve comparison can establish UI compatibility for a specific shape.
5
+ > **Default goal**: produce policies that can eventually be validated in Policy Builder. Author `<builderCompatible>true</builderCompatible>` on the set by default; omit it (or author `false`) only when the user explicitly asks for a policy that is not builder-compatible. `<builderValidated>` is server-managed — never author it. Authoring `builderCompatible=true` declares intent; only an actual Policy Builder open/save/retrieve comparison can establish UI compatibility for a specific shape, so keep the checklist below satisfied.
6
6
 
7
- > **Evidence boundary:** MDAPI dry-run, deploy, and retrieve prove metadata validity and persistence. They do not prove that Policy Builder can open and save the policy without normalization or loss. A retrieved set with `<builderCompatible>false</builderCompatible>` is persisted-shape evidence only.
7
+ > **Evidence boundary:** MDAPI dry-run, deploy, and retrieve prove metadata validity and persistence. They do not prove that Policy Builder can open and save the policy without normalization or loss. A retrieved set's `<builderCompatible>` and `<builderValidated>` values are persisted-shape evidence only.
8
8
 
9
- > **ACCESS distinction:** An OR-of-ENTITYTYPE discriminator prevents the builder crash for object-level ACCESS-shaped rules, but ACCESS categories still do not round-trip as ACCESS; the builder rewrites them to GOVERNANCE. Treat explicitly requested ACCESS output as API-only and record that status in the description or an XML comment, not in compatibility fields.
9
+ > **ACCESS distinction:** An OR-of-ENTITYTYPE discriminator prevents the builder crash for object-level ACCESS-shaped rules, but ACCESS categories still do not round-trip as ACCESS; the builder rewrites them to GOVERNANCE. Treat explicitly requested ACCESS output as API-only and record that status in the description or an XML comment and author `<builderCompatible>false</builderCompatible>` on the parent set (the policy is not authored with builder-renderable intent).
10
10
 
11
11
  ---
12
12
 
@@ -95,7 +95,7 @@ The policy will **not** round-trip through the UI without data loss or silent fa
95
95
  - [ ] `ruleConsumer` ≠ `DATACLOUD`
96
96
  - [ ] More than one `<action>`, or action is not `Read` / `TupleRead`
97
97
  - [ ] **No top-level `resourcePath=ENTITYTYPE` discriminator group** for ACCESS/GOVERNANCE rules — this causes a **hard crash** (`Cannot use 'in' operator to search for 'Permit' in undefined`), not a graceful degradation. OLS uses an `(OR OBJECT FIELD)` group; FLS uses `FIELD` only. A `TupleRead` OLS rule without its OR group still deploys and works at runtime — the crash is UI-only.
98
- - [ ] **Bare top-level condition index** in `<conjunctionExpression>` (e.g. `3` instead of `(AND 3)`) — causes crash in `buildCriteria` (`param.params.map(...)` = `undefined.map()`)
98
+ - [ ] **Bare top-level condition index** in `<conjunctionExpression>` for a tag/classification, permission, record-field or dataspace condition (e.g. `3` instead of `(AND 3)`) — causes crash in `buildCriteria` (`param.params.map(...)` = `undefined.map()`). Only a solitary `ENTITYTYPE IS FIELD` condition (FLS/Transform) may stay bare, as in `examples/FieldReadDeny`.
99
99
  - [ ] More than one `<resourceDomain>`
100
100
  - [ ] An `<unlessPolicyRuleDefinitionClauseConjunction>` block present
101
101
  - [ ] Any `<conditions>` uses `<clause>UNLESS</clause>`
@@ -138,7 +138,7 @@ Whenever a request would produce a UI-incompatible policy:
138
138
 
139
139
  3. **Wait for explicit confirmation.** Do not write the file until confirmed.
140
140
 
141
- 4. **On confirmation**, add an in-source marker to `<description>` (or a comment above the rule): `# API-only: not editable in Data Governance Policy Builder. Reasons: <bullets>`. Do not author server-managed compatibility fields on the parent set.
141
+ 4. **On confirmation**, add an in-source marker to `<description>` (or a comment above the rule): `# API-only: not editable in Data Governance Policy Builder. Reasons: <bullets>`. Author `<builderCompatible>false</builderCompatible>` on the parent set; never author `builderValidated` (server-managed).
142
142
 
143
143
  ---
144
144
 
@@ -7,10 +7,10 @@ metadata:
7
7
  minApiVersion: "60.0"
8
8
  relatedSkills:
9
9
  - "platform-custom-report-type-generate"
10
- mcpTools:
11
- salesforce-api-context:
12
- tools: ["get_metadata_type_context", "get_metadata_type_sections", "get_metadata_type_shape"]
13
- semver: ">=1.0.0"
10
+ - "platform-metadata-api-context-get"
11
+ cliTools:
12
+ - tool: ["sf"]
13
+ semver: ">=2.0.0"
14
14
  ---
15
15
 
16
16
  ## Overview
@@ -19,9 +19,11 @@ Lightning Reports define how Salesforce data is queried, grouped, filtered, and
19
19
 
20
20
  ## Critical Rules (Read First)
21
21
 
22
+ **REQUIRED before authoring XML:** Invoke `platform-metadata-api-context-get` and consume only the required sections of its `Report` entry (`fields`, relevant `sub_types`, and targeted schema/examples as needed). These assets describe XML structure, not the target org's report-type columns; use `references/column-names.md` or its report-type lookup for column names.
23
+
22
24
  **TOP DEPLOYMENT KILLERS — check these BEFORE generating any report:**
23
25
  1. **Grouping fields in columns** — Fields in `<groupingsDown>` or `<groupingsAcross>` must NEVER also appear in `<columns>`
24
- 2. **Wrong column names (REQUIRED lookup)** — Before writing any `<columns>`, `<groupingsDown>`, `<groupingsAcross>`, filter `<column>`, or chart `<groupingColumn>`, take every name from the table for the chosen `<reportType>` in `references/column-names.md`, or confirm it with `get_metadata_type_sections`. NEVER derive a column name from the field's API name: `CASENUMBER`, `ISCLOSED`, `PHONE`, `MAILING_CITY` all fail (use `CASE_NUMBER`, a `STATUS` filter, `PHONE1`, `ADDRESS2_CITY`)
26
+ 2. **Wrong column names (REQUIRED lookup)** — Before writing any `<columns>`, `<groupingsDown>`, `<groupingsAcross>`, filter `<column>`, or chart `<groupingColumn>`, take every name from the table for the chosen `<reportType>` in `references/column-names.md`, or confirm it with the report-type lookup documented there. NEVER derive a column name from the field's API name: `CASENUMBER`, `ISCLOSED`, `PHONE`, `MAILING_CITY` all fail (use `CASE_NUMBER`, a `STATUS` filter, `PHONE1`, `ADDRESS2_CITY`)
25
27
  3. **Wrong scope** — LeadList uses `org`, not `organization`
26
28
  4. **Filter column dot notation** — Filter `<column>` values use FLAT names (`INDUSTRY`, `TYPE`) NOT dot notation (`ACCOUNT.INDUSTRY` is INVALID)
27
29
  5. **Multi-value picklist filters** — Use ONE `<criteriaItems>` with comma-separated `<value>` (e.g., `Technology,Financial Services`). Do NOT split into multiple criteriaItems with booleanFilter
@@ -41,7 +43,7 @@ Lightning Reports define how Salesforce data is queried, grouped, filtered, and
41
43
 
42
44
  ### Rule 2: Use Platform Column Names
43
45
 
44
- Report metadata uses **platform report column names**, NOT raw API field names. **ALWAYS call `get_metadata_type_sections` or `get_metadata_type_context` to confirm valid column names.** See `references/column-names.md` for common mappings per report type.
46
+ Report metadata uses **platform report column names**, NOT raw API field names. **ALWAYS confirm valid column names** using `references/column-names.md` or its report-type lookup. The required schema-context invocation above verifies XML structure, not report-type columns.
45
47
 
46
48
  ### Rule 3: Valid Report Type Required
47
49
 
@@ -95,6 +97,20 @@ Determine `<sourceDir>` from `sfdx-project.json` (commonly `force-app/main/defau
95
97
 
96
98
  Use `INTERVAL_CURRENT` for "this quarter", `INTERVAL_CURY` for "this year", `INTERVAL_LAST30` for last 30 days. Do NOT use `INTERVAL_CURQ` — it is not valid. See `references/date-intervals.md` for the full list.
97
99
 
100
+ ### Rule 16: Custom Summary Formulas Need Summary/Matrix + a Grouping Context
101
+
102
+ `<aggregates>` (custom summary formulas, CSFs) evaluate **only** in `Summary`, `Matrix`, or `Joined` reports — never `Tabular`. Each CSF must declare where it is computed via `<downGroupingContext>` (and `<acrossGroupingContext>` for Matrix): use `GRAND_SUMMARY` for the report total, or a 0-based grouping level (`0`, `1`, …). A context that references a grouping level that does not exist is a deploy failure. See `references/summary-formulas-sorting-limits.md`.
103
+
104
+ ### Rule 17: Report-Level Sort Is `<sortColumn>` + `<sortOrder>`; Group Sort Lives on the Grouping
105
+
106
+ - **Detail sort:** set top-level `<sortColumn>` (a platform column name that also appears in `<columns>`) plus `<sortOrder>` (`Asc` or `Desc`).
107
+ - **Grouping sort:** do NOT use `<sortColumn>` — set `<sortOrder>` on the `<groupingsDown>` / `<groupingsAcross>` element. To sort a grouping by a measure, match `<sortType>` to what `<sortByName>` names: `<sortType>Aggregate</sortType>` with a summarized column name (e.g. `AMOUNT`, which must carry an `<aggregateTypes>`, or `RowCount`); `<sortType>CustomSummaryFormula</sortType>` with a CSF `<developerName>` (e.g. `FORMULA1`). Pairing `Aggregate` with a CSF name deploys but silently sorts by the grouping field instead. Default `<sortType>` is `Column`.
108
+ - `<sortOrder>` is case-sensitive: `Asc` / `Desc` (not `ASC`/`Ascending`). See `references/summary-formulas-sorting-limits.md`.
109
+
110
+ ### Rule 18: Row Limit / Top-N Is Tabular-Only and Requires a Sort
111
+
112
+ `<rowLimit>` (the "Row Limit" / top-N feature used for tabular dashboard components) is valid **only** on `Tabular` reports and **must** be paired with `<sortColumn>` + `<sortOrder>` that define what "top" means: `Desc` = top N, `Asc` = bottom N. Setting `<rowLimit>` on Summary/Matrix, or without a sort column, fails to deploy. Max 99. See `references/summary-formulas-sorting-limits.md`.
113
+
98
114
  ## Top-Level Elements
99
115
 
100
116
  | Element | Required | Notes |
@@ -105,8 +121,12 @@ Use `INTERVAL_CURRENT` for "this quarter", `INTERVAL_CURY` for "this year", `INT
105
121
  | `<scope>` | Recommended | `organization` (or `org` for LeadList) |
106
122
  | `<columns>` | Yes | Field columns — each has `<field>` and optional `<aggregateTypes>` |
107
123
  | `<filter>` | No | Contains `<criteriaItems>` with `<column>`, `<operator>`, `<value>` |
108
- | `<groupingsDown>` | Conditional | Row groupings: `<field>`, `<dateGranularity>`, `<sortOrder>` |
124
+ | `<groupingsDown>` | Conditional | Row groupings: `<field>`, `<dateGranularity>`, `<sortOrder>`, and `<sortType>`/`<sortByName>` for measure sort |
109
125
  | `<groupingsAcross>` | Conditional | Column groupings (Matrix only) |
126
+ | `<aggregates>` | No | Custom summary formulas (Summary/Matrix/Joined only) — see Rule 16 |
127
+ | `<sortColumn>` | No | Platform column name to sort detail rows by; pair with `<sortOrder>`; required for `<rowLimit>` |
128
+ | `<sortOrder>` | No | `Asc` or `Desc` (case-sensitive) — used at report level and on each grouping |
129
+ | `<rowLimit>` | No | Tabular-only top-N (1–99); requires `<sortColumn>` + `<sortOrder>` — see Rule 18 |
110
130
  | `<timeFrameFilter>` | Recommended | `<dateColumn>`, `<interval>`, optional `<startDate>`/`<endDate>` |
111
131
  | `<chart>` | No | See `references/chart-types.md` |
112
132
  | `<buckets>` | No | Bucket field definitions |
@@ -144,7 +164,7 @@ Common operators: `equals`, `notEqual`, `lessThan`, `greaterThan`, `contains`, `
144
164
 
145
165
  1. **Gather Requirements** — object, fields, groupings, filters, chart needs
146
166
  2. **Determine Format** — no groupings → Tabular; row groupings → Summary; row + column → Matrix; multiple objects → Joined
147
- 3. **Look Up Every Column Name (required)** — list every field the report needs, then take each name from the `references/column-names.md` table for the chosen `<reportType>` or confirm it with `get_metadata_type_sections`. Do not write XML until every column, grouping, filter column, and chart grouping column is looked up
167
+ 3. **Look Up Every Column Name (required)** — list every field the report needs, then take each name from the `references/column-names.md` table for the chosen `<reportType>` or confirm it with the report-type lookup documented there. Do not write XML until every column, grouping, filter column, and chart grouping column is looked up
148
168
  4. **Author Metadata** — start from closest example in `examples/` and adapt
149
169
  5. **Create Folder** — generate folder directory + `<FolderName>-meta.xml` with `<folderShares>`
150
170
  6. **Validate** — run through `references/verification-checklist.md`
@@ -159,6 +179,7 @@ Common operators: `equals`, `notEqual`, `lessThan`, `greaterThan`, `contains`, `
159
179
  | `references/filter-operations.md` | When building filters — complete operator reference |
160
180
  | `references/verification-checklist.md` | Step 6 — pre-deploy validation |
161
181
  | `references/errors-and-troubleshooting.md` | When fields are missing or deployment fails |
182
+ | `references/summary-formulas-sorting-limits.md` | When adding custom summary formulas, sorting, or a row limit / top-N (Rules 16–18) |
162
183
  | `examples/TabularOpportunitiesReport.report-meta.xml` | Tabular report template |
163
184
  | `examples/OpportunitiesByStageReport.report-meta.xml` | Summary report with chart |
164
185
  | `examples/OpportunitiesByStageAndQuarter.report-meta.xml` | Matrix report template |
@@ -1,6 +1,17 @@
1
1
  # Column Names by Report Type
2
2
 
3
- Report metadata uses **platform report column names**, NOT raw API field names. These names are report-type-specific — ALWAYS verify using MCP tools (`get_metadata_type_sections` or `get_metadata_type_context`).
3
+ Report metadata uses **platform report column names**, NOT raw API field names. These names are report-type-specific — ALWAYS verify against the tables below, the custom report type's section layout, or the target org's report-type metadata.
4
+
5
+ ## Target-org report-type lookup
6
+
7
+ For columns not covered below, use the read-only [Report Type REST resource](https://developer.salesforce.com/docs/analytics/salesforce-analytics-rest-api/guide/analytics-api-reporttypes-reference-reporttype.html):
8
+
9
+ ```bash
10
+ sf api request rest '/services/data' --target-org <alias>
11
+ sf api request rest '/services/data/v<supported-version>/analytics/reportTypes/<report-type-API-name>' --target-org <alias>
12
+ ```
13
+
14
+ Select an API version returned by the org. Match fields through `reportTypeMetadata.categories[].columns`: use each column map's key as the report column name, not its label or `entityColumnName`. Check `filterable` before using a filter. For custom report types, confirm the XML `$` path against the section layout below; do not blindly copy REST field IDs into XML. Metadata schema assets do not enumerate org-specific columns. If neither the bundled mappings/layout nor a successful lookup establishes a column, report the gap and stop rather than inventing it.
4
15
 
5
16
  ## Standard Report Type API Names
6
17
 
@@ -5,7 +5,7 @@ Read this when a generated `.report-meta.xml` is rejected during deployment or f
5
5
  | Error | Cause | Fix |
6
6
  |-------|-------|-----|
7
7
  | `Invalid report type 'X'` | Report type doesn't exist or isn't deployed in the target org | Verify the report type API name. For custom report types, ensure `<deployed>true</deployed>` is set. Use `platform-custom-report-type-generate` skill to create if missing |
8
- | `Invalid field 'X' for report type 'Y'` | Column name not recognized for the report type — used raw field API name instead of platform column name | Use platform column names (e.g. `ACCOUNT_NAME` not `Account.Name`). For custom fields, use `ObjectApiName.FieldApiName__c`. Use `get_metadata_type_shape` MCP tool to discover valid column names |
8
+ | `Invalid field 'X' for report type 'Y'` | Column name not recognized for the report type — used raw field API name instead of platform column name | Use platform column names (e.g. `ACCOUNT_NAME` not `Account.Name`). For custom fields, use `ObjectApiName.FieldApiName__c`. Use the report-type lookup in `column-names.md` to discover valid column names |
9
9
  | `Grouping field 'X' not found in columns` | A `<groupingsDown>` or `<groupingsAcross>` field is not also listed as a `<columns>` entry | Add the grouping field as a `<columns>` block |
10
10
  | `Chart not valid for Tabular format` | `<chart>` element present on a Tabular report | Remove the chart or change format to `Summary` or `Matrix` |
11
11
  | `Summary report requires at least one grouping` | Format is `Summary` but no `<groupingsDown>` is defined | Add at least one `<groupingsDown>` block or change format to `Tabular` |
@@ -0,0 +1,118 @@
1
+ # Custom Summary Formulas, Sorting & Row Limits
2
+
3
+ Covers three report-metadata capabilities beyond the core columns/groupings/filters:
4
+ custom summary formulas (`<aggregates>`), report and grouping sort
5
+ (`<sortColumn>` / `<sortOrder>` / grouping `<sortType>`), and tabular row limit /
6
+ top-N (`<rowLimit>`). See Rules 16–18 in `SKILL.md`.
7
+
8
+ ## Custom Summary Formulas (`<aggregates>`)
9
+
10
+ Custom summary formulas (CSFs) compute a value from a report's summaries. They are valid
11
+ **only** in `Summary`, `Matrix`, and `Joined` reports.
12
+
13
+ **Summary report** (no `<acrossGroupingContext>`):
14
+
15
+ ```xml
16
+ <aggregates>
17
+ <calculatedFormula>AMOUNT:SUM / RowCount</calculatedFormula>
18
+ <datatype>currency</datatype>
19
+ <developerName>FORMULA1</developerName>
20
+ <downGroupingContext>GRAND_SUMMARY</downGroupingContext>
21
+ <isActive>true</isActive>
22
+ <isCrossBlock>false</isCrossBlock>
23
+ <masterLabel>Avg Deal Size</masterLabel>
24
+ <scale>2</scale>
25
+ </aggregates>
26
+ ```
27
+
28
+ **Matrix report only**: add `<acrossGroupingContext>` next to `<downGroupingContext>`:
29
+
30
+ ```xml
31
+ <acrossGroupingContext>GRAND_SUMMARY</acrossGroupingContext>
32
+ <downGroupingContext>GRAND_SUMMARY</downGroupingContext>
33
+ ```
34
+
35
+ | Sub-element | Notes |
36
+ |-------------|-------|
37
+ | `<developerName>` | Unique per report (`FORMULA1`, `FORMULA2`, …). Referenced by charts and grouping sort (`<sortByName>` with `<sortType>CustomSummaryFormula</sortType>`). |
38
+ | `<calculatedFormula>` | Uses summary references such as `AMOUNT:SUM`, `AMOUNT:AVG`, and `RowCount`. |
39
+ | `<datatype>` | `number`, `currency`, or `percent`. |
40
+ | `<scale>` | Decimal places (0–18). |
41
+ | `<downGroupingContext>` | `GRAND_SUMMARY` or a 0-based grouping level (`0`, `1`, …). Required. |
42
+ | `<acrossGroupingContext>` | Matrix only; `GRAND_SUMMARY` or a 0-based across-grouping level. |
43
+ | `<isCrossBlock>` | `true` only for cross-block formulas in Joined reports. |
44
+
45
+ Include `<acrossGroupingContext>` **only** for Matrix reports. On a Summary report it fails
46
+ to deploy with `acrossBreakContext not allowed for summary reports, only for matrix reports`
47
+ — use `<downGroupingContext>` alone. A grouping context that references a level the report
48
+ does not have is also a deployment failure.
49
+
50
+ ## Sorting (`<sortColumn>`, `<sortOrder>`, grouping `<sortType>`)
51
+
52
+ **Sort detail rows** (Tabular, or the detail area of Summary/Matrix):
53
+
54
+ ```xml
55
+ <sortColumn>AMOUNT</sortColumn>
56
+ <sortOrder>Desc</sortOrder>
57
+ ```
58
+
59
+ The `<sortColumn>` must be a platform column name that also appears in `<columns>`.
60
+ `<sortOrder>` is case-sensitive — `Asc` or `Desc`.
61
+
62
+ **Sort a grouping by its own value:**
63
+
64
+ ```xml
65
+ <groupingsDown>
66
+ <field>STAGE_NAME</field>
67
+ <sortOrder>Asc</sortOrder>
68
+ </groupingsDown>
69
+ ```
70
+
71
+ **Sort a grouping by a summary** (e.g. show the group with the biggest total first):
72
+
73
+ ```xml
74
+ <groupingsDown>
75
+ <field>STAGE_NAME</field>
76
+ <sortType>Aggregate</sortType>
77
+ <sortByName>AMOUNT</sortByName>
78
+ <sortOrder>Desc</sortOrder>
79
+ </groupingsDown>
80
+ ```
81
+
82
+ With `<sortType>Aggregate</sortType>`, `<sortByName>` = a summarized column name (e.g.
83
+ `AMOUNT`, which must carry an `<aggregateTypes>`, or `RowCount`). Do NOT use the Analytics
84
+ REST `s!` prefix here — in report metadata the plain column name is required. Default
85
+ `<sortType>` is `Column` (sort by the grouping's own value).
86
+
87
+ **Sort a grouping by a custom summary formula**: use `<sortType>CustomSummaryFormula</sortType>`
88
+ with the CSF's `<developerName>`:
89
+
90
+ ```xml
91
+ <groupingsDown>
92
+ <field>STAGE_NAME</field>
93
+ <sortType>CustomSummaryFormula</sortType>
94
+ <sortByName>FORMULA1</sortByName>
95
+ <sortOrder>Desc</sortOrder>
96
+ </groupingsDown>
97
+ ```
98
+
99
+ Do NOT pair `<sortType>Aggregate</sortType>` with a CSF name: it deploys without error but
100
+ the sort silently falls back to the grouping field.
101
+
102
+ ## Row Limit / Top-N (`<rowLimit>`)
103
+
104
+ Row Limit restricts a **Tabular** report to the top or bottom N rows — commonly used for
105
+ "Top N" dashboard table components. It requires a sort column that defines the ranking.
106
+
107
+ ```xml
108
+ <format>Tabular</format>
109
+ <rowLimit>10</rowLimit>
110
+ <sortColumn>AMOUNT</sortColumn>
111
+ <sortOrder>Desc</sortOrder>
112
+ ```
113
+
114
+ - `Desc` → top N; `Asc` → bottom N.
115
+ - Valid only on `Tabular`; requires `<sortColumn>` + `<sortOrder>`.
116
+ - Value 1–99.
117
+
118
+ Setting `<rowLimit>` on a Summary/Matrix report, or without a sort column, fails to deploy.
@@ -53,3 +53,15 @@ Run through these checks before deploying any generated report metadata.
53
53
  - [ ] Maximum 3 cross-filters per report
54
54
  - [ ] Maximum 5 criteria items per cross-filter
55
55
  - [ ] `<operation>` is `with` or `without`
56
+
57
+ ## Custom Summary Formula Checks (if applicable)
58
+ - [ ] `<aggregates>` only on Summary/Matrix/Joined (never Tabular)
59
+ - [ ] `<datatype>` is `number`, `currency`, or `percent`; `<scale>` is 0–18
60
+ - [ ] `<downGroupingContext>` (and `<acrossGroupingContext>` for Matrix) resolves to `GRAND_SUMMARY` or an existing grouping level
61
+ - [ ] `<developerName>` is unique within the report
62
+
63
+ ## Sort & Row Limit Checks (if applicable)
64
+ - [ ] `<sortColumn>` (when present) names a column that appears in `<columns>`; `<sortOrder>` is exactly `Asc` or `Desc`
65
+ - [ ] Grouping `<sortType>Aggregate</sortType>` pairs with a summarized column name in `<sortByName>` (like `AMOUNT` or `RowCount` — NOT the Analytics-REST `s!` prefix)
66
+ - [ ] Grouping sorted by a CSF uses `<sortType>CustomSummaryFormula</sortType>` with the CSF `<developerName>` (like `FORMULA1`) — `Aggregate` + a CSF name deploys but silently sorts by the grouping field
67
+ - [ ] `<rowLimit>` only on `Tabular`, value 1–99, with `<sortColumn>` + `<sortOrder>` present
@@ -35,7 +35,7 @@ Before proceeding, confirm with the user if not already clear:
35
35
  ### For Create operations:
36
36
  - Which object should the sharing rule apply to? (standard or custom object API name)
37
37
  - What type of rule? (criteria-based, role/group-based owner rule, or guest user rule)
38
- - Who should records be shared with? (role name, group, portal role, or guest user nickname)
38
+ - Who should records be shared with? (role name, public group, portal role, or guest user nickname; a queue can't be shared with)
39
39
  - What access level? (Read or Read/Write)
40
40
  - For criteria-based rules: what field conditions should match?
41
41
 
@@ -55,7 +55,7 @@ Gather or infer before proceeding:
55
55
 
56
56
  - **Object API name**: The sObject the rule targets (e.g., `Account`, `Property__c`)
57
57
  - **Rule type**: One of `sharingCriteriaRules`, `sharingOwnerRules`, or `sharingGuestRules`
58
- - **Shared-to target**: Role, group, portal role, or guest user community nickname
58
+ - **Shared-to target**: Role, public group, portal role, or guest user community nickname. A queue can't be a shared-to target
59
59
  - **Access level**: `Read` or `Edit` (maps to Read-Only or Read/Write)
60
60
  - **Criteria** (for criteria/guest rules): Field name, operation, and value for each filter item
61
61
 
@@ -93,6 +93,12 @@ Steps are sequential within each phase. Phase 3 branches by operation type — e
93
93
 
94
94
  7. **For Guest rules**: the `sharedTo` must use `<guestUser>` with the site guest user's community nickname. Never use `<role>` or `<group>` for guest rules.
95
95
 
96
+ **A queue can't be the shared-to target.** A queue is valid only as the `<sharedFrom>` of an owner rule (records owned by the queue). If the user asks to share records with a queue, or the shared-with name doesn't resolve as a role or public group, check whether it is a queue:
97
+ ```bash
98
+ sf data query --query "SELECT Id, DeveloperName, Name FROM Group WHERE Type = 'Queue' AND (DeveloperName = '<name>' OR Name = '<name>')" --target-org <org>
99
+ ```
100
+ If it is a queue, stop before writing any file: tell the user a sharing rule can't share records with a queue, and offer a public group with the same members or a role instead. Never put a queue in `<sharedTo>`, as `<queue>` or `<group>`: the deploy fails with "field integrity exception: unknown (invalid user or group)".
101
+
96
102
  ### Phase 3 — Execute Operation
97
103
 
98
104
  #### For Get:
@@ -159,6 +165,7 @@ Steps are sequential within each phase. Phase 3 branches by operation type — e
159
165
  - [ ] Does `<fullName>` use PascalCase with no spaces?
160
166
  - [ ] Is `<label>` present and human-readable?
161
167
  - [ ] Is `<accessLevel>` one of `Read` or `Edit`?
168
+ - [ ] Is `<sharedTo>` free of queues (no `<queue>`, and no queue name in `<group>`)?
162
169
 
163
170
  ### Criteria Rule Checks
164
171
  - [ ] Is `<includeRecordsOwnedByAll>` present (required boolean)?
@@ -172,7 +179,7 @@ Steps are sequential within each phase. Phase 3 branches by operation type — e
172
179
 
173
180
  ### Owner Rule Checks
174
181
  - [ ] Does the rule have both `<sharedFrom>` and `<sharedTo>` elements?
175
- - [ ] Do both use valid `<role>`, `<roleAndSubordinates>`, or `<group>` targets?
182
+ - [ ] Do both use valid `<role>`, `<roleAndSubordinates>`, or `<group>` targets? (`<sharedFrom>` may also use `<queue>`; `<sharedTo>` never can)
176
183
 
177
184
  ### Edit Operation Checks
178
185
  - [ ] Was the edit against a freshly retrieved file (not a stale local copy)?
@@ -203,6 +210,7 @@ Steps are sequential within each phase. Phase 3 branches by operation type — e
203
210
  |-----------|-----------|
204
211
  | One `.sharingRules-meta.xml` file per object | Platform requirement — multiple files cause deployment errors |
205
212
  | Guest rules must use `<guestUser>` in `sharedTo` | Using `<role>` or `<group>` causes: "Specify a guest user's nickname for the guestUser field" |
213
+ | A queue can't be a `sharedTo` target | Queues are valid only in `sharedFrom` of owner rules. A queue in `sharedTo` (as `<queue>` or `<group>`) fails at deploy with: "field integrity exception: unknown (invalid user or group)" |
206
214
  | Account rules require `<accountSettings>` | Without it: "AccountSettings is required for account sharing rules" |
207
215
  | `includeRecordsOwnedByAll` is required on criteria rules | Missing it causes: "Required field is missing: sharingCriteriaRules" |
208
216
  | `includeHVUOwnedRecords` is required on guest rules | Missing it causes deployment failure |
@@ -224,6 +232,7 @@ Steps are sequential within each phase. Phase 3 branches by operation type — e
224
232
  | Issue | Resolution |
225
233
  |-------|------------|
226
234
  | Guest rule uses `<role>` instead of `<guestUser>` | Replace with `<guestUser>CommunityNickname</guestUser>` |
235
+ | User asks to share records with a queue | Not supported — don't write the rule. Explain that a queue can only be the owned-by side of an owner rule, and offer a public group with the same members or a role |
227
236
  | Account rule missing `accountSettings` | Add `<accountSettings>` with all three access level sub-elements set to `None` |
228
237
  | Criteria rule missing `includeRecordsOwnedByAll` | Add `<includeRecordsOwnedByAll>true</includeRecordsOwnedByAll>` |
229
238
  | Picklist value mismatch | Query the org for valid values before generating criteria |
@@ -153,6 +153,7 @@ The `<sharedTo>` (and `<sharedFrom>` for owner rules) element specifies the targ
153
153
  | `<portalRoleAndSubordinates>PortalRoleName</portalRoleAndSubordinates>` | Portal role + subordinates |
154
154
  | `<allInternalUsers>AllInternalUsers</allInternalUsers>` | All internal users |
155
155
  | `<allCustomerPortalUsers>AllCustomerPortalUsers</allCustomerPortalUsers>` | All customer portal users |
156
+ | `<queue>QueueDeveloperName</queue>` | Records owned by a queue (`sharedFrom` of owner rules only; never valid in `sharedTo`) |
156
157
 
157
158
  ---
158
159
 
@@ -51,6 +51,8 @@ This skill is generic — it works for any Agentforce agent, not just the Help A
51
51
  - **Channel identifier** — MessagingChannel `DeveloperName` (Branch A), or the channel name/context (Branches B/C)
52
52
  - **Target org alias**
53
53
 
54
+ Validate AGENT_DEVELOPER_NAME matches `^[A-Za-z][A-Za-z0-9_]{0,79}$`, and every other input per `references/input-validation.md`, before the first command. On a mismatch, stop and ask; never escape and continue.
55
+
54
56
  ---
55
57
 
56
58
  ## Workflow
@@ -98,9 +100,9 @@ Never bypass this gate — a mistaken production write here reroutes live custom
98
100
 
99
101
  ### Phase 2 — Wire inbound routing
100
102
 
101
- #### Live-traffic warning gate (runs before any branch)
103
+ #### Live-traffic warning gate (before any routing change)
102
104
 
103
- Before making any routing change, detect whether the channel already has active inbound routing (Branch A: non-empty `SessionHandlerType`; Branches B/C: any active RoutingFlow assigned to the service channel). If it does, first check whether the user's prompt already answered the timing choice ("do not cut over" / "wire manually" / "review first" → defer silently; "cut over now" / "activate immediately" → proceed silently). Only if the prompt is silent, warn via `AskUserQuestion` and let the user choose **"Re-route now"** or **"Set up, then wire manually"** — and on any ambiguous or no-selection response, default to the deferred path (never to a live re-route). When deferred, set `DEFER_INBOUND_ROUTING=true`, skip the channel-activation step in the chosen branch, and print the manual wiring instructions at the end of Phase 2.
105
+ Before any routing change (Branches A/B: at Phase 2 start; Branch C: after its Step 1 address choice), detect whether the channel already has active inbound routing. If it does, first check whether the user's prompt already answered the timing choice ("do not cut over" / "wire manually" / "review first" → defer silently; "cut over now" / "activate immediately" → proceed silently). Only if the prompt is silent, warn via `AskUserQuestion` and let the user choose **"Re-route now"** or **"Set up, then wire manually"** — and on any ambiguous or no-selection response, default to the deferred path (never to a live re-route). When deferred, set `DEFER_INBOUND_ROUTING=true`, skip every step that binds the channel or routing address to the agent, and print the manual wiring instructions at the end of Phase 2.
104
106
 
105
107
  If the channel has no existing routing, skip this gate entirely and proceed directly.
106
108
 
@@ -217,7 +219,7 @@ write or verification steps here.
217
219
  | If the channel already has active inbound routing, honor an explicit defer/cutover intent in the prompt without asking; otherwise warn via `AskUserQuestion` and default to defer on ambiguity | Re-routing takes effect immediately and affects live traffic — queue and RoutingFlow creation always proceed; only the activation step is gated, and the safe default is non-destructive |
218
220
  | When deferred, print exact manual wiring instructions before Phase 3 | The operator needs to know precisely what to run when they're ready to cut over |
219
221
  | Never modify the MessagingChannel without retrieving the current metadata first | Overwriting without retrieval discards existing settings |
220
- | Branch A: no RoutingFlow, no agent republish; deploy `sessionHandlerType` + `sessionHandlerQueue` via metadata, then bind `SessionHandlerId` via Data API PATCH | `sessionHandlerAsa` is not accepted by the Metadata API at v67 — the deploy silently drops it, so bot binding must happen via the Data API PATCH after deploy. Bot must be Active before the PATCH |
222
+ | Branch A: no RoutingFlow, no agent republish; deploy `sessionHandlerType` + `sessionHandlerQueue` via metadata, then bind `SessionHandlerId` via Data API PATCH | The Metadata API silently drops `sessionHandlerAsa` at v67, so the bot binds via the PATCH and must be Active first |
221
223
  | Branches B/C: always create a new RoutingFlow — never reuse existing org flows | OOB platform flows commonly have `ActiveVersionId: null` and cannot be referenced |
222
224
  | Branches B/C: use `routingType: Copilot` and `copilotLabel` — not `QueueBased` | `QueueBased` routes to the queue directly; `Copilot` routes to the agent first with the queue as fallback |
223
225
  | Queue `Id` must be queried and embedded in the RoutingFlow XML | The `queueId` parameter requires a hardcoded 18-char record Id — do not leave it empty |
@@ -268,6 +270,7 @@ write or verification steps here.
268
270
 
269
271
  | File | When to read |
270
272
  |---|---|
273
+ | `references/input-validation.md` | Before any command — input grammars, free text |
271
274
  | `references/channel-types.md` | Phase 1 — determine SobjectType and routing branch |
272
275
  | `references/queue-resolution.md` | Phase 1 — queue lookup, creation, and Id capture |
273
276
  | `references/live-traffic-gate.md` | Phase 2 — detection queries, deferred-flow rules, and manual wiring copy for the live-traffic warning gate |
@@ -87,11 +87,13 @@ If a block for the relevant connection type already exists in the file, **add th
87
87
  ## Republish and activate the agent
88
88
 
89
89
  ```bash
90
- sf agent validate authoring-bundle --api-name {AGENT_DEVELOPER_NAME} --json
91
- sf agent publish authoring-bundle --api-name {AGENT_DEVELOPER_NAME} --json
92
- echo "Y" | sf agent activate --api-name {AGENT_DEVELOPER_NAME} --json
90
+ sf agent validate authoring-bundle --api-name {AGENT_DEVELOPER_NAME} --target-org "$ORG" --json
91
+ sf agent publish authoring-bundle --api-name {AGENT_DEVELOPER_NAME} --target-org "$ORG" --json
92
+ echo "Y" | sf agent activate --api-name {AGENT_DEVELOPER_NAME} --target-org "$ORG" --json
93
93
  ```
94
94
 
95
+ Always pass `--target-org` — without it the CLI acts on the default org, which may not be the org cleared by the Phase 0 write-guard.
96
+
95
97
  ## Verify the wiring round-tripped
96
98
 
97
99
  After publish, retrieve the bundle and check: