@salesforce/afv-skills 1.65.0 → 1.65.1

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 (349) hide show
  1. package/package.json +1 -1
  2. package/skills/field-service-data-capture-form-deployer-configure/SKILL.md +2 -23
  3. package/skills/field-service-data-capture-form-designer-configure/SKILL.md +3 -13
  4. package/skills/field-service-mobile-branding-configure/SKILL.md +3 -17
  5. package/skills/field-service-objective-designer-configure/SKILL.md +379 -72
  6. package/skills/field-service-prework-brief-deployer-configure/SKILL.md +537 -10
  7. package/skills/field-service-scheduling-policy-designer-query/SKILL.md +1093 -65
  8. package/skills/field-service-sobject-create-configure/SKILL.md +213 -13
  9. package/skills/field-service-voice-to-form-configure/SKILL.md +11 -40
  10. package/skills/field-service-work-rule-designer-configure/SKILL.md +95 -121
  11. package/skills/agentforce-gpt-email-generation-configure/SKILL.md +0 -312
  12. package/skills/agentforce-wizard-ui-forecasting-analytics-components-configure/SKILL.md +0 -64
  13. package/skills/agentforce-wizard-ui-sales-einstein-components-configure/SKILL.md +0 -46
  14. package/skills/automation-company-profile-info-query/SKILL.md +0 -51
  15. package/skills/automation-digital-wallet-configure/SKILL.md +0 -689
  16. package/skills/automation-flow-coordinate/SKILL.md +0 -95
  17. package/skills/automation-flow-coordinate/references/elements/action-call/action-call.md +0 -1569
  18. package/skills/automation-flow-coordinate/references/elements/action-call/conversation-messaging.md +0 -96
  19. package/skills/automation-flow-coordinate/references/elements/action-call/examples/send-sms-message.json +0 -23
  20. package/skills/automation-flow-coordinate/references/elements/action-call/examples/send-to-journey-no-fields.json +0 -31
  21. package/skills/automation-flow-coordinate/references/elements/action-call/send-to-journey.md +0 -179
  22. package/skills/automation-flow-coordinate/references/elements/exit-rule/examples/event-email-link-click.json +0 -13
  23. package/skills/automation-flow-coordinate/references/elements/exit-rule/exit-rule.md +0 -83
  24. package/skills/automation-flow-coordinate/references/elements/forward-to-bot-or-agent/examples/forward-to-bot-or-agent.json +0 -69
  25. package/skills/automation-flow-coordinate/references/elements/forward-to-bot-or-agent/forward-to-bot-or-agent.md +0 -274
  26. package/skills/automation-flow-coordinate/references/elements/start/audience-common.md +0 -192
  27. package/skills/automation-flow-coordinate/references/elements/start/automation-event-triggered.md +0 -130
  28. package/skills/automation-flow-coordinate/references/elements/start/data-cloud-data-change-triggered.md +0 -92
  29. package/skills/automation-flow-coordinate/references/elements/start/form-submission-triggered.md +0 -88
  30. package/skills/automation-flow-coordinate/references/elements/start/segment-triggered.md +0 -152
  31. package/skills/automation-flow-coordinate/references/elements/start/start.md +0 -539
  32. package/skills/automation-flow-coordinate/references/elements/subflow/subflow.md +0 -152
  33. package/skills/automation-flow-coordinate/references/elements/wait/wait.md +0 -497
  34. package/skills/automation-flow-coordinate/references/recipes/author/author.md +0 -868
  35. package/skills/automation-flow-coordinate/references/recipes/summarize/element-generic.md +0 -300
  36. package/skills/automation-flow-coordinate/references/recipes/summarize/reference-resolution.md +0 -292
  37. package/skills/automation-flow-coordinate/references/recipes/summarize/summarize.md +0 -323
  38. package/skills/automation-flow-coordinate/references/recipes/testing/examples/debug-output-template.md +0 -109
  39. package/skills/automation-flow-coordinate/references/recipes/testing/shape.md +0 -219
  40. package/skills/automation-flow-coordinate/references/recipes/testing/shared-stages/intent-analyzer.md +0 -180
  41. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/debug.md +0 -175
  42. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/promote.md +0 -255
  43. package/skills/automation-flow-coordinate/references/recipes/testing/workflows/save-debug.md +0 -212
  44. package/skills/automation-flow-coordinate/references/resources/variable/variable.md +0 -171
  45. package/skills/automation-flow-coordinate/references/shared/anti-patterns.md +0 -786
  46. package/skills/automation-flow-coordinate/references/shared/end/end.md +0 -267
  47. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/README.md +0 -69
  48. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/predictions.jsonl +0 -80
  49. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/eval/prompts.jsonl +0 -116
  50. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/flow-type-resolver.md +0 -321
  51. package/skills/automation-flow-coordinate/references/shared/flow-type-resolver/taxonomy.json +0 -320
  52. package/skills/automation-flow-coordinate/references/shared/server-functions.md +0 -597
  53. package/skills/automotive-cloud-appraisal-management-settings-configure/SKILL.md +0 -69
  54. package/skills/automotive-cloud-dealer-essentials-configure/SKILL.md +0 -78
  55. package/skills/automotive-cloud-ground-agent-data-pipelines-configure/SKILL.md +0 -373
  56. package/skills/automotive-cloud-ground-mfg-agent-data-pipelines-configure/SKILL.md +0 -273
  57. package/skills/automotive-cloud-mfg-agent-data-pipelines-configure/SKILL.md +0 -259
  58. package/skills/automotive-cloud-mfg-sales-concierge-agent-create/SKILL.md +0 -369
  59. package/skills/automotive-cloud-mfg-sales-concierge-foundation-configure/SKILL.md +0 -542
  60. package/skills/automotive-cloud-mfg-sales-concierge-foundation-coordinate/SKILL.md +0 -159
  61. package/skills/automotive-cloud-mfg-sales-concierge-orchestrator-agent-create/SKILL.md +0 -349
  62. package/skills/automotive-cloud-mfg-sales-concierge-orchestrator-configure/SKILL.md +0 -505
  63. package/skills/automotive-cloud-sales-concierge-agent-create/SKILL.md +0 -380
  64. package/skills/automotive-cloud-sales-concierge-foundation-configure/SKILL.md +0 -567
  65. package/skills/automotive-cloud-sales-concierge-foundation-coordinate/SKILL.md +0 -159
  66. package/skills/automotive-cloud-sales-concierge-orchestrator-agent-create/SKILL.md +0 -360
  67. package/skills/automotive-cloud-sales-concierge-orchestrator-configure/SKILL.md +0 -539
  68. package/skills/automotive-cloud-sales-concierge-search-grounding-configure/SKILL.md +0 -358
  69. package/skills/commerce-b2b-merchant-quote-configure/SKILL.md +0 -602
  70. package/skills/commerce-b2b-store-configure/SKILL.md +0 -251
  71. package/skills/commerce-credit-memo-create/SKILL.md +0 -139
  72. package/skills/commerce-delivery-business-hours-configure/SKILL.md +0 -277
  73. package/skills/commerce-delivery-estimation-apply/SKILL.md +0 -155
  74. package/skills/commerce-delivery-estimation-configure/SKILL.md +0 -377
  75. package/skills/commerce-delivery-routing-specs-integrate/SKILL.md +0 -174
  76. package/skills/commerce-estimate-bopis-query/SKILL.md +0 -279
  77. package/skills/commerce-estimate-delivery-date-query/SKILL.md +0 -349
  78. package/skills/commerce-fees-apply/SKILL.md +0 -227
  79. package/skills/commerce-fulfillment-routing-analyze/SKILL.md +0 -200
  80. package/skills/commerce-guest-buyer-create/SKILL.md +0 -173
  81. package/skills/commerce-location-bopis-configure/SKILL.md +0 -378
  82. package/skills/commerce-location-business-hours-configure/SKILL.md +0 -235
  83. package/skills/commerce-location-delivery-processing-time-configure/SKILL.md +0 -309
  84. package/skills/commerce-location-graph-integrate/SKILL.md +0 -131
  85. package/skills/commerce-location-shipping-carrier-method-configure/SKILL.md +0 -755
  86. package/skills/commerce-location-temporary-operating-hours-configure/SKILL.md +0 -331
  87. package/skills/commerce-merchant-buyer-groups-configure/SKILL.md +0 -579
  88. package/skills/commerce-merchant-buyer-user-onboarding-create/SKILL.md +0 -626
  89. package/skills/commerce-merchant-catalog-configure/SKILL.md +0 -614
  90. package/skills/commerce-merchant-extension-provider-configure/SKILL.md +0 -368
  91. package/skills/commerce-merchant-insights-account-health-churn-analyze/SKILL.md +0 -118
  92. package/skills/commerce-merchant-insights-inventory-returns-analyze/SKILL.md +0 -65
  93. package/skills/commerce-merchant-insights-order-shopper-get/SKILL.md +0 -90
  94. package/skills/commerce-merchant-insights-product-performance-analyze/SKILL.md +0 -72
  95. package/skills/commerce-merchant-insights-query/SKILL.md +0 -279
  96. package/skills/commerce-merchant-storefront-guest-access-configure/SKILL.md +0 -656
  97. package/skills/commerce-order-summary-change-apply/SKILL.md +0 -375
  98. package/skills/commerce-product-details-get/SKILL.md +0 -363
  99. package/skills/commerce-product-search/SKILL.md +0 -563
  100. package/skills/commerce-react-storefront-create/SKILL.md +0 -350
  101. package/skills/commerce-return-order-summary-create/SKILL.md +0 -513
  102. package/skills/commerce-search-relevance-analyze/SKILL.md +0 -757
  103. package/skills/commerce-temporary-processing-time-override-create/SKILL.md +0 -274
  104. package/skills/communications-initial-setup-configure/SKILL.md +0 -630
  105. package/skills/communications-multisite-configure/SKILL.md +0 -571
  106. package/skills/communications-revenue-cloud-settings-configure/SKILL.md +0 -74
  107. package/skills/communications-smb-fiber-catalog-create/SKILL.md +0 -413
  108. package/skills/communications-tmf-integrate/SKILL.md +0 -1368
  109. package/skills/consumer-goods-visit-activity-act4-questions-assign/SKILL.md +0 -448
  110. package/skills/consumer-goods-visit-activity-act5-standard-create/SKILL.md +0 -269
  111. package/skills/consumer-goods-visit-activity-act6-assortment-configure/SKILL.md +0 -271
  112. package/skills/consumer-goods-visit-activity-act7-account-scoping-create/SKILL.md +0 -382
  113. package/skills/consumer-goods-visit-activity-act8-plan-attach-create/SKILL.md +0 -373
  114. package/skills/consumer-goods-visit-activity-act9-proof-validate/SKILL.md +0 -389
  115. package/skills/consumer-goods-visit-and-activity-act1-specification-create/SKILL.md +0 -338
  116. package/skills/consumer-goods-visit-and-activity-act2-template-create/SKILL.md +0 -547
  117. package/skills/consumer-goods-visit-and-activity-act3-definition-create/SKILL.md +0 -346
  118. package/skills/consumer-goods-visit-and-activity-configure/SKILL.md +0 -1110
  119. package/skills/crm-analytics-adoption-insights-configure/SKILL.md +0 -224
  120. package/skills/crm-analytics-custom-report-type-lightning-configure/SKILL.md +0 -418
  121. package/skills/crm-analytics-dashboards-configure/SKILL.md +0 -731
  122. package/skills/crm-analytics-operational-analytics-metadata-bridge-migrate/SKILL.md +0 -233
  123. package/skills/crm-analytics-report-notifications-ui-configure/SKILL.md +0 -184
  124. package/skills/crm-analytics-sharing-inheritance-coverage-analyze/SKILL.md +0 -167
  125. package/skills/crm-analytics-sonic-getting-started-configure/SKILL.md +0 -55
  126. package/skills/crm-analytics-tableau-next-app-deploy/SKILL.md +0 -1350
  127. package/skills/crm-analytics-tableau-next-c360-basemodel-validate/SKILL.md +0 -1862
  128. package/skills/crm-analytics-tableau-next-datacloud-validate/SKILL.md +0 -83
  129. package/skills/crm-analytics-tableau-next-provisioning-validate/SKILL.md +0 -81
  130. package/skills/data360-activation-create/SKILL.md +0 -104
  131. package/skills/data360-activation-external-platform-get/SKILL.md +0 -49
  132. package/skills/data360-activation-target-create/SKILL.md +0 -93
  133. package/skills/data360-activation-v2-create/SKILL.md +0 -456
  134. package/skills/data360-audience-dmo-get/SKILL.md +0 -38
  135. package/skills/data360-calculated-affinity-create/SKILL.md +0 -82
  136. package/skills/data360-calculated-insight-create/SKILL.md +0 -148
  137. package/skills/data360-catalog-metadata-create/SKILL.md +0 -183
  138. package/skills/data360-code-extension-create/SKILL.md +0 -115
  139. package/skills/data360-communication-capping-create/SKILL.md +0 -227
  140. package/skills/data360-connection-create/SKILL.md +0 -491
  141. package/skills/data360-content-lens-create/SKILL.md +0 -181
  142. package/skills/data360-data-action-create/SKILL.md +0 -126
  143. package/skills/data360-data-action-target-create/SKILL.md +0 -181
  144. package/skills/data360-data-clean-room-create/SKILL.md +0 -238
  145. package/skills/data360-data-governance-create/SKILL.md +0 -746
  146. package/skills/data360-data-graph-create/SKILL.md +0 -82
  147. package/skills/data360-data-harmonized-model-object-reference-create/SKILL.md +0 -38
  148. package/skills/data360-data-lake-object-create/SKILL.md +0 -207
  149. package/skills/data360-data-model-object-catalog-get/SKILL.md +0 -49
  150. package/skills/data360-data-model-object-create/SKILL.md +0 -128
  151. package/skills/data360-data-model-object-mapping-create/SKILL.md +0 -106
  152. package/skills/data360-data-space-create/SKILL.md +0 -161
  153. package/skills/data360-data-streams-create/SKILL.md +0 -324
  154. package/skills/data360-engagement-signal-get/SKILL.md +0 -38
  155. package/skills/data360-experiment-create/SKILL.md +0 -82
  156. package/skills/data360-goal-based-campaign-create/SKILL.md +0 -192
  157. package/skills/data360-harmonization-process-history-get/SKILL.md +0 -38
  158. package/skills/data360-harmonized-unstructured-dmo-create/SKILL.md +0 -84
  159. package/skills/data360-identity-resolution-create/SKILL.md +0 -115
  160. package/skills/data360-intelligent-document-processing-create/SKILL.md +0 -148
  161. package/skills/data360-knowledge-graph-construction-create/SKILL.md +0 -93
  162. package/skills/data360-knowledge-graph-create/SKILL.md +0 -216
  163. package/skills/data360-knowledge-space-mcp-configure/SKILL.md +0 -475
  164. package/skills/data360-machine-learning-mcp-configure/SKILL.md +0 -697
  165. package/skills/data360-multi-org-mcp-configure/SKILL.md +0 -117
  166. package/skills/data360-secondary-index-mcp-configure/SKILL.md +0 -126
  167. package/skills/data360-segment-mcp-configure/SKILL.md +0 -159
  168. package/skills/data360-semantic-calculated-dimension-mcp-configure/SKILL.md +0 -93
  169. package/skills/data360-semantic-calculated-measurement-mcp-configure/SKILL.md +0 -93
  170. package/skills/data360-semantic-data-object-mcp-configure/SKILL.md +0 -93
  171. package/skills/data360-semantic-dimension-mcp-configure/SKILL.md +0 -38
  172. package/skills/data360-semantic-engine-mcp-configure/SKILL.md +0 -62
  173. package/skills/data360-semantic-measurement-mcp-configure/SKILL.md +0 -38
  174. package/skills/data360-semantic-metric-mcp-configure/SKILL.md +0 -93
  175. package/skills/data360-semantic-model-mcp-configure/SKILL.md +0 -115
  176. package/skills/data360-standard-mapping-mcp-configure/SKILL.md +0 -38
  177. package/skills/data360-tenant-lifecycle-mcp-configure/SKILL.md +0 -73
  178. package/skills/experience-afv-query/SKILL.md +0 -234
  179. package/skills/experience-agentforce-vibes-in-react-configure/SKILL.md +0 -63
  180. package/skills/experience-apex-components-configure/SKILL.md +0 -69
  181. package/skills/experience-apex-pages-configure/SKILL.md +0 -107
  182. package/skills/experience-app-home-configure/SKILL.md +0 -76
  183. package/skills/experience-aura-lightning-out-access-configure/SKILL.md +0 -58
  184. package/skills/experience-briefcase-configure/SKILL.md +0 -287
  185. package/skills/experience-community-flexi-page-list-create/SKILL.md +0 -74
  186. package/skills/experience-community-template-definition-list-query/SKILL.md +0 -48
  187. package/skills/experience-community-theme-definition-list-query/SKILL.md +0 -38
  188. package/skills/experience-content-assets-configure/SKILL.md +0 -86
  189. package/skills/experience-custom-domain-create/SKILL.md +0 -727
  190. package/skills/experience-defer-rendering-workspace-page-setup-configure/SKILL.md +0 -41
  191. package/skills/experience-field-service-app-builder-configure/SKILL.md +0 -187
  192. package/skills/experience-flow-category-configure/SKILL.md +0 -117
  193. package/skills/experience-formula-configure/SKILL.md +0 -358
  194. package/skills/experience-global-actions-configure/SKILL.md +0 -69
  195. package/skills/experience-global-publisher-layouts-configure/SKILL.md +0 -79
  196. package/skills/experience-instrumentation-configure/SKILL.md +0 -64
  197. package/skills/experience-lex-engagement-configure/SKILL.md +0 -50
  198. package/skills/experience-lightning-bolt-open/SKILL.md +0 -12
  199. package/skills/experience-lightning-out-configure/SKILL.md +0 -129
  200. package/skills/experience-lightning-preview-configure/SKILL.md +0 -67
  201. package/skills/experience-lightning-types-query/SKILL.md +0 -98
  202. package/skills/experience-malware-scan-configure/SKILL.md +0 -71
  203. package/skills/experience-my-salesforce-configure/SKILL.md +0 -126
  204. package/skills/experience-navigation-menus-configure/SKILL.md +0 -235
  205. package/skills/experience-notification-types-configure/SKILL.md +0 -206
  206. package/skills/experience-notifications-configure/SKILL.md +0 -75
  207. package/skills/experience-record-discovery-query/SKILL.md +0 -227
  208. package/skills/experience-regenerate-previews-open/SKILL.md +0 -94
  209. package/skills/experience-sales-cloud-mab-configure/SKILL.md +0 -254
  210. package/skills/experience-schema-builder-open/SKILL.md +0 -38
  211. package/skills/experience-simple-record-home-configure/SKILL.md +0 -110
  212. package/skills/experience-static-resources-configure/SKILL.md +0 -74
  213. package/skills/field-service-setup-coordinate/SKILL.md +0 -62
  214. package/skills/field-service-work-plan-configure/SKILL.md +0 -253
  215. package/skills/fsc-actionable-segmentation-settings-configure/SKILL.md +0 -180
  216. package/skills/fsc-digital-origination-bre-decision-matrix-foundation-create/SKILL.md +0 -196
  217. package/skills/fsc-digital-origination-bre-disclosures-consent-configure/SKILL.md +0 -106
  218. package/skills/fsc-digital-origination-bre-document-upload-configure/SKILL.md +0 -96
  219. package/skills/fsc-digital-origination-bre-permissions-assign/SKILL.md +0 -111
  220. package/skills/fsc-digital-origination-bre-setup-coordinate/SKILL.md +0 -250
  221. package/skills/fsc-digital-origination-bre-stp-eligibility-configure/SKILL.md +0 -122
  222. package/skills/fsc-digital-origination-coordinate/SKILL.md +0 -653
  223. package/skills/fsc-digital-origination-demo-run/SKILL.md +0 -225
  224. package/skills/fsc-digital-origination-execution-guardrails-validate/SKILL.md +0 -112
  225. package/skills/fsc-digital-origination-initial-setup-configure/SKILL.md +0 -396
  226. package/skills/fsc-digital-origination-pricing-setup-coordinate/SKILL.md +0 -336
  227. package/skills/fsc-digital-origination-pricing-setup-data-foundation-create/SKILL.md +0 -208
  228. package/skills/fsc-digital-origination-pricing-setup-procedure-create/SKILL.md +0 -375
  229. package/skills/fsc-digital-origination-product-setup-act1-permissions-assign/SKILL.md +0 -83
  230. package/skills/fsc-digital-origination-product-setup-coordinate/SKILL.md +0 -248
  231. package/skills/fsc-digital-origination-sample-data-create/SKILL.md +0 -206
  232. package/skills/fsc-document-checklist-settings-configure/SKILL.md +0 -57
  233. package/skills/fsc-flexible-hierarchy-configure/SKILL.md +0 -148
  234. package/skills/fsc-flexible-hierarchy-foundation-configure/SKILL.md +0 -1430
  235. package/skills/fsc-flexible-hierarchy-graph-config-create/SKILL.md +0 -471
  236. package/skills/fsc-flexible-hierarchy-rule-based-graph-deploy/SKILL.md +0 -429
  237. package/skills/fsc-pricing-product-configurator-configure/SKILL.md +0 -150
  238. package/skills/fsc-pricing-salesforce-omnistudio-switch/SKILL.md +0 -123
  239. package/skills/fsc-product-act2-catalog-categories-create/SKILL.md +0 -82
  240. package/skills/fsc-product-act3-attributes-create/SKILL.md +0 -249
  241. package/skills/fsc-product-act4-classification-assignment-create/SKILL.md +0 -196
  242. package/skills/fsc-product-act5-considerations-get/SKILL.md +0 -44
  243. package/skills/fsc-stage-management-apex-flow-deploy/SKILL.md +0 -384
  244. package/skills/fsc-stage-management-compliant-data-sharing-configure/SKILL.md +0 -144
  245. package/skills/fsc-stage-management-decision-matrices-create/SKILL.md +0 -107
  246. package/skills/fsc-stage-management-definition-assignments-create/SKILL.md +0 -189
  247. package/skills/fsc-stage-management-definition-create/SKILL.md +0 -108
  248. package/skills/fsc-stage-management-permissions-assign/SKILL.md +0 -143
  249. package/skills/fsc-stage-management-transitions-configure/SKILL.md +0 -139
  250. package/skills/health-cloud-appt-booking-config-configure/SKILL.md +0 -135
  251. package/skills/health-cloud-appt-booking-url-config-configure/SKILL.md +0 -134
  252. package/skills/health-cloud-care-provider-affl-role-config-configure/SKILL.md +0 -136
  253. package/skills/health-cloud-care-provider-search-config-configure/SKILL.md +0 -134
  254. package/skills/health-cloud-care-requests-create/SKILL.md +0 -178
  255. package/skills/health-cloud-initial-configure/SKILL.md +0 -511
  256. package/skills/health-cloud-patient-appointment-scheduling-configure/SKILL.md +0 -1374
  257. package/skills/health-cloud-provider-search-settings-configure/SKILL.md +0 -924
  258. package/skills/health-cloud-referral-management-coordinate/SKILL.md +0 -513
  259. package/skills/health-cloud-timeline-configure/SKILL.md +0 -622
  260. package/skills/health-cloud-virtual-visit-config-configure/SKILL.md +0 -135
  261. package/skills/industries-account-score-settings-query/SKILL.md +0 -78
  262. package/skills/industries-actionable-list-data-sources-dmo-configure/SKILL.md +0 -177
  263. package/skills/industries-ad-product-availability-search/SKILL.md +0 -399
  264. package/skills/industries-advanced-account-forecast-settings-configure/SKILL.md +0 -628
  265. package/skills/industries-advanced-therapy-management-settings-configure/SKILL.md +0 -73
  266. package/skills/industries-atm-settings-starter-configure/SKILL.md +0 -76
  267. package/skills/industries-batch-document-ai-configure/SKILL.md +0 -196
  268. package/skills/industries-behavioral-health-app-settings-configure/SKILL.md +0 -71
  269. package/skills/industries-branch-management-settings-configure/SKILL.md +0 -89
  270. package/skills/industries-bre-decision-table-access-configure/SKILL.md +0 -367
  271. package/skills/industries-brokerage-settings-configure/SKILL.md +0 -41
  272. package/skills/industries-calendar-sync-settings-configure/SKILL.md +0 -89
  273. package/skills/industries-care-request-settings-configure/SKILL.md +0 -218
  274. package/skills/industries-case-management-intelligence-settings-configure/SKILL.md +0 -54
  275. package/skills/industries-catalog-process-attributes-products-configure/SKILL.md +0 -380
  276. package/skills/industries-catalog-process-fulfillment-configure/SKILL.md +0 -216
  277. package/skills/industries-catalog-process-intake-configure/SKILL.md +0 -219
  278. package/skills/industries-catalog-process-knowledge-configure/SKILL.md +0 -153
  279. package/skills/industries-catalog-process-preprocessor-configure/SKILL.md +0 -168
  280. package/skills/industries-cds-general-settings-configure/SKILL.md +0 -69
  281. package/skills/industries-claim-financial-settings-configure/SKILL.md +0 -169
  282. package/skills/industries-clinical-data-model-settings-configure/SKILL.md +0 -136
  283. package/skills/industries-clinical-data-model-settings-starter-configure/SKILL.md +0 -105
  284. package/skills/industries-collection-plan-settings-configure/SKILL.md +0 -132
  285. package/skills/industries-comms-service-console-settings-configure/SKILL.md +0 -159
  286. package/skills/industries-compliance-configure/SKILL.md +0 -102
  287. package/skills/industries-compliance-document-extraction-setup-configure/SKILL.md +0 -76
  288. package/skills/industries-contact-center-app-layout-configure/SKILL.md +0 -88
  289. package/skills/industries-contact-center-components-configure/SKILL.md +0 -96
  290. package/skills/industries-contact-center-path-knowledge-configure/SKILL.md +0 -95
  291. package/skills/industries-contact-center-user-access-assign/SKILL.md +0 -96
  292. package/skills/industries-course-waitlist-config-configure/SKILL.md +0 -162
  293. package/skills/industries-crisis-center-settings-configure/SKILL.md +0 -84
  294. package/skills/industries-custom-object-settings-configure/SKILL.md +0 -94
  295. package/skills/industries-data-cloud-integration-configure/SKILL.md +0 -88
  296. package/skills/industries-data-space-feature-mappings-configure/SKILL.md +0 -245
  297. package/skills/industries-decision-matrix-builder-configure/SKILL.md +0 -78
  298. package/skills/industries-decision-table-hbase-configure/SKILL.md +0 -87
  299. package/skills/industries-decision-table-version-configure/SKILL.md +0 -74
  300. package/skills/industries-decision-tables-builder-configure/SKILL.md +0 -253
  301. package/skills/industries-decision-tables-configure/SKILL.md +0 -439
  302. package/skills/industries-energy-utilities-configure/SKILL.md +0 -251
  303. package/skills/industries-eu-cloud-multisite-configure/SKILL.md +0 -1008
  304. package/skills/industries-eu-new-connections-configure/SKILL.md +0 -30
  305. package/skills/industries-explainability-msg-template-configure/SKILL.md +0 -135
  306. package/skills/industries-expression-set-message-token-configure/SKILL.md +0 -135
  307. package/skills/industries-field-service-settings-configure/SKILL.md +0 -82
  308. package/skills/industries-form-framework-settings-configure/SKILL.md +0 -30
  309. package/skills/industries-fsc-ai-settings-configure/SKILL.md +0 -57
  310. package/skills/industries-fsc-association-engine-settings-configure/SKILL.md +0 -172
  311. package/skills/industries-fsc-b2b-settings-configure/SKILL.md +0 -61
  312. package/skills/industries-fsc-insurance-settings-configure/SKILL.md +0 -58
  313. package/skills/industries-fsc-visa-fulfillment-setup-configure/SKILL.md +0 -103
  314. package/skills/industries-fsc-wealth-agent-settings-configure/SKILL.md +0 -117
  315. package/skills/industries-fsc-wealth-settings-configure/SKILL.md +0 -99
  316. package/skills/industries-fundraising-gift-entry-settings-configure/SKILL.md +0 -120
  317. package/skills/industries-fundraising-rfm-configure/SKILL.md +0 -128
  318. package/skills/industries-fundraising-settings-configure/SKILL.md +0 -145
  319. package/skills/industries-fundraising-source-code-gen-configure/SKILL.md +0 -299
  320. package/skills/industries-google-maps-api-key-settings-configure/SKILL.md +0 -87
  321. package/skills/industries-grantmaking-intelligence-settings-open/SKILL.md +0 -58
  322. package/skills/industries-hc-score-category-settings-configure/SKILL.md +0 -167
  323. package/skills/industries-health-engagement-settings-configure/SKILL.md +0 -218
  324. package/skills/industries-home-health-agentforce-setup-configure/SKILL.md +0 -131
  325. package/skills/industries-home-health-bundling-policy-create/SKILL.md +0 -50
  326. package/skills/industries-home-health-entity-labels-configure/SKILL.md +0 -29
  327. package/skills/industries-home-health-fsl-package-deploy/SKILL.md +0 -71
  328. package/skills/industries-home-health-fsl-settings-validate/SKILL.md +0 -27
  329. package/skills/industries-home-health-guided-setup-care-and-skill-get/SKILL.md +0 -80
  330. package/skills/industries-home-health-guided-setup-configure/SKILL.md +0 -836
  331. package/skills/industries-home-health-guided-setup-enable-org-fsl-get/SKILL.md +0 -55
  332. package/skills/industries-home-health-guided-setup-get-org-ready-get/SKILL.md +0 -61
  333. package/skills/industries-home-health-licenses-assign/SKILL.md +0 -27
  334. package/skills/industries-home-health-operating-hours-create/SKILL.md +0 -40
  335. package/skills/industries-home-health-scheduling-policy-create/SKILL.md +0 -41
  336. package/skills/industries-home-health-service-objective-create/SKILL.md +0 -22
  337. package/skills/industries-home-health-skills-create/SKILL.md +0 -31
  338. package/skills/industries-home-health-users-create/SKILL.md +0 -29
  339. package/skills/industries-icm-act3-toggles-configure/SKILL.md +0 -198
  340. package/skills/industries-icm-act5-genai-suggested-assessments-configure/SKILL.md +0 -361
  341. package/skills/industries-icm-act6-mcg-integration-configure/SKILL.md +0 -550
  342. package/skills/industries-integrated-care-management-configure/SKILL.md +0 -168
  343. package/skills/industries-object-enablement-configure/SKILL.md +0 -86
  344. package/skills/industries-tpm-system-processing-service-configure/SKILL.md +0 -64
  345. package/skills/integration-apex-settings-configure/SKILL.md +0 -61
  346. package/skills/marketing-e360-email-archiving-configure/SKILL.md +0 -73
  347. package/skills/platform-custom-permissions-configure/SKILL.md +0 -687
  348. package/skills/platform-label-workbench-import-create/SKILL.md +0 -67
  349. package/skills/platform-privacy-agent-settings-configure/SKILL.md +0 -752
@@ -1,338 +0,0 @@
1
- ---
2
- name: consumer-goods-visit-and-activity-act1-specification-create
3
- description: "Act 1 of 9: Set up the Visit Specification for Retail Execution. Creates (or reuses) a Visit Specification with UsageType \"Retail\" that activities will attach to in later acts. This is the foundational step — activities MUST reference a valid Visit Specification to be eligible for visit planning and execution. NEVER duplicate — always check if a suitable Visit Specification already exists before creating a new one (duplicate specs cause activity attachment mismatches and orphaned visits)."
4
- metadata:
5
- version: "1.0"
6
- cliTools:
7
- - tool:
8
- - "sf"
9
- semver: ">=2.0.0"
10
- ---
11
-
12
- # Act 1: Visit Specification Setup
13
-
14
- **Part of:** [9-Act Retail Execution Steel Thread](../../README.md)
15
- **Depends on:** — (foundational; this is the first act)
16
- **Enables:** [Act 2 - Template and Questions](../act2-template-and-questions/SKILL.md)
17
-
18
- **Act 1 is the foundational step for the 9-Act Retail Execution visit-and-activity steel thread. You MUST complete this act before proceeding to Act 2 (Template and Questions), as all subsequent activities require a valid Visit Specification to attach to.**
19
-
20
- ---
21
-
22
- ## Goal
23
-
24
- Create (or reuse) a **Visit Specification** with `UsageType = "Retail"` — the store-visit type that every activity attaches to in later acts.
25
-
26
- **Builder's intent:** "Set up the store-visit type every activity will attach to — and never create a duplicate, because duplicate specs cause activity-attachment mismatches and orphaned visits."
27
-
28
- **What you'll create:**
29
- 1. One Visit Specification (`VisitSpec`) configured for Retail Execution — or a reused existing one
30
-
31
- ---
32
-
33
- ## What this Act does
34
-
35
- Before any activities can be configured, a **Visit Specification** must exist in the org. This Act:
36
-
37
- 1. **Checks if a suitable Visit Specification already exists** — specifically one with `UsageType = "Retail"` that matches the intended store visit pattern (CRITICAL: never create duplicates — they cause activity attachment failures where activities reference the wrong spec or visits become orphaned).
38
- 2. **Creates a new Visit Specification** if none exists — via the standard sObject REST API (`POST /services/data/v68.0/sobjects/VisitSpec`).
39
- 3. **Configures it for Retail Execution** — sets `UsageType = "Retail"` (mandatory for RE activity matching), default duration (30 minutes recommended), and enables start/end time capture for visit tracking.
40
- 4. **Verifies the Visit Specification is active** — confirms it can be queried and referenced by subsequent acts.
41
-
42
- The Visit Specification's `Id` becomes the reference key (`VisitSpecId`) for Assessment Task Definitions (Act 3), which in turn attach to Visit Plans and Visit assignments (Act 8).
43
-
44
- ---
45
-
46
- ## When to use
47
-
48
- **Invoke this skill when:**
49
- - You're starting a new Retail Execution visit-and-activity setup (this is the first act)
50
- - You need a store-visit type for activities to attach to
51
- - The user asks about "visit specification", "visit type", or "store visit setup"
52
-
53
- **Trigger phrases:**
54
- - "Set up the visit specification"
55
- - "Create a store visit type"
56
- - "Act 1" or "visit spec setup"
57
-
58
- ---
59
-
60
- ## Prerequisites
61
-
62
- > **Org & user gates run in the orchestrator, not here.** The two org-/user-level preconditions for the whole steel thread — the Retail Execution user permission (`PermissionsRunRetailExecution`) and the org pref (`enableRetailExecution`) — are checked ONCE in the orchestrator's "Preflight: Org & user gates" section before Act 1 is invoked. If you are running Act 1 standalone (outside the orchestrator), confirm both are satisfied first. This Act assumes they already passed.
63
-
64
- Before running this Act, verify — **in this order, and STOP on the first that fails**:
65
-
66
- - **Obtain the target Internal Organization Unit (IOU) from the user** — the Visit Specification is bound to exactly one `InternalOrganizationUnit` (the `InternalOrganizationUnitId` field is mandatory). Do NOT guess or silently pick the first one. Instead:
67
- 1. **List all IOUs** and present them to the user as a choice:
68
- ```bash
69
- sf data query \
70
- --query "SELECT Id, OrganizationName, Type, ParentOrganizationId FROM InternalOrganizationUnit ORDER BY OrganizationName" \
71
- --target-org <org-alias>
72
- ```
73
- 2. **If the query returns zero rows, STOP and throw an error** — do not attempt to create the Visit Specification and do not create an IOU on the user's behalf. Report clearly: **"No Internal Organization Units (IOUs) exist in this org. A Visit Specification requires a valid `InternalOrganizationUnitId`. Create an IOU first, then re-run Act 1."**
74
- 3. **Confirm the chosen IOU record is readable by the running user.** Object-level Read (checked below) is not enough — row-level sharing can still hide a specific record, and binding a VisitSpec to an IOU the user can't see leads to downstream visibility gaps. Verify record-level access with `UserRecordAccess`:
75
- ```bash
76
- sf data query \
77
- --query "SELECT RecordId, HasReadAccess, MaxAccessLevel FROM UserRecordAccess WHERE UserId = '<current-user-id>' AND RecordId = '<INTERNAL_ORG_UNIT_ID>'" \
78
- --target-org <org-alias>
79
- ```
80
- **If `HasReadAccess` is `false` (or no row returns), STOP and report:** **"The chosen Internal Organization Unit is not readable by the current user. Grant access (sharing rule / role hierarchy / manual share), then re-run Act 1."** Proceed only when `HasReadAccess = true`.
81
-
82
- - **Obtain the validity window (`ValidFrom` / `ValidTo`) from the user** — the Visit Specification carries a validity window that Step 2's reuse check and every downstream act depend on. **Take both dates explicitly from the user; do NOT hardcode or silently default them.** Ask for a `ValidFrom` and a `ValidTo` (both `YYYY-MM-DD`). If the user wants the spec to be evergreen, that must be their **explicit** choice — confirm "no end date" with them and only then omit `ValidTo`. Do not assume evergreen, and do not invent a fiscal-year or rolling-12-month range on their behalf.
83
-
84
- - **Object permissions for VisitSpec** — Check that the user has Create permissions:
85
- ```sql
86
- SELECT Parent.Name, Parent.Profile.Name, SobjectType,
87
- PermissionsRead, PermissionsCreate, PermissionsEdit, PermissionsDelete
88
- FROM ObjectPermissions
89
- WHERE SobjectType = 'VisitSpec'
90
- AND PermissionsCreate = true
91
- ```
92
- If no rows are returned with `PermissionsCreate = true`, the user cannot create VisitSpec records.
93
-
94
- - **Object permissions for InternalOrganizationUnit** — Check Read access:
95
- ```sql
96
- SELECT Parent.Name, SobjectType, PermissionsRead
97
- FROM ObjectPermissions
98
- WHERE SobjectType = 'InternalOrganizationUnit'
99
- AND PermissionsRead = true
100
- ```
101
-
102
- - **Setup data loaded** — at minimum:
103
- - Accounts representing stores (standard Account records)
104
- - Internal Organization Unit
105
- - Users assigned to appropriate territories/roles
106
-
107
- - **API version v68.0 or later** (recommended for full RE feature parity). (Retail Execution feature enablement is covered by the org-pref check above.)
108
-
109
- ---
110
-
111
- ## Inputs
112
-
113
- | Variable | Description | Source | Example |
114
- |---|---|---|---|
115
- | `ORG_ALIAS` | Target org alias for `sf` CLI commands | Auth session | `my-re-org` |
116
- | `INTERNAL_ORG_UNIT_ID` | Internal Organization Unit the spec applies to (mandatory field) | Setup data | `0gJxx0000000001EAA` |
117
- | `VALID_FROM` | Start of the Visit Specification's validity window | **User-supplied (Prerequisites)** | `2026-07-01` |
118
- | `VALID_TO` | End of the validity window — or an explicit "no end date" chosen by the user | **User-supplied (Prerequisites)** | `2027-06-30` |
119
-
120
- ### Key Concepts (reference before executing)
121
-
122
- **Visit Specification (VisitSpec)** — the reusable "visit type" that activities attach to and that visit planning matches against. Critical fields:
123
-
124
- - **UsageType**: Must be `"Retail"` for Retail Execution activity matching. Other values ("FieldService", "Service") belong to different visit models and will not match RE activities.
125
- - **InternalOrganizationUnitId**: **Mandatory.** Binds the spec to the Internal Organization Unit.
126
- - **DefaultDrtn + DurationType**: Set the default visit length (e.g., `30` + `"Minute"`). Interpreted together — `DefaultDrtn` is the numeric value and `DurationType` is the unit it's read in:
127
- - `DurationType = "Minute"` → `DefaultDrtn = 30` means 30 minutes (recommended for store visits).
128
- - `DurationType = "Hour"` → `DefaultDrtn = 1` means 1 hour.
129
- - Set both fields together — a mismatched unit (e.g. `"Hour"` when you meant minutes) yields wildly wrong visit durations.
130
- - **One spec per visit pattern *per IOU***: Never duplicate *within the same `InternalOrganizationUnitId`*. A second spec with the same/similar name bound to the *same* IOU splits activity attachments and orphans visits. The same name reused across *different* IOUs is fine and expected — a "Store Visit" spec on each IOU serves the same purpose per unit; uniqueness only matters within a single IOU.
131
-
132
- ---
133
-
134
- ## Step-by-step procedure
135
-
136
- ### Step 1: Authenticate to the org
137
-
138
- Confirm the target org alias and authenticate:
139
-
140
- ```bash
141
- sf org display --target-org <org-alias>
142
- ```
143
-
144
- Verify the org's API version (recommended: v68.0 or later for full RE feature parity).
145
-
146
- ### Step 2: Check for existing Visit Specifications
147
-
148
- **CRITICAL: Always check before creating.** Query for existing Visit Specifications with `UsageType = "Retail"` **scoped to the chosen IOU** (`INTERNAL_ORG_UNIT_ID` from Prerequisites) — a spec is only a reuse candidate if it matches on *both* `UsageType` **and** `InternalOrganizationUnitId`:
149
-
150
- ```bash
151
- sf data query \
152
- --query "SELECT Id, Name, UsageType, DefaultDrtn, DurationType, IsAccountRequired, ShouldCaptureStartEndTime, InternalOrganizationUnitId, ValidFrom, ValidTo FROM VisitSpec WHERE UsageType = 'Retail' AND InternalOrganizationUnitId = '<INTERNAL_ORG_UNIT_ID>' ORDER BY CreatedDate DESC" \
153
- --target-org <org-alias>
154
- ```
155
-
156
- **Check validity before reusing.** A Visit Specification carries a validity window (`ValidFrom` / `ValidTo`). An existing spec is only a reuse candidate if it is **currently valid** — i.e. `ValidFrom` is on/before today **and** `ValidTo` is null or on/after today. An expired (or not-yet-effective) spec must NOT be reused: visits planned against it won't generate, and activities attached to it silently drop out of scope.
157
-
158
- **Decision point:**
159
- - **If a suitable AND currently-valid Visit Specification exists** (`UsageType = "Retail"` **AND** `InternalOrganizationUnitId` = the chosen IOU **AND** today falls within `ValidFrom`–`ValidTo` — e.g., Name = "Store Visit"), **reuse it** — capture its `Id`, record it as an **existing** spec (`visit_spec_is_new = false`), and skip to Step 4 (verification). Do NOT create a duplicate. (Act 5 — Standard Activity — reads `visit_spec_is_new`: a reused spec is assumed to already carry its standard activity, so Act 5 is skipped for it.)
160
- - **If no suitable Visit Specification exists for the chosen IOU**, proceed to Step 3. A spec with `UsageType = "Retail"` bound to a *different* IOU does NOT count as a match — activities scoped to this IOU need a spec on this IOU.
161
- - **If a matching spec exists but is expired or not yet effective** (today is outside its `ValidFrom`–`ValidTo` window), do NOT reuse it. Either extend its `ValidTo` (if it has no downstream conflicts) via an update, or create a fresh spec in Step 3 with a current validity window. Note the expired spec's `Id` so you don't accidentally attach activities to it later.
162
-
163
- **Why this matters:** Duplicate Visit Specifications with the same or similar names cause:
164
- - Activity definitions attaching to the wrong spec
165
- - Visit Plans that don't match the intended activities
166
- - Orphaned visits when merchandisers execute against a spec that has no activities defined
167
-
168
- ### Step 3: Create the Visit Specification (if none exists)
169
-
170
- Create the spec using the `InternalOrganizationUnitId` the user already provided (and whose record access you verified in Prerequisites).
171
-
172
- **Create the Visit Specification via the `sf` CLI:**
173
-
174
- ```bash
175
- sf data create record \
176
- --sobject VisitSpec \
177
- --values "Name='Store Visit' InternalOrganizationUnitId=0gJxx0000000001EAA Description='Standard store visit type for merchandiser activities' ValidFrom=<VALID_FROM> ValidTo=<VALID_TO> UsageType=Retail IsAccountRequired=true DefaultDrtn=30 DurationType=Minute ShouldCaptureStartEndTime=true" \
178
- --target-org <org-alias>
179
- ```
180
-
181
- **Field notes:**
182
- - `Name`: The label shown in the UI. Keep it simple and recognizable (e.g., "Store Visit"). This becomes the match key for visit planning in Act 8. Quote it (`Name='Store Visit'`) because it contains a space.
183
- - `InternalOrganizationUnitId`: **Required.** The Internal Org unit this spec applies to. Replace `0gJxx0000000001EAA` with the `Id` the user provided in Prerequisites.
184
- - `UsageType`: **Must be "Retail"** for RE activities to match. Do not use "FieldService" or other values — they belong to different visit models.
185
- - `DefaultDrtn` + `DurationType`: Recommended 30 minutes (`Minute`). Adjust based on typical store visit duration.
186
- - `IsAccountRequired`: Set `true` — retail visits are always account-scoped (store-specific).
187
- - `ShouldCaptureStartEndTime`: Set `true` — enables time tracking for visit execution (used in reporting and KPI calculations).
188
- - `ValidFrom` / `ValidTo`: **The validity window the user supplied in Prerequisites.** Substitute `<VALID_FROM>` / `<VALID_TO>` with their exact dates — do NOT hardcode a range or default it. Only omit `ValidTo` when the user explicitly chose "no end date" (evergreen). This window gates Step 2's reuse check and every downstream act, so it must reflect the user's stated intent, not an assumed default.
189
-
190
- Capture the returned `Id` (e.g., `0gOxx0000000001EAA`) — you'll need it for verification and for referencing in Act 3. Record this as a **newly created** spec (`visit_spec_is_new = true`) — Act 5 (Standard Activity) uses this flag to know it must create a standard activity for the brand-new Visit Spec (a new spec has no standard activity yet, which would otherwise make the Act 9 product-survey verification fail).
191
-
192
- ### Step 4: Verify the Visit Specification
193
-
194
- Re-query the Visit Specification to confirm it was created/exists correctly:
195
-
196
- ```bash
197
- sf data query \
198
- --query "SELECT Id FROM VisitSpec WHERE Id = '0gOxx0000000001EAA'" \
199
- --target-org <org-alias>
200
- ```
201
-
202
- ### Step 5: Record the Visit Specification Id for downstream Acts
203
-
204
- Store the Visit Specification `Id` in a session variable or note it for Act 3 (Activity Definition):
205
-
206
- ```bash
207
- # Example: export for use in subsequent commands
208
- export VISIT_SPEC_ID="0gOxx0000000001EAA"
209
- ```
210
-
211
- You'll reference this `Id` as `VisitSpecId` when creating Assessment Task Definitions (Act 3).
212
-
213
- ---
214
-
215
- ## Validation
216
-
217
- Confirm the Visit Specification exists and is configured correctly (Step 4 query returns these values).
218
-
219
- **Expect:**
220
- - `UsageType = "Retail"` ✅
221
- - `DefaultDrtn = 30` (or your configured value) ✅
222
- - `DurationType = "Minute"` (or your configured value) ✅
223
- - `IsAccountRequired = true` ✅
224
- - `ShouldCaptureStartEndTime = true` ✅
225
- - `InternalOrganizationUnitId` set ✅
226
-
227
- ### Success Criteria
228
-
229
- - ✓ One `VisitSpec` record exists with `UsageType = "Retail"` and a valid `InternalOrganizationUnitId`
230
- - ✓ Spec is active / within its `ValidFrom`–`ValidTo` window (if set)
231
- - ✓ No duplicate Visit Specifications were created (reused an existing one if applicable)
232
- - ✓ The Visit Specification `Id` is captured for Act 3
233
-
234
- ---
235
-
236
- ## End state
237
-
238
- After completing Act 1:
239
-
240
- - ✅ **A Visit Specification exists** with `Name = "Store Visit"` (or your chosen name), `UsageType = "Retail"`, and a valid `InternalOrganizationUnitId`.
241
- - ✅ **The Visit Specification is active** — can be queried and is within its `ValidFrom` / `ValidTo` date range (if set).
242
- - ✅ **The Visit Specification Id is captured** and ready to be referenced in Act 3 (Assessment Task Definitions).
243
- - ✅ **No duplicate Visit Specifications were created** — reused an existing one if applicable.
244
-
245
- **At this point:**
246
- - Act 1 only sets up the visit container.
247
- - No activities are attached yet — that happens in Act 3.
248
- - No visits are planned or assigned yet — that happens in Act 8.
249
-
250
- **You are NOT done with the full setup** — this is Act 1 of 9. Proceed to Act 2 (Template and Questions) to configure the assessment framework.
251
-
252
- ---
253
-
254
- ## Gotchas and common errors
255
-
256
- ### 1. Duplicate Visit Specifications cause activity attachment failures
257
-
258
- **Symptom:** You create a new Visit Specification with `Name = "Store Visit"` for a given IOU, but a prior one with the same `Name`, `UsageType = "Retail"`, and *same* `InternalOrganizationUnitId` already exists (perhaps created by a different admin or in an earlier test run). Later, when you create Assessment Task Definitions (Act 3), some reference the old spec and some reference the new one. Result: visits generated from one spec have no activities, and vice versa.
259
-
260
- **Fix:** ALWAYS query first (Step 2), matching on all three of `Name`, `UsageType`, **and** `InternalOrganizationUnitId` — the duplicate that causes this is a spec with the same name and usage type bound to the *same* IOU. If such a spec already exists (and is currently valid), reuse it — do not create a new one unless absolutely necessary (e.g., the existing spec has incompatible settings, is expired, or is for a different usage type). Note: the same `Name` on a *different* IOU is not a duplicate — uniqueness only matters within a single IOU.
261
-
262
-
263
- ### 2. `UsageType` is not "Retail"
264
-
265
- **Symptom:** The Visit Specification is created, but later activities (Assessment Task Definitions) with `UsageType = "Retail"` don't match/attach to visits created from this spec.
266
-
267
- **Root cause:** `UsageType` was set to something other than "Retail" (e.g., "FieldService", "Service", or left blank).
268
-
269
- **Fix:** RE activities REQUIRE `UsageType = "Retail"` for the visit matching logic to work. Always set this field to "Retail" explicitly. If you accidentally created a spec with the wrong `UsageType`, create a new spec with the correct `UsageType` and update all downstream references to point to it.
270
-
271
- ### 3. `REQUIRED_FIELD_MISSING` error on create
272
-
273
- **Symptom:** The create command fails with `"errorCode": "REQUIRED_FIELD_MISSING", "message": "Required fields are missing: [InternalOrganizationUnitId]"`.
274
-
275
- **Root cause:** You didn't provide `InternalOrganizationUnitId` in the payload, or it's `null`.
276
-
277
- **Fix:** Query for a valid `InternalOrganizationUnit.Id` (see Step 3) and include it in the payload. This field is mandatory for Visit Specifications.
278
-
279
- ---
280
-
281
- ## Notes: best practices & architecture
282
-
283
- **Reuse over recreate.** The Visit Specification is a long-lived container. One well-named spec per visit pattern (e.g., "Store Visit") is reused across every activity and template. Duplicates are the single most common source of downstream attachment bugs — always query first.
284
-
285
- **Where the spec sits in the lifecycle:**
286
-
287
- ```text
288
- Visit Specification (VisitSpec) ← Act 1 (this act): the visit type / container
289
- ↓ (referenced by VisitSpecId)
290
- Activity Definition (AssessmentTaskDefinition) ← Act 3: activities that attach to the spec
291
- ↓
292
- Visit Plan / Visit (AssessmentTask) ← Act 8: planned & generated field visits
293
- ```
294
-
295
- Act 1 provides the foundation the entire steel thread builds on; every later act assumes this spec exists and is referenced consistently.
296
-
297
- ---
298
-
299
- ## Session state to track & handoff
300
-
301
- > **Internal only — never print this to the user.** These variables (including `act1_complete`) are orchestration bookkeeping. Track them silently to drive the gate below; do **not** echo raw variable names, IDs, or the gate flag into the conversation. When the Act finishes, tell the user only a short plain-language confirmation (e.g., "✅ Act 1 done — your Visit Specification is ready").
302
-
303
- For orchestrating the full 9-Act steel thread, maintain these session variables after Act 1:
304
-
305
- - `visit_spec_id` — the `Id` of the Visit Specification created/reused (e.g., `0gOxx0000000001EAA`). **Required for Act 3** (Assessment Task Definitions reference this as `VisitSpecId`).
306
- - `visit_spec_name` — the `Name` of the Visit Specification (e.g., "Store Visit"). **Required for Act 8**.
307
- - `visit_spec_is_new` — boolean; `true` when this Act **created** the spec (Step 3), `false` when it **reused** an existing one (Step 2). **Required for Act 5** (Standard Activity): Act 5 only creates a standard activity when `visit_spec_is_new = true`, and is skipped when the spec was reused.
308
- - `internal_org_unit_id` — the `InternalOrganizationUnitId` used (for reference in scoping queries).
309
- - `act1_complete` — boolean; set to `true` after Step 4 verification passes.
310
-
311
- **Do NOT proceed to Act 2 until `act1_complete = true`.** The subsequent acts assume a valid Visit Specification exists.
312
-
313
- ---
314
-
315
- ## Out of scope / deferred (for this Act)
316
-
317
- These are NOT part of Act 1, but are called out here to set expectations:
318
-
319
- - **Visit Planning** — happens in Act 8 (Visit Plan and Attachment).
320
- - **Activity Definition** — happens in Act 3 (Assessment Task Definitions that reference this Visit Specification).
321
- - **Visit Assignment/Generation** — happens in Act 8 (Plan Visits & Attach).
322
- - **Mobile execution** — the Retail Execution mobile app consumes visits generated from this spec, but the app setup is external to this skill.
323
- - **Scheduling and routing optimization** — advanced features that depend on the basic visit model being in place (this Act provides that foundation).
324
-
325
- ---
326
-
327
- ## Next Act
328
-
329
- Proceed to **Act 2: Template and Questions** (`../act2-template-and-questions/SKILL.md`), which configures the questions (Assessment Indicator Definitions) and the non-standard activity template required for activity authoring.
330
-
331
- ---
332
-
333
- ## References
334
-
335
- - **Retail Execution Developer Guide** — `VisitSpec` object reference and field definitions.
336
- - **Visit Specifications in the UI** — Setup → Retail Execution → Visit Specifications.
337
- - **Act 3 (Activity Definition)** — where `VisitSpecId` is referenced to attach activities to this visit type.
338
- - **Act 8 (Visit Plan and Attachment)** — where Visit Plans are created that reference this Visit Specification by name and attach the activities configured in Acts 3–7.