@salesforce/afv-skills 1.14.0 → 1.15.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 (332) hide show
  1. package/package.json +1 -1
  2. package/skills/applying-slds/SKILL.md +322 -0
  3. package/skills/applying-slds/checklists.md +83 -0
  4. package/skills/applying-slds/examples.md +283 -0
  5. package/skills/applying-slds/guidance/README.md +83 -0
  6. package/skills/applying-slds/guidance/blueprints-index.md +213 -0
  7. package/skills/applying-slds/guidance/icons-guidance.md +186 -0
  8. package/skills/applying-slds/guidance/overviews/borders.md +236 -0
  9. package/skills/applying-slds/guidance/overviews/color.md +266 -0
  10. package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
  11. package/skills/applying-slds/guidance/overviews/icons.md +240 -0
  12. package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
  13. package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
  14. package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
  15. package/skills/applying-slds/guidance/overviews/typography.md +323 -0
  16. package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
  17. package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
  18. package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
  19. package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
  20. package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
  21. package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
  22. package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
  23. package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
  24. package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
  25. package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
  26. package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
  27. package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
  28. package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
  29. package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
  30. package/skills/applying-slds/guidance/utilities/borders.md +131 -0
  31. package/skills/applying-slds/guidance/utilities/box.md +125 -0
  32. package/skills/applying-slds/guidance/utilities/color.md +165 -0
  33. package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
  34. package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
  35. package/skills/applying-slds/guidance/utilities/floats.md +117 -0
  36. package/skills/applying-slds/guidance/utilities/grid.md +264 -0
  37. package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
  38. package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
  39. package/skills/applying-slds/guidance/utilities/index.md +205 -0
  40. package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
  41. package/skills/applying-slds/guidance/utilities/layout.md +109 -0
  42. package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
  43. package/skills/applying-slds/guidance/utilities/margin.md +155 -0
  44. package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
  45. package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
  46. package/skills/applying-slds/guidance/utilities/padding.md +155 -0
  47. package/skills/applying-slds/guidance/utilities/position.md +177 -0
  48. package/skills/applying-slds/guidance/utilities/print.md +114 -0
  49. package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
  50. package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
  51. package/skills/applying-slds/guidance/utilities/themes.md +121 -0
  52. package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
  53. package/skills/applying-slds/guidance/utilities/typography.md +166 -0
  54. package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
  55. package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
  56. package/skills/applying-slds/metadata/README.md +84 -0
  57. package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
  58. package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
  59. package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
  60. package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
  61. package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
  62. package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
  63. package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
  64. package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
  65. package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
  66. package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
  67. package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
  68. package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
  69. package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
  70. package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
  71. package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
  72. package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
  73. package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
  74. package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
  75. package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
  76. package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
  77. package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
  78. package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
  79. package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
  80. package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
  81. package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
  82. package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
  83. package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
  84. package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
  85. package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
  86. package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
  87. package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
  88. package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
  89. package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
  90. package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
  91. package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
  92. package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
  93. package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
  94. package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
  95. package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
  96. package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
  97. package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
  98. package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
  99. package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
  100. package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
  101. package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
  102. package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
  103. package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
  104. package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
  105. package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
  106. package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
  107. package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
  108. package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
  109. package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
  110. package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
  111. package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
  112. package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
  113. package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
  114. package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
  115. package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
  116. package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
  117. package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
  118. package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
  119. package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
  120. package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
  121. package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
  122. package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
  123. package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
  124. package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
  125. package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
  126. package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
  127. package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
  128. package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
  129. package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
  130. package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
  131. package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
  132. package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
  133. package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
  134. package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
  135. package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
  136. package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
  137. package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
  138. package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
  139. package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
  140. package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
  141. package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
  142. package/skills/applying-slds/metadata/hooks-index.json +6272 -0
  143. package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
  144. package/skills/applying-slds/metadata/utilities-index.json +21912 -0
  145. package/skills/applying-slds/references/component-selection.md +112 -0
  146. package/skills/applying-slds/references/icons-decision-guide.md +124 -0
  147. package/skills/applying-slds/references/styling-decision-guide.md +228 -0
  148. package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
  149. package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
  150. package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
  151. package/skills/applying-slds/scripts/search-icons.cjs +174 -0
  152. package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
  153. package/skills/generating-custom-lightning-type/SKILL.md +17 -39
  154. package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
  155. package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
  156. package/skills/investigating-agentforce-architecture/README.md +156 -0
  157. package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
  158. package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
  159. package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
  160. package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
  161. package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
  162. package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
  163. package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
  164. package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
  165. package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
  166. package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
  167. package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
  168. package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
  169. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
  170. package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
  171. package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
  172. package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
  173. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
  174. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
  175. package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
  176. package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
  177. package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
  178. package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
  179. package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
  180. package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
  181. package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
  182. package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
  183. package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
  184. package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
  185. package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
  186. package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
  187. package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
  188. package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
  189. package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
  190. package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
  191. package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
  192. package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
  193. package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
  194. package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
  195. package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
  196. package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
  197. package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
  198. package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
  199. package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
  200. package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
  201. package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
  202. package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
  203. package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
  204. package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
  205. package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
  206. package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
  207. package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
  208. package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
  209. package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
  210. package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
  211. package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
  212. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
  213. package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
  214. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
  215. package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
  216. package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
  217. package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
  218. package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
  219. package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
  220. package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
  221. package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
  222. package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
  223. package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
  224. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
  225. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
  226. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
  227. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
  228. package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
  229. package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
  230. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
  231. package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
  232. package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
  233. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
  234. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
  235. package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
  236. package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
  237. package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
  238. package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
  239. package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
  240. package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
  241. package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
  242. package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
  243. package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
  244. package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
  245. package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
  246. package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
  247. package/skills/investigating-agentforce-d360/README.md +123 -0
  248. package/skills/investigating-agentforce-d360/SKILL.md +163 -0
  249. package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
  250. package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
  251. package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
  252. package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
  253. package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
  254. package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
  255. package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
  256. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
  257. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
  258. package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
  259. package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
  260. package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
  261. package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
  262. package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
  263. package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
  264. package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
  265. package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
  266. package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
  267. package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
  268. package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
  269. package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
  270. package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
  271. package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
  272. package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
  273. package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
  274. package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
  275. package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
  276. package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
  277. package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
  278. package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
  279. package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
  280. package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
  281. package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
  282. package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
  283. package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
  284. package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
  285. package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
  286. package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
  287. package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
  288. package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
  289. package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
  290. package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
  291. package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
  292. package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
  293. package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
  294. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
  295. package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
  296. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
  297. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
  298. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
  299. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
  300. package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
  301. package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
  302. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
  303. package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
  304. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
  305. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
  306. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
  307. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
  308. package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
  309. package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
  310. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
  311. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
  312. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
  313. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
  314. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
  315. package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
  316. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
  317. package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
  318. package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
  319. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
  320. package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
  321. package/skills/managing-managed-event-subscription/SKILL.md +152 -0
  322. package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
  323. package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
  324. package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
  325. package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
  326. package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
  327. package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
  328. package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
  329. package/skills/validating-slds/SKILL.md +262 -0
  330. package/skills/validating-slds/references/quality-checks.md +308 -0
  331. package/skills/validating-slds/references/report-format.md +302 -0
  332. package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/afv-skills",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "Salesforce skills for Agentforce Vibes",
5
5
  "license": "CC-BY-NC-4.0",
6
6
  "files": [
@@ -0,0 +1,322 @@
1
+ ---
2
+ name: applying-slds
3
+ description: "Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons. Use when building any UI that needs SLDS, choosing between Lightning Base Components and SLDS Blueprints, applying styling hooks for theming, using utility classes for layout and spacing, or selecting icons. Triggers include \"build a modal\", \"create a form\", \"data table\", \"SLDS styling\", \"style with hooks\", \"add an icon\"."
4
+ metadata:
5
+ version: "1.0"
6
+ ---
7
+
8
+ # Applying SLDS
9
+
10
+ The **Salesforce Lightning Design System (SLDS)** is a CSS framework with thousands of artifacts. This skill teaches agents how to find and correctly use them.
11
+
12
+ > **Version:** This skill targets **SLDS v2**. Legacy `--lwc-*` tokens and `slds-*--modifier` syntax are deprecated.
13
+ >
14
+ > **Audit scope:** The companion `validating-slds` skill analyzer only scans `.css`, `.html`, and `.js` files. Use it directly for LWC and similar HTML/CSS/JS components; treat it as a partial signal for JSX/TSX or other framework-specific template formats and supplement with manual review.
15
+
16
+ ## What is SLDS?
17
+
18
+ | Artifact | Count | Description |
19
+ |----------|-------|-------------|
20
+ | **Lightning Base Components** | ~70 | Pre-built LWC components (LWC only) |
21
+ | **SLDS Blueprints** | 85 | CSS/HTML patterns for any framework |
22
+ | **Styling Hooks** | 523 | CSS custom properties (`--slds-g-*`) for theming |
23
+ | **Utility Classes** | 1,147 | Rapid styling classes for spacing, layout, visibility |
24
+ | **Icons** | 1,732 | SVG icons across 5 categories |
25
+
26
+ ---
27
+
28
+ ## Scope
29
+
30
+ **This skill covers:**
31
+ - Which blueprint to use for a given UI pattern
32
+ - How to style with hooks (color, spacing, typography, shadows, borders)
33
+ - Which utility classes to use for layout, spacing, visibility
34
+ - Which icon to use and from which category
35
+ - SLDS naming conventions, class structure, hook syntax
36
+
37
+ **This skill includes basic accessibility reminders** (icon alt text, focus outlines, color-not-sole-indicator) in the validation checklists. Full WCAG compliance requires a dedicated accessibility review.
38
+
39
+ **This skill does NOT cover (use companion skills):**
40
+ - **Design decisions** -- visual hierarchy, composition, interaction patterns
41
+ - **LWC mechanics** -- component structure, @wire, @api, lifecycle, events (not yet available)
42
+ - **Full accessibility** -- WCAG conformance, ARIA patterns, keyboard navigation, focus management, contrast ratios (not yet available)
43
+
44
+ ---
45
+
46
+ ## Component Selection Hierarchy
47
+
48
+ Always follow this order:
49
+
50
+ ```
51
+ 1. Lightning Base Components (LWC only) ← Check first
52
+ 2. SLDS Blueprints (any framework) ← Use exact SLDS classes
53
+ 3. Custom with Styling Hooks ← Use var(--slds-g-*)
54
+ 4. Custom CSS (last resort) ← Still use hooks for values
55
+ ```
56
+
57
+ If building in LWC, check for an LBC first: [Lightning Component Library](https://developer.salesforce.com/docs/component-library/overview/components)
58
+
59
+ If no LBC exists (or not using LWC), select an SLDS Blueprint. See [references/component-selection.md](references/component-selection.md).
60
+
61
+ ---
62
+
63
+ ## Core Rules
64
+
65
+ ### Do
66
+
67
+ - Follow the selection hierarchy: LBC > Blueprint > Hooks > Custom CSS
68
+ - Use `var(--slds-g-*, fallback)` for all themeable values
69
+ - Create custom classes (`my-*`, `c-*`) instead of overriding `.slds-*`
70
+ - **Verify every hook, class, and utility exists before using it** — run the search scripts; never assume an artifact exists based on naming patterns (see [Verify Before You Use](#verify-before-you-use))
71
+ - Pair surface colors with on-surface colors for text
72
+ - Provide `alternative-text` on every `<lightning-icon>`
73
+
74
+ ### Don't
75
+
76
+ - Hard-code colors, spacing, or typography values
77
+ - Override `.slds-*` classes directly
78
+ - Use deprecated `--lwc-*` tokens as primary values
79
+ - Use `--slds-s-*` (shared) hooks -- they are private/internal
80
+ - Reassign hook values -- only reference them with `var()`
81
+ - Use color alone to convey meaning
82
+ - Invent hook names by interpolating patterns from other families (see Naming Traps below)
83
+
84
+ ---
85
+
86
+ ## Hook Naming Traps
87
+
88
+ SLDS hook families do NOT all follow the same naming pattern. Agents frequently invent hooks that don't exist by assuming `{prefix}-{number}` works universally. **Always verify a hook exists** via the bundled `search-hooks.cjs` script or `metadata/hooks-index.json` before using it.
89
+
90
+ ### Trap 1: Font size hooks are NOT numbered
91
+
92
+ | Wrong (does not exist) | Correct | Notes |
93
+ |------------------------|---------|-------|
94
+ | `--slds-g-font-size-3` | `--slds-g-font-scale-1` | Font sizes use `font-scale-*`, not `font-size-*` |
95
+ | `--slds-g-font-size-4` | `--slds-g-font-scale-2` | Only `--slds-g-font-size-base` exists (base size) |
96
+ | `--slds-g-font-size-8` | `--slds-g-font-scale-6` | Scale goes: neg-4 through 10 |
97
+
98
+ **Rule:** For font sizes, use `--slds-g-font-size-base` (the one base size) or `--slds-g-font-scale-*` (the numbered scale). Never `--slds-g-font-size-N`.
99
+
100
+ ### Trap 2: Color hooks always require a number
101
+
102
+ | Wrong (does not exist) | Correct | Notes |
103
+ |------------------------|---------|-------|
104
+ | `--slds-g-color-on-surface` | `--slds-g-color-on-surface-2` | All color hooks need a number |
105
+ | `--slds-g-color-on-accent` | `--slds-g-color-on-accent-1` | Pick 1/2/3 by emphasis level |
106
+ | `--slds-g-color-surface` | `--slds-g-color-surface-1` | No unnumbered base form |
107
+
108
+ **Rule:** Every `--slds-g-color-*` hook ends in a number. Pick by emphasis: `-1` (low), `-2` (medium), `-3` (high).
109
+
110
+ ### Trap 3: Not all values have hook equivalents
111
+
112
+ Some CSS values (e.g., `min-width: 7rem` for label alignment) have no SLDS hook. This is acceptable:
113
+
114
+ ```css
115
+ .c-field-label {
116
+ /* No SLDS hook exists for this width; intentional custom value */
117
+ min-width: 7rem;
118
+ }
119
+ ```
120
+
121
+ **Rule:** When no hook exists, use the value directly with a comment explaining it's intentional. Prefer SLDS grid utilities (`slds-size_*`) as alternatives to hardcoded widths where possible.
122
+
123
+ ---
124
+
125
+ ## Verify Before You Use
126
+
127
+ > **Rule:** Never include an SLDS hook, utility class, blueprint class, or icon in generated code without first confirming it exists in the metadata. Guessing based on naming patterns is the primary source of invented artifacts.
128
+
129
+ Run the appropriate search command **before** emitting any SLDS artifact:
130
+
131
+ | Artifact | Verification command | Source of truth |
132
+ |----------|---------------------|-----------------|
133
+ | Styling hook (`--slds-g-*`) | `node scripts/search-hooks.cjs --prefix "<hook-name>"` | `metadata/hooks-index.json` |
134
+ | Utility class (`slds-*`) | `node scripts/search-utilities.cjs --search "<class-name>"` | `metadata/utilities-index.json` |
135
+ | Blueprint / CSS class | `node scripts/search-blueprints.cjs --search "<pattern>"` then read the YAML | `metadata/blueprints/components/*.yaml` |
136
+ | Icon | `node scripts/search-icons.cjs --query "<description>"` | `metadata/icon-metadata.json` |
137
+
138
+ If the search returns no match: **do not use the artifact.** Find an alternative from the search results or build custom with verified hooks.
139
+
140
+ ---
141
+
142
+ ## Naming Conventions
143
+
144
+ Use a consistent prefix for custom classes to avoid collision with SLDS:
145
+
146
+ | Pattern | Use Case | Example |
147
+ |---------|----------|---------|
148
+ | `my-*` | General custom styling | `my-card-header` |
149
+ | `c-*` | LWC component-specific | `c-accountList-row` |
150
+ | `[namespace]-*` | Package/app namespace | `acme-dashboard-widget` |
151
+
152
+ **Avoid:** generic names (`container`, `wrapper`), SLDS-like names (`custom-slds-button`), BEM on SLDS classes (`slds-card__custom-header`).
153
+
154
+ Custom hook namespacing:
155
+ ```css
156
+ :root {
157
+ --my-app-primary: var(--slds-g-color-accent-1);
158
+ --my-app-card-padding: var(--slds-g-spacing-4);
159
+ }
160
+ ```
161
+
162
+ ---
163
+
164
+ ## Knowledge Map
165
+
166
+ This skill bundles comprehensive SLDS knowledge. Read files as needed -- don't read everything upfront.
167
+
168
+ ### Decision Guides (start here for each task)
169
+
170
+ | File | Read when |
171
+ |------|-----------|
172
+ | [references/component-selection.md](references/component-selection.md) | Choosing a component or blueprint |
173
+ | [references/styling-decision-guide.md](references/styling-decision-guide.md) | Applying colors, spacing, typography, shadows |
174
+ | [references/icons-decision-guide.md](references/icons-decision-guide.md) | Selecting or implementing an icon |
175
+ | [references/utilities-quick-ref.md](references/utilities-quick-ref.md) | Using utility classes for layout/spacing |
176
+
177
+ ### Search Scripts (find specific artifacts)
178
+
179
+ | Script | What it searches | Example |
180
+ |--------|-----------------|---------|
181
+ | `scripts/search-blueprints.cjs` | 85 blueprint YAMLs | `--search "dialog"` |
182
+ | `scripts/search-hooks.cjs` | 523 styling hooks | `--prefix "--slds-g-color-accent-"` |
183
+ | `scripts/search-icons.cjs` | 1,732 icons with synonyms | `--query "save button"` |
184
+ | `scripts/search-utilities.cjs` | 1,147 utility classes | `--category "grid"` |
185
+
186
+ ### Deep-Dive Guidance (read for detailed rules)
187
+
188
+ | Folder | Content | Index |
189
+ |--------|---------|-------|
190
+ | `guidance/overviews/` | Foundational concepts (color, spacing, typography, etc.) | [guidance/README.md](guidance/README.md) |
191
+ | `guidance/styling-hooks/` | Hook categories with detailed usage | [guidance/README.md](guidance/README.md) |
192
+ | `guidance/utilities/` | 27 utility class categories | [guidance/README.md](guidance/README.md) |
193
+ | `guidance/slds-development-guide.md` | Full SLDS development guide | -- |
194
+
195
+ ### Raw Metadata (structured data for lookup)
196
+
197
+ > **Do not read metadata JSON files directly** — they are too large for agent context (hooks-index.json is 6,000+ lines; icon-metadata.json is 38,000+ lines). Use the search scripts above to query them.
198
+
199
+ | File | Content | Lines |
200
+ |------|---------|-------|
201
+ | `metadata/blueprints/components/*.yaml` | 85 blueprint specs (classes, variants, a11y, HTML) | ~50-200 each |
202
+ | `metadata/hooks-index.json` | 523 hooks with values and CSS properties | ~6,300 |
203
+ | `metadata/icon-metadata.json` | 1,732 icons with synonyms for search | ~38,500 |
204
+ | `metadata/utilities-index.json` | 1,147 utility classes with CSS rules | ~6,900 |
205
+
206
+ ---
207
+
208
+ ## Authoring Workflow
209
+
210
+ ### Phase 1: Understand the Need
211
+
212
+ Identify:
213
+ - What UI pattern is needed? (form, table, modal, card, etc.)
214
+ - What framework? (LWC, React, Vue, Angular, vanilla)
215
+ - What data will it display?
216
+ - What states does it need? (loading, empty, error, success)
217
+
218
+ ### Phase 2: Select the Artifact
219
+
220
+ 1. **If LWC**: Check the [Lightning Component Library](https://developer.salesforce.com/docs/component-library/overview/components) for an LBC
221
+ 2. **Search blueprints**: `node scripts/search-blueprints.cjs --search "<pattern>"`
222
+ 3. **Read the blueprint YAML**: `metadata/blueprints/components/<name>.yaml` for exact classes, modifiers, states, and accessibility requirements
223
+ 4. **No match?** Build custom with hooks (see Phase 3)
224
+
225
+ Details: [references/component-selection.md](references/component-selection.md)
226
+
227
+ ### Phase 3: Apply Styling
228
+
229
+ 1. **Read**: [references/styling-decision-guide.md](references/styling-decision-guide.md)
230
+ 2. **Colors**: Classify role (surface, accent, feedback, border) then pick hook
231
+ 3. **Spacing**: Use utility classes (`slds-p-*`, `slds-m-*`) or hooks (`--slds-g-spacing-*`)
232
+ 4. **Layout**: Use grid utilities (`slds-grid`, `slds-col`, `slds-size_*`)
233
+ 5. **Custom CSS**: Use `var(--slds-g-*, fallback)`, custom class prefixes only
234
+
235
+ ### Phase 4: Add Icons
236
+
237
+ 1. **Read**: [references/icons-decision-guide.md](references/icons-decision-guide.md)
238
+ 2. **Search**: `node scripts/search-icons.cjs --query "<description>"`
239
+ 3. **In LWC**: Use `<lightning-icon>` with `alternative-text`
240
+ 4. **In non-LWC**: Use SVG with `slds-icon` classes and `slds-assistive-text`
241
+
242
+ ### Phase 5: Validate (Mandatory — Do Not Skip)
243
+
244
+ **Step 1: Run the SLDS linter.** This is required. Zero violations is the target.
245
+
246
+ ```bash
247
+ npx @salesforce-ux/slds-linter@latest lint <component-path>
248
+ ```
249
+
250
+ The linter catches hardcoded values, class overrides, and deprecated tokens. **Fix all violations before proceeding.** Do not rationalize violations as acceptable.
251
+
252
+ **Step 2: Verify no invented hooks.** Confirm every `--slds-g-*` hook in the output exists in `metadata/hooks-index.json`. Cross-reference against the T051 check in [checklists.md](checklists.md).
253
+
254
+ **Step 3: Run through [checklists.md](checklists.md)** for the checks the linter cannot automate:
255
+ - All `var(--slds-g-*)` have fallback values (T002)
256
+ - Surface/accent/feedback color hooks are properly paired (T010–T013)
257
+ - Spacing uses hooks or utility classes — no magic `px` values (T020–T021)
258
+ - Font sizes use `--slds-g-font-scale-*`, not `--slds-g-font-size-N` (T031)
259
+ - All icons have accessibility text (A004)
260
+ - Custom classes use `my-*` or `c-*` prefix (Q010)
261
+
262
+ **Step 4 (optional): Run the full quality audit** using the `validating-slds` skill for a scored report before code review or deployment. Use it directly for LWC / HTML-CSS-JS components; for JSX/TSX outputs, treat the result as partial coverage only. Target a B grade (≥80) or higher before marking work complete.
263
+
264
+ ---
265
+
266
+ ## Quick Reference
267
+
268
+ ### Common Hook Patterns
269
+
270
+ ```css
271
+ /* Surface + text pairing (always use numbered variants) */
272
+ background: var(--slds-g-color-surface-1, #ffffff);
273
+ color: var(--slds-g-color-on-surface-2, #181818);
274
+
275
+ /* Standard padding */
276
+ padding: var(--slds-g-spacing-4, 1rem);
277
+
278
+ /* Card-like container */
279
+ border-radius: var(--slds-g-radius-border-2, 0.25rem);
280
+ box-shadow: var(--slds-g-shadow-1, 0 2px 4px rgba(0,0,0,0.1));
281
+
282
+ /* Accent for primary actions */
283
+ background: var(--slds-g-color-accent-1, #0176d3);
284
+ color: var(--slds-g-color-on-accent-1, #ffffff);
285
+
286
+ /* Typography -- use font-scale-*, NOT font-size-* (only font-size-base exists) */
287
+ font-size: var(--slds-g-font-scale-2, 0.875rem);
288
+ ```
289
+
290
+ ### Common Utility Patterns
291
+
292
+ ```html
293
+ <!-- Responsive grid -->
294
+ <div class="slds-grid slds-wrap slds-gutters">
295
+ <div class="slds-col slds-size_1-of-1 slds-medium-size_1-of-2">...</div>
296
+ </div>
297
+
298
+ <!-- Spacing -->
299
+ <div class="slds-p-around_medium slds-m-bottom_small">...</div>
300
+
301
+ <!-- Truncation -->
302
+ <p class="slds-truncate" title="Full text here">Full text here</p>
303
+ ```
304
+
305
+ ---
306
+
307
+ ## Examples
308
+
309
+ See [examples.md](examples.md) for worked examples demonstrating the full workflow from intent to SLDS artifact selection.
310
+
311
+ ## Validation
312
+
313
+ See [checklists.md](checklists.md) for validation checklists aligned with the validating-slds skill.
314
+
315
+ ## Resources
316
+
317
+ | Resource | URL |
318
+ |----------|-----|
319
+ | SLDS Website | https://www.lightningdesignsystem.com/ |
320
+ | Lightning Component Library | https://developer.salesforce.com/docs/component-library/overview/components |
321
+ | SLDS Linter | https://developer.salesforce.com/docs/platform/slds-linter/guide |
322
+ | Styling Hooks Reference | https://www.lightningdesignsystem.com/2e1ef8501/p/591960-global-styling-hooks |
@@ -0,0 +1,83 @@
1
+ # Validation Checklists
2
+
3
+ Run through these checks before finalizing any SLDS-authored component. Check IDs align with the validating-slds skill's quality-checks.md.
4
+
5
+
6
+ ## Theming & Styling (T-series)
7
+
8
+ Code produced by this skill should score high on T-series checks.
9
+
10
+ | Check | What to verify | Audit ID |
11
+ |-------|---------------|----------|
12
+ | **Hook fallbacks** | Every `var(--slds-g-*)` has a fallback value | T002 |
13
+ | **Surface pairing** | `surface-*` bg paired with `on-surface-*` text | T010 |
14
+ | **Container pairing** | `surface-container-*` bg paired with `on-surface-*` text | T011 |
15
+ | **Accent pairing** | `accent-*` bg paired with `on-accent-*` text | T012 |
16
+ | **Feedback pairing** | Feedback colors paired with correct text hooks | T013 |
17
+ | **Spacing hooks** | Spacing uses `var(--slds-g-spacing-*)` or utility classes | T020 |
18
+ | **No magic pixels** | No arbitrary `px` values for spacing | T021 |
19
+ | **Font family hooks** | `font-family` uses `var(--slds-g-font-family-*)` | T030 |
20
+ | **Font size hooks** | `font-size` uses `var(--slds-g-font-scale-*)` or `var(--slds-g-font-size-base)` -- NOT `var(--slds-g-font-size-N)` | T031 |
21
+ | **Font weight hooks** | `font-weight` uses `var(--slds-g-font-weight-*)` | T032 |
22
+ | **Shadow hooks** | Shadows use `var(--slds-g-shadow-*)` | T040 |
23
+ | **Border radius hooks** | Border radius uses `var(--slds-g-radius-*)` | T041 |
24
+ | **Color hooks numbered** | Every `--slds-g-color-*` hook ends in a number (no bare `on-surface`, `on-accent`, etc.) | T050 |
25
+ | **No invented hooks** | Every hook referenced actually exists in `metadata/hooks-index.json` | T051 |
26
+ | **No hardcoded colors** | No hex, rgb, or named colors (linter also catches this) | linter |
27
+ | **No class overrides** | No `.slds-*` class overrides (linter also catches this) | linter |
28
+ | **No deprecated tokens** | No `--lwc-*` tokens (linter also catches this) | linter |
29
+
30
+ ---
31
+
32
+ ## Code Quality (Q-series)
33
+
34
+ | Check | What to verify | Audit ID |
35
+ |-------|---------------|----------|
36
+ | **No !important** | No `!important` declarations | Q001 |
37
+ | **No inline styles** | No `style="..."` in HTML | Q002 |
38
+ | **Custom class prefix** | Custom classes use `my-*`, `c-*`, or namespace prefix | Q010 |
39
+ | **No dynamic SLDS class manipulation** | Avoid `.classList.add/remove/toggle('slds-*')` patterns in JS | Q012 |
40
+ | **No magic numbers** | All numeric values have clear purpose | Q020 |
41
+
42
+ ---
43
+
44
+ ## Component Usage (C-series)
45
+
46
+ | Check | What to verify | Audit ID |
47
+ |-------|---------------|----------|
48
+ | **LBC inputs** (LWC) | Use `<lightning-input>` not `<input>` | C001 |
49
+ | **LBC buttons** (LWC) | Use `<lightning-button>` not `<button>` | C002 |
50
+ | **LBC icons** (LWC) | Use `<lightning-icon>` not custom SVG | C003 |
51
+ | **Blueprint structure** | Cards use `slds-card`, modals use `slds-modal`, etc. | C010-C013 |
52
+
53
+ ---
54
+
55
+ ## Accessibility Reminders (A-series)
56
+
57
+ Deep accessibility is owned by the **accessibility skill**. These are minimal reminders to nudge agents.
58
+
59
+ | Check | What to verify | Audit ID |
60
+ |-------|---------------|----------|
61
+ | **Icon alt text** | All `<lightning-icon>` have `alternative-text` (empty string for decorative) | A004 |
62
+ | **Image alt text** | All `<img>` have `alt` attribute | A005 |
63
+ | **Color not sole indicator** | Status uses icon or text too, not just color | A030 |
64
+ | **No outline:none** | Don't remove focus outline without replacement | A021 |
65
+
66
+ For full WCAG compliance, apply the accessibility skill after authoring.
67
+
68
+ ---
69
+
70
+ ## Quick Validation Script
71
+
72
+ Run the SLDS linter to catch the most common issues automatically:
73
+
74
+ ```bash
75
+ npx @salesforce-ux/slds-linter@latest lint .
76
+ ```
77
+
78
+ The linter catches:
79
+ - `slds/class-override` -- overriding SLDS classes
80
+ - `slds/lwc-token-to-slds-hook` -- deprecated tokens
81
+ - `slds/no-hardcoded-values` -- hardcoded colors/spacing
82
+
83
+ Everything above the linter line must be checked manually or by the auditing skill.
@@ -0,0 +1,283 @@
1
+ # Examples
2
+
3
+ Worked examples showing the SLDS authoring workflow: from intent to artifact selection.
4
+
5
+ Each example follows the 5-phase workflow from SKILL.md and shows which files were consulted and why.
6
+
7
+
8
+ ## Example 1: Build a Confirmation Dialog
9
+
10
+ ### Phase 1: Understand the Need
11
+
12
+ - **Pattern:** Confirmation dialog before a destructive action
13
+ - **Framework:** LWC
14
+ - **States:** Open, confirming (loading), closed
15
+
16
+ ### Phase 2: Select the Artifact
17
+
18
+ **Check LBC:** `LightningModal` exists in the [Lightning Component Library](https://developer.salesforce.com/docs/component-library/overview/components). Use it.
19
+
20
+ **Also search blueprints** (for class reference):
21
+
22
+ ```bash
23
+ node scripts/search-blueprints.cjs --search "modal"
24
+ # Found: Modals (category: Overlay, root: slds-modal)
25
+ ```
26
+
27
+ **Read blueprint YAML** for class details: `metadata/blueprints/components/modals.yaml`
28
+
29
+ Key takeaway: `LightningModal` handles the `slds-modal`, `slds-backdrop`, and ARIA attributes automatically. No need to apply blueprint classes manually in LWC.
30
+
31
+ ### Phase 3: Apply Styling
32
+
33
+ **Read:** `references/styling-decision-guide.md`
34
+
35
+ The destructive action button needs error color to signal danger:
36
+
37
+ ```bash
38
+ node scripts/search-hooks.cjs --prefix "--slds-g-color-error-"
39
+ # Found: --slds-g-color-error-1 (#ea001e), --slds-g-color-on-error-1 (#ffffff)
40
+ ```
41
+
42
+ **Result:** Use `variant="destructive"` on `lightning-button` inside the modal footer. The LBC handles the correct SLDS color hooks internally.
43
+
44
+ For the modal body spacing, use utility classes:
45
+
46
+ ```html
47
+ <div class="slds-p-around_medium slds-text-align_center">
48
+ <p>Are you sure you want to delete this record?</p>
49
+ </div>
50
+ ```
51
+
52
+ ### Phase 4: Add Icons
53
+
54
+ **Search:** `node scripts/search-icons.cjs --query "warning"`
55
+
56
+ ```
57
+ Found: utility:warning (score: 100, match: exact)
58
+ ```
59
+
60
+ ```html
61
+ <lightning-icon
62
+ icon-name="utility:warning"
63
+ alternative-text="Warning"
64
+ variant="error"
65
+ size="small"
66
+ class="slds-m-right_x-small">
67
+ </lightning-icon>
68
+ ```
69
+
70
+ ### Phase 5: Validate (checklists.md)
71
+
72
+ - No hardcoded colors (using LBC variants + hooks)
73
+ - Icon has `alternative-text`
74
+ - Spacing uses utility classes (`slds-p-around_medium`, `slds-m-right_x-small`)
75
+ - No `.slds-*` overrides
76
+
77
+ ---
78
+
79
+ ## Example 2: Styled Card with Status Badge (Non-LWC)
80
+
81
+ ### Phase 1: Understand the Need
82
+
83
+ - **Pattern:** A card showing a record with a colored status badge
84
+ - **Framework:** React (not LWC -- no LBCs available)
85
+ - **States:** Active, inactive, pending
86
+
87
+ ### Phase 2: Select the Artifact
88
+
89
+ **LBC check:** Not applicable (React).
90
+
91
+ **Search blueprints:**
92
+
93
+ ```bash
94
+ node scripts/search-blueprints.cjs --search "card"
95
+ # Found: Cards (category: Layout, root: slds-card)
96
+
97
+ node scripts/search-blueprints.cjs --search "badge"
98
+ # Found: Badges (category: Feedback, root: slds-badge)
99
+ ```
100
+
101
+ **Read YAMLs:**
102
+ - `metadata/blueprints/components/cards.yaml` -- classes: `slds-card`, `slds-card__header`, `slds-card__body`, `slds-card__footer`
103
+ - `metadata/blueprints/components/badges.yaml` -- classes: `slds-badge`, modifiers: `slds-badge_lightest`, `slds-badge_inverse`
104
+
105
+ ### Phase 3: Apply Styling
106
+
107
+ **Read:** `references/styling-decision-guide.md`
108
+
109
+ Card background and text use surface hooks. The status is conveyed by badge text plus a custom status accent on the card, rather than invented badge modifiers.
110
+
111
+ ```html
112
+ <article class="slds-card my-status-card">
113
+ <div class="slds-card__header slds-grid">
114
+ <header class="slds-media slds-media_center slds-has-flexi-truncate">
115
+ <div class="slds-media__body">
116
+ <h2 class="slds-card__header-title slds-truncate">Account Name</h2>
117
+ </div>
118
+ <div class="slds-no-flex">
119
+ <span class="slds-badge slds-badge_lightest">Active</span>
120
+ </div>
121
+ </header>
122
+ </div>
123
+ <div class="slds-card__body slds-card__body_inner">
124
+ <p>Record details here</p>
125
+ </div>
126
+ </article>
127
+ ```
128
+
129
+ Custom styling for a subtle card border:
130
+
131
+ ```css
132
+ .my-status-card {
133
+ border-left: 3px solid var(--slds-g-color-accent-1, #0176d3);
134
+ }
135
+ ```
136
+
137
+ Note: custom class uses `my-*` prefix, hook with fallback, no `.slds-*` overrides.
138
+
139
+ ### Phase 4: Add Icons
140
+
141
+ **Search for a standard object icon:**
142
+
143
+ ```bash
144
+ node scripts/search-icons.cjs --query "account" --category "standard"
145
+ # Found: standard:account (score: 100, match: exact)
146
+ ```
147
+
148
+ In React (non-LWC), use the SVG blueprint pattern:
149
+
150
+ ```html
151
+ <span class="slds-icon_container slds-icon-standard-account" title="Account">
152
+ <svg class="slds-icon slds-icon_small" aria-hidden="true">
153
+ <use xlinkHref="/assets/icons/standard-sprite/svg/symbols.svg#account"></use>
154
+ </svg>
155
+ <span class="slds-assistive-text">Account</span>
156
+ </span>
157
+ ```
158
+
159
+ ### Phase 5: Validate
160
+
161
+ - Card uses exact blueprint classes (`slds-card`, `slds-card__header`, etc.)
162
+ - Badge uses a real blueprint modifier (`slds-badge_lightest`), not an invented status variant
163
+ - Custom border uses `my-*` prefix and hook with fallback
164
+ - Icon uses `slds-assistive-text` for accessibility
165
+ - No hardcoded colors
166
+
167
+ ---
168
+
169
+ ## Example 3: Responsive Data Layout with Hooks
170
+
171
+ ### Phase 1: Understand the Need
172
+
173
+ - **Pattern:** A responsive grid of metric cards
174
+ - **Framework:** LWC
175
+ - **States:** Loading (spinner), populated, empty (illustration)
176
+
177
+ ### Phase 2: Select the Artifact
178
+
179
+ **LBC:** `lightning-card` for each metric card. `lightning-spinner` for loading.
180
+
181
+ **Search for empty state:**
182
+
183
+ ```bash
184
+ node scripts/search-blueprints.cjs --search "illustration"
185
+ # Found: Illustration (category: Media, root: slds-illustration)
186
+ ```
187
+
188
+ ### Phase 3: Apply Styling
189
+
190
+ **Verify grid and spacing utilities** before using them:
191
+
192
+ ```bash
193
+ node scripts/search-utilities.cjs --search "slds-grid"
194
+ # Found: slds-grid (category: grid, css: display: flex)
195
+
196
+ node scripts/search-utilities.cjs --search "slds-text-heading_large"
197
+ # Found: slds-text-heading_large (category: typography)
198
+
199
+ node scripts/search-utilities.cjs --search "slds-text-body_small"
200
+ # Found: slds-text-body_small (category: typography)
201
+ ```
202
+
203
+ **Grid layout** uses utility classes (see `references/utilities-quick-ref.md`):
204
+
205
+ ```html
206
+ <div class="slds-grid slds-wrap slds-gutters">
207
+ <template for:each={metrics} for:item="metric">
208
+ <div key={metric.id} class="slds-col slds-size_1-of-1 slds-medium-size_1-of-2 slds-large-size_1-of-3">
209
+ <lightning-card title={metric.label}>
210
+ <div class="slds-p-horizontal_small">
211
+ <p class="slds-text-heading_large">{metric.value}</p>
212
+ <p class="slds-text-body_small slds-text-color_weak">{metric.subtitle}</p>
213
+ </div>
214
+ </lightning-card>
215
+ </div>
216
+ </template>
217
+ </div>
218
+ ```
219
+
220
+ **Custom metric styling** with hooks:
221
+
222
+ ```css
223
+ .my-metric-value {
224
+ font-size: var(--slds-g-font-scale-6, 2rem);
225
+ font-weight: var(--slds-g-font-weight-7, 700);
226
+ color: var(--slds-g-color-on-surface-3, #181818);
227
+ }
228
+
229
+ .my-metric-trend-up {
230
+ color: var(--slds-g-color-success-1, #2e844a);
231
+ }
232
+
233
+ .my-metric-trend-down {
234
+ color: var(--slds-g-color-error-1, #ea001e);
235
+ }
236
+ ```
237
+
238
+ Note: trend colors use semantic feedback hooks (success/error), not hardcoded green/red.
239
+
240
+ **Empty state** uses the SLDS illustration blueprint:
241
+
242
+ ```html
243
+ <template if:false={hasData}>
244
+ <div class="slds-illustration slds-illustration_small">
245
+ <img src="/img/chatter/Desert.svg" class="slds-illustration__svg" alt="" />
246
+ <div class="slds-text-longform">
247
+ <h3 class="slds-text-heading_medium">No metrics available</h3>
248
+ <p class="slds-text-body_regular">Check back when data is loaded.</p>
249
+ </div>
250
+ </div>
251
+ </template>
252
+ ```
253
+
254
+ ### Phase 4: Add Icons
255
+
256
+ Trend indicators need icons:
257
+
258
+ ```bash
259
+ node scripts/search-icons.cjs --query "arrow up"
260
+ # Found: utility:arrowup (score: 100)
261
+
262
+ node scripts/search-icons.cjs --query "arrow down"
263
+ # Found: utility:arrowdown (score: 100)
264
+ ```
265
+
266
+ ```html
267
+ <lightning-icon
268
+ icon-name={metric.trendIcon}
269
+ alternative-text={metric.trendLabel}
270
+ size="xx-small"
271
+ class="slds-m-left_xx-small">
272
+ </lightning-icon>
273
+ ```
274
+
275
+ ### Phase 5: Validate
276
+
277
+ - Grid uses `slds-grid` + `slds-col` + responsive `slds-*-size_*` classes
278
+ - Spacing uses utilities (`slds-p-horizontal_small`, `slds-m-left_xx-small`)
279
+ - Typography uses utilities (`slds-text-heading_large`, `slds-text-body_small`)
280
+ - Custom CSS uses `my-*` prefix and hooks with fallbacks
281
+ - Trend colors use semantic hooks (success/error), not hardcoded values
282
+ - Empty state uses SLDS illustration blueprint
283
+ - Icons have `alternative-text`