@salesforce/afv-skills 1.55.0 → 1.56.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 (220) hide show
  1. package/package.json +1 -1
  2. package/skills/agentforce-generate/SKILL.md +8 -0
  3. package/skills/agentforce-generate/references/actions-reference.md +2 -2
  4. package/skills/agentforce-generate/references/voice-modality-reference.md +51 -15
  5. package/skills/agentforce-generate/references/voice-telephony-cli.md +193 -0
  6. package/skills/agentforce-observe/SKILL.md +13 -9
  7. package/skills/agentforce-observe/references/ahm-alerts.md +193 -14
  8. package/skills/automation-sandbox-post-copy-config-generate/SKILL.md +24 -15
  9. package/skills/automation-sandbox-post-copy-config-generate/assets/config_template.json +11 -0
  10. package/skills/automation-sandbox-post-copy-config-generate/assets/json_schema.json +33 -1
  11. package/skills/automation-sandbox-post-copy-config-generate/references/configuration_catalog.md +32 -1
  12. package/skills/automation-sandbox-post-copy-configure/SKILL.md +75 -71
  13. package/skills/automation-sandbox-post-copy-configure/assets/scheduled_apex_template.apex +13 -0
  14. package/skills/automation-sandbox-post-copy-configure/examples/sample_scheduled_apex_config.json +13 -0
  15. package/skills/automation-sandbox-post-copy-configure/references/scheduled_apex_path.md +155 -0
  16. package/skills/automation-sandbox-post-copy-configure/scripts/build-scheduled-apex.mjs +62 -0
  17. package/skills/automation-sandbox-post-copy-configure/scripts/soql-escape-job-name.mjs +28 -0
  18. package/skills/consumer-goods-accruals-datakit-deploy/SKILL.md +383 -0
  19. package/skills/consumer-goods-accruals-datakit-deploy/scripts/setup.js +324 -0
  20. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/00-check-prerequisites.js +63 -0
  21. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/01-download-static-resource.js +100 -0
  22. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/02-replace-org-id.js +46 -0
  23. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/03-deploy-metadata.js +46 -0
  24. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/04-deploy-engine.js +198 -0
  25. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/05-deploy-tpm-accruals.js +231 -0
  26. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/06-create-dataspace.js +82 -0
  27. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/07-deploy-accruals-reports.js +517 -0
  28. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/08-deploy-ui.js +416 -0
  29. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/09-completion.js +44 -0
  30. package/skills/consumer-goods-accruals-datakit-deploy/scripts/steps/utils.js +514 -0
  31. package/skills/consumer-goods-sync-management-configure/SKILL.md +137 -0
  32. package/skills/consumer-goods-sync-management-configure/examples/scenarios.md +294 -0
  33. package/skills/consumer-goods-sync-management-configure/references/act1-setup-sync.md +333 -0
  34. package/skills/consumer-goods-sync-management-configure/references/act2-assign-users.md +324 -0
  35. package/skills/consumer-goods-sync-management-configure/references/act3-plan-verify.md +113 -0
  36. package/skills/consumer-goods-sync-management-configure/references/readiness-and-enablement.md +164 -0
  37. package/skills/consumer-goods-sync-management-configure/references/sync-management-app-install-backbone.md +159 -0
  38. package/skills/consumer-goods-sync-management-configure/references/transports-and-namespace.md +220 -0
  39. package/skills/consumer-goods-sync-management-configure/references/verify-and-smoke.md +175 -0
  40. package/skills/dx-org-analyze/SKILL.md +0 -1
  41. package/skills/dx-org-analyze/scripts/collect_org_data.py +2 -2
  42. package/skills/dx-org-analyze/scripts/compute_diff.py +2 -4
  43. package/skills/dx-org-analyze/scripts/introspect_org.py +4 -40
  44. package/skills/dx-org-manage/SKILL.md +6 -50
  45. package/skills/dx-org-manage/examples/README.md +10 -16
  46. package/skills/dx-org-manage/references/scratch-org-create.md +1 -1
  47. package/skills/dx-org-manage/references/scratch-org-operations.md +1 -1
  48. package/skills/dx-org-shape-manage/SKILL.md +4 -3
  49. package/skills/education-cloud-domain-configure/references/gotchas-extended.md +1 -0
  50. package/skills/experience-accessibility-validate/SKILL.md +8 -5
  51. package/skills/experience-accessibility-validate/references/reviewers/sc-1-1-1-non-text-content.md +1 -4
  52. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-1-i-lists.md +0 -4
  53. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-1-ii-tables.md +20 -85
  54. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-1-iii-form-labels.md +4 -4
  55. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-1-iv-regions.md +0 -4
  56. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-1-v-groups.md +2 -4
  57. package/skills/experience-accessibility-validate/references/reviewers/sc-1-3-5-identify-input.md +0 -4
  58. package/skills/experience-accessibility-validate/references/reviewers/sc-1-4-3-contrast.md +4 -14
  59. package/skills/experience-accessibility-validate/references/reviewers/sc-2-1-1-keyboard.md +9 -5
  60. package/skills/experience-accessibility-validate/references/reviewers/sc-2-4-4-link-purpose.md +1 -4
  61. package/skills/experience-accessibility-validate/references/reviewers/sc-2-4-6-headings-labels.md +0 -4
  62. package/skills/experience-accessibility-validate/references/reviewers/sc-2-5-1-pointer-gestures.md +0 -4
  63. package/skills/experience-accessibility-validate/references/reviewers/sc-2-5-2-pointer-cancellation.md +0 -4
  64. package/skills/experience-accessibility-validate/references/reviewers/sc-2-5-3-label-in-name.md +0 -4
  65. package/skills/experience-accessibility-validate/references/reviewers/sc-2-5-7-dragging-movement.md +0 -4
  66. package/skills/experience-accessibility-validate/references/reviewers/sc-3-2-1-on-focus.md +0 -4
  67. package/skills/experience-accessibility-validate/references/reviewers/sc-3-2-2-on-input.md +1 -4
  68. package/skills/experience-accessibility-validate/references/reviewers/sc-3-3-1-error-identification.md +1 -4
  69. package/skills/experience-accessibility-validate/references/reviewers/sc-3-3-2-labels-instructions.md +1 -4
  70. package/skills/experience-accessibility-validate/references/reviewers/sc-3-3-3-error-suggestion.md +1 -4
  71. package/skills/experience-accessibility-validate/references/reviewers/sc-4-1-2-i-name.md +4 -5
  72. package/skills/experience-accessibility-validate/references/reviewers/sc-4-1-2-ii-role.md +1 -4
  73. package/skills/experience-accessibility-validate/references/reviewers/sc-4-1-2-iii-value.md +0 -4
  74. package/skills/experience-lwc-accessibility-jest-run/SKILL.md +104 -25
  75. package/skills/experience-lwc-accessibility-jest-run/assets/jest.config.js +4 -0
  76. package/skills/experience-lwc-accessibility-jest-run/assets/sa11y-jest-setup.js +5 -0
  77. package/skills/experience-ui-bundle-app-coordinate/SKILL.md +5 -5
  78. package/skills/experience-ui-bundle-features-generate/SKILL.md +65 -36
  79. package/skills/experience-ui-bundle-features-generate/references/angular/features.md +74 -0
  80. package/skills/experience-ui-bundle-features-generate/references/react/features.md +59 -0
  81. package/skills/experience-ui-bundle-features-generate/scripts/detect-framework.sh +73 -0
  82. package/skills/experience-ui-bundle-frontend-generate/SKILL.md +2 -2
  83. package/skills/experience-ui-bundle-metadata-generate/SKILL.md +26 -14
  84. package/skills/experience-ui-bundle-metadata-generate/references/angular-metadata-generate.md +37 -0
  85. package/skills/experience-ui-bundle-metadata-generate/references/react-metadata-generate.md +32 -0
  86. package/skills/experience-ui-bundle-metadata-generate/scripts/detect-framework.sh +73 -0
  87. package/skills/experience-ui-bundle-metadata-generate/scripts/verify-bundle-location.sh +30 -8
  88. package/skills/field-service-data-capture-migrate/SKILL.md +391 -0
  89. package/skills/field-service-data-capture-migrate/assets/sample-legacy-flow.flow-meta.xml +163 -0
  90. package/skills/field-service-data-capture-migrate/references/architecture-notes.md +40 -0
  91. package/skills/field-service-data-capture-migrate/references/component-mapping.md +278 -0
  92. package/skills/field-service-data-capture-migrate/references/converter-builder-contract.md +183 -0
  93. package/skills/field-service-data-capture-migrate/references/dc-platform-rules.md +130 -0
  94. package/skills/field-service-data-capture-migrate/references/fsm-dc-capability-catalog.md +215 -0
  95. package/skills/field-service-data-capture-migrate/references/known-deploy-errors.md +36 -0
  96. package/skills/field-service-data-capture-migrate/references/migration-checklist.md +121 -0
  97. package/skills/field-service-data-capture-migrate/references/transformer-rules.md +132 -0
  98. package/skills/field-service-data-capture-migrate/scripts/analyze_flow.py +277 -0
  99. package/skills/field-service-data-capture-migrate/scripts/convert_to_dc_spec.py +1311 -0
  100. package/skills/field-service-data-capture-migrate/scripts/cud_analysis.py +402 -0
  101. package/skills/field-service-data-capture-migrate/scripts/deploy_flow.sh +230 -0
  102. package/skills/field-service-data-capture-migrate/scripts/discover_subflow_tree.py +230 -0
  103. package/skills/field-service-data-capture-migrate/scripts/flow_input.py +186 -0
  104. package/skills/field-service-data-capture-migrate/scripts/flow_xml_utils.py +39 -0
  105. package/skills/field-service-data-capture-migrate/scripts/fsm_dc_catalog.py +413 -0
  106. package/skills/field-service-data-capture-migrate/scripts/generate_summary.py +199 -0
  107. package/skills/field-service-data-capture-migrate/scripts/json_to_flow_xml.py +146 -0
  108. package/skills/field-service-data-capture-migrate/scripts/manual_review_flags.py +42 -0
  109. package/skills/field-service-data-capture-migrate/scripts/retrieve_flow_rest.sh +155 -0
  110. package/skills/field-service-data-capture-migrate/scripts/subflow_names.py +49 -0
  111. package/skills/field-service-data-capture-migrate/scripts/transform_flow.py +1661 -0
  112. package/skills/field-service-data-capture-migrate/scripts/validate_flow.sh +147 -0
  113. package/skills/field-service-data-capture-migrate/scripts/vendor/build_flow.py +1258 -0
  114. package/skills/life-sciences-fieldsalesrep-coordinate/SKILL.md +1 -1
  115. package/skills/life-sciences-fieldsalesrep-coordinate/references/orchestration-flow.md +1 -1
  116. package/skills/life-sciences-kam-coordinate/references/stage-5-data-and-plan-templates-overview.md +14 -1
  117. package/skills/mobile-apps-create/SKILL.md +1 -1
  118. package/skills/{platform-agentsetup-categories-fetch → platform-agenticsetup-categories-get}/SKILL.md +7 -7
  119. package/skills/platform-sandbox-configure/SKILL.md +108 -133
  120. package/skills/platform-sandbox-configure/references/api-response-shapes.md +39 -0
  121. package/skills/platform-sandbox-configure/references/definition-file-approach.md +73 -0
  122. package/skills/platform-widget-generate/SKILL.md +26 -18
  123. package/skills/platform-widget-generate/examples/formulas.json +191 -0
  124. package/skills/platform-widget-generate/references/widget-formulas.md +123 -0
  125. package/skills/platform-widget-generate/references/widget-meta-directives.md +4 -4
  126. package/skills/sales-call-scoring-configure/SKILL.md +318 -0
  127. package/skills/sales-call-scoring-configure/assets/best-practice-competencies.json +67 -0
  128. package/skills/sales-call-scoring-configure/assets/ootb-competencies.json +58 -0
  129. package/skills/sales-call-scoring-configure/references/admin-communication.md +79 -0
  130. package/skills/sales-call-scoring-configure/references/competency-crud.md +130 -0
  131. package/skills/sales-call-scoring-configure/scripts/create-competency.sh +166 -0
  132. package/skills/sales-call-scoring-configure/scripts/create-custom-competency.sh +166 -0
  133. package/skills/sales-call-scoring-configure/scripts/edit-competency.sh +185 -0
  134. package/skills/sales-call-scoring-configure/scripts/edit-custom-competency.sh +190 -0
  135. package/skills/sales-call-scoring-configure/scripts/enable-call-scoring.sh +436 -0
  136. package/skills/sales-call-scoring-configure/scripts/get-competency.sh +72 -0
  137. package/skills/sales-call-scoring-configure/scripts/get-custom-competency.sh +78 -0
  138. package/skills/sales-call-scoring-configure/scripts/install-best-practice-competencies.sh +223 -0
  139. package/skills/sales-call-scoring-configure/scripts/install-ootb-competencies.sh +237 -0
  140. package/skills/sales-call-scoring-configure/scripts/list-competencies.sh +99 -0
  141. package/skills/sales-call-scoring-configure/scripts/shared/auth.sh +116 -0
  142. package/skills/sales-call-scoring-configure/scripts/shared/cap.sh +86 -0
  143. package/skills/sales-call-scoring-configure/scripts/shared/soap.sh +267 -0
  144. package/skills/sales-call-scoring-configure/scripts/shared/soql.sh +25 -0
  145. package/skills/sales-call-scoring-configure/scripts/toggle-competency.sh +112 -0
  146. package/skills/sales-call-scoring-configure/scripts/toggle-custom-competency.sh +125 -0
  147. package/skills/sales-call-scoring-configure/scripts/verify-ootb-competencies.sh +116 -0
  148. package/skills/service-concierge-portal-generate/references/portal-deploy-runbook.md +1 -0
  149. package/skills/service-de-channel-activate/SKILL.md +6 -5
  150. package/skills/service-de-channel-create/SKILL.md +3 -3
  151. package/skills/service-de-channel-routing-configure/SKILL.md +3 -3
  152. package/skills/service-de-channel-settings-configure/SKILL.md +195 -0
  153. package/skills/service-de-channel-settings-configure/references/channel-settings-facets.md +152 -0
  154. package/skills/{service-de-channel-consent-configure → service-de-channel-settings-configure}/references/gotchas.md +3 -3
  155. package/skills/{service-de-channel-consent-configure → service-de-channel-settings-configure}/references/language-keywords.md +4 -4
  156. package/skills/{service-de-channel-consent-configure → service-de-channel-settings-configure}/references/worked-examples.md +14 -14
  157. package/skills/service-de-headless-channel-configure/SKILL.md +6 -6
  158. package/skills/service-de-headless-channel-configure/references/worked-examples.md +1 -1
  159. package/skills/service-helpagent-coordinate/SKILL.md +3 -2
  160. package/skills/service-helpagent-coordinate/references/channel-voice.md +15 -4
  161. package/skills/service-itsm-agentic-setup-agentforce-coordinate/SKILL.md +49 -31
  162. package/skills/service-itsm-agentic-setup-agentforce-coordinate/examples/output-templates.md +71 -6
  163. package/skills/service-itsm-agentic-setup-agentforce-coordinate/scripts/verify-child-verdict.mjs +26 -4
  164. package/skills/service-itsm-agentic-setup-cmdb-access-assign/SKILL.md +35 -10
  165. package/skills/service-itsm-agentic-setup-cmdb-access-assign/references/mcp-invocation.md +25 -5
  166. package/skills/service-itsm-agentic-setup-cmdb-bundle-deploy/SKILL.md +1 -1
  167. package/skills/service-itsm-agentic-setup-cmdb-configure/SKILL.md +5 -5
  168. package/skills/service-itsm-agentic-setup-cmdb-configure/references/mcp-invocation.md +1 -1
  169. package/skills/service-itsm-agentic-setup-cmdb-coordinate/SKILL.md +2 -2
  170. package/skills/service-itsm-agentic-setup-cmdb-coordinate/examples/output-templates.md +1 -1
  171. package/skills/service-itsm-agentic-setup-cmdb-discovery-configure/SKILL.md +25 -15
  172. package/skills/service-itsm-agentic-setup-employee-agent-configure/SKILL.md +8 -5
  173. package/skills/service-itsm-agentic-setup-employee-agent-configure/references/report-format.md +4 -2
  174. package/skills/service-itsm-agentic-setup-employee-agent-configure/references/workflow-detail.md +1 -1
  175. package/skills/service-itsm-agentic-setup-employee-agent-configure/scripts/render-report.mjs +29 -16
  176. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/SKILL.md +8 -5
  177. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/references/report-format.md +4 -2
  178. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/references/workflow-detail.md +1 -1
  179. package/skills/service-itsm-agentic-setup-fulfiller-agent-configure/scripts/render-report.mjs +29 -16
  180. package/skills/service-itsm-agentic-setup-incident-management/SKILL.md +138 -68
  181. package/skills/service-itsm-agentic-setup-incident-management/examples/output-templates.md +31 -15
  182. package/skills/service-itsm-agentic-setup-incident-management/references/incident-persona-psg.md +156 -0
  183. package/skills/service-itsm-agentic-setup-incident-management/references/incident-preferences.md +148 -0
  184. package/skills/service-itsm-agentic-setup-incident-management/references/major-incident-management.md +162 -0
  185. package/skills/service-itsm-agentic-setup-incident-management/references/service-mgmt-privilege.md +149 -0
  186. package/skills/service-itsm-agentic-setup-incident-sla-configure/SKILL.md +103 -89
  187. package/skills/service-itsm-agentic-setup-incident-sla-configure/assets/attach-milestone.json +2 -2
  188. package/skills/service-itsm-agentic-setup-incident-sla-configure/assets/predefined-incident-policy.json +21 -39
  189. package/skills/service-itsm-agentic-setup-incident-sla-configure/examples/milestone-patterns.md +3 -3
  190. package/skills/service-itsm-agentic-setup-incident-sla-configure/examples/output-templates.md +18 -1
  191. package/skills/service-itsm-agentic-setup-incident-sla-configure/references/mcp-invocation.md +63 -37
  192. package/skills/service-omni-attribute-routing-configure/SKILL.md +53 -0
  193. package/skills/service-omni-attribute-routing-configure/references/api-notes.md +7 -0
  194. package/skills/service-omni-attribute-routing-configure/scripts/configure-and-report.sh +224 -0
  195. package/skills/service-omni-attribute-routing-configure/scripts/tests/test_attribute_routing_contracts.py +137 -0
  196. package/skills/service-omni-channel-inventory-analyze/SKILL.md +96 -0
  197. package/skills/service-omni-channel-inventory-analyze/references/api-notes.md +52 -0
  198. package/skills/service-omni-channel-inventory-analyze/scripts/analyze.sh +185 -0
  199. package/skills/service-omni-channel-inventory-analyze/scripts/tests/_bootstrap.py +84 -0
  200. package/skills/service-omni-channel-inventory-analyze/scripts/tests/test_inventory_analyze_contracts.py +141 -0
  201. package/skills/service-omni-channel-limits-analyze/SKILL.md +70 -0
  202. package/skills/service-omni-channel-limits-analyze/references/api-notes.md +22 -0
  203. package/skills/service-omni-channel-limits-analyze/scripts/analyze.sh +159 -0
  204. package/skills/service-omni-channel-limits-analyze/scripts/tests/_bootstrap.py +87 -0
  205. package/skills/service-omni-channel-limits-analyze/scripts/tests/test_limits_analyze_contracts.py +99 -0
  206. package/skills/service-omni-channel-setup-coordinate/SKILL.md +12 -20
  207. package/skills/service-omni-channel-setup-coordinate/scripts/integration-driver.sh +55 -5
  208. package/skills/service-omni-channel-setup-coordinate/scripts/tests/test_omni_contracts.py +38 -0
  209. package/skills/service-omni-command-center-analyze/SKILL.md +2 -2
  210. package/skills/service-omni-command-center-analyze/scripts/analyze.sh +3 -3
  211. package/skills/dx-org-manage/examples/snapshots/error_output.json +0 -9
  212. package/skills/dx-org-manage/examples/snapshots/success_output.json +0 -15
  213. package/skills/dx-org-manage/references/cli_flags.md +0 -67
  214. package/skills/dx-org-manage/references/creating-snapshot.md +0 -103
  215. package/skills/dx-org-manage/references/snapshot_usage.md +0 -74
  216. package/skills/experience-accessibility-validate/scripts/contrast-ratio.py +0 -153
  217. package/skills/experience-lwc-accessibility-jest-run/references/running-sa11y-jest-tests.md +0 -205
  218. package/skills/experience-ui-bundle-features-generate/scripts/verify-react-bundle.sh +0 -14
  219. /package/skills/experience-ui-bundle-features-generate/references/{conflict-resolution-schema.json → common/conflict-resolution-schema.json} +0 -0
  220. /package/skills/{platform-agentsetup-categories-fetch → platform-agenticsetup-categories-get}/references/api-response-schema.md +0 -0
@@ -236,7 +236,7 @@ Before presenting the workflow, establish which org to use. Do this **every time
236
236
  - **Stage 2**: objects/profiles/config records deployed, `<N>` layouts + `<N>` flexipages deployed, 28 trigger handlers activated.
237
237
  - **Stage 3**: Territory Model `<model name>` (Active); Level-3 Territory `<territory name>`.
238
238
  - **Stage 4**: User `<firstName> <lastName>` (`<username>`); Profile `LSC Custom Profile`; permission sets Life Sciences Core, Life Sciences Field Sales Representative, Health Cloud Starter, Life Sciences Key Account Management; Territory `<territory name>`; admin also assigned to the territory.
239
- - **Stage 5**: Account + Healthcare Provider created; Visit `<subject>` (Territory `<territory name>`); product detailing/discussion records; mobile metadata cache generated (Connect API).
239
+ - **Stage 5**: Account + Healthcare Provider created; Visit `<name>` (Territory `<territory name>`); product detailing/discussion records; mobile metadata cache generated (Connect API).
240
240
 
241
241
  Close with: "The org is ready for Life Sciences Cloud field sales workflows."
242
242
 
@@ -100,7 +100,7 @@ Expected: at least 2 records (new user + admin).
100
100
  ### After Stage 5 — Visit Creation
101
101
 
102
102
  ```bash
103
- sf data query --query "SELECT Id, Subject, TerritoryId FROM Visit ORDER BY CreatedDate DESC LIMIT 1" --target-org <org> --json
103
+ sf data query --query "SELECT Id, Name, TerritoryId FROM Visit ORDER BY CreatedDate DESC LIMIT 1" --target-org <org> --json
104
104
  ```
105
105
 
106
106
  Expected: at least 1 Visit record (created against the level-3 territory).
@@ -84,7 +84,20 @@ All three must return a record, and the `ProductTerritoryAvailability.TerritoryI
84
84
 
85
85
  Creates the goal definitions, the goal-product link, and the action-plan template (with its items) that back the KAM account plan, then publishes it (by setting its version to `Final`) and assigns it. Run entirely as the **admin** (`--target-org <admin>`), immediately after Part A — Part B links to the Part A `LifeSciMarketableProduct`.
86
86
 
87
- Only the record **names** are confirmed with the admin. All other fields are auto-derived from this reference and shown for confirmation.
87
+ Only the record **names** are the user-supplied values; all other fields are auto-derived from this reference. The names must be confirmed with the admin **before any record is created**.
88
+
89
+ > **STOP-GATE (confirm names — MANDATORY, do this FIRST).** Before running any `sf data create record` in Part B, **present the full set of proposed names below and WAIT for the admin to confirm or edit them.** Do **not** create any record until the admin explicitly responds. Present them as an editable list:
90
+ >
91
+ > | # | Record | Proposed name |
92
+ > |---|--------|----------------|
93
+ > | 1 | GoalDefinition (Strategic) | `Immunexis: Secure Q3 Formulary Position` |
94
+ > | 2 | GoalDefinition (Individual) | `Immunexis: Prepare Pharmacy & Therapeutics (P&T) Strategy` |
95
+ > | 3 | ActionPlanTemplate | `Immunexis: Formulary Submission & Review Prep` |
96
+ > | 4 | Template item 1 | `Identify key P&T committee members and influencers` |
97
+ > | 5 | Template item 2 | `Gather HEOR data supporting our value proposition` |
98
+ > | 6 | Template item 3 | `Compile the competitive landscape and formulary access gaps` |
99
+ >
100
+ > Ask: *"These are the goal, action-plan-template, and item names I'll create. Confirm as-is, or tell me which to change."* Apply any edits the admin gives, then use the confirmed names verbatim in every step below. **Only the names are editable** — `ActionPlanType`, `TargetEntityType`, goal types, categories, and other fields are auto-derived and are not changed here. Never skip this gate or assume the defaults are accepted.
88
101
 
89
102
  ## Step 1 — Two GoalDefinition records
90
103
 
@@ -54,7 +54,7 @@ If the user wants both platforms, route to each child skill separately — they
54
54
  When an app needs both:
55
55
 
56
56
  1. Route to the Mobile SDK platform skill first to scaffold and authenticate.
57
- 2. Route to the Agentforce SDK platform skill to layer the agent surface.
57
+ 2. Then you **MUST** load the Agentforce SDK platform skill (`integrate-agentforce-ios` or `integrate-agentforce-android`) to layer the agent surface. Do not hand-write the Agentforce integration — the SDK's dependencies, products, and APIs are not guessable and hand-rolled code will not compile.
58
58
  3. Treat each child skill's instructions as authoritative for its SDK; do not merge their steps. Each SDK owns its own auth setup, dependency installation order, and initialization sequence — interleaving them produces conflicting config and broken init order.
59
59
 
60
60
  This sequencing is the only multi-skill logic this skill owns. Everything else lives inside the child skills.
@@ -1,19 +1,19 @@
1
1
  ---
2
- name: platform-agentsetup-categories-fetch
3
- description: "Fetch agentic setup prompt categories from a connected Salesforce org using the Connect API. Use this skill to call GET /agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts. TRIGGER when: user asks to get, fetch, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, or copilot prompts. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs."
2
+ name: platform-agenticsetup-categories-get
3
+ description: "Get agentic setup prompt categories from a connected Salesforce org using the Connect API via sf api request rest. Use this skill to call GET /services/data/vXX.0/agenticsetup/categories and return the list of prompt categories, optionally with their nested prompts using fetchPrompts=true. TRIGGER when: user asks to get, fetch, retrieve, list, or show agentic setup categories, prompt categories, setup copilot categories, prompt library categories, available setup prompts, Agentforce prompt library, copilot prompts, or calls the agenticsetup categories Connect REST API. DO NOT TRIGGER when: user wants to create new categories, work with non-categories endpoints, or generate OpenAPI specs."
4
4
  allowed-tools: Bash Read
5
5
  metadata:
6
+ version: "1.1"
7
+ domains: ["Platform", "Agentforce"]
8
+ minApiVersion: "67.0"
6
9
  cliTools:
7
10
  - tool: ["sf"]
8
11
  semver: ">=2.0.0"
9
- version: "1.0"
10
- domains: ["Platform", "Agentforce"]
11
- minApiVersion: "67.0"
12
12
  ---
13
13
 
14
- # platform-agentsetup-categories-fetch
14
+ # platform-agenticsetup-categories-get
15
15
 
16
- Fetch prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
16
+ Get prompt categories from the Agentic Setup Categories Connect API on a connected Salesforce org.
17
17
 
18
18
  ## Scope
19
19
 
@@ -25,6 +25,7 @@ Manage Salesforce sandbox environments through Connect REST API — list invento
25
25
  Use `platform-sandbox-configure` when the work involves:
26
26
  - Listing or retrieving all sandboxes (GET /sandbox/reports)
27
27
  - Getting details or status of a specific sandbox by name or by ID (07E prefix)
28
+ - Checking license usage and remaining capacity by license type (GET /sandbox/licenses)
28
29
  - Activating a sandbox after a refresh completes (applying the refresh)
29
30
  - Discarding a completed refresh (keeping existing sandbox data unchanged)
30
31
  - Permanently deleting a sandbox to free up licenses
@@ -51,6 +52,7 @@ The agent MUST respond with this exact markdown (not in a code block — render
51
52
  - a. List all sandboxes — Names, types, statuses, IDs
52
53
  - b. Get details (by name) — Status, license, config
53
54
  - c. Get details (by ID) — Provide a 07E ID directly
55
+ - d. Check license usage — Available vs. used counts by license type
54
56
 
55
57
  **2. Create & Refresh**
56
58
  - a. Create a new sandbox — Dev, Dev Pro, Partial, Full
@@ -78,8 +80,9 @@ Reply with a code (e.g. "3a") or describe what you need.
78
80
  | 1a | No input needed — proceed immediately |
79
81
  | 1b | "What's the sandbox name?" |
80
82
  | 1c | "What's the sandbox ID? (starts with 07E)" |
81
- | 2a | "What name for the new sandbox, and what license type? (Developer, Developer_Pro, Partial_Copy, Full)" |
82
- | 2b | "Which sandbox do you want to refresh? Optionally, provide a new name and/or description." |
83
+ | 1d | No input needed — proceed immediately |
84
+ | 2a | First call `GET /sandbox/licenses` (Section 9) and show available/used counts; then ask for name + license type (Developer, Developer_Pro, Partial_Copy, Full) |
85
+ | 2b | First call `GET /sandbox/reports` (Section 1) and list refresh-eligible sandboxes (`isPendingActivation: false`); then ask which to refresh |
83
86
  | 3a | "Which sandbox? Provide a name or 07E ID." |
84
87
  | 3b | "Which sandbox? Provide a name or 07E ID." |
85
88
  | 3c | "Which sandbox? Provide a name or 07E ID." |
@@ -88,11 +91,7 @@ Reply with a code (e.g. "3a") or describe what you need.
88
91
  | 5a | "Delegating to the post-copy config generator — please share the SOP (file, text, or screenshot)." |
89
92
  | 5b | "Delegating to the post-copy config runner — please share the config JSON file and the target sandbox." |
90
93
 
91
- Execute the corresponding operation from the Operations section below. **Exception: 5a and 5b delegate to a different skill instead of an in-skill operation:**
92
- - 5a → Invoke the `automation-sandbox-post-copy-config-generate` skill.
93
- - 5b → Invoke the `automation-sandbox-post-copy-configure` skill.
94
-
95
- This skill does not implement post-copy automation itself — it only routes to the two skills above. Do not attempt to generate or apply a post-copy config directly from this skill.
94
+ Execute the corresponding operation below. **Exception:** 5a/5b delegate — 5a → `automation-sandbox-post-copy-config-generate`; 5b → `automation-sandbox-post-copy-configure`. This skill does not implement post-copy automation; do not generate or apply a config directly.
96
95
 
97
96
  ---
98
97
 
@@ -105,48 +104,28 @@ This skill does not implement post-copy automation itself — it only routes to
105
104
  Both paths return sandbox records with `sandboxId` (prefix `07E`) which is required for all lifecycle mutation operations.
106
105
 
107
106
  ```bash
108
- # List all sandboxes (Connect REST API)
109
107
  sf api request rest "/services/data/v66.0/sandbox/reports" --method GET
110
-
111
- # Response format:
112
- # {
113
- # "count": 3,
114
- # "sandboxes": [
115
- # {
116
- # "sandbox": {
117
- # "sandboxId": "07E...", # Required for all operations
118
- # "sandboxName": "mybox", # Top-level field — use this for name lookup
119
- # "license": "Developer",
120
- # "isPendingActivation": false,
121
- # "canActivate": true,
122
- # "canDelete": true,
123
- # ...
124
- # }
125
- # }
126
- # ]
127
- # }
128
108
  ```
129
109
 
130
- **IMPORTANT:** Do NOT use Tooling API (`SandboxInfo` or `SandboxProcess`) for sandbox discovery. The mutation endpoints (activate/discard/delete) require the `sandboxId` (07E prefix) from the Connect REST API response, NOT the `SandboxInfo.Id` (0GQ prefix) or `SandboxProcess.Id` (0GR prefix).
110
+ See `references/api-response-shapes.md` for the full response shape.
131
111
 
132
- **NEVER use SOQL / `run_soql_query` / `sf data query` for sandbox lifecycle reads — status, inventory, details, license, or pending-activation state (e.g. a "get details / status / license / pending-activation for sandbox X" request).** This data lives ONLY in the Connect REST API response (`GET /sandbox/reports` for name lookup, `GET /sandbox/sandboxes/{07E-id}` for ID lookup); there is no SObject that returns it correctly. (`sf data query --use-tooling-api` on `SandboxInfo` remains valid for the Create and Refresh flows in Operations 7 and 8, which look up the `SandboxInfo` record to mutate it — that is not a lifecycle read.) If a name lookup returns an empty inventory (`count: 0`), the sandbox does not exist — report an honest `not_found`; do NOT retry the lookup via SOQL and do NOT fabricate details.
112
+ **IMPORTANT:** Do NOT use Tooling API (`SandboxInfo`/`SandboxProcess`) for discovery — mutation endpoints require the Connect REST API's `sandboxId` (07E), NOT `SandboxInfo.Id` (0GQ) or `SandboxProcess.Id` (0GR).
133
113
 
134
- **Report the API result exactly as it comes back — never invent an error or a cause.** A `count: 0` response is a *successful* result meaning the sandbox is absent: record it directly as `not_found` with the endpoint and empty inventory as evidence. Do NOT reinterpret an empty list as an API failure. If the Connect REST API genuinely returns an error, capture that error body verbatim as the outcome — but do NOT speculate about *why* (e.g. "this must be a scratch org", "sandbox endpoints aren't supported here"). This endpoint does not report the org's edition or type, so any such explanation is a fabrication and must not appear in the output.
114
+ **NEVER use SOQL / `run_soql_query` / `sf data query` for lifecycle reads (status, inventory, details, license, pending-activation).** This data lives ONLY in the Connect REST API — no SObject returns it. (`sf data query --use-tooling-api` on `SandboxInfo` is still valid for Create/Refresh mutations, not a lifecycle read.)
135
115
 
136
- **Discovery Patterns:**
116
+ **Report API results exactly as they come back — never invent an error or a cause.** `count: 0` is a *successful* result (sandbox absent) — record `not_found`, don't reinterpret as a failure or retry via SOQL. If the API errors, capture the error body verbatim — do NOT speculate why (e.g. "must be a scratch org"); this endpoint doesn't report org edition/type, so any such guess is a fabrication.
137
117
 
138
- **When user provides a sandbox NAME:**
139
- 1. Call `GET /sandbox/reports` to get the full list
140
- 2. Iterate through `sandboxes[]` array
141
- 3. Check `sandbox.sandboxName` (top-level field) to find the matching sandbox
142
- 4. Extract `sandbox.sandboxId` from that record
143
- 5. Use the `sandboxId` in subsequent mutation operations
118
+ Required permission: `ManageSandboxes`
144
119
 
145
- **When user provides a sandboxId (07E prefix) directly:**
146
- 1. Call `GET /sandbox/sandboxes/{sandboxId}` to verify it exists and check current status
147
- 2. Use the same `sandboxId` directly in the mutation endpoint — do NOT call `/sandbox/reports`
120
+ ## Irreversible Actions — Always Confirm First
148
121
 
149
- Required permission: `ManageSandboxes`
122
+ | Action | Why irreversible |
123
+ |---|---|
124
+ | Create | Consumes a license of the selected type |
125
+ | Activate | Overwrites sandbox with refreshed data |
126
+ | Discard | Refresh data is lost |
127
+ | Delete | Sandbox permanently removed |
128
+ | Refresh with `AutoActivate=true` | Auto-applies on completion — same effect as Activate |
150
129
 
151
130
  ---
152
131
 
@@ -162,25 +141,7 @@ Returns a list of all sandboxes with their IDs, names, statuses, and license typ
162
141
  sf api request rest "/services/data/v66.0/sandbox/reports" --method GET
163
142
  ```
164
143
 
165
- **Response format:**
166
- ```json
167
- {
168
- "count": 3,
169
- "sandboxes": [
170
- {
171
- "sandbox": {
172
- "sandboxId": "07E...",
173
- "sandboxName": "DevBox1",
174
- "license": "Developer",
175
- "isPendingActivation": false,
176
- "canActivate": true,
177
- "canDelete": true,
178
- "canDiscard": false
179
- }
180
- }
181
- ]
182
- }
183
- ```
144
+ See `references/api-response-shapes.md` for the full response shape.
184
145
 
185
146
  **Use when:** User asks "show me all sandboxes", "how many sandboxes do I have", "what's the status of my sandboxes"
186
147
 
@@ -223,6 +184,7 @@ Returns detailed info for a specific sandbox.
223
184
  **Before calling PATCH /activate:**
224
185
  - [ ] Confirmed sandbox is in `Pending Activation` status via GET `/sandbox/sandboxes/{id}` (`isPendingActivation: true`)
225
186
  - [ ] Confirmed a refresh has completed successfully
187
+ - [ ] Received explicit user confirmation — this overwrites the sandbox with the refreshed data and cannot be undone
226
188
 
227
189
  **Use when:** User says "activate it", "apply the refresh", "use the latest data"
228
190
 
@@ -256,6 +218,7 @@ Poll this endpoint after activation to confirm status changed to `Active`. This
256
218
  **Before calling DELETE /discardsandbox:**
257
219
  - [ ] Confirmed sandbox is in `Pending Activation` status via GET `/sandbox/sandboxes/{id}` (`isPendingActivation: true`)
258
220
  - [ ] Confirmed this is a discard (reject refresh), NOT a delete (permanent removal)
221
+ - [ ] Received explicit user confirmation — the refresh data will be permanently lost and cannot be undone
259
222
 
260
223
  **Use when:** User says "discard the refresh", "keep existing data", "don't apply the refresh", "reject the refresh"
261
224
 
@@ -280,12 +243,34 @@ Permanently removes a sandbox and frees the license.
280
243
 
281
244
  **WARNING:** This is irreversible. Always confirm with the user before executing. Surface the sandbox name, license, and status as a safety check.
282
245
 
246
+ **If asked to restore a deleted sandbox:** No recovery path is documented today — escalate to Support rather than guessing at one.
247
+
283
248
  ---
284
249
 
285
250
  ### 7. Create a New Sandbox
286
251
 
287
252
  Creates a new sandbox from scratch. Two approaches are supported — pick based on the user's preference; default to Approach A unless the user asks for a definition file or a repeatable DX blueprint.
288
253
 
254
+ **Pre-conditions:**
255
+ - Available license of the requested type must exist in the org
256
+ - Sandbox name must be unique and not already in use
257
+ - User must have `ManageSandboxes` permission
258
+
259
+ **Before creating — always confirm first:**
260
+ - [ ] Collected Name/License; asked about that license's optional inputs (`references/definition-file-approach.md`)
261
+ - [ ] Shown this confirmation summary — common fields plus the license's own fields:
262
+
263
+ > **Creating a new sandbox — please confirm:**
264
+ > - **Name:** `<SandboxName>`
265
+ > - **Description:** `<Description or "(none)">`
266
+ > - **Create From:** Production
267
+ > - **License:** `<Developer | Developer Pro | Partial Copy | Full>`
268
+ > - *(plus this license's fields — see `references/definition-file-approach.md`)*
269
+ >
270
+ > Feel free to change any of these before I proceed.
271
+
272
+ - [ ] Received explicit confirmation — this consumes a license of the selected type
273
+
289
274
  #### Approach A — Tooling API record (direct)
290
275
 
291
276
  **API:** Tooling API — `SandboxInfo` sObject
@@ -295,10 +280,11 @@ Creates a new sandbox from scratch. Two approaches are supported — pick based
295
280
  - `LicenseType` — One of: `Developer`, `Developer_Pro`, `Partial_Copy`, `Full`
296
281
 
297
282
  **Optional inputs:**
298
- - `Description` — Description of the sandbox purpose
299
- - `Features` — `true` to upgrade sandbox data storage to 400 MB (WARNING: once enabled, cannot be decreased)
300
- - `ApexClassId` — ID of an Apex class that implements `SandboxPostCopy` interface (runs after creation completes)
301
- - `ActivationUserGroupId` — ID of a Group that determines which users can access the sandbox
283
+ - `Description` — sandbox purpose
284
+ - `Features` — storage upgrade: `Developer`→400 MB, `Developer_Pro`→2 GB (irreversible); not for `Partial_Copy`/`Full`
285
+ - `ApexClassId` — Apex class implementing `SandboxPostCopy` (runs post-creation)
286
+ - `ActivationUserGroupId` — Access group (default: All Active Users)
287
+ - `TemplateId` / `HistoryDays` / `CopyChatter` / `CopyArchivedActivities` — `Partial_Copy`/`Full`-only; per-license table in `references/definition-file-approach.md`
302
288
 
303
289
  ```bash
304
290
  # Create a Developer sandbox
@@ -307,39 +293,13 @@ sf data create record --sobject SandboxInfo --use-tooling-api --values "SandboxN
307
293
 
308
294
  #### Approach B — Sandbox definition file (Salesforce CLI)
309
295
 
310
- The DX-native path: write a JSON definition file (a reusable blueprint), then create the sandbox from it with `sf org create sandbox`. Prefer this when the user wants a checked-in, repeatable config or name-based Apex/group references (no ID lookups).
311
-
312
- ```json
313
- // config/dev-sandbox-def.json
314
- {
315
- "sandboxName": "mybox",
316
- "licenseType": "Developer"
317
- }
318
- ```
319
-
320
- ```bash
321
- sf org create sandbox --definition-file config/dev-sandbox-def.json --alias mybox --target-org prod
322
- ```
323
-
324
- **Definition file fields:**
296
+ DX-native path: write a JSON definition file, then `sf org create sandbox --definition-file <file> --alias <name> --target-org <org>`. Prefer for a checked-in, repeatable config or name-based Apex/group references. See `references/definition-file-approach.md` for the JSON example, command, and field table.
325
297
 
326
- | Field | Required | Notes |
327
- |-------|----------|-------|
328
- | `sandboxName` | Yes | Alphanumeric, max 10 chars |
329
- | `licenseType` | Yes | `Developer`, `Developer_Pro`, `Partial`, `Full` — **note: `Partial`, not `Partial_Copy`** in the definition file |
330
- | `description` | No | Purpose of the sandbox (≤1000 chars) |
331
- | `apexClassName` / `apexClassId` | No | Apex class implementing `SandboxPostCopy`; the definition file adds the *Name* variant so no ID lookup is needed |
332
- | `activationUserGroupName` / `activationUserGroupId` | No | Public group controlling sandbox access; *Name* variant avoids an ID lookup |
333
- | `features` | No | `"['SandboxStorage']"` to upgrade data storage (Developer → 400 MB, Dev Pro → 2 GB); not for Partial/Full |
334
- | `templateId` | Partial (required), Full (optional) | Sandbox template (15-char ID beginning `1ps`) selecting which objects to copy |
335
- | `historyDays` / `copyChatter` / `copyArchivedActivities` | No | Full sandboxes only |
298
+ **After creation:** A `SandboxProcess` record is created with Status = `Processing`. The sandbox copy begins immediately.
336
299
 
337
- **Pre-conditions:**
338
- - Available license of the requested type must exist in the org
339
- - Sandbox name must be unique and not already in use
340
- - User must have `ManageSandboxes` permission
300
+ **Wrong type created:** Delete and recreate with the correct type.
341
301
 
342
- **After creation:** A `SandboxProcess` record is created with Status = `Processing`. The sandbox copy begins immediately.
302
+ **Renaming:** Not a standalone action — only takes effect via a Refresh's `SandboxName` input.
343
303
 
344
304
  ---
345
305
 
@@ -360,41 +320,39 @@ Refreshes by updating the existing `SandboxInfo` record.
360
320
  - `SandboxName` — New name for the refreshed sandbox (if user wants to rename it; alphanumeric, max 10 chars)
361
321
  - `Description` — New or updated description for the sandbox
362
322
  - `AutoActivate` — `true` to auto-activate when refresh completes (default: false)
363
- - `Features` — `true` to upgrade sandbox data storage to 400 MB (WARNING: once enabled, cannot be decreased)
364
- - `ApexClassId` — ID of an Apex class that implements `SandboxPostCopy` interface (runs after refresh completes)
365
- - `ActivationUserGroupId` — ID of a Group that determines which users can access the sandbox
323
+ - `Features` — storage upgrade: `Developer`→400 MB, `Developer_Pro`→2 GB (irreversible); not for `Partial_Copy`/`Full`
324
+ - `ActivationUserGroupId` — Access group (default: All Active Users)
325
+ - `TemplateId` / `HistoryDays` / `CopyChatter` — `Partial_Copy`/`Full`-only; per-license table in `references/definition-file-approach.md`
366
326
 
367
- **Ask the user:** "Which sandbox do you want to refresh? Optionally, provide a new name and/or description if you'd like to change them."
327
+ **Before triggering refresh — always confirm first:**
328
+ - [ ] Collected the sandbox name; asked about its license's optional inputs (`references/definition-file-approach.md`)
329
+ - [ ] Shown this confirmation summary:
330
+
331
+ > **Refreshing sandbox `<name>` — please confirm:**
332
+ > - **Rename to:** `<SandboxName or "(no change)">`
333
+ > - **Description:** `<Description or "(no change)">`
334
+ > - **Auto-Activate:** `<Yes | No (default)>`
335
+ > - **Sandbox Access:** `<ActivationUserGroupId or "All Active Users">`
336
+ > - *(plus this license's fields — see `references/definition-file-approach.md`)*
337
+ >
338
+ > Feel free to change any of these before I proceed.
339
+
340
+ - [ ] Received explicit confirmation — refresh overwrites the sandbox with production data; Auto-Activate=Yes applies automatically (equivalent to Activate)
368
341
 
369
342
  **Steps:**
370
343
 
371
344
  ```bash
372
- # 1. Look up the SandboxInfo record Id by name
345
+ # 1. Look up SandboxInfo record Id by name
373
346
  sf data query --query "SELECT Id, SandboxName, LicenseType, Description FROM SandboxInfo WHERE SandboxName = '<name>'" --use-tooling-api --json
374
347
 
375
- # 2. Update the record to trigger refresh (PATCH the SandboxInfo record)
376
- # Include SandboxName and Description only if the user provided new values
348
+ # 2. PATCH to trigger refresh; include SandboxName/Description only if the user changed them
349
+ # Description is free text — escape any embedded single quotes (' -> \') before interpolating
377
350
  sf data update record --sobject SandboxInfo --use-tooling-api --record-id <0GQ-id> --values "AutoActivate=true SandboxName='<newName>' Description='<description>'"
378
351
  ```
379
352
 
380
- **Note:** Only include `SandboxName` in `--values` if the user wants to rename. Only include `Description` if the user provides one. Always include `AutoActivate`.
381
-
382
353
  #### Approach B — Sandbox definition file (Salesforce CLI)
383
354
 
384
- Refresh from the same JSON definition-file blueprint used for create (see Operation 7 for the full field table), using `sf org refresh sandbox`. Use the existing sandbox's name; the definition file supplies any changed settings (e.g., `autoActivate`, `apexClassName`).
385
-
386
- ```json
387
- // config/dev-sandbox-def.json
388
- {
389
- "sandboxName": "mybox",
390
- "licenseType": "Developer",
391
- "autoActivate": true
392
- }
393
- ```
394
-
395
- ```bash
396
- sf org refresh sandbox --name mybox --definition-file config/dev-sandbox-def.json --target-org prod
397
- ```
355
+ Refresh from the same JSON definition-file blueprint used for create, using `sf org refresh sandbox --name <name> --definition-file <file> --target-org <org>`. See `references/definition-file-approach.md` for the JSON example, command, and field table.
398
356
 
399
357
  **Pre-conditions:**
400
358
  - Sandbox must exist and be in a refreshable state
@@ -403,28 +361,45 @@ sf org refresh sandbox --name mybox --definition-file config/dev-sandbox-def.jso
403
361
 
404
362
  **After refresh:** A new `SandboxProcess` record is created with Status = `Processing`. If `AutoActivate=true`, the sandbox activates automatically when done. Otherwise it enters `Pending Activation` state.
405
363
 
364
+ **Refresh interval not met:** State the last-refreshed date and eligible date. For a fresher copy sooner, a clone (delegated) works if a spare license exists.
365
+
406
366
  ---
407
367
 
408
- ## Decision Guide for Agents
368
+ ### 9. Check License Usage
409
369
 
410
- ### When user provides a sandbox NAME (lookup required)
370
+ **Endpoint:** `GET /services/data/v66.0/sandbox/licenses`
411
371
 
412
- | User says... | Operation | Key check |
413
- |---|---|---|
414
- | "Show all my sandboxes" | GET /sandbox/reports | — |
415
- | "What's the status of X?" | GET /sandbox/reports, filter by sandboxName | — |
416
- | "Activate sandbox sbxtest" | 1. GET /sandbox/reports to find sandboxId by name<br>2. PATCH /sandbox/activate/{sandboxId} | Must be isPendingActivation: true |
417
- | "Discard the refresh on sbxtest" | 1. GET /sandbox/reports to find sandboxId by name<br>2. DELETE /sandbox/discardsandbox/{sandboxId} | Must be isPendingActivation: true |
418
- | "Delete sandbox sbxtest" | 1. GET /sandbox/reports to find sandboxId by name<br>2. DELETE /sandbox/deletesandbox/{sandboxId} | Confirm with user first |
372
+ Returns license capacity, usage, and remaining counts per license type — no sandbox name or ID needed.
419
373
 
420
- ### When user provides a sandboxId (07E prefix) directly
374
+ ```bash
375
+ sf api request rest "/services/data/v66.0/sandbox/licenses" --method GET
376
+ ```
377
+
378
+ See `references/api-response-shapes.md` for the full response shape.
379
+
380
+ **Use when:** User asks "how many sandbox licenses do I have left", "what's my license usage", "can I create another Full sandbox", or before creating/refreshing a sandbox to confirm capacity exists for that `licenseType`.
381
+
382
+ **Key response fields:**
383
+ - `licenseType` — `DEVELOPER`, `DEVELOPER_PRO`, `PARTIAL`, `FULL`
384
+ - `limit` — Total licenses of this type
385
+ - `used` — Currently allocated
386
+ - `available` — Remaining (i.e. `limit - used`)
387
+
388
+ **Create/Refresh blocked by a license limit:** offer to pick an available type, free one up by deleting a stale sandbox, ask the admin for a license increase, or — if it's an expired Courtesy Full Copy — purchase/convert it.
389
+
390
+ ---
391
+
392
+ ## Decision Guide for Agents
393
+
394
+ Resolve `sandboxId` first: by name, call `GET /sandbox/reports` and match `sandboxName`; by ID (07E prefix), call `GET /sandbox/sandboxes/{sandboxId}` directly — don't call `/sandbox/reports`.
421
395
 
422
396
  | User says... | Operation | Key check |
423
397
  |---|---|---|
424
- | "Get details for 07E..." | GET /sandbox/sandboxes/{sandboxId} | — |
425
- | "Activate sandbox 07E..." | 1. GET /sandbox/sandboxes/{sandboxId} to verify status<br>2. PATCH /sandbox/activate/{sandboxId} | Must be isPendingActivation: true |
426
- | "Discard refresh on 07E..." | 1. GET /sandbox/sandboxes/{sandboxId} to verify status<br>2. DELETE /sandbox/discardsandbox/{sandboxId} | Must be isPendingActivation: true |
427
- | "Delete sandbox 07E..." | 1. GET /sandbox/sandboxes/{sandboxId} to verify existence<br>2. DELETE /sandbox/deletesandbox/{sandboxId} | Confirm with user first |
398
+ | "Show all my sandboxes" | GET /sandbox/reports | — |
399
+ | "What's the status of X?" | GET /sandbox/reports (by name) or GET /sandbox/sandboxes/{id} (by ID) | — |
400
+ | "Activate sandbox X" | 1. Resolve `sandboxId`<br>2. PATCH /sandbox/activate/{sandboxId} | Must be isPendingActivation: true; confirm with user first |
401
+ | "Discard the refresh on X" | 1. Resolve `sandboxId`<br>2. DELETE /sandbox/discardsandbox/{sandboxId} | Must be isPendingActivation: true; confirm with user first |
402
+ | "Delete sandbox X" | 1. Resolve `sandboxId`<br>2. DELETE /sandbox/deletesandbox/{sandboxId} | Confirm with user first |
428
403
 
429
404
  ---
430
405
 
@@ -435,6 +410,6 @@ sf org refresh sandbox --name mybox --definition-file config/dev-sandbox-def.jso
435
410
  | Using activate to "start" any sandbox | Activate ONLY applies completed refreshes |
436
411
  | Using discard to "hide" or "soft-delete" | Discard ONLY rejects a pending refresh |
437
412
  | Activating without checking status first | Always verify isPendingActivation = true |
438
- | Activating without user confirmation | Always confirm with the user before applying a refresh — this replaces existing sandbox data |
439
- | Discarding without user confirmation | Always confirm with the user before discarding — this is irreversible and the refresh data is lost |
440
- | Deleting without user confirmation | Always show sandbox info and ask for explicit confirmation |
413
+ | Skipping confirmation on Create, Activate, Discard, Delete, or Refresh with `AutoActivate=true` | See Irreversible Actions above — always confirm first |
414
+ | Offering `AutoActivate` during Create | Refresh-only field |
415
+ | Offering `ApexClassId` during Refresh | Create-only field |
@@ -0,0 +1,39 @@
1
+ # Sandbox API Response Shapes
2
+
3
+ ## Sandbox Reports — `GET /sandbox/reports`
4
+
5
+ ```json
6
+ {
7
+ "count": 3,
8
+ "sandboxes": [
9
+ {
10
+ "sandbox": {
11
+ "sandboxId": "07E...",
12
+ "sandboxName": "DevBox1",
13
+ "license": "Developer",
14
+ "isPendingActivation": false,
15
+ "canActivate": true,
16
+ "canDelete": true,
17
+ "canDiscard": false
18
+ }
19
+ }
20
+ ]
21
+ }
22
+ ```
23
+
24
+ ## Sandbox Licenses — `GET /sandbox/licenses`
25
+
26
+ ```json
27
+ {
28
+ "count": 4,
29
+ "licenses": [
30
+ {
31
+ "label": "Developer",
32
+ "licenseType": "DEVELOPER",
33
+ "limit": 35,
34
+ "used": 11,
35
+ "available": 24
36
+ }
37
+ ]
38
+ }
39
+ ```
@@ -0,0 +1,73 @@
1
+ # Sandbox Definition File — Approach B (Create & Refresh)
2
+
3
+ The DX-native path for creating and refreshing a sandbox: write a JSON definition file (a reusable blueprint), then create or refresh the sandbox from it with the Salesforce CLI. Prefer this when the user wants a checked-in, repeatable config or name-based Apex/group references (no ID lookups). Default to Approach A (Tooling API record) unless the user asks for this.
4
+
5
+ ## Create
6
+
7
+ ```json
8
+ // config/dev-sandbox-def.json
9
+ {
10
+ "sandboxName": "mybox",
11
+ "licenseType": "Developer"
12
+ }
13
+ ```
14
+
15
+ ```bash
16
+ sf org create sandbox --definition-file config/dev-sandbox-def.json --alias mybox --target-org prod
17
+ ```
18
+
19
+ ## Refresh
20
+
21
+ Use the existing sandbox's name; the definition file supplies any changed settings (e.g., `autoActivate`, `apexClassName`).
22
+
23
+ ```json
24
+ // config/dev-sandbox-def.json
25
+ {
26
+ "sandboxName": "mybox",
27
+ "licenseType": "Developer",
28
+ "autoActivate": true
29
+ }
30
+ ```
31
+
32
+ ```bash
33
+ sf org refresh sandbox --name mybox --definition-file config/dev-sandbox-def.json --target-org prod
34
+ ```
35
+
36
+ ## Definition File Fields
37
+
38
+ | Field | Required | Notes |
39
+ |-------|----------|-------|
40
+ | `sandboxName` | Yes | Alphanumeric, max 10 chars |
41
+ | `licenseType` | Yes | `Developer`, `Developer_Pro`, `Partial`, `Full` — **note: `Partial`, not `Partial_Copy`** in the definition file |
42
+ | `description` | No | Purpose of the sandbox (≤1000 chars) |
43
+ | `apexClassName` / `apexClassId` | No | Apex class implementing `SandboxPostCopy`; the definition file adds the *Name* variant so no ID lookup is needed |
44
+ | `activationUserGroupName` / `activationUserGroupId` | No | Public group controlling sandbox access; *Name* variant avoids an ID lookup. Default (omitted): All Active Users |
45
+ | `features` | No | `"['SandboxStorage']"` to upgrade data storage (Developer → 400 MB, Dev Pro → 2 GB); not for Partial/Full |
46
+ | `templateId` | Partial (required), Full (optional) | Sandbox template (15-char ID beginning `1ps`) selecting which objects to copy — shown to the user as "Object Data Included: All / Template-based" |
47
+ | `historyDays` | No | Full sandboxes only. Numeric (not a checkbox): `-1` (all available days), `0` (default, none), `10`, `20`, `30`, `60`, `90`, `120`, `150`, `180`. Shown to the user as "Include Field Tracking History Data" with these day-count choices |
48
+ | `copyChatter` | No | Full sandboxes only — shown to the user as "Include Chatter Data" |
49
+ | `copyArchivedActivities` | No | Full sandboxes only, and only visible if the org purchased the archived-activities add-on (most orgs haven't — contact Support to obtain it). Don't show this in the default confirmation; only offer it if the user specifically asks about archived activities |
50
+
51
+ ## Additional Confirmation Fields by License — Create
52
+
53
+ When confirming a Create with the user (SKILL.md Section 7), show the common fields for every license, plus the additional fields for the one selected:
54
+
55
+ | License | Additional fields |
56
+ |---|---|
57
+ | All licenses (common) | Name, Description, Create From, License |
58
+ | Developer | Data Storage (Standard / →400 MB, irreversible), Apex Class, Sandbox Access (default: All Active Users) |
59
+ | Developer_Pro | Data Storage (Standard / →2 GB, irreversible), Apex Class, Sandbox Access (default: All Active Users) |
60
+ | Partial_Copy | Object Data Included (template required), Apex Class, Sandbox Access (default: All Active Users) |
61
+ | Full | Object Data Included (All / Template-based), Include Field Tracking History Data, Include Chatter Data, Apex Class, Sandbox Access (default: All Active Users) |
62
+
63
+ ## Additional Confirmation Fields by License — Refresh
64
+
65
+ Same idea for Refresh (SKILL.md Section 8). `SandboxPostCopy` (Apex Class) is Create-only — it cannot be set or changed on a refresh.
66
+
67
+ | License | Additional fields |
68
+ |---|---|
69
+ | All licenses (common) | Rename to, Description, Auto-Activate, Sandbox Access (default: All Active Users) |
70
+ | Developer | Data Storage (Standard / →400 MB, irreversible) |
71
+ | Developer_Pro | Data Storage (Standard / →2 GB, irreversible) |
72
+ | Partial_Copy | Object Data Included (template) |
73
+ | Full | Object Data Included (All / Template-based), Include Field Tracking History Data, Include Chatter Data |