@mytechtoday/augment-extensions 3.1.0 → 3.2.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 (273) hide show
  1. package/AGENTS.md +123 -0
  2. package/README.md +981 -32
  3. package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
  4. package/augment-extensions/coding-standards/q/README.md +53 -0
  5. package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
  6. package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
  7. package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
  8. package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
  9. package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
  10. package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
  11. package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
  12. package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
  13. package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
  14. package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
  15. package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
  16. package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
  17. package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
  18. package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
  19. package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
  20. package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
  21. package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
  22. package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
  23. package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
  24. package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
  25. package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
  26. package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
  27. package/augment-extensions/coding-standards/q/metadata.json +38 -0
  28. package/augment-extensions/coding-standards/q/module.json +29 -0
  29. package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
  30. package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
  31. package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
  32. package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
  33. package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
  34. package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
  35. package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
  36. package/augment-extensions/visual-design/CHANGELOG.md +2 -2
  37. package/augment-extensions/visual-design/README.md +31 -8
  38. package/augment-extensions/visual-design/VERSION +1 -0
  39. package/augment-extensions/visual-design/__tests__/README.md +32 -18
  40. package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
  41. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
  42. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
  43. package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
  44. package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
  45. package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
  46. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
  47. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
  48. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
  49. package/augment-extensions/visual-design/examples/README.md +2 -0
  50. package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
  51. package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
  52. package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
  53. package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
  54. package/augment-extensions/visual-design/guidelines/index.md +5 -0
  55. package/augment-extensions/visual-design/metadata.json +26 -5
  56. package/augment-extensions/visual-design/module.json +39 -6
  57. package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
  58. package/augment-extensions/visual-design/rules/design-practice.md +55 -0
  59. package/augment-extensions/visual-design/rules/index.md +34 -0
  60. package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
  61. package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
  62. package/augment-extensions/visual-design/skills/README.md +11 -0
  63. package/augment-extensions/visual-design/skills/design-brief.md +40 -0
  64. package/augment-extensions/visual-design/skills/design-review.md +38 -0
  65. package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
  66. package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
  67. package/augment-extensions/visual-design/style-selector.ts +4 -4
  68. package/augment-extensions/visual-design/types.ts +101 -46
  69. package/augment-extensions/visual-design/visual-design-core.ts +8 -8
  70. package/cli/dist/adapters/banner.d.ts +62 -0
  71. package/cli/dist/adapters/banner.d.ts.map +1 -0
  72. package/cli/dist/adapters/banner.js +105 -0
  73. package/cli/dist/adapters/banner.js.map +1 -0
  74. package/cli/dist/adapters/claude-code.d.ts +13 -0
  75. package/cli/dist/adapters/claude-code.d.ts.map +1 -0
  76. package/cli/dist/adapters/claude-code.js +79 -0
  77. package/cli/dist/adapters/claude-code.js.map +1 -0
  78. package/cli/dist/adapters/copilot.d.ts +17 -0
  79. package/cli/dist/adapters/copilot.d.ts.map +1 -0
  80. package/cli/dist/adapters/copilot.js +81 -0
  81. package/cli/dist/adapters/copilot.js.map +1 -0
  82. package/cli/dist/adapters/cursor.d.ts +16 -0
  83. package/cli/dist/adapters/cursor.d.ts.map +1 -0
  84. package/cli/dist/adapters/cursor.js +99 -0
  85. package/cli/dist/adapters/cursor.js.map +1 -0
  86. package/cli/dist/adapters/index.d.ts +25 -0
  87. package/cli/dist/adapters/index.d.ts.map +1 -0
  88. package/cli/dist/adapters/index.js +59 -0
  89. package/cli/dist/adapters/index.js.map +1 -0
  90. package/cli/dist/adapters/types.d.ts +113 -0
  91. package/cli/dist/adapters/types.d.ts.map +1 -0
  92. package/cli/dist/adapters/types.js +13 -0
  93. package/cli/dist/adapters/types.js.map +1 -0
  94. package/cli/dist/adapters/windsurf.d.ts +14 -0
  95. package/cli/dist/adapters/windsurf.d.ts.map +1 -0
  96. package/cli/dist/adapters/windsurf.js +78 -0
  97. package/cli/dist/adapters/windsurf.js.map +1 -0
  98. package/cli/dist/analysis/index.d.ts +1 -0
  99. package/cli/dist/analysis/index.d.ts.map +1 -1
  100. package/cli/dist/analysis/index.js +1 -0
  101. package/cli/dist/analysis/index.js.map +1 -1
  102. package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
  103. package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
  104. package/cli/dist/analysis/pattern-analyzer.js +100 -0
  105. package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
  106. package/cli/dist/cli.js +62 -35
  107. package/cli/dist/cli.js.map +1 -1
  108. package/cli/dist/commands/code-analysis.d.ts.map +1 -1
  109. package/cli/dist/commands/code-analysis.js +22 -2
  110. package/cli/dist/commands/code-analysis.js.map +1 -1
  111. package/cli/dist/commands/export.d.ts +81 -0
  112. package/cli/dist/commands/export.d.ts.map +1 -0
  113. package/cli/dist/commands/export.js +334 -0
  114. package/cli/dist/commands/export.js.map +1 -0
  115. package/cli/dist/commands/gui.d.ts +3 -1
  116. package/cli/dist/commands/gui.d.ts.map +1 -1
  117. package/cli/dist/commands/gui.js +263 -22
  118. package/cli/dist/commands/gui.js.map +1 -1
  119. package/cli/dist/commands/init.d.ts +2 -0
  120. package/cli/dist/commands/init.d.ts.map +1 -1
  121. package/cli/dist/commands/init.js +95 -3
  122. package/cli/dist/commands/init.js.map +1 -1
  123. package/cli/dist/commands/lifecycle.d.ts +14 -0
  124. package/cli/dist/commands/lifecycle.d.ts.map +1 -0
  125. package/cli/dist/commands/lifecycle.js +463 -0
  126. package/cli/dist/commands/lifecycle.js.map +1 -0
  127. package/cli/dist/commands/link.d.ts +3 -0
  128. package/cli/dist/commands/link.d.ts.map +1 -1
  129. package/cli/dist/commands/link.js +126 -16
  130. package/cli/dist/commands/link.js.map +1 -1
  131. package/cli/dist/commands/list.js +2 -2
  132. package/cli/dist/commands/list.js.map +1 -1
  133. package/cli/dist/commands/mcp.d.ts +1 -2
  134. package/cli/dist/commands/mcp.d.ts.map +1 -1
  135. package/cli/dist/commands/mcp.js +20 -20
  136. package/cli/dist/commands/mcp.js.map +1 -1
  137. package/cli/dist/commands/module-management.d.ts +9 -0
  138. package/cli/dist/commands/module-management.d.ts.map +1 -0
  139. package/cli/dist/commands/module-management.js +420 -0
  140. package/cli/dist/commands/module-management.js.map +1 -0
  141. package/cli/dist/commands/self-remove.d.ts.map +1 -1
  142. package/cli/dist/commands/self-remove.js +98 -44
  143. package/cli/dist/commands/self-remove.js.map +1 -1
  144. package/cli/dist/commands/show.d.ts +1 -1
  145. package/cli/dist/commands/show.d.ts.map +1 -1
  146. package/cli/dist/commands/show.js +21 -10
  147. package/cli/dist/commands/show.js.map +1 -1
  148. package/cli/dist/commands/showCompleted.d.ts +1 -0
  149. package/cli/dist/commands/showCompleted.d.ts.map +1 -1
  150. package/cli/dist/commands/showCompleted.js +4 -3
  151. package/cli/dist/commands/showCompleted.js.map +1 -1
  152. package/cli/dist/commands/skill.d.ts +7 -1
  153. package/cli/dist/commands/skill.d.ts.map +1 -1
  154. package/cli/dist/commands/skill.js +79 -21
  155. package/cli/dist/commands/skill.js.map +1 -1
  156. package/cli/dist/commands/unlink.d.ts.map +1 -1
  157. package/cli/dist/commands/unlink.js +38 -2
  158. package/cli/dist/commands/unlink.js.map +1 -1
  159. package/cli/dist/commands/update.d.ts.map +1 -1
  160. package/cli/dist/commands/update.js +6 -16
  161. package/cli/dist/commands/update.js.map +1 -1
  162. package/cli/dist/commands/upgrade.d.ts +2 -0
  163. package/cli/dist/commands/upgrade.d.ts.map +1 -1
  164. package/cli/dist/commands/upgrade.js +22 -5
  165. package/cli/dist/commands/upgrade.js.map +1 -1
  166. package/cli/dist/commands/use.d.ts.map +1 -1
  167. package/cli/dist/commands/use.js +2 -68
  168. package/cli/dist/commands/use.js.map +1 -1
  169. package/cli/dist/core/compatibility-checker.d.ts +37 -1
  170. package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
  171. package/cli/dist/core/compatibility-checker.js +133 -12
  172. package/cli/dist/core/compatibility-checker.js.map +1 -1
  173. package/cli/dist/gui/state/navigation-state.d.ts +20 -0
  174. package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
  175. package/cli/dist/gui/state/navigation-state.js +115 -0
  176. package/cli/dist/gui/state/navigation-state.js.map +1 -0
  177. package/cli/dist/gui/state/selection-state.d.ts +21 -0
  178. package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
  179. package/cli/dist/gui/state/selection-state.js +117 -0
  180. package/cli/dist/gui/state/selection-state.js.map +1 -0
  181. package/cli/dist/lib/export-runner.d.ts +76 -0
  182. package/cli/dist/lib/export-runner.d.ts.map +1 -0
  183. package/cli/dist/lib/export-runner.js +111 -0
  184. package/cli/dist/lib/export-runner.js.map +1 -0
  185. package/cli/dist/lib/mcp-detection.d.ts +40 -0
  186. package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
  187. package/cli/dist/lib/mcp-detection.js +167 -0
  188. package/cli/dist/lib/mcp-detection.js.map +1 -0
  189. package/cli/dist/lib/mirror-coordination.d.ts +57 -0
  190. package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
  191. package/cli/dist/lib/mirror-coordination.js +151 -0
  192. package/cli/dist/lib/mirror-coordination.js.map +1 -0
  193. package/cli/dist/lib/mirror-runner.d.ts +123 -0
  194. package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
  195. package/cli/dist/lib/mirror-runner.js +579 -0
  196. package/cli/dist/lib/mirror-runner.js.map +1 -0
  197. package/cli/dist/lib/module-resolver.d.ts +65 -0
  198. package/cli/dist/lib/module-resolver.d.ts.map +1 -0
  199. package/cli/dist/lib/module-resolver.js +211 -0
  200. package/cli/dist/lib/module-resolver.js.map +1 -0
  201. package/cli/dist/lib/source-hash.d.ts +62 -0
  202. package/cli/dist/lib/source-hash.d.ts.map +1 -0
  203. package/cli/dist/lib/source-hash.js +99 -0
  204. package/cli/dist/lib/source-hash.js.map +1 -0
  205. package/cli/dist/types/coordination-export.d.ts +33 -0
  206. package/cli/dist/types/coordination-export.d.ts.map +1 -0
  207. package/cli/dist/types/coordination-export.js +28 -0
  208. package/cli/dist/types/coordination-export.js.map +1 -0
  209. package/cli/dist/types/lifecycle.d.ts +81 -0
  210. package/cli/dist/types/lifecycle.d.ts.map +1 -0
  211. package/cli/dist/types/lifecycle.js +3 -0
  212. package/cli/dist/types/lifecycle.js.map +1 -0
  213. package/cli/dist/utils/beads-sync.d.ts +4 -0
  214. package/cli/dist/utils/beads-sync.d.ts.map +1 -1
  215. package/cli/dist/utils/beads-sync.js.map +1 -1
  216. package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
  217. package/cli/dist/utils/catalog-sync.js +41 -8
  218. package/cli/dist/utils/catalog-sync.js.map +1 -1
  219. package/cli/dist/utils/coordination-queries.d.ts +3 -0
  220. package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
  221. package/cli/dist/utils/coordination-queries.js.map +1 -1
  222. package/cli/dist/utils/extensions-config.d.ts +29 -0
  223. package/cli/dist/utils/extensions-config.d.ts.map +1 -0
  224. package/cli/dist/utils/extensions-config.js +151 -0
  225. package/cli/dist/utils/extensions-config.js.map +1 -0
  226. package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
  227. package/cli/dist/utils/extractCommandHelp.js +8 -2
  228. package/cli/dist/utils/extractCommandHelp.js.map +1 -1
  229. package/cli/dist/utils/file-tracking.d.ts +4 -0
  230. package/cli/dist/utils/file-tracking.d.ts.map +1 -1
  231. package/cli/dist/utils/file-tracking.js.map +1 -1
  232. package/cli/dist/utils/inspection-cache.d.ts +8 -0
  233. package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
  234. package/cli/dist/utils/inspection-cache.js +12 -0
  235. package/cli/dist/utils/inspection-cache.js.map +1 -1
  236. package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
  237. package/cli/dist/utils/inspection-handlers.js +230 -52
  238. package/cli/dist/utils/inspection-handlers.js.map +1 -1
  239. package/cli/dist/utils/install-rules.d.ts +20 -0
  240. package/cli/dist/utils/install-rules.d.ts.map +1 -1
  241. package/cli/dist/utils/install-rules.js +367 -0
  242. package/cli/dist/utils/install-rules.js.map +1 -1
  243. package/cli/dist/utils/interactive-prompt.d.ts +7 -0
  244. package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
  245. package/cli/dist/utils/interactive-prompt.js +41 -0
  246. package/cli/dist/utils/interactive-prompt.js.map +1 -0
  247. package/cli/dist/utils/lifecycle.d.ts +47 -0
  248. package/cli/dist/utils/lifecycle.d.ts.map +1 -0
  249. package/cli/dist/utils/lifecycle.js +841 -0
  250. package/cli/dist/utils/lifecycle.js.map +1 -0
  251. package/cli/dist/utils/mcp-integration.d.ts +24 -3
  252. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  253. package/cli/dist/utils/mcp-integration.js +364 -151
  254. package/cli/dist/utils/mcp-integration.js.map +1 -1
  255. package/cli/dist/utils/module-system.d.ts +5 -0
  256. package/cli/dist/utils/module-system.d.ts.map +1 -1
  257. package/cli/dist/utils/module-system.js +113 -29
  258. package/cli/dist/utils/module-system.js.map +1 -1
  259. package/cli/dist/utils/openspec-sync.d.ts +4 -0
  260. package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
  261. package/cli/dist/utils/openspec-sync.js.map +1 -1
  262. package/cli/dist/utils/plugin-system.js +1 -1
  263. package/cli/dist/utils/plugin-system.js.map +1 -1
  264. package/cli/dist/utils/skill-system.d.ts +11 -0
  265. package/cli/dist/utils/skill-system.d.ts.map +1 -1
  266. package/cli/dist/utils/skill-system.js +101 -3
  267. package/cli/dist/utils/skill-system.js.map +1 -1
  268. package/cli/dist/utils/zip-archive.d.ts +25 -0
  269. package/cli/dist/utils/zip-archive.d.ts.map +1 -0
  270. package/cli/dist/utils/zip-archive.js +287 -0
  271. package/cli/dist/utils/zip-archive.js.map +1 -0
  272. package/modules.md +21 -4
  273. package/package.json +138 -140
@@ -0,0 +1,47 @@
1
+ # Platform and Layout Guidance
2
+
3
+ ## Web applications and sites
4
+
5
+ - Design for content and task flow, then choose breakpoints where the current arrangement stops working. Module values such as 600 or 1024 pixels are examples, not standard device classes.
6
+ - Use fluid constraints, grid and flex layouts, intrinsic sizing, and content-aware containers. Avoid fixed page widths and forced horizontal scrolling for ordinary text.
7
+ - Treat browser testing dimensions as CSS viewport pixels. Device-pixel ratio and physical display resolution are separate variables. The CSS reference pixel is defined by the [CSS Values and Units specification](https://www.w3.org/TR/css3-values/); device pixel ratio describes a display's physical-pixel to CSS-pixel relationship.
8
+ - Check browser zoom, text enlargement, scrollbar behavior, font fallback, safe-area environment variables where relevant, and browser support for each feature used.
9
+ - Keep essential tasks available when hover is absent. Test keyboard focus, touch input, browser back and forward, and narrow-window behavior.
10
+ - Optimize images and fonts, avoid layout shifts, and defer nonessential media. High-resolution viewports can reveal excessive line lengths and oversized blank regions, not just small-device failures.
11
+
12
+ ## Mobile applications
13
+
14
+ - Test portrait and landscape, system bars, cutouts, keyboards, safe areas, text scaling, and interruptions. Do not place essential content under system controls.
15
+ - Prefer native navigation and input patterns unless a tested product need supports a different pattern. Support back navigation and preserve in-progress work across expected interruptions.
16
+ - Make touch targets and their spacing usable. Apple's current Human Interface Guidelines list 44 by 44 points as the recommended default control size and 28 by 28 points as a minimum for iOS and iPadOS. Android's accessibility guidance recommends a 48 by 48 dp touch target. These are platform recommendations with different units; they are not the WCAG CSS-pixel minimum. See [Apple accessibility guidance](https://developer.apple.com/design/human-interface-guidelines/accessibility) and [Android accessibility for Views](https://developer.android.com/guide/topics/ui/accessibility/views/apps-views).
17
+ - Support platform text enlargement such as Dynamic Type or Android font scaling. Let content reflow rather than truncating labels or actions.
18
+ - Verify screen-reader names, roles, state, order, and touch exploration with the platform's accessibility tools.
19
+
20
+ ## Desktop software
21
+
22
+ - Support keyboard-first workflows and pointer workflows. Make focus, selection, shortcut behavior, and context menus visible and predictable.
23
+ - Preserve task context when windows resize, move between displays, or change scale. Keep essential controls reachable when window height is short.
24
+ - For dense data, support scanning, sorting, filtering, stable column meaning, and an appropriate density choice. Do not shrink text until the information becomes difficult to read.
25
+ - Test multi-window and multiple-display behavior when the product supports it. Handle display scaling and system text settings.
26
+ - Use the current operating-system design system for native controls, navigation, title bars, and window behavior.
27
+
28
+ ## Cross-platform products
29
+
30
+ - Share semantic design tokens and product meaning. Define tokens by role, then map them to platform palettes, typography, spacing, and control states.
31
+ - Share components only when behavior and accessibility semantics are truly shared. Allow platform-specific navigation, safe-area, keyboard, touch, and window adaptations.
32
+ - Document where behavior intentionally differs and how each implementation is tested.
33
+ - Test parity by user outcome and task completion, not by forcing identical pixels across platforms.
34
+
35
+ ## Other visual media
36
+
37
+ - Print work uses physical page dimensions, bleed, trim, and print color constraints rather than viewport breakpoints.
38
+ - Motion-picture work uses frame composition, safe-title areas, shot context, and the intended viewing environment.
39
+ - Image-generation prompts use model, aspect ratio, crop, and output constraints rather than responsive browser breakpoints.
40
+ - Apply relevant contrast, legibility, identity, color, typography, and composition guidance to each medium. Use the existing domain styles for medium-specific craft.
41
+
42
+ ## References verified for this guide
43
+
44
+ - WCAG 2.2 Recommendation: https://www.w3.org/TR/WCAG22/
45
+ - Apple Human Interface Guidelines, Layout and Accessibility: https://developer.apple.com/design/human-interface-guidelines/layout and https://developer.apple.com/design/human-interface-guidelines/accessibility
46
+ - Android Views accessibility: https://developer.android.com/guide/topics/ui/accessibility/views/apps-views
47
+ - Android adaptive window size classes: https://developer.android.com/develop/adaptive-apps/guides/use-window-size-classes
@@ -0,0 +1,233 @@
1
+ 'use strict';
2
+
3
+ const fs = require('node:fs');
4
+ const path = require('node:path');
5
+
6
+ const REQUIRED_PATH_FIELDS = ['rules', 'guidelines', 'skills'];
7
+ const REQUIRED_SINGLE_PATH_FIELDS = ['coverageMap', 'responsiveRunner', 'validationScript'];
8
+ const VALID_MODULE_TYPES = [
9
+ 'coding-standards',
10
+ 'domain-rules',
11
+ 'workflows',
12
+ 'examples',
13
+ 'marketing-standards',
14
+ 'writing-standards',
15
+ 'themes'
16
+ ];
17
+
18
+ function isContained(root, target) {
19
+ const relative = path.relative(root, target);
20
+ return relative === '' || (!relative.startsWith('..') && !path.isAbsolute(relative));
21
+ }
22
+
23
+ function markdownSlug(heading) {
24
+ return heading
25
+ .replace(/^#+\s+/, '')
26
+ .replace(/<[^>]*>/g, '')
27
+ .trim()
28
+ .toLowerCase()
29
+ .replace(/[\x60*_~]/g, '')
30
+ .replace(/[^\w\s-]/g, '')
31
+ .replace(/\s+/g, '-')
32
+ .replace(/-+/g, '-');
33
+ }
34
+
35
+ function validateMarkdownLinks(moduleRoot, markdownPaths, errors) {
36
+ const filesToCheck = new Set(markdownPaths);
37
+ filesToCheck.add('README.md');
38
+ for (const relativePath of filesToCheck) {
39
+ const sourcePath = path.resolve(moduleRoot, relativePath);
40
+ if (!fs.existsSync(sourcePath) || !fs.statSync(sourcePath).isFile()) continue;
41
+ const source = fs.readFileSync(sourcePath, 'utf8');
42
+ const linkPattern = /\[[^\]]+\]\(([^)]+)\)/g;
43
+ let match;
44
+ while ((match = linkPattern.exec(source)) !== null) {
45
+ const target = match[1].trim().split(/\s+/)[0];
46
+ if (/^(https?:|mailto:|tel:|#)/i.test(target)) continue;
47
+ const hashIndex = target.indexOf('#');
48
+ const pathname = hashIndex >= 0 ? target.slice(0, hashIndex) : target;
49
+ const fragment = hashIndex >= 0 ? decodeURIComponent(target.slice(hashIndex + 1)) : '';
50
+ const destination = path.resolve(path.dirname(sourcePath), decodeURIComponent(pathname || path.basename(sourcePath)));
51
+ if (!isContained(moduleRoot, destination)) {
52
+ errors.push(relativePath + ' has a link outside the module: ' + target);
53
+ continue;
54
+ }
55
+ if (!fs.existsSync(destination) || !fs.statSync(destination).isFile()) {
56
+ errors.push(relativePath + ' links to a missing file: ' + target);
57
+ continue;
58
+ }
59
+ if (fragment) {
60
+ const destinationText = fs.readFileSync(destination, 'utf8');
61
+ const headings = destinationText.match(/^#{1,6}\s+.+$/gm) || [];
62
+ const slugs = new Set(headings.map(markdownSlug));
63
+ const htmlIds = new Set(Array.from(destinationText.matchAll(/\bid=["']([^"']+)["']/g), (id) => id[1]));
64
+ if (!slugs.has(fragment.toLowerCase()) && !htmlIds.has(fragment)) {
65
+ errors.push(relativePath + ' links to a missing heading: ' + target);
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+ function calculateCharacterCount(moduleRoot) {
73
+ let total = 0;
74
+ function visit(directory) {
75
+ for (const entry of fs.readdirSync(directory, { withFileTypes: true })) {
76
+ const target = path.join(directory, entry.name);
77
+ if (entry.isDirectory()) visit(target);
78
+ else if (entry.isFile()) total += fs.readFileSync(target, 'utf8').length;
79
+ }
80
+ }
81
+ visit(moduleRoot);
82
+ return total;
83
+ }
84
+
85
+ function validateSidecarMetadata(moduleRoot, metadata, guidance, errors) {
86
+ const sidecarPath = path.join(moduleRoot, 'metadata.json');
87
+ if (!fs.existsSync(sidecarPath)) {
88
+ errors.push('metadata.json is missing.');
89
+ return;
90
+ }
91
+
92
+ let sidecar;
93
+ try {
94
+ sidecar = JSON.parse(fs.readFileSync(sidecarPath, 'utf8'));
95
+ } catch (error) {
96
+ errors.push('Unable to parse metadata.json: ' + error.message);
97
+ return;
98
+ }
99
+
100
+ if (sidecar.version !== metadata.version) {
101
+ errors.push('metadata.json version does not match module.json.');
102
+ }
103
+ if (!sidecar.files || typeof sidecar.files !== 'object' || Array.isArray(sidecar.files)) {
104
+ errors.push('metadata.json files must be an object.');
105
+ return;
106
+ }
107
+
108
+ for (const field of REQUIRED_PATH_FIELDS) {
109
+ const expected = Array.isArray(guidance[field])
110
+ ? guidance[field].map((relativePath) => relativePath.replace(new RegExp('^' + field + '/'), ''))
111
+ : [];
112
+ if (!Array.isArray(sidecar.files[field]) || JSON.stringify(sidecar.files[field]) !== JSON.stringify(expected)) {
113
+ errors.push('metadata.json files.' + field + ' must match module.json contents.guidance.' + field + '.');
114
+ }
115
+ }
116
+
117
+ const actualCharacterCount = calculateCharacterCount(moduleRoot);
118
+ if (metadata.characterCount !== undefined && metadata.characterCount !== actualCharacterCount) {
119
+ errors.push('module.json characterCount does not match the module files.');
120
+ }
121
+ if (metadata.augment && metadata.augment.characterCount !== undefined && metadata.augment.characterCount !== actualCharacterCount) {
122
+ errors.push('module.json augment.characterCount does not match the module files.');
123
+ }
124
+ if (sidecar.characterCount !== undefined && sidecar.characterCount !== actualCharacterCount) {
125
+ errors.push('metadata.json characterCount does not match the module files.');
126
+ }
127
+ }
128
+
129
+ function validateGuidanceModule(moduleRoot) {
130
+ const errors = [];
131
+ const manifestPath = path.join(moduleRoot, 'module.json');
132
+ if (!fs.existsSync(manifestPath)) return { errors: ['module.json is missing.'] };
133
+
134
+ let metadata;
135
+ try {
136
+ metadata = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
137
+ } catch (error) {
138
+ return { errors: ['Unable to parse module.json: ' + error.message] };
139
+ }
140
+
141
+ for (const field of ['name', 'version', 'displayName', 'description', 'type']) {
142
+ if (!metadata || typeof metadata[field] !== 'string' || metadata[field].trim() === '') {
143
+ errors.push('module.json is missing a valid ' + field + ' field.');
144
+ }
145
+ }
146
+ if (metadata && metadata.type && !VALID_MODULE_TYPES.includes(metadata.type)) {
147
+ errors.push('module.json has unsupported type: ' + metadata.type + '.');
148
+ }
149
+
150
+ const guidance = metadata && metadata.contents && metadata.contents.guidance;
151
+ if (!guidance || typeof guidance !== 'object' || Array.isArray(guidance)) {
152
+ return { errors: errors.concat(['module.json contents.guidance must be an object.']) };
153
+ }
154
+
155
+ const markdownPaths = [];
156
+ function validatePath(relativePath, label, markdownRequired) {
157
+ if (typeof relativePath !== 'string' || relativePath.trim() === '') {
158
+ errors.push('contents.guidance.' + label + ' must be a non-empty module-relative path.');
159
+ return;
160
+ }
161
+ if (path.isAbsolute(relativePath) || relativePath.split(/[\\/]/).includes('..')) {
162
+ errors.push('contents.guidance.' + label + ' must stay inside the module: ' + relativePath);
163
+ return;
164
+ }
165
+ const resolved = path.resolve(moduleRoot, relativePath);
166
+ if (!isContained(moduleRoot, resolved)) {
167
+ errors.push('contents.guidance.' + label + ' resolves outside the module: ' + relativePath);
168
+ return;
169
+ }
170
+ if (markdownRequired && path.extname(relativePath).toLowerCase() !== '.md') {
171
+ errors.push('contents.guidance.' + label + ' must reference a Markdown file: ' + relativePath);
172
+ return;
173
+ }
174
+ if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) {
175
+ errors.push('Referenced file for contents.guidance.' + label + ' was not found: ' + relativePath);
176
+ return;
177
+ }
178
+ if (markdownRequired) markdownPaths.push(relativePath);
179
+ }
180
+
181
+ for (const field of REQUIRED_PATH_FIELDS) {
182
+ if (!Array.isArray(guidance[field]) || guidance[field].length === 0) {
183
+ errors.push('contents.guidance.' + field + ' must be a non-empty array.');
184
+ continue;
185
+ }
186
+ guidance[field].forEach((relativePath, index) => validatePath(relativePath, field + '[' + index + ']', true));
187
+ }
188
+ for (const field of REQUIRED_SINGLE_PATH_FIELDS) {
189
+ validatePath(guidance[field], field, field === 'coverageMap');
190
+ }
191
+ validateSidecarMetadata(moduleRoot, metadata, guidance, errors);
192
+ validateMarkdownLinks(moduleRoot, markdownPaths, errors);
193
+ return { errors };
194
+ }
195
+
196
+ function parseModuleDirectory(argv) {
197
+ let moduleRoot = path.resolve(__dirname, '..');
198
+ for (let index = 0; index < argv.length; index += 1) {
199
+ if (argv[index] === '--module-dir') {
200
+ const value = argv[index + 1];
201
+ if (!value || value.startsWith('--')) throw new Error('Missing value for --module-dir.');
202
+ moduleRoot = path.resolve(value);
203
+ index += 1;
204
+ } else if (argv[index] === '--help' || argv[index] === '-h') {
205
+ console.log('Usage: node scripts/validate-guidance.cjs [--module-dir <path>]');
206
+ return null;
207
+ } else {
208
+ throw new Error('Unknown option: ' + argv[index]);
209
+ }
210
+ }
211
+ return moduleRoot;
212
+ }
213
+
214
+ function main() {
215
+ try {
216
+ const moduleRoot = parseModuleDirectory(process.argv.slice(2));
217
+ if (!moduleRoot) return;
218
+ const result = validateGuidanceModule(moduleRoot);
219
+ if (result.errors.length > 0) {
220
+ console.error('Visual Design guidance validation failed:');
221
+ result.errors.forEach((error) => console.error('- ' + error));
222
+ process.exitCode = 1;
223
+ return;
224
+ }
225
+ console.log('Visual Design guidance validation passed for ' + moduleRoot);
226
+ } catch (error) {
227
+ console.error('Visual Design guidance validation failed: ' + error.message);
228
+ process.exitCode = 2;
229
+ }
230
+ }
231
+
232
+ module.exports = { validateGuidanceModule, markdownSlug };
233
+ if (require.main === module) main();
@@ -0,0 +1,11 @@
1
+ # Visual Design Skills
2
+
3
+ These module-local skill documents use the repository skill frontmatter format and are read as module files with augx show. The current augx skill list scans the repository-level skills directory only, so these files are indexed here and from rules/index.md.
4
+
5
+ | Skill | Use it for |
6
+ |---|---|
7
+ | [Design brief](design-brief.md) | Turn a user or product goal into a testable design direction |
8
+ | [Design review](design-review.md) | Review a design or implementation and create actionable findings |
9
+ | [Responsive validation](responsive-validation/SKILL.md) | Run the broad CSS viewport sweep and review boundary behavior |
10
+
11
+ The responsive runner is at skills/responsive-validation/scripts/responsive-sweep.cjs. It uses the caller application's existing Playwright installation when available. This module does not add a browser dependency.
@@ -0,0 +1,40 @@
1
+ ---
2
+ id: visual-design-brief
3
+ name: Visual Design Brief
4
+ version: 1.0.0
5
+ category: generation
6
+ tags: [visual-design, product-design, research, ux]
7
+ tokenBudget: 2200
8
+ priority: high
9
+ dependencies: []
10
+ cliCommand: augx-visual-design-brief
11
+ ---
12
+
13
+ # Visual Design Brief
14
+
15
+ ## Purpose
16
+
17
+ Create a compact, evidence-aware design brief before exploring visual treatments or implementation.
18
+
19
+ ## Usage
20
+
21
+ 1. Identify the product, user groups, context, and primary task. Ask the requester for missing facts when they block a useful result. Mark assumptions instead of inventing research.
22
+ 2. State the user outcome and product outcome separately. List constraints, supported platforms, existing design systems, accessibility targets, content, localization, and operational dependencies that are known.
23
+ 3. Map the main journey from entry through successful completion and recovery. Note service handoffs, support, notifications, and offline or interrupted states when they apply.
24
+ 4. List open questions with the evidence needed to answer them. Choose a method that fits the question, such as observation, interview, usability test, survey, or analytics review.
25
+ 5. Describe two or more design directions only when they resolve a real tradeoff. Compare user value, accessibility, platform fit, effort, and risks.
26
+ 6. Define how the selected direction will be evaluated. Choose observable measures such as task completion, errors, comprehension, or a relevant product outcome.
27
+ 7. Link the [coverage map](../guidelines/coverage-map.md) and applicable rules. For screen interfaces, include responsive validation in the test plan.
28
+
29
+ ## Output
30
+
31
+ Provide:
32
+
33
+ - Users, context, primary tasks, and intended outcomes.
34
+ - Evidence, assumptions, unknowns, and limitations.
35
+ - Journey, key states, and service touchpoints.
36
+ - Constraints and design-system or platform dependencies.
37
+ - Design options and explicit tradeoffs.
38
+ - Validation method, observable measures, and next decision.
39
+
40
+ Do not report unrun research or measured results as facts.
@@ -0,0 +1,38 @@
1
+ ---
2
+ id: visual-design-review
3
+ name: Visual Design Review
4
+ version: 1.0.0
5
+ category: analysis
6
+ tags: [visual-design, accessibility, ux, responsive]
7
+ tokenBudget: 2600
8
+ priority: high
9
+ dependencies: []
10
+ cliCommand: augx-visual-design-review
11
+ ---
12
+
13
+ # Visual Design Review
14
+
15
+ ## Purpose
16
+
17
+ Review a design or implementation against user goals, available evidence, applicable requirements, product patterns, and the right platform constraints.
18
+
19
+ ## Usage
20
+
21
+ 1. Record the reviewed artifact, revision, route or screen, platforms, input methods, and available evidence.
22
+ 2. Identify user goals, product constraints, relevant accessibility target, established design system, and any missing information.
23
+ 3. Walk a realistic user journey through entry, normal use, loading, empty, error, recovery, completion, and interruption states.
24
+ 4. Review information grouping, labels, navigation, hierarchy, color, typography, spacing, imagery, iconography, and content density.
25
+ 5. Operate the experience with supported keyboard, pointer, touch, and assistive-technology paths. Inspect focus order, focus visibility, names, roles, values, errors, and status feedback.
26
+ 6. Check theme, larger text, zoom, reduced motion, localization, orientation, and responsive behavior where applicable. Use the [responsive validation skill](responsive-validation/SKILL.md) for screen interfaces.
27
+ 7. Separate reproduced failures from risks and questions. For each finding, name the affected state, evidence, user impact, likely cause, correction, and regression check.
28
+ 8. Do not claim conformance, usability, research, or device coverage that the available evidence does not support.
29
+
30
+ ## Finding format
31
+
32
+ - **Area and state**: the component, route, or journey step.
33
+ - **Evidence**: observed behavior and how it was reproduced.
34
+ - **Impact**: the task or user need that is affected.
35
+ - **Cause**: the implementation or design decision supported by evidence.
36
+ - **Correction**: a focused change that fits product and platform constraints.
37
+ - **Regression check**: an observable assertion or repeatable manual step.
38
+ - **Status**: verified, needs review, unverified, or out of scope.
@@ -0,0 +1,94 @@
1
+ ---
2
+ id: visual-design-responsive-validation
3
+ name: Responsive Interface Validation
4
+ version: 1.0.0
5
+ category: analysis
6
+ tags: [visual-design, responsive, accessibility, browser-testing]
7
+ tokenBudget: 4800
8
+ priority: high
9
+ dependencies: []
10
+ cliCommand: augx-visual-design-responsive-validation
11
+ ---
12
+
13
+ # Responsive Interface Validation
14
+
15
+ ## Purpose
16
+
17
+ Repeatably inspect and correct a screen interface across viewport dimensions, orientations, breakpoints, input modes, and accessibility settings. This procedure does not apply viewport rules to print, film, or image-generation outputs.
18
+
19
+ ## 1. Identify the target and available tools
20
+
21
+ Record the application, route, state, revision, and test data. Identify supported browsers, native targets, existing browser or UI runners, device farms, and screenshot review tools. Prefer the application's existing infrastructure.
22
+
23
+ Use the browser runner for web content. Use the existing native UI runner for iOS, Android, or desktop applications. Do not infer native or physical-device behavior from browser emulation.
24
+
25
+ If there is no application or usable runtime, validate this module's sweep plan and provide the steps below for a caller-supplied application. Mark all application-level layout and interaction results unverified.
26
+
27
+ ## 2. Record the test setup
28
+
29
+ Before running, record:
30
+
31
+ - Application revision, URL or native screen, route, account state, and test data.
32
+ - Browser, operating system, runner, runner version, and device or emulator profile.
33
+ - Viewport width and height in CSS pixels for browser work.
34
+ - Device-pixel ratio separately from CSS viewport dimensions. Physical display resolution is a separate hardware or display-setting value.
35
+ - Pointer and touch capabilities, orientation, font scaling, browser zoom, and reduced-motion setting.
36
+ - Existing width and height media-query breakpoints and orientation or aspect-ratio queries.
37
+ - Container-query thresholds and the component or harness used to reach each container width.
38
+ - Known min/max widths, fixed-width regions, scroll containers, safe areas, and supported content density.
39
+
40
+ Attach the runner output and boundary screenshots. Do not include secrets or personal data in artifacts.
41
+
42
+ For this skill, a browser test resolution means viewport dimensions in CSS pixels. For example, a 390 by 844 viewport at device-pixel ratio 3 is still a 390 by 844 CSS-pixel viewport. It is not a 1170 by 2532 CSS-pixel viewport.
43
+
44
+ ## 3. Inventory layout constraints
45
+
46
+ Inspect the actual application styles, design tokens, component rules, viewport metadata, native layout constraints, and existing tests. List every viewport width and height breakpoint. Include orientation and aspect-ratio conditions. Record container-query thresholds separately because a viewport sweep alone does not prove a nested component adapts at its own container boundaries.
47
+
48
+ Do not assume that conventional device labels or this module's example breakpoint numbers match the application. Choose additional test points where real content, controls, or navigation stop fitting.
49
+
50
+ ## 4. Run the broad browser sweep
51
+
52
+ Use the module runner with the caller application's existing Playwright installation. It creates a deterministic sweep of long-edge values from 256 through 7680 CSS pixels at a 128-pixel default interval, with landscape and portrait pairs. It includes square, 4:3, 3:2, 16:9, 21:9, and 32:9 ratios, the 256-pixel minimum, extreme 7680 by 256 and 256 by 7680 cases, 3840 by 2160 and 2160 by 3840 4K cases, and 7680 by 4320 and 4320 by 7680 8K cases.
53
+
54
+ At every actual width and height breakpoint, the runner adds the exact value and the immediately adjacent CSS pixels below and above. Pass all breakpoints found during source inspection. Container-query boundaries need a component harness or a test that controls the component's containing block.
55
+
56
+ From the repository root, a caller with a local app and Playwright can run:
57
+
58
+ node augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs --url http://127.0.0.1:3000 --width-breakpoints 480,768,1024 --height-breakpoints 600 --step 128 --out test-results/responsive-validation
59
+
60
+ Use the exact app URL, actual breakpoints, and available script path for the checkout. If Playwright is available only through a different runner, adapt the same generated viewport plan to that runner. Do not install a dependency solely to run this module's example. Use --dry-run to inspect the generated plan without a browser.
61
+
62
+ The runner records CSS viewport dimensions, device-pixel ratio 1 for the broad sweep, overflow, clipped text and controls, visible control overlap, broken images, keyboard focus evidence, reduced-motion preference emulation, touch-target candidates, and larger-text checks. It writes JSON results and screenshots for min/max, breakpoint, 4K, and 8K boundaries. Preference emulation and a 200 percent root-font-size approximation do not prove the application responds correctly. Any reported failure or review candidate must be classified against the actual product and recorded before a pass is reported.
63
+
64
+ ## 5. Review measurable failures
65
+
66
+ Treat these as failures unless an evidenced, accessible exception is intentional:
67
+
68
+ - The document has horizontal overflow greater than 1 CSS pixel outside a deliberately scrollable two-dimensional region.
69
+ - Required content or controls are clipped, overlap in a way that blocks reading or operation, or leave the viewport without an operable alternative.
70
+ - A visible primary control has no usable size, label, state, or keyboard focus path.
71
+ - Text, labels, tables, or images are clipped, unreadable, distorted, or scaled independently of their surrounding content.
72
+ - A broken image or missing essential content changes the task.
73
+ - An interaction has no useful loading, success, error, or recovery feedback.
74
+
75
+ Overlap and clipping detectors can identify candidates, not judge intent. Inspect each candidate and boundary screenshot. A horizontal data table may use a labeled, keyboard-operable scroll region; that exception does not permit the page itself to scroll horizontally without need.
76
+
77
+ For each reproduced failure, state the root cause, affected state, user impact, correction, and regression assertion. Add the assertion to the application's existing test suite when the application is in scope.
78
+
79
+ ## 6. Check input, accessibility, and content stress
80
+
81
+ - Navigate with the keyboard. Confirm logical order, no keyboard trap, visible focus, and access to every essential action.
82
+ - Use browser or native zoom and text scaling where supported. Confirm no content or functionality is lost. The runner's 200 percent root-font test is an approximation; it is not proof of browser zoom behavior.
83
+ - Emulate reduced motion and confirm nonessential movement is removed or reduced while state changes remain understandable.
84
+ - On touch-capable browser cases, review targets smaller than 24 CSS pixels for the WCAG 2.2 minimum-size rule and spacing exceptions. Also consider the 44 CSS pixel Level AAA enhanced target. For native work, test platform units and controls directly.
85
+ - Activate the main touch tasks in the touch-capable browser or native runner. Target-size inspection alone does not prove that gestures, hit areas, or control behavior work.
86
+ - Test long localized labels, right-to-left direction, empty and error states, large headings, data density, and image crops with realistic content.
87
+ - Check representative narrow and wide aspect ratios, portrait and landscape rotation, and short-height windows.
88
+ - Review image quality and loading at high pixel density separately from CSS viewport behavior. The runner's DPR 1 sweep does not establish high-DPR image quality.
89
+
90
+ ## 7. Report evidence and limits
91
+
92
+ Report exact commands, app revision, route, browser or native environment, CSS viewport plan, breakpoints tested, screenshots reviewed, and failed or skipped checks. Separate automated results from visual review and physical-device evidence. Do not call a 128-pixel interval exhaustive; breakpoint neighbors and configured edge cases supplement that sample.
93
+
94
+ If no application or runtime was available, say so. The skill structure, viewport plan, and validators can be tested locally, but application-specific overflow, clipping, overlap, controls, keyboard focus, touch behavior, zoom, text scaling, reduced motion, localization, and 4K/8K rendering remain unverified.