@canonical/design-system 0.1.0 → 0.1.2

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 (313) hide show
  1. package/.github/ISSUE_TEMPLATE/propose-changes-to-existing-ui-block.md +14 -0
  2. package/.github/ISSUE_TEMPLATE/propose-new-ui-block.md +26 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +13 -0
  4. package/.github/workflows/ci.yml +39 -0
  5. package/.github/workflows/sync-coda-manual.yml +12 -0
  6. package/.github/workflows/sync-coda-scheduled.yml +13 -0
  7. package/.github/workflows/sync-coda.yml +38 -0
  8. package/.mcp.json +6 -2
  9. package/GEMINI.md +2 -0
  10. package/README.md +71 -51
  11. package/biome.json +1 -1
  12. package/bun.lock +38 -35
  13. package/data/apps/component/file_tree.ttl +6 -7
  14. package/data/apps/component/key_value_pair.ttl +6 -7
  15. package/data/apps/component/navigation.ttl +6 -7
  16. package/data/apps/component/notification.ttl +7 -0
  17. package/data/apps/component/skeleton_loading.ttl +6 -7
  18. package/data/apps/component/status_bar.ttl +6 -7
  19. package/data/apps/component/toolbar.ttl +6 -7
  20. package/data/apps/group/notifications.ttl +7 -0
  21. package/data/apps/layout/application_layout.ttl +8 -7
  22. package/data/apps/layout/content_layout.ttl +9 -0
  23. package/data/apps/layout/empty_layout.ttl +6 -7
  24. package/data/apps/layout/list_page_layout.ttl +6 -7
  25. package/data/apps/layout/settings_page_layout.ttl +6 -7
  26. package/data/apps/layout/view_layout.ttl +9 -0
  27. package/data/apps/pattern/code_diff.ttl +6 -7
  28. package/data/apps/pattern/data_table.ttl +6 -7
  29. package/data/apps/pattern/destructive_modal.ttl +6 -7
  30. package/data/apps/pattern/key_value_summary.ttl +6 -7
  31. package/data/apps/pattern/keyboard_shortcuts.ttl +6 -7
  32. package/data/apps/pattern/notification_center.ttl +6 -7
  33. package/data/apps/pattern/side_panel.ttl +6 -7
  34. package/data/apps/pattern/sidepanel_stacked.ttl +6 -7
  35. package/data/apps/subcomponent/file_tree-node.ttl +7 -0
  36. package/data/apps.ttl +3 -4
  37. package/data/apps_anbox/component/copy_to_clipboard.ttl +7 -0
  38. package/data/apps_anbox/pattern/side_menu.ttl +13 -0
  39. package/data/apps_anbox.ttl +4 -0
  40. package/data/apps_juju/pattern/single_select_multi_layered.ttl +7 -0
  41. package/data/apps_juju.ttl +4 -0
  42. package/data/apps_landscape/component/password_constraints.ttl +32 -0
  43. package/data/apps_landscape.ttl +4 -0
  44. package/data/apps_launchpad/component/badge.ttl +23 -0
  45. package/data/apps_launchpad/component/breadcrumbs.ttl +14 -0
  46. package/data/apps_launchpad/component/button.ttl +35 -0
  47. package/data/apps_launchpad/component/checkbox.ttl +28 -0
  48. package/data/apps_launchpad/component/chip.ttl +42 -0
  49. package/data/apps_launchpad/component/combobox.ttl +52 -0
  50. package/data/apps_launchpad/component/description_list.ttl +13 -0
  51. package/data/apps_launchpad/component/radio.ttl +34 -0
  52. package/data/apps_launchpad/component/select.ttl +34 -0
  53. package/data/apps_launchpad/component/switch.ttl +21 -0
  54. package/data/apps_launchpad/component/text_input.ttl +36 -0
  55. package/data/apps_launchpad/component/textarea.ttl +35 -0
  56. package/data/apps_launchpad/component/tooltip.ttl +28 -0
  57. package/data/apps_launchpad/component/user_avatar.ttl +25 -0
  58. package/data/apps_launchpad/subcomponent/combobox-checkbox_option.ttl +29 -0
  59. package/data/apps_launchpad/subcomponent/combobox-footer.ttl +13 -0
  60. package/data/apps_launchpad/subcomponent/combobox-group.ttl +20 -0
  61. package/data/apps_launchpad/subcomponent/combobox-helper.ttl +19 -0
  62. package/data/apps_launchpad/subcomponent/combobox-loading.ttl +13 -0
  63. package/data/apps_launchpad/subcomponent/combobox-no_results.ttl +13 -0
  64. package/data/apps_launchpad/subcomponent/combobox-radio_option.ttl +29 -0
  65. package/data/apps_launchpad/subcomponent/combobox-search.ttl +22 -0
  66. package/data/apps_launchpad/subcomponent/description_list-item.ttl +19 -0
  67. package/data/apps_launchpad.ttl +4 -0
  68. package/data/apps_lxd/component/confirmation_checkbox.ttl +7 -0
  69. package/data/apps_lxd/component/copy_to_clipboard.ttl +7 -0
  70. package/data/apps_lxd/view/network_topology.ttl +7 -0
  71. package/data/apps_lxd.ttl +4 -0
  72. package/data/apps_portal/component/badge.ttl +7 -0
  73. package/data/apps_portal.ttl +4 -0
  74. package/data/apps_workplace/component/label-highlight.ttl +7 -0
  75. package/data/apps_workplace.ttl +4 -0
  76. package/data/apps_wpe.ttl +3 -4
  77. package/data/documentation/layout/documentation_layout.ttl +6 -7
  78. package/data/documentation/pattern/library_side_navigation.ttl +7 -0
  79. package/data/documentation.ttl +3 -4
  80. package/data/global/component/accordion.ttl +11 -12
  81. package/data/global/component/announcement.ttl +6 -7
  82. package/data/global/component/badge.ttl +7 -8
  83. package/data/global/component/breadcrumbs.ttl +13 -0
  84. package/data/global/component/button.ttl +29 -17
  85. package/data/global/component/button_link.ttl +7 -0
  86. package/data/global/component/card.ttl +6 -7
  87. package/data/global/component/chip.ttl +6 -7
  88. package/data/global/component/code.ttl +7 -0
  89. package/data/global/component/code_snippet-content.ttl +7 -0
  90. package/data/global/component/code_snippet-header.ttl +7 -0
  91. package/data/global/component/code_snippet.ttl +6 -7
  92. package/data/global/component/contextual_menu.ttl +6 -7
  93. package/data/global/component/heading.ttl +12 -12
  94. package/data/global/component/icon.ttl +12 -12
  95. package/data/global/component/icon_in_container.ttl +6 -7
  96. package/data/global/component/keyboard_key.ttl +6 -7
  97. package/data/global/component/label.ttl +12 -13
  98. package/data/global/component/notification_inline.ttl +6 -7
  99. package/data/global/component/notification_toast.ttl +6 -7
  100. package/data/global/component/pagination.ttl +6 -7
  101. package/data/global/component/popover.ttl +6 -7
  102. package/data/global/component/rich_text_editor.ttl +6 -7
  103. package/data/global/component/search_bar.ttl +6 -7
  104. package/data/global/component/table.ttl +6 -7
  105. package/data/global/component/tabs.ttl +6 -7
  106. package/data/global/component/theme_switcher.ttl +6 -7
  107. package/data/global/component/tile.ttl +11 -12
  108. package/data/global/component/tooltip.ttl +201 -7
  109. package/data/global/group/buttons.ttl +6 -7
  110. package/data/global/group/cards.ttl +6 -7
  111. package/data/global/group/code_snippets.ttl +7 -0
  112. package/data/global/group/keyboard_keys.ttl +7 -0
  113. package/data/global/group/tiles.ttl +6 -7
  114. package/data/global/layout/error_layout.ttl +6 -7
  115. package/data/global/layout/form_layout.ttl +6 -7
  116. package/data/global/layout/identity_page_form.ttl +6 -7
  117. package/data/global/modifier/alpha.ttl +5 -5
  118. package/data/global/modifier/beta.ttl +5 -5
  119. package/data/global/modifier/caution.ttl +5 -5
  120. package/data/global/modifier/comfortable.ttl +5 -5
  121. package/data/global/modifier/completed.ttl +5 -5
  122. package/data/global/modifier/constructive.ttl +5 -5
  123. package/data/global/modifier/dark.ttl +5 -5
  124. package/data/global/modifier/dense.ttl +5 -5
  125. package/data/global/modifier/destructive.ttl +5 -5
  126. package/data/global/modifier/editable.ttl +5 -5
  127. package/data/global/modifier/elevated.ttl +5 -5
  128. package/data/global/modifier/error.ttl +5 -5
  129. package/data/global/modifier/experimental.ttl +5 -5
  130. package/data/global/modifier/failed.ttl +5 -5
  131. package/data/global/modifier/focused.ttl +5 -5
  132. package/data/global/modifier/highlighted.ttl +5 -5
  133. package/data/global/modifier/in_progress.ttl +5 -5
  134. package/data/global/modifier/information.ttl +5 -5
  135. package/data/global/modifier/light.ttl +5 -5
  136. package/data/global/modifier/loading.ttl +5 -5
  137. package/data/global/modifier/muted.ttl +5 -5
  138. package/data/global/modifier/paper.ttl +5 -5
  139. package/data/global/modifier/planned.ttl +5 -5
  140. package/data/global/modifier/primary.ttl +5 -5
  141. package/data/global/modifier/secondary.ttl +5 -5
  142. package/data/global/modifier/stable.ttl +5 -5
  143. package/data/global/modifier/success.ttl +5 -5
  144. package/data/global/modifier/tertiary.ttl +5 -5
  145. package/data/global/modifier/warning.ttl +5 -5
  146. package/data/global/modifier/wireframe.ttl +5 -5
  147. package/data/global/modifier_family/_color_luminosity.ttl +5 -6
  148. package/data/global/modifier_family/_emphasis.ttl +5 -6
  149. package/data/global/modifier_family/_other.ttl +5 -6
  150. package/data/global/modifier_family/anticipation.ttl +5 -6
  151. package/data/global/modifier_family/criticality.ttl +5 -6
  152. package/data/global/modifier_family/density.ttl +5 -6
  153. package/data/global/modifier_family/importance.ttl +5 -6
  154. package/data/global/modifier_family/lifecycle.ttl +5 -6
  155. package/data/global/modifier_family/release.ttl +5 -6
  156. package/data/global/pattern/dropdown_button.ttl +7 -0
  157. package/data/global/pattern/info_table.ttl +6 -7
  158. package/data/global/pattern/modal.ttl +6 -7
  159. package/data/global/pattern/navigation.ttl +6 -7
  160. package/data/global/pattern/stepper.ttl +6 -7
  161. package/data/global/pattern/table_of_contents.ttl +6 -7
  162. package/data/global/pattern/timeline.ttl +64 -12
  163. package/data/global/subcomponent/accordion-item.ttl +15 -16
  164. package/data/global/subcomponent/breadcrumbs-item.ttl +15 -16
  165. package/data/global/subcomponent/card-content.ttl +11 -12
  166. package/data/global/subcomponent/card-header.ttl +11 -12
  167. package/data/global/subcomponent/card-image.ttl +16 -17
  168. package/data/global/subcomponent/card-thumbnail.ttl +7 -0
  169. package/data/global/subcomponent/divider.ttl +6 -7
  170. package/data/global/subcomponent/modal-content.ttl +6 -7
  171. package/data/global/subcomponent/modal-footer.ttl +6 -7
  172. package/data/global/subcomponent/modal-header.ttl +6 -7
  173. package/data/global/subcomponent/spinner.ttl +6 -7
  174. package/data/global/subcomponent/table-cell.ttl +6 -7
  175. package/data/global/subcomponent/table-row.ttl +6 -7
  176. package/data/global/subcomponent/tile-content.ttl +11 -12
  177. package/data/global/subcomponent/tile-header.ttl +11 -12
  178. package/data/global/subcomponent/timeline-content.ttl +11 -12
  179. package/data/global/subcomponent/timeline-event.ttl +42 -27
  180. package/data/global/subcomponent/timeline-expansion_indicator.ttl +7 -0
  181. package/data/global/subcomponent/timeline-header.ttl +6 -7
  182. package/data/global/view/settings_view.ttl +7 -0
  183. package/data/global.ttl +3 -4
  184. package/data/global_form/component/checkbox_input.ttl +6 -7
  185. package/data/global_form/component/choices_input.ttl +6 -7
  186. package/data/global_form/component/combobox_input.ttl +6 -7
  187. package/data/global_form/component/custom_choices_input.ttl +6 -7
  188. package/data/global_form/component/datepicker_input.ttl +6 -7
  189. package/data/global_form/component/rating_input.ttl +6 -7
  190. package/data/global_form/component/rich_text_input.ttl +7 -0
  191. package/data/global_form/component/segmented_control_input.ttl +6 -7
  192. package/data/global_form/component/slider_input.ttl +6 -7
  193. package/data/global_form/component/switch_input.ttl +6 -7
  194. package/data/global_form/component/text_input.ttl +6 -7
  195. package/data/global_form/component/textarea_input.ttl +6 -7
  196. package/data/global_form/component/wysiwginput.ttl +6 -7
  197. package/data/global_form/pattern/field.ttl +6 -7
  198. package/data/global_form/pattern/form.ttl +6 -7
  199. package/data/global_form/subcomponent/field-description.ttl +6 -7
  200. package/data/global_form/subcomponent/field-label.ttl +6 -7
  201. package/data/global_form.ttl +3 -4
  202. package/data/site/component/blog_card.ttl +7 -0
  203. package/data/site/component/quote.ttl +6 -7
  204. package/data/site/component/rule.ttl +6 -7
  205. package/data/site/component/section.ttl +6 -7
  206. package/data/site/group/blog_cards.ttl +7 -0
  207. package/data/site/layout/blog_page_layout.ttl +7 -0
  208. package/data/site/layout/case_study_layout.ttl +7 -0
  209. package/data/site/layout/site_layout.ttl +6 -7
  210. package/data/site/pattern/hero-github.ttl +6 -7
  211. package/data/site/pattern/hero.ttl +6 -7
  212. package/data/site/pattern/info_table.ttl +6 -7
  213. package/data/site/pattern/pricing_section.ttl +7 -0
  214. package/data/site/pattern/pricing_table.ttl +7 -0
  215. package/data/site/pattern/read_more_section.ttl +7 -0
  216. package/data/site/pattern/skip_link.ttl +6 -7
  217. package/data/site.ttl +3 -4
  218. package/data/sites_webcomponentsprototype/component/blog_cards.ttl +7 -0
  219. package/data/sites_webcomponentsprototype/component/ctablock.ttl +7 -0
  220. package/data/sites_webcomponentsprototype/component/list.ttl +7 -0
  221. package/data/sites_webcomponentsprototype/component/tabs.ttl +7 -0
  222. package/data/sites_webcomponentsprototype/layout/site_layout.ttl +8 -0
  223. package/data/sites_webcomponentsprototype/pattern/basic_section.ttl +7 -0
  224. package/data/sites_webcomponentsprototype/pattern/blog_section.ttl +7 -0
  225. package/data/sites_webcomponentsprototype/pattern/ctasection.ttl +7 -0
  226. package/data/sites_webcomponentsprototype/pattern/equal_heights.ttl +7 -0
  227. package/data/sites_webcomponentsprototype/pattern/hero.ttl +7 -0
  228. package/data/sites_webcomponentsprototype/pattern/logo_section.ttl +7 -0
  229. package/data/sites_webcomponentsprototype/pattern/quote_wrapper.ttl +7 -0
  230. package/data/sites_webcomponentsprototype/pattern/tiered_list.ttl +7 -0
  231. package/data/sites_webcomponentsprototype.ttl +4 -0
  232. package/data/stores.ttl +3 -4
  233. package/definitions/ontology.ttl +132 -171
  234. package/package.json +8 -8
  235. package/skills/anatomy-author/SKILL.md +14 -9
  236. package/skills/component-specifier/SKILL.md +84 -85
  237. package/skills/design-auditor/SKILL.md +50 -45
  238. package/source.json +40 -33
  239. package/src/cli.ts +33 -33
  240. package/src/collect/generateTurtle.tests.ts +181 -193
  241. package/src/collect/generateTurtle.ts +189 -138
  242. package/src/collect/index.ts +5 -2
  243. package/src/collect/scanAnnotations.tests.ts +116 -110
  244. package/src/collect/scanAnnotations.ts +35 -33
  245. package/src/collect/types.ts +34 -33
  246. package/src/collect/validateCollectConfig.tests.ts +135 -112
  247. package/src/collect/validateCollectConfig.ts +60 -54
  248. package/src/collect-implementations.ts +101 -88
  249. package/src/commands/extract.tests.ts +31 -32
  250. package/src/commands/extract.ts +29 -27
  251. package/src/commands/index.ts +1 -1
  252. package/src/commands/list.tests.ts +13 -14
  253. package/src/commands/list.ts +9 -9
  254. package/src/commands/transform.tests.ts +21 -21
  255. package/src/commands/transform.ts +127 -99
  256. package/src/config/source.schema.json +9 -0
  257. package/src/config/types.ts +40 -33
  258. package/src/config/validateConfig.tests.ts +31 -31
  259. package/src/config/validateConfig.ts +9 -9
  260. package/src/constants.ts +7 -9
  261. package/src/graph/GraphStore.tests.ts +111 -111
  262. package/src/graph/GraphStore.ts +205 -189
  263. package/src/graph/PrefixMap.tests.ts +124 -122
  264. package/src/graph/PrefixMap.ts +77 -77
  265. package/src/graph/buildUri.tests.ts +119 -106
  266. package/src/graph/buildUri.ts +47 -35
  267. package/src/graph/index.ts +2 -2
  268. package/src/graph/types.ts +3 -3
  269. package/src/providers/CodaProvider.tests.ts +233 -233
  270. package/src/providers/CodaProvider.ts +145 -145
  271. package/src/providers/CodaProvider.types.generated.ts +12484 -12123
  272. package/src/providers/index.ts +13 -13
  273. package/src/serializers/JSONSerializer.tests.ts +65 -68
  274. package/src/serializers/JSONSerializer.ts +51 -51
  275. package/src/serializers/TTLSerializer.tests.ts +46 -48
  276. package/src/serializers/TTLSerializer.ts +66 -59
  277. package/src/serializers/index.ts +4 -1
  278. package/src/serializers/types.ts +3 -3
  279. package/src/transform/resolveReferences.tests.ts +47 -43
  280. package/src/transform/resolveReferences.ts +18 -18
  281. package/src/transform/resolveValue.tests.ts +55 -49
  282. package/src/transform/resolveValue.ts +48 -48
  283. package/src/transform/transform.tests.ts +90 -79
  284. package/src/transform/transform.ts +77 -75
  285. package/src/transform/transformRow.tests.ts +373 -258
  286. package/src/transform/transformRow.ts +228 -173
  287. package/src/transform/types.ts +4 -4
  288. package/tsconfig.json +2 -1
  289. package/data/global/component/link.ttl +0 -8
  290. package/data/global/pattern/breadcrumbs.ttl +0 -14
  291. package/data/global/pattern/select_button.ttl +0 -8
  292. package/data/global/subcomponent/timeline-footer.ttl +0 -8
  293. package/session/A.DSL.md +0 -429
  294. package/session/B.NOTES.md +0 -84
  295. package/session/global.component.accordion.yaml +0 -13
  296. package/session/global.component.button.yaml +0 -26
  297. package/session/global.component.card.yaml +0 -24
  298. package/session/global.component.icon.yaml +0 -7
  299. package/session/global.component.label.yaml +0 -7
  300. package/session/global.component.tile.yaml +0 -21
  301. package/session/global.component.timeline.yaml +0 -20
  302. package/session/global.pattern.breadcrumbs.yaml +0 -13
  303. package/session/global.subcomponent.accordion-item.yaml +0 -37
  304. package/session/global.subcomponent.breadcrumbs-item.yaml +0 -21
  305. package/session/global.subcomponent.card-content.yaml +0 -7
  306. package/session/global.subcomponent.card-header.yaml +0 -22
  307. package/session/global.subcomponent.card-image.yaml +0 -7
  308. package/session/global.subcomponent.tile-content.yaml +0 -7
  309. package/session/global.subcomponent.tile-header.yaml +0 -8
  310. package/session/global.subcomponent.timeline-content.yaml +0 -13
  311. package/session/global.subcomponent.timeline-event.yaml +0 -20
  312. package/session/global.subcomponent.timeline-footer.yaml +0 -9
  313. package/session/global.subcomponent.timeline-header.yaml +0 -18
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: component-specifier
3
+ description: Specify new UI components with full ontological structure
4
+ ---
5
+
1
6
  # Component Specifier
2
7
 
3
8
  Specify new UI components with full ontological structure, ensuring consistency with existing design system patterns. This skill combines semantic discovery (understanding what exists) with procedural authoring (creating well-formed specifications).
@@ -13,19 +18,19 @@ Specify new UI components with full ontological structure, ensuring consistency
13
18
 
14
19
  Before creating a component, understand the context:
15
20
 
16
- 1. **Identify the tier**: Call `sem_lookup(type: "dso:Tier")` to see available tiers
17
- 2. **Check existing components**: Call `sem_lookup(type: "dso:Component", filters: {"dso:tier": "{tier-uri}"})` to see siblings
18
- 3. **Understand modifier families**: Call `sem_lookup(type: "dso:ModifierFamily")` to see available variant axes
21
+ 1. **Identify the tier**: Call `sem_lookup(type: "ds:Tier")` to see available tiers
22
+ 2. **Check existing components**: Call `sem_lookup(type: "ds:Component", filters: {"ds:tier": "{tier-uri}"})` to see siblings
23
+ 3. **Understand modifier families**: Call `sem_lookup(type: "ds:ModifierFamily")` to see available variant axes
19
24
  4. **Check for similar components**: Call `sem_sparql` to search by name patterns
20
25
 
21
26
  ```
22
- sem_lookup(type: "dso:Tier")
27
+ sem_lookup(type: "ds:Tier")
23
28
  → Choose tier based on scope (global, apps, site, etc.)
24
29
 
25
- sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:global"})
30
+ sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:global"})
26
31
  → See existing components in that tier
27
32
 
28
- sem_lookup(type: "dso:ModifierFamily")
33
+ sem_lookup(type: "ds:ModifierFamily")
29
34
  → Identify which modifier families apply
30
35
  ```
31
36
 
@@ -69,14 +74,13 @@ Is it for e-commerce?
69
74
  Query existing modifier families and their usage:
70
75
 
71
76
  ```sparql
72
- PREFIX dso: <https://ds.canonical.com/ontology#>
73
- PREFIX ds: <https://ds.canonical.com/data/>
77
+ PREFIX ds: <https://ds.canonical.com/>
74
78
 
75
79
  SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
76
- ?family a dso:ModifierFamily ;
77
- dso:name ?familyName .
80
+ ?family a ds:ModifierFamily ;
81
+ ds:name ?familyName .
78
82
  OPTIONAL {
79
- ?component dso:hasModifierFamily ?family .
83
+ ?component ds:hasModifierFamily ?family .
80
84
  }
81
85
  } GROUP BY ?family ?familyName
82
86
  ORDER BY DESC(?usage)
@@ -109,12 +113,12 @@ Ask the user:
109
113
  Before creating, verify uniqueness:
110
114
 
111
115
  ```sparql
112
- PREFIX dso: <https://ds.canonical.com/ontology#>
116
+ PREFIX ds: <https://ds.canonical.com/ontology#>
113
117
 
114
118
  SELECT ?existing ?name ?tier WHERE {
115
- ?existing a dso:Component ;
116
- dso:name ?name ;
117
- dso:tier ?tier .
119
+ ?existing a ds:Component ;
120
+ ds:name ?name ;
121
+ ds:tier ?tier .
118
122
  FILTER(CONTAINS(LCASE(?name), "{search-term}"))
119
123
  }
120
124
  ```
@@ -128,39 +132,36 @@ Use the templates below based on gathered information.
128
132
  ### Component Template (Turtle)
129
133
 
130
134
  ```turtle
131
- @prefix dso: <https://ds.canonical.com/ontology#> .
132
- @prefix ds: <https://ds.canonical.com/data/> .
135
+ @prefix ds: <https://ds.canonical.com/> .
133
136
 
134
- ds:{tier}.component.{snake_case_name} a dso:Component ;
135
- dso:name "{DisplayName}" ;
136
- dso:description """{
137
+ ds:{tier}.component.{snake_case_name} a ds:Component ;
138
+ ds:name "{DisplayName}" ;
139
+ ds:summary """{
137
140
  One-paragraph description of what the component is and does.
138
141
  Focus on the problem it solves, not implementation details.
139
142
  }""" ;
140
- dso:tier ds:{tier} ;
143
+ ds:tier ds:{tier} ;
141
144
 
142
145
  # Modifier families (remove if not applicable)
143
- dso:hasModifierFamily ds:global.modifier_family.{family1} ;
144
- dso:hasModifierFamily ds:global.modifier_family.{family2} ;
146
+ ds:hasModifierFamily ds:global.modifier_family.{family1} ;
147
+ ds:hasModifierFamily ds:global.modifier_family.{family2} ;
145
148
 
146
149
  # Usage guidance
147
- dso:whenToUse """{
150
+ ds:whenToUse """{
148
151
  - Scenario 1 when this component is appropriate
149
152
  - Scenario 2
150
153
  - Scenario 3
151
154
  }""" ;
152
- dso:whenNotToUse """{
155
+ ds:whenNotToUse """{
153
156
  - Anti-pattern 1: use {alternative} instead
154
157
  - Anti-pattern 2
155
158
  }""" ;
156
159
 
157
160
  # Design links (add when available)
158
- # dso:figmaLink <https://figma.com/file/...> ;
159
- # dso:wireframeLink <https://...> ;
160
- # dso:anatomy <https://...> ;
161
+ # ds:figmaLink <https://figma.com/file/...> ;
161
162
 
162
163
  # Guidelines
163
- dso:guidelines """{
164
+ ds:guidelines """{
164
165
  ## Anatomy
165
166
  - Part 1: description
166
167
  - Part 2: description
@@ -180,48 +181,47 @@ Focus on the problem it solves, not implementation details.
180
181
  ```json
181
182
  {
182
183
  "@context": {
183
- "dso": "https://ds.canonical.com/ontology#",
184
- "ds": "https://ds.canonical.com/data/"
184
+ "ds": "https://ds.canonical.com/"
185
185
  },
186
186
  "@id": "ds:{tier}.component.{snake_case_name}",
187
- "@type": "dso:Component",
188
- "dso:name": "{DisplayName}",
189
- "dso:description": "{description}",
190
- "dso:tier": { "@id": "ds:{tier}" },
191
- "dso:hasModifierFamily": [
187
+ "@type": "ds:Component",
188
+ "ds:name": "{DisplayName}",
189
+ "ds:summary": "{description}",
190
+ "ds:tier": { "@id": "ds:{tier}" },
191
+ "ds:hasModifierFamily": [
192
192
  { "@id": "ds:global.modifier_family.{family1}" }
193
193
  ],
194
- "dso:whenToUse": "{usage guidance}",
195
- "dso:whenNotToUse": "{anti-patterns}",
196
- "dso:guidelines": "{guidelines}"
194
+ "ds:whenToUse": "{usage guidance}",
195
+ "ds:whenNotToUse": "{anti-patterns}",
196
+ "ds:guidelines": "{guidelines}"
197
197
  }
198
198
  ```
199
199
 
200
200
  ### Subcomponent Template
201
201
 
202
202
  ```turtle
203
- ds:{tier}.subcomponent.{parent}_{part} a dso:Subcomponent ;
204
- dso:name "{PartName}" ;
205
- dso:description "{What this part does}" ;
206
- dso:tier ds:{tier} ;
207
- dso:parentComponent ds:{tier}.component.{parent} ;
208
- dso:standalone false . # true if can be used independently
203
+ ds:{tier}.subcomponent.{parent}_{part} a ds:Subcomponent ;
204
+ ds:name "{PartName}" ;
205
+ ds:summary "{What this part does}" ;
206
+ ds:tier ds:{tier} ;
207
+ ds:parentComponent ds:{tier}.component.{parent} ;
208
+ ds:standalone false . # true if can be used independently
209
209
  ```
210
210
 
211
211
  ### Pattern Template
212
212
 
213
213
  ```turtle
214
- ds:{tier}.pattern.{snake_case_name} a dso:Pattern ;
215
- dso:name "{PatternName}" ;
216
- dso:description """{
214
+ ds:{tier}.pattern.{snake_case_name} a ds:Pattern ;
215
+ ds:name "{PatternName}" ;
216
+ ds:summary """{
217
217
  Description of the UX problem this pattern solves.
218
218
  }""" ;
219
- dso:tier ds:{tier} ;
220
- dso:whenToUse """{
219
+ ds:tier ds:{tier} ;
220
+ ds:whenToUse """{
221
221
  - User scenario 1
222
222
  - User scenario 2
223
223
  }""" ;
224
- dso:guidelines """{
224
+ ds:guidelines """{
225
225
  ## Structure
226
226
  - Required elements
227
227
  - Optional elements
@@ -235,14 +235,14 @@ Description of the UX problem this pattern solves.
235
235
  ### Layout Template
236
236
 
237
237
  ```turtle
238
- ds:{tier}.layout.{snake_case_name} a dso:Layout ;
239
- dso:name "{LayoutName}" ;
240
- dso:description "{Purpose of this layout}" ;
241
- dso:tier ds:{tier} ;
242
- dso:domain "{information domain}" ;
243
- dso:grid "{css grid definition}" ;
244
- dso:gridAreas "{named areas}" ;
245
- dso:targetDevices "{desktop, tablet, mobile}" .
238
+ ds:{tier}.layout.{snake_case_name} a ds:Layout ;
239
+ ds:name "{LayoutName}" ;
240
+ ds:summary "{Purpose of this layout}" ;
241
+ ds:tier ds:{tier} ;
242
+ ds:domain "{information domain}" ;
243
+ ds:grid "{css grid definition}" ;
244
+ ds:gridAreas "{named areas}" ;
245
+ ds:targetDevices "{desktop, tablet, mobile}" .
246
246
  ```
247
247
 
248
248
  ## File Placement
@@ -282,14 +282,14 @@ Check for:
282
282
  ### Discovery Phase
283
283
 
284
284
  ```
285
- sem_lookup(type: "dso:Tier")
285
+ sem_lookup(type: "ds:Tier")
286
286
  → apps tier is appropriate for application navigation
287
287
 
288
- sem_lookup(type: "dso:Component", filters: {"dso:tier": "ds:apps"})
288
+ sem_lookup(type: "ds:Component", filters: {"ds:tier": "ds:apps"})
289
289
  → See existing: Navigation, Toolbar, StatusBar
290
290
  → Breadcrumb would complement Navigation
291
291
 
292
- sem_lookup(type: "dso:ModifierFamily")
292
+ sem_lookup(type: "ds:ModifierFamily")
293
293
  → density might apply (compact breadcrumbs)
294
294
  ```
295
295
 
@@ -298,28 +298,27 @@ sem_lookup(type: "dso:ModifierFamily")
298
298
  **File:** `data/apps/component/breadcrumb.ttl`
299
299
 
300
300
  ```turtle
301
- @prefix dso: <https://ds.canonical.com/ontology#> .
302
- @prefix ds: <https://ds.canonical.com/data/> .
301
+ @prefix ds: <https://ds.canonical.com/> .
303
302
 
304
- ds:apps.component.breadcrumb a dso:Component ;
305
- dso:name "Breadcrumb" ;
306
- dso:description """Breadcrumbs display the user's current location within a hierarchical navigation structure, enabling quick traversal back to parent pages.""" ;
307
- dso:tier ds:apps ;
303
+ ds:apps.component.breadcrumb a ds:Component ;
304
+ ds:name "Breadcrumb" ;
305
+ ds:summary """Breadcrumbs display the user's current location within a hierarchical navigation structure, enabling quick traversal back to parent pages.""" ;
306
+ ds:tier ds:apps ;
308
307
 
309
- dso:hasModifierFamily ds:global.modifier_family.density ;
308
+ ds:hasModifierFamily ds:global.modifier_family.density ;
310
309
 
311
- dso:whenToUse """
310
+ ds:whenToUse """
312
311
  - When users need to understand their location in a hierarchy
313
312
  - When quick navigation to parent levels is valuable
314
313
  - In applications with deep navigation structures (3+ levels)
315
314
  """ ;
316
- dso:whenNotToUse """
315
+ ds:whenNotToUse """
317
316
  - For flat navigation structures (use tabs instead)
318
317
  - As the primary navigation method (supplement, don't replace)
319
318
  - When hierarchy is only 1-2 levels deep
320
319
  """ ;
321
320
 
322
- dso:guidelines """
321
+ ds:guidelines """
323
322
  ## Anatomy
324
323
  - Container: horizontal list of links
325
324
  - Separator: visual divider between items (typically "/" or ">")
@@ -337,19 +336,19 @@ ds:apps.component.breadcrumb a dso:Component ;
337
336
  - Separator is decorative (aria-hidden)
338
337
  """ .
339
338
 
340
- ds:apps.subcomponent.breadcrumb_item a dso:Subcomponent ;
341
- dso:name "BreadcrumbItem" ;
342
- dso:description "Individual item in the breadcrumb trail" ;
343
- dso:tier ds:apps ;
344
- dso:parentComponent ds:apps.component.breadcrumb ;
345
- dso:standalone false .
346
-
347
- ds:apps.subcomponent.breadcrumb_separator a dso:Subcomponent ;
348
- dso:name "BreadcrumbSeparator" ;
349
- dso:description "Visual separator between breadcrumb items" ;
350
- dso:tier ds:apps ;
351
- dso:parentComponent ds:apps.component.breadcrumb ;
352
- dso:standalone false .
339
+ ds:apps.subcomponent.breadcrumb_item a ds:Subcomponent ;
340
+ ds:name "BreadcrumbItem" ;
341
+ ds:summary "Individual item in the breadcrumb trail" ;
342
+ ds:tier ds:apps ;
343
+ ds:parentComponent ds:apps.component.breadcrumb ;
344
+ ds:standalone false .
345
+
346
+ ds:apps.subcomponent.breadcrumb_separator a ds:Subcomponent ;
347
+ ds:name "BreadcrumbSeparator" ;
348
+ ds:summary "Visual separator between breadcrumb items" ;
349
+ ds:tier ds:apps ;
350
+ ds:parentComponent ds:apps.component.breadcrumb ;
351
+ ds:standalone false .
353
352
  ```
354
353
 
355
354
  ## Response Format
@@ -1,3 +1,8 @@
1
+ ---
2
+ name: design-auditor
3
+ description: Audit design system coverage, consistency, and quality
4
+ ---
5
+
1
6
  # Design Auditor
2
7
 
3
8
  Audit design system coverage, consistency, and quality. This semantic skill analyzes the ontology to find gaps, inconsistencies, and opportunities for improvement across components, patterns, and documentation.
@@ -19,7 +24,7 @@ Start with a broad inventory, then drill into specific concerns:
19
24
  sem_readme(package: "design-system")
20
25
  → Get overview of classes and counts
21
26
 
22
- sem_lookup_batch(types: ["dso:Component", "dso:Pattern", "dso:Layout"])
27
+ sem_lookup_batch(types: ["ds:Component", "ds:Pattern", "ds:Layout"])
23
28
  → Get full inventory across types
24
29
 
25
30
  sem_sparql({quality queries})
@@ -45,12 +50,12 @@ What's connected vs. orphaned?
45
50
  ### Coverage: Components by Tier
46
51
 
47
52
  ```sparql
48
- PREFIX dso: <https://ds.canonical.com/ontology#>
53
+ PREFIX ds: <https://ds.canonical.com/>
49
54
 
50
55
  SELECT ?tierName (COUNT(?c) as ?componentCount) WHERE {
51
- ?c a dso:Component ;
52
- dso:tier ?tier .
53
- ?tier dso:name ?tierName .
56
+ ?c a ds:Component ;
57
+ ds:tier ?tier .
58
+ ?tier ds:name ?tierName .
54
59
  } GROUP BY ?tierName
55
60
  ORDER BY DESC(?componentCount)
56
61
  ```
@@ -60,10 +65,10 @@ ORDER BY DESC(?componentCount)
60
65
  ### Coverage: UIBlock Types Distribution
61
66
 
62
67
  ```sparql
63
- PREFIX dso: <https://ds.canonical.com/ontology#>
68
+ PREFIX ds: <https://ds.canonical.com/>
64
69
 
65
70
  SELECT ?type (COUNT(?block) as ?count) WHERE {
66
- VALUES ?type { dso:Component dso:Pattern dso:Layout dso:Subcomponent }
71
+ VALUES ?type { ds:Component ds:Pattern ds:Layout ds:Subcomponent }
67
72
  ?block a ?type .
68
73
  } GROUP BY ?type
69
74
  ```
@@ -73,13 +78,13 @@ SELECT ?type (COUNT(?block) as ?count) WHERE {
73
78
  ### Quality: Components Missing Descriptions
74
79
 
75
80
  ```sparql
76
- PREFIX dso: <https://ds.canonical.com/ontology#>
81
+ PREFIX ds: <https://ds.canonical.com/>
77
82
 
78
83
  SELECT ?component ?name WHERE {
79
- ?component a dso:Component ;
80
- dso:name ?name .
84
+ ?component a ds:Component ;
85
+ ds:name ?name .
81
86
  FILTER(!bound(?desc) || ?desc = "")
82
- OPTIONAL { ?component dso:description ?desc }
87
+ OPTIONAL { ?component ds:summary ?desc }
83
88
  }
84
89
  ```
85
90
 
@@ -88,12 +93,12 @@ SELECT ?component ?name WHERE {
88
93
  ### Quality: Components Missing Usage Guidance
89
94
 
90
95
  ```sparql
91
- PREFIX dso: <https://ds.canonical.com/ontology#>
96
+ PREFIX ds: <https://ds.canonical.com/>
92
97
 
93
98
  SELECT ?component ?name WHERE {
94
- ?component a dso:Component ;
95
- dso:name ?name .
96
- FILTER NOT EXISTS { ?component dso:whenToUse ?when }
99
+ ?component a ds:Component ;
100
+ ds:name ?name .
101
+ FILTER NOT EXISTS { ?component ds:whenToUse ?when }
97
102
  }
98
103
  ```
99
104
 
@@ -102,26 +107,26 @@ SELECT ?component ?name WHERE {
102
107
  ### Quality: Components Missing Guidelines
103
108
 
104
109
  ```sparql
105
- PREFIX dso: <https://ds.canonical.com/ontology#>
110
+ PREFIX ds: <https://ds.canonical.com/>
106
111
 
107
112
  SELECT ?component ?name WHERE {
108
- ?component a dso:Component ;
109
- dso:name ?name .
110
- FILTER NOT EXISTS { ?component dso:guidelines ?g }
113
+ ?component a ds:Component ;
114
+ ds:name ?name .
115
+ FILTER NOT EXISTS { ?component ds:guidelines ?g }
111
116
  }
112
117
  ```
113
118
 
114
119
  ### Consistency: Modifier Family Usage
115
120
 
116
121
  ```sparql
117
- PREFIX dso: <https://ds.canonical.com/ontology#>
122
+ PREFIX ds: <https://ds.canonical.com/>
118
123
 
119
124
  SELECT ?family ?familyName (COUNT(?component) as ?usage) WHERE {
120
- ?family a dso:ModifierFamily ;
121
- dso:name ?familyName .
125
+ ?family a ds:ModifierFamily ;
126
+ ds:name ?familyName .
122
127
  OPTIONAL {
123
- ?component a dso:Component ;
124
- dso:hasModifierFamily ?family .
128
+ ?component a ds:Component ;
129
+ ds:hasModifierFamily ?family .
125
130
  }
126
131
  } GROUP BY ?family ?familyName
127
132
  ORDER BY DESC(?usage)
@@ -132,12 +137,12 @@ ORDER BY DESC(?usage)
132
137
  ### Consistency: Components Without Modifier Families
133
138
 
134
139
  ```sparql
135
- PREFIX dso: <https://ds.canonical.com/ontology#>
140
+ PREFIX ds: <https://ds.canonical.com/>
136
141
 
137
142
  SELECT ?component ?name WHERE {
138
- ?component a dso:Component ;
139
- dso:name ?name .
140
- FILTER NOT EXISTS { ?component dso:hasModifierFamily ?mf }
143
+ ?component a ds:Component ;
144
+ ds:name ?name .
145
+ FILTER NOT EXISTS { ?component ds:hasModifierFamily ?mf }
141
146
  }
142
147
  ```
143
148
 
@@ -146,12 +151,12 @@ SELECT ?component ?name WHERE {
146
151
  ### Usage: Orphaned Subcomponents
147
152
 
148
153
  ```sparql
149
- PREFIX dso: <https://ds.canonical.com/ontology#>
154
+ PREFIX ds: <https://ds.canonical.com/>
150
155
 
151
156
  SELECT ?sub ?name WHERE {
152
- ?sub a dso:Subcomponent ;
153
- dso:name ?name .
154
- FILTER NOT EXISTS { ?sub dso:parentComponent ?parent }
157
+ ?sub a ds:Subcomponent ;
158
+ ds:name ?name .
159
+ FILTER NOT EXISTS { ?sub ds:parentComponent ?parent }
155
160
  }
156
161
  ```
157
162
 
@@ -160,12 +165,12 @@ SELECT ?sub ?name WHERE {
160
165
  ### Usage: Components With Subcomponents
161
166
 
162
167
  ```sparql
163
- PREFIX dso: <https://ds.canonical.com/ontology#>
168
+ PREFIX ds: <https://ds.canonical.com/>
164
169
 
165
170
  SELECT ?component ?componentName (COUNT(?sub) as ?subCount) WHERE {
166
- ?component a dso:Component ;
167
- dso:name ?componentName .
168
- ?sub dso:parentComponent ?component .
171
+ ?component a ds:Component ;
172
+ ds:name ?componentName .
173
+ ?sub ds:parentComponent ?component .
169
174
  } GROUP BY ?component ?componentName
170
175
  ORDER BY DESC(?subCount)
171
176
  ```
@@ -175,21 +180,21 @@ ORDER BY DESC(?subCount)
175
180
  ### Cross-Tier: Potential Promotion Candidates
176
181
 
177
182
  ```sparql
178
- PREFIX dso: <https://ds.canonical.com/ontology#>
183
+ PREFIX ds: <https://ds.canonical.com/>
179
184
 
180
185
  SELECT ?component ?name ?tierName WHERE {
181
- ?component a dso:Component ;
182
- dso:name ?name ;
183
- dso:tier ?tier .
184
- ?tier dso:name ?tierName .
186
+ ?component a ds:Component ;
187
+ ds:name ?name ;
188
+ ds:tier ?tier .
189
+ ?tier ds:name ?tierName .
185
190
 
186
191
  # Find non-global components that might be universal
187
192
  FILTER(?tier != <https://ds.canonical.com/data/global>)
188
193
 
189
194
  # Heuristic: has modifier families (suggests maturity)
190
- FILTER EXISTS { ?component dso:hasModifierFamily ?mf }
191
- FILTER EXISTS { ?component dso:description ?d }
192
- FILTER EXISTS { ?component dso:whenToUse ?w }
195
+ FILTER EXISTS { ?component ds:hasModifierFamily ?mf }
196
+ FILTER EXISTS { ?component ds:summary ?d }
197
+ FILTER EXISTS { ?component ds:whenToUse ?w }
193
198
  }
194
199
  ```
195
200
 
@@ -346,7 +351,7 @@ For comprehensive review:
346
351
 
347
352
  ```
348
353
  1. Inventory
349
- sem_lookup_batch(types: ["dso:Component", "dso:Pattern", "dso:Layout", "dso:Subcomponent"])
354
+ sem_lookup_batch(types: ["ds:Component", "ds:Pattern", "ds:Layout", "ds:Subcomponent"])
350
355
 
351
356
  2. Coverage queries (all)
352
357
 
package/source.json CHANGED
@@ -21,67 +21,74 @@
21
21
  "tables": {
22
22
  "uiBlocks": {
23
23
  "@context": {
24
- "dso": "https://ds.canonical.com/ontology#",
25
- "ds": "https://ds.canonical.com/data/",
26
- "name": "dso:name",
27
- "description": "dso:description",
28
- "anatomy_dsl": "dso:anatomyDsl",
29
- "Anatomy (classic)": "dso:anatomyClassic",
30
- "tier": { "@id": "dso:tier", "@type": "@id" },
24
+ "ds": "https://ds.canonical.com/",
25
+ "name": "ds:name",
26
+ "summary": "ds:summary",
27
+ "anatomy_dsl": "ds:anatomyDsl",
28
+ "Anatomy (classic)": "ds:anatomyClassic",
29
+ "tier": { "@id": "ds:tier", "@type": "@id" },
31
30
  "properties": {
32
- "@id": "dso:hasProperty",
31
+ "@id": "ds:hasProperty",
33
32
  "@inline": {
34
33
  "table": "properties",
35
- "class": "dso:Property",
34
+ "class": "ds:Property",
36
35
  "properties": {
37
- "property name": "dso:name",
38
- "type": "dso:propertyType",
39
- "description": "dso:description",
40
- "optional": "dso:optional",
41
- "default": "dso:defaultValue"
36
+ "property name": "ds:name",
37
+ "type": "ds:propertyType",
38
+ "summary": "ds:summary",
39
+ "optional": "ds:optional",
40
+ "default": "ds:defaultValue",
41
+ "constraints": "ds:constraints"
42
42
  }
43
43
  }
44
44
  },
45
- "modifier_families": { "@id": "dso:hasModifierFamily", "@type": "@id", "@container": "@set" }
45
+ "modifier_families": {
46
+ "@id": "ds:hasModifierFamily",
47
+ "@type": "@id",
48
+ "@container": "@set"
49
+ }
46
50
  },
47
51
  "class": "{type}",
48
- "uriTemplate": "{uri}"
52
+ "uriTemplate": "{uri}",
53
+ "classProperties": {
54
+ "ds:Layout": {
55
+ "layout_grid_template": "ds:grid",
56
+ "layout_information_domain": "ds:domain"
57
+ }
58
+ }
49
59
  },
50
60
  "tiers": {
51
61
  "@context": {
52
- "dso": "https://ds.canonical.com/ontology#",
53
- "ds": "https://ds.canonical.com/data/",
54
- "name": "dso:name"
62
+ "ds": "https://ds.canonical.com/",
63
+ "name": "ds:name"
55
64
  },
56
- "class": "dso:Tier",
65
+ "class": "ds:Tier",
57
66
  "uriTemplate": "{uri}"
58
67
  },
59
68
  "modifierFamilies": {
60
69
  "@context": {
61
- "dso": "https://ds.canonical.com/ontology#",
62
- "ds": "https://ds.canonical.com/data/",
63
- "name": "dso:name",
64
- "description": "dso:description",
65
- "tier": { "@id": "dso:tier", "@type": "@id" }
70
+ "ds": "https://ds.canonical.com/",
71
+ "name": "ds:name",
72
+ "summary": "ds:summary",
73
+ "tier": { "@id": "ds:tier", "@type": "@id" }
66
74
  },
67
- "class": "dso:ModifierFamily",
75
+ "class": "ds:ModifierFamily",
68
76
  "uriTemplate": "{uri}"
69
77
  },
70
78
  "modifiers": {
71
79
  "@context": {
72
- "dso": "https://ds.canonical.com/ontology#",
73
- "ds": "https://ds.canonical.com/data/",
74
- "name": "dso:name",
75
- "description": "dso:description",
76
- "family": { "@id": "dso:modifierFamily", "@type": "@id" }
80
+ "ds": "https://ds.canonical.com/",
81
+ "name": "ds:name",
82
+ "summary": "ds:summary",
83
+ "family": { "@id": "ds:modifierFamily", "@type": "@id" }
77
84
  },
78
- "class": "dso:Modifier",
85
+ "class": "ds:Modifier",
79
86
  "uriTemplate": "{uri}"
80
87
  }
81
88
  },
82
89
  "references": {
83
90
  "uiBlockTypes": {
84
- "uriTemplate": "dso:{name}",
91
+ "uriTemplate": "ds:{name}",
85
92
  "keyColumn": "name"
86
93
  },
87
94
  "tiers": {