@thanhnguyxn/pixelcraft 0.1.0 → 0.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 (376) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/.claude-plugin/plugin.json +15 -4
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/README.md +185 -328
  13. package/SECURITY.md +28 -0
  14. package/assets/pixelcraft-logo-128.png +0 -0
  15. package/assets/pixelcraft-logo-256.png +0 -0
  16. package/bin/pixelcraft.mjs +431 -23
  17. package/docs/ARCHITECTURE.md +40 -37
  18. package/docs/DESIGN-RATIONALE.md +51 -3
  19. package/docs/INSTALL.md +221 -0
  20. package/evals/README.md +16 -6
  21. package/evals/fixtures/3d-web-engineering.json +69 -0
  22. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  23. package/evals/fixtures/ai-ui-libraries.json +53 -0
  24. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  25. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  26. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  27. package/evals/fixtures/build-and-architecture.json +53 -0
  28. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  29. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  30. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  31. package/evals/fixtures/component-systems.json +53 -0
  32. package/evals/fixtures/component-testing.json +53 -0
  33. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  34. package/evals/fixtures/creative-code-rendering.json +69 -0
  35. package/evals/fixtures/creative-reference-evidence.json +67 -0
  36. package/evals/fixtures/data-app-python-marimo.json +49 -0
  37. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  38. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  39. package/evals/fixtures/desktop-native-workspace.json +48 -0
  40. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  41. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  42. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  43. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  44. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  45. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  46. package/evals/fixtures/enterprise-data-ui.json +53 -0
  47. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  48. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  49. package/evals/fixtures/file-upload-media-ui.json +53 -0
  50. package/evals/fixtures/forms-validation.json +53 -0
  51. package/evals/fixtures/game-go-ebitengine.json +49 -0
  52. package/evals/fixtures/game-godot-gdscript.json +49 -0
  53. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  54. package/evals/fixtures/i18n-engineering.json +53 -0
  55. package/evals/fixtures/local-first-sync.json +53 -0
  56. package/evals/fixtures/lynxjs.json +53 -0
  57. package/evals/fixtures/maizzle-email.json +53 -0
  58. package/evals/fixtures/maps-geospatial.json +53 -0
  59. package/evals/fixtures/media-og-and-video-export.json +43 -0
  60. package/evals/fixtures/media-players.json +53 -0
  61. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  62. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  63. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  64. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  65. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  66. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  67. package/evals/fixtures/motion-engineering.json +69 -0
  68. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  69. package/evals/fixtures/plan-discovery-interview.json +31 -0
  70. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  71. package/evals/fixtures/reactive-data-apps.json +53 -0
  72. package/evals/fixtures/review-evidence-audit.json +43 -0
  73. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  74. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  75. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  76. package/evals/fixtures/state-architecture.json +53 -0
  77. package/evals/fixtures/styling-ecosystem.json +53 -0
  78. package/evals/fixtures/token-tooling.json +53 -0
  79. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  80. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  81. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  82. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  83. package/evals/fixtures/web-3d-engines.json +53 -0
  84. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  85. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  86. package/evals/pixelcraft-accessibility.md +17 -0
  87. package/evals/pixelcraft-craft.md +16 -0
  88. package/evals/pixelcraft-dataviz.md +3 -3
  89. package/evals/pixelcraft-direction.md +17 -0
  90. package/evals/pixelcraft-game-ui.md +3 -3
  91. package/evals/pixelcraft-mobile.md +3 -3
  92. package/evals/pixelcraft-patterns.md +16 -0
  93. package/evals/pixelcraft-plan.md +65 -3
  94. package/evals/pixelcraft-review.md +3 -3
  95. package/evals/pixelcraft-visual-qa.md +11 -5
  96. package/evals/pixelcraft-web.md +21 -3
  97. package/evals/pixelcraft.md +4 -4
  98. package/gemini-extension.json +3 -2
  99. package/install.ps1 +57 -11
  100. package/install.sh +82 -7
  101. package/package.json +32 -4
  102. package/plugin.json +6 -1
  103. package/scripts/build-adapters.mjs +11 -13
  104. package/scripts/run-evals.mjs +397 -0
  105. package/scripts/sync-docs.mjs +381 -0
  106. package/scripts/test-build-adapters.mjs +14 -1
  107. package/scripts/test-cross-platform-qa.mjs +359 -0
  108. package/scripts/test-distribution.mjs +86 -7
  109. package/scripts/test-export-tokens.mjs +259 -3
  110. package/scripts/test-finish-gate.mjs +133 -10
  111. package/scripts/test-installers.mjs +155 -6
  112. package/scripts/test-shoot.mjs +23 -1
  113. package/scripts/test-slop-scan.mjs +390 -3
  114. package/scripts/test-style-inventory.mjs +23 -0
  115. package/scripts/test-sync-docs.mjs +140 -0
  116. package/scripts/test-validate-skills.mjs +82 -4
  117. package/scripts/validate-skills.mjs +149 -3
  118. package/skills/pixelcraft/SKILL.md +67 -47
  119. package/skills/pixelcraft/references/design-brief.md +2 -2
  120. package/skills/pixelcraft/references/floor.md +36 -19
  121. package/skills/pixelcraft/references/report-template.md +25 -11
  122. package/skills/pixelcraft/references/stack-detection.md +138 -67
  123. package/skills/pixelcraft/references/surface-acceptance.md +33 -21
  124. package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
  125. package/skills/pixelcraft-accessibility/SKILL.md +34 -13
  126. package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
  127. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  128. package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
  129. package/skills/pixelcraft-accessibility/references/verification.md +15 -10
  130. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
  131. package/skills/pixelcraft-brandkit/SKILL.md +42 -30
  132. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
  133. package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
  134. package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
  135. package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
  136. package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
  137. package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
  138. package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
  139. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  140. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  141. package/skills/pixelcraft-chat-ui/references/conversation-design.md +12 -6
  142. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
  143. package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
  144. package/skills/pixelcraft-constrained/SKILL.md +21 -20
  145. package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
  146. package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
  147. package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
  148. package/skills/pixelcraft-craft/SKILL.md +29 -15
  149. package/skills/pixelcraft-craft/references/color.md +62 -6
  150. package/skills/pixelcraft-craft/references/layout.md +32 -0
  151. package/skills/pixelcraft-craft/references/motion.md +99 -12
  152. package/skills/pixelcraft-craft/references/typography.md +48 -9
  153. package/skills/pixelcraft-data-apps/SKILL.md +50 -31
  154. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  155. package/skills/pixelcraft-data-apps/references/dash.md +87 -31
  156. package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
  157. package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
  158. package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
  159. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
  160. package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
  161. package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
  162. package/skills/pixelcraft-data-apps/references/panel.md +69 -23
  163. package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
  164. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  165. package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
  166. package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
  167. package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
  168. package/skills/pixelcraft-dataviz/SKILL.md +21 -24
  169. package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
  170. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
  171. package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
  172. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  173. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
  174. package/skills/pixelcraft-desktop/SKILL.md +61 -39
  175. package/skills/pixelcraft-desktop/references/appkit.md +60 -26
  176. package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
  177. package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
  178. package/skills/pixelcraft-desktop/references/electron.md +68 -26
  179. package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
  180. package/skills/pixelcraft-desktop/references/gtk.md +74 -31
  181. package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
  182. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
  183. package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
  184. package/skills/pixelcraft-desktop/references/tauri.md +80 -24
  185. package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
  186. package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
  187. package/skills/pixelcraft-desktop/references/working-context.md +82 -3
  188. package/skills/pixelcraft-direction/SKILL.md +48 -82
  189. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  190. package/skills/pixelcraft-direction/references/direction-card.md +11 -1
  191. package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
  192. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  193. package/skills/pixelcraft-direction/references/movements.md +3 -0
  194. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  195. package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
  196. package/skills/pixelcraft-document/SKILL.md +27 -23
  197. package/skills/pixelcraft-document/references/archetypes.md +27 -4
  198. package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
  199. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  200. package/skills/pixelcraft-document/references/print-css.md +96 -43
  201. package/skills/pixelcraft-document/references/slides.md +123 -27
  202. package/skills/pixelcraft-email/SKILL.md +42 -20
  203. package/skills/pixelcraft-email/references/client-quirks.md +101 -33
  204. package/skills/pixelcraft-email/references/html-tables.md +83 -22
  205. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  206. package/skills/pixelcraft-email/references/mjml.md +13 -11
  207. package/skills/pixelcraft-email/references/react-email.md +76 -34
  208. package/skills/pixelcraft-extensions/SKILL.md +32 -27
  209. package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
  210. package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
  211. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  212. package/skills/pixelcraft-extensions/references/raycast.md +90 -11
  213. package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
  214. package/skills/pixelcraft-game-ui/SKILL.md +45 -26
  215. package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
  216. package/skills/pixelcraft-game-ui/references/godot.md +100 -27
  217. package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
  218. package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
  219. package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
  220. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  221. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
  222. package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
  223. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  224. package/skills/pixelcraft-handoff/SKILL.md +14 -13
  225. package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
  226. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  227. package/skills/pixelcraft-media/SKILL.md +20 -23
  228. package/skills/pixelcraft-media/references/banners-video.md +83 -65
  229. package/skills/pixelcraft-media/references/og-generation.md +110 -63
  230. package/skills/pixelcraft-media/references/social-cards.md +57 -58
  231. package/skills/pixelcraft-mobile/SKILL.md +53 -36
  232. package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
  233. package/skills/pixelcraft-mobile/references/flet.md +53 -26
  234. package/skills/pixelcraft-mobile/references/flutter.md +76 -32
  235. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  236. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
  237. package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
  238. package/skills/pixelcraft-mobile/references/kivy.md +54 -31
  239. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
  240. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  241. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  242. package/skills/pixelcraft-mobile/references/react-native-expo.md +66 -31
  243. package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
  244. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  245. package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
  246. package/skills/pixelcraft-mobile/references/uikit.md +57 -23
  247. package/skills/pixelcraft-patterns/SKILL.md +30 -13
  248. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  249. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  250. package/skills/pixelcraft-patterns/references/auth-onboarding.md +32 -13
  251. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  252. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  253. package/skills/pixelcraft-patterns/references/commerce.md +35 -16
  254. package/skills/pixelcraft-patterns/references/communication.md +34 -15
  255. package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
  256. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  257. package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
  258. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  259. package/skills/pixelcraft-patterns/references/marketing.md +31 -19
  260. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  261. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  262. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  263. package/skills/pixelcraft-patterns/references/pattern-selection.md +8 -2
  264. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  265. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  266. package/skills/pixelcraft-patterns/references/settings.md +40 -12
  267. package/skills/pixelcraft-plan/SKILL.md +54 -18
  268. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  269. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  270. package/skills/pixelcraft-plan/references/plan-template.md +44 -9
  271. package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
  272. package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
  273. package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
  274. package/skills/pixelcraft-review/SKILL.md +41 -19
  275. package/skills/pixelcraft-review/references/audit-report.md +20 -1
  276. package/skills/pixelcraft-review/references/heuristics.md +63 -18
  277. package/skills/pixelcraft-review/references/personas.md +41 -14
  278. package/skills/pixelcraft-review/references/polish.md +66 -26
  279. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  280. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  281. package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
  282. package/skills/pixelcraft-spatial/SKILL.md +16 -17
  283. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
  284. package/skills/pixelcraft-spatial/references/platforms.md +123 -53
  285. package/skills/pixelcraft-tokens/SKILL.md +18 -14
  286. package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
  287. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
  288. package/skills/pixelcraft-tokens/references/format.md +39 -9
  289. package/skills/pixelcraft-tokens/references/governance.md +1 -1
  290. package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
  291. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  292. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
  293. package/skills/pixelcraft-tui/SKILL.md +41 -25
  294. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
  295. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  296. package/skills/pixelcraft-tui/references/ink.md +77 -28
  297. package/skills/pixelcraft-tui/references/ratatui.md +70 -30
  298. package/skills/pixelcraft-tui/references/rich.md +53 -33
  299. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  300. package/skills/pixelcraft-tui/references/textual.md +75 -34
  301. package/skills/pixelcraft-ux/SKILL.md +22 -12
  302. package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
  303. package/skills/pixelcraft-ux/references/forms.md +57 -3
  304. package/skills/pixelcraft-ux/references/i18n.md +50 -12
  305. package/skills/pixelcraft-ux/references/laws.md +35 -14
  306. package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
  307. package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
  308. package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
  309. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
  310. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  311. package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
  312. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
  313. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
  314. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  315. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
  316. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  317. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  318. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  319. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  320. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  321. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +50 -11
  322. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
  323. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
  324. package/skills/pixelcraft-web/SKILL.md +105 -49
  325. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  326. package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
  327. package/skills/pixelcraft-web/references/angular.md +63 -16
  328. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  329. package/skills/pixelcraft-web/references/astro.md +64 -13
  330. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  331. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  332. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  333. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  334. package/skills/pixelcraft-web/references/clojurescript.md +52 -17
  335. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  336. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  337. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  338. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  339. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  340. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  341. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  342. package/skills/pixelcraft-web/references/fsharp-fable.md +3 -2
  343. package/skills/pixelcraft-web/references/gsap.md +102 -0
  344. package/skills/pixelcraft-web/references/html-css.md +144 -12
  345. package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
  346. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  347. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  348. package/skills/pixelcraft-web/references/java-web.md +27 -18
  349. package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
  350. package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
  351. package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
  352. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  353. package/skills/pixelcraft-web/references/media-players.md +104 -0
  354. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  355. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  356. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  357. package/skills/pixelcraft-web/references/pwa.md +6 -1
  358. package/skills/pixelcraft-web/references/qwik.md +51 -11
  359. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  360. package/skills/pixelcraft-web/references/react-next.md +112 -13
  361. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  362. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  363. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  364. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  365. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  366. package/skills/pixelcraft-web/references/server-rendered.md +106 -63
  367. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  368. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  369. package/skills/pixelcraft-web/references/solid.md +67 -16
  370. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  371. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  372. package/skills/pixelcraft-web/references/svelte.md +61 -11
  373. package/skills/pixelcraft-web/references/tailwind.md +40 -14
  374. package/skills/pixelcraft-web/references/video-media.md +69 -0
  375. package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
  376. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -0,0 +1,321 @@
1
+ #!/usr/bin/env node
2
+ import fs from 'node:fs';
3
+ import path from 'node:path';
4
+ import { spawnSync } from 'node:child_process';
5
+
6
+ const ansiRe = /\x1b(?:\[[0-?]*[ -/]*[@-~]|\][^\x07\x1b]*(?:\x07|\x1b\\)|[@-Z\\-_])/g;
7
+
8
+ function help() {
9
+ return `Usage: node check-tui.mjs [--cols N] [--json] (--input FILE | -- <cmd ...>)
10
+
11
+ Inspect captured TUI output or execute a terminal command under NO_COLOR=1 and a non-TTY pipe.
12
+ Verifies zero ANSI escape leakage under NO_COLOR=1, UAX #29 grapheme-cluster visible line widths
13
+ within --cols, clean 6-step terminal mode teardown (alternate screen, cursor, bracketed paste,
14
+ synchronized output, mouse tracking, Kitty keyboard), and zero exit status.
15
+
16
+ Options:
17
+ --cols N Maximum visible column width (default: 80)
18
+ --input FILE Inspect captured output file instead of executing a command
19
+ --json Print machine-readable JSON output
20
+ -- <cmd ...> Execute command with NO_COLOR=1, FORCE_COLOR=0, TERM=dumb, COLUMNS=<cols>
21
+ --help Show this help`;
22
+ }
23
+
24
+ const graphemeSegmenter = new Intl.Segmenter('en', { granularity: 'grapheme' });
25
+
26
+ function isWideCodePoint(cp) {
27
+ return (cp >= 0x1100 && cp <= 0x115f)
28
+ || cp === 0x2329 || cp === 0x232a
29
+ || (cp >= 0x2e80 && cp <= 0xa4cf && cp !== 0x303f)
30
+ || (cp >= 0xac00 && cp <= 0xd7a3)
31
+ || (cp >= 0xf900 && cp <= 0xfaff)
32
+ || (cp >= 0xfe10 && cp <= 0xfe19)
33
+ || (cp >= 0xfe30 && cp <= 0xfe6f)
34
+ || (cp >= 0xff00 && cp <= 0xff60)
35
+ || (cp >= 0xffe0 && cp <= 0xffe6)
36
+ || (cp >= 0x1f300 && cp <= 0x1faff)
37
+ || (cp >= 0x20000 && cp <= 0x2fffd)
38
+ || (cp >= 0x30000 && cp <= 0x3fffd);
39
+ }
40
+
41
+ function isZeroWidthCodePoint(cp) {
42
+ return cp <= 0x1f
43
+ || (cp >= 0x7f && cp <= 0x9f)
44
+ || cp === 0x200b || cp === 0x200c || cp === 0x200d || cp === 0xfeff
45
+ || (cp >= 0xfe00 && cp <= 0xfe0f)
46
+ || (cp >= 0xe0100 && cp <= 0xe01ef);
47
+ }
48
+
49
+ export function visibleWidth(line) {
50
+ const stripped = line.replace(ansiRe, '').replace(/\r/g, '');
51
+ let width = 0;
52
+ for (const { segment } of graphemeSegmenter.segment(stripped)) {
53
+ if (segment === '\t') {
54
+ width += 4;
55
+ continue;
56
+ }
57
+ if (/^\p{Mark}+$/u.test(segment)) continue;
58
+ const hasTextPresentation = segment.includes('\ufe0e');
59
+ if (!hasTextPresentation && (
60
+ segment.includes('\u200d')
61
+ || segment.includes('\ufe0f')
62
+ || segment.includes('\u20e3')
63
+ || /\p{Regional_Indicator}{2}/u.test(segment)
64
+ || /\p{Emoji_Presentation}/u.test(segment)
65
+ )) {
66
+ width += 2;
67
+ continue;
68
+ }
69
+ let baseCp = -1;
70
+ for (const ch of segment) {
71
+ if (/\p{Mark}/u.test(ch)) continue;
72
+ const cp = ch.codePointAt(0);
73
+ if (isZeroWidthCodePoint(cp)) continue;
74
+ baseCp = cp;
75
+ break;
76
+ }
77
+ if (baseCp < 0) continue;
78
+ width += isWideCodePoint(baseCp) ? 2 : 1;
79
+ }
80
+ return width;
81
+ }
82
+
83
+ function parseCli(args) {
84
+ const out = { help: false, json: false, cols: 80, input: '', cmd: [] };
85
+ for (let i = 0; i < args.length; i += 1) {
86
+ const arg = args[i];
87
+ if (arg === '--') {
88
+ out.cmd = args.slice(i + 1);
89
+ break;
90
+ }
91
+ if (arg === '--help' || arg === '-h') out.help = true;
92
+ else if (arg === '--json') out.json = true;
93
+ else if (arg === '--cols') {
94
+ if (!args[i + 1]) throw new Error('--cols requires a positive integer');
95
+ out.cols = Number(args[++i]);
96
+ } else if (arg.startsWith('--cols=')) out.cols = Number(arg.slice('--cols='.length));
97
+ else if (arg === '--input') {
98
+ if (!args[i + 1]) throw new Error('--input requires a file path');
99
+ out.input = args[++i];
100
+ } else if (arg.startsWith('--input=')) out.input = arg.slice('--input='.length);
101
+ else if (arg.startsWith('-')) throw new Error(`unknown option: ${arg}`);
102
+ else if (!out.input) out.input = arg;
103
+ else throw new Error(`unexpected argument: ${arg}`);
104
+ }
105
+ if (!Number.isSafeInteger(out.cols) || out.cols < 1) {
106
+ throw new Error('--cols must be a positive integer');
107
+ }
108
+ return out;
109
+ }
110
+
111
+ function analyzeOutput(text, cols, exitCode, execError, signal) {
112
+ const findings = [];
113
+ if (execError) {
114
+ findings.push({
115
+ rule: 'command-exec-error',
116
+ severity: 'P0',
117
+ line: 1,
118
+ message: `Command failed to execute: ${execError}`,
119
+ fix: 'Verify the binary path and runtime dependencies.',
120
+ });
121
+ } else if (signal || (exitCode !== null && exitCode !== 0)) {
122
+ findings.push({
123
+ rule: 'nonzero-exit',
124
+ severity: 'P0',
125
+ line: 1,
126
+ message: signal ? `Process terminated by signal ${signal}.` : `Process exited with non-zero code ${exitCode}.`,
127
+ fix: 'Ensure clean non-TTY execution and error teardown without crashing.',
128
+ });
129
+ }
130
+
131
+ // Unclosed terminal protocol modes (6-step teardown hygiene)
132
+ const modePairs = [
133
+ {
134
+ enter: /\x1b\[\?1049h/g,
135
+ exit: /\x1b\[\?1049l/g,
136
+ severity: 'P0',
137
+ message: 'Alternate screen buffer entered (\\x1b[?1049h) without matching exit (\\x1b[?1049l).',
138
+ fix: 'Restore the primary screen buffer on normal exit, errors, panics, and SIGINT/SIGTERM.',
139
+ },
140
+ {
141
+ enter: /\x1b\[\?25l/g,
142
+ exit: /\x1b\[\?25h/g,
143
+ severity: 'P0',
144
+ message: 'Cursor hidden (\\x1b[?25l) without matching restore (\\x1b[?25h).',
145
+ fix: 'Always restore cursor visibility in terminal teardown handlers.',
146
+ },
147
+ {
148
+ enter: /\x1b\[\?2004h/g,
149
+ exit: /\x1b\[\?2004l/g,
150
+ severity: 'P0',
151
+ message: 'Bracketed paste mode enabled (\\x1b[?2004h) without matching reset (\\x1b[?2004l).',
152
+ fix: 'Disable DECSET 2004 bracketed paste on exit so the parent shell is not polluted with paste escape wrappers.',
153
+ },
154
+ {
155
+ enter: /\x1b\[\?2026h/g,
156
+ exit: /\x1b\[\?2026l/g,
157
+ severity: 'P1',
158
+ message: 'Synchronized output mode enabled (\\x1b[?2026h) without matching flush/reset (\\x1b[?2026l).',
159
+ fix: 'Close synchronized frame updates with \\x1b[?2026l before exiting so terminal rendering does not freeze.',
160
+ },
161
+ {
162
+ enter: /\x1b\[>\d*(?:;\d*)*u/g,
163
+ exit: /\x1b\[<\d*u/g,
164
+ severity: 'P0',
165
+ message: 'Kitty keyboard protocol pushed (\\x1b[>...u) without matching pop (\\x1b[<u).',
166
+ fix: 'Pop Kitty keyboard enhancement flags (\\x1b[<u) on exit and panic.',
167
+ },
168
+ ];
169
+ for (const mode of modePairs) {
170
+ const enterCount = (text.match(mode.enter) || []).length;
171
+ const exitCount = (text.match(mode.exit) || []).length;
172
+ if (enterCount > exitCount) {
173
+ findings.push({
174
+ rule: 'teardown-leak',
175
+ severity: mode.severity,
176
+ line: 1,
177
+ message: mode.message,
178
+ fix: mode.fix,
179
+ });
180
+ }
181
+ }
182
+ for (const code of ['1000', '1002', '1003', '1006']) {
183
+ const enterRe = new RegExp(`\\x1b\\[\\?${code}h`, 'g');
184
+ const exitRe = new RegExp(`\\x1b\\[\\?${code}l`, 'g');
185
+ if ((text.match(enterRe) || []).length > (text.match(exitRe) || []).length) {
186
+ findings.push({
187
+ rule: 'teardown-leak',
188
+ severity: 'P0',
189
+ line: 1,
190
+ message: `Mouse tracking mode (\\x1b[?${code}h) enabled without matching disable (\\x1b[?${code}l).`,
191
+ fix: 'Disable all mouse tracking modes (?1000l/?1002l/?1003l/?1006l) before returning control to the shell.',
192
+ });
193
+ }
194
+ }
195
+
196
+ const lines = text.split(/\r?\n/);
197
+ let ansiCount = 0;
198
+ let firstAnsiLine = 0;
199
+ let maxWidth = 0;
200
+ const overflowLines = [];
201
+
202
+ lines.forEach((line, index) => {
203
+ const lineNum = index + 1;
204
+ const matches = line.match(ansiRe);
205
+ if (matches) {
206
+ ansiCount += matches.length;
207
+ if (!firstAnsiLine) firstAnsiLine = lineNum;
208
+ }
209
+ const width = visibleWidth(line);
210
+ if (width > maxWidth) maxWidth = width;
211
+ if (width > cols) overflowLines.push({ line: lineNum, width });
212
+ });
213
+
214
+ if (ansiCount > 0) {
215
+ findings.push({
216
+ rule: 'ansi-leak-no-color',
217
+ severity: 'P1',
218
+ line: firstAnsiLine,
219
+ message: `Detected ${ansiCount} ANSI escape sequence(s) under NO_COLOR=1 / non-TTY pipe (first on line ${firstAnsiLine}).`,
220
+ fix: 'Honor NO_COLOR and non-TTY stdout by omitting ANSI SGR/control escape codes.',
221
+ });
222
+ }
223
+
224
+ if (overflowLines.length > 0) {
225
+ const first = overflowLines[0];
226
+ findings.push({
227
+ rule: 'line-overflow',
228
+ severity: 'P1',
229
+ line: first.line,
230
+ message: `${overflowLines.length} line(s) exceed ${cols} visible columns (max ${maxWidth} cols; first on line ${first.line} at ${first.width} cols).`,
231
+ fix: `Wrap or truncate TUI output to fit within ${cols} columns cleanly.`,
232
+ });
233
+ }
234
+
235
+ return {
236
+ lineCount: lines.length,
237
+ maxWidth,
238
+ ansiMatches: ansiCount,
239
+ overflowCount: overflowLines.length,
240
+ findings,
241
+ };
242
+ }
243
+
244
+ function main() {
245
+ const cli = parseCli(process.argv.slice(2));
246
+ if (cli.help) {
247
+ console.log(help());
248
+ return;
249
+ }
250
+ if (!cli.input && cli.cmd.length === 0) {
251
+ throw new Error('provide --input <file> or -- <cmd ...>; see --help');
252
+ }
253
+ if (cli.input && cli.cmd.length > 0) {
254
+ throw new Error('specify either --input <file> or -- <cmd ...>, not both');
255
+ }
256
+
257
+ let mode = 'input';
258
+ let label = 'static';
259
+ let text = '';
260
+ let exitCode = 0;
261
+ let execError = null;
262
+ let signal = null;
263
+
264
+ if (cli.cmd.length > 0) {
265
+ mode = 'command';
266
+ label = 'rendered';
267
+ const result = spawnSync(cli.cmd[0], cli.cmd.slice(1), {
268
+ encoding: 'utf8',
269
+ stdio: ['ignore', 'pipe', 'pipe'],
270
+ timeout: 15000,
271
+ env: {
272
+ ...process.env,
273
+ NO_COLOR: '1',
274
+ FORCE_COLOR: '0',
275
+ TERM: 'dumb',
276
+ COLUMNS: String(cli.cols),
277
+ },
278
+ });
279
+ text = `${result.stdout || ''}${result.stderr || ''}`;
280
+ exitCode = result.status;
281
+ execError = result.error ? result.error.message : null;
282
+ signal = result.signal || null;
283
+ } else {
284
+ const file = path.resolve(cli.input);
285
+ if (!fs.existsSync(file)) throw new Error(`input file not found: ${cli.input}`);
286
+ text = fs.readFileSync(file, 'utf8');
287
+ }
288
+
289
+ const analysis = analyzeOutput(text, cli.cols, exitCode, execError, signal);
290
+ const report = {
291
+ mode,
292
+ target: mode === 'command' ? cli.cmd.join(' ') : cli.input,
293
+ label,
294
+ cols: cli.cols,
295
+ exitCode,
296
+ ...analysis,
297
+ pass: analysis.findings.length === 0,
298
+ };
299
+
300
+ if (cli.json) {
301
+ console.log(JSON.stringify(report, null, 2));
302
+ } else {
303
+ console.log(`check-tui [${report.label}] (${report.mode}, cols=${report.cols}): ${report.pass ? 'PASS' : 'FAIL'} (maxWidth=${report.maxWidth}, ansi=${report.ansiMatches}, exit=${report.exitCode})`);
304
+ for (const f of report.findings) {
305
+ console.log(` ${f.severity} line ${f.line} ${f.rule} — ${f.message}\n fix: ${f.fix}`);
306
+ }
307
+ }
308
+ if (!report.pass) process.exitCode = 1;
309
+ }
310
+
311
+ import { fileURLToPath } from 'node:url';
312
+
313
+ const isEntrypoint = process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url);
314
+ if (isEntrypoint) {
315
+ try {
316
+ main();
317
+ } catch (error) {
318
+ console.error(`check-tui: ${error.message}`);
319
+ process.exit(1);
320
+ }
321
+ }
@@ -4,13 +4,29 @@ import path from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
 
6
6
  const optional = ['error', 'empty', 'loading', 'theme', 'reduced-motion', 'reflow-320'];
7
- const interfaces = ['responsive-web', 'other'];
7
+ const extendedOptional = ['i18n', 'locale', 'forced-colors', 'text-scale-200'];
8
+ const coreFloorOptional = new Set(['error', 'reduced-motion', 'theme']);
9
+ const lazyReasonPattern = /^(?:n\/?a|none|skip|skipped|todo|tbd|ignored|-)$/i;
10
+ const interfaces = ['responsive-web', 'mobile', 'desktop', 'tui', 'email', 'document', 'game', 'spatial', 'other'];
8
11
  const shortHeightLayout = 'layout-short-height';
9
12
  const shortHeightLimit = 600;
10
13
  const webLayoutClasses = ['layout-landscape', shortHeightLayout];
11
14
  const present = (value) => typeof value === 'string' && Boolean(value.trim());
12
15
  const record = (value) => value && typeof value === 'object' && !Array.isArray(value);
13
16
  const dimension = (value) => Number.isSafeInteger(value) && value > 0;
17
+ const isGeometryCheck = (id) => /^width-[1-9]\d*$/.test(id)
18
+ || id === 'reflow-320'
19
+ || /^layout-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(id);
20
+ const normalizeArtifact = (value) => path.normalize(value).replace(/\\/g, '/').replace(/^\.\//, '');
21
+
22
+ function isValidExclusionReason(id, reason) {
23
+ if (!present(reason)) return false;
24
+ const trimmed = reason.trim();
25
+ if (coreFloorOptional.has(id) && (trimmed.length < 8 || lazyReasonPattern.test(trimmed))) {
26
+ return false;
27
+ }
28
+ return true;
29
+ }
14
30
 
15
31
  export function evaluateEvidence(manifest, hasArtifact) {
16
32
  if (!record(manifest) || manifest.schemaVersion !== 1 || !interfaces.includes(manifest.surface)
@@ -23,13 +39,29 @@ export function evaluateEvidence(manifest, hasArtifact) {
23
39
  const notChecked = new Map();
24
40
  const failures = new Map();
25
41
  const skipped = new Map();
26
- for (const id of optional) {
27
- if (id === 'reflow-320' && !web) continue;
42
+ const applyOptionalDecision = (id) => {
28
43
  const applicability = manifest.applicability[id];
29
44
  if (applicability === true) required.push(id);
30
- else if (record(applicability) && applicability.applies === false && present(applicability.reason)) {
31
- skipped.set(id, applicability.reason);
45
+ else if (record(applicability) && applicability.applies === false) {
46
+ if (isValidExclusionReason(id, applicability.reason)) {
47
+ skipped.set(id, applicability.reason);
48
+ } else if (coreFloorOptional.has(id) && present(applicability.reason)) {
49
+ notChecked.set(id, 'Non-applicability reason for core floor check must be concrete (>= 8 chars and not a placeholder like n/a or skip).');
50
+ } else {
51
+ notChecked.set(id, 'Applicability must be decided before verification.');
52
+ }
32
53
  } else notChecked.set(id, 'Applicability must be decided before verification.');
54
+ };
55
+ for (const id of optional) {
56
+ if (id === 'reflow-320' && !web) continue;
57
+ applyOptionalDecision(id);
58
+ }
59
+ for (const id of extendedOptional) {
60
+ if (!Object.hasOwn(manifest.applicability, id)) continue;
61
+ applyOptionalDecision(id);
62
+ }
63
+ if (manifest.surface === 'email' && Object.hasOwn(manifest.applicability, 'plaintext')) {
64
+ applyOptionalDecision('plaintext');
33
65
  }
34
66
 
35
67
  const layouts = record(manifest.layoutMatrix) ? manifest.layoutMatrix : {};
@@ -64,7 +96,7 @@ export function evaluateEvidence(manifest, hasArtifact) {
64
96
  skipped.delete(round.failure);
65
97
  }
66
98
 
67
- const desktopArtifact = manifest.checks['width-1440']?.artifact;
99
+ const geometryArtifacts = new Map();
68
100
  for (const id of new Set([...required, ...repaired, ...Object.keys(manifest.checks)])) {
69
101
  const entry = Object.hasOwn(manifest.checks, id) ? manifest.checks[id] : undefined;
70
102
  if (skipped.has(id) && entry?.result !== 'fail') continue;
@@ -74,11 +106,6 @@ export function evaluateEvidence(manifest, hasArtifact) {
74
106
  notChecked.set(id, 'Invalid width check ID; use width-<px> or width-<px>-<defect>.');
75
107
  continue;
76
108
  }
77
- if (web && layout && id === shortHeightLayout && present(entry?.artifact) && present(desktopArtifact)
78
- && path.normalize(entry.artifact) === path.normalize(desktopArtifact)) {
79
- notChecked.set(id, 'Short-height evidence must use a separate artifact from width-1440.');
80
- continue;
81
- }
82
109
  if (!record(entry) || !['pass', 'fail'].includes(entry.result) || entry.label !== 'rendered'
83
110
  || ![entry.method, entry.expected, entry.observed].every(present) || !hasArtifact(entry.artifact)
84
111
  || (id === 'outcome' && !present(entry.assertion))
@@ -88,8 +115,20 @@ export function evaluateEvidence(manifest, hasArtifact) {
88
115
  || (layout && (entry.width !== layout.width || entry.height !== layout.height))) {
89
116
  notChecked.set(id, present(entry?.reason) ? entry.reason : 'Missing required rendered evidence or assertion.');
90
117
  } else if (entry.result === 'fail') {
118
+ if (isGeometryCheck(id) && !notChecked.has(id)) {
119
+ const norm = normalizeArtifact(entry.artifact);
120
+ if (!geometryArtifacts.has(norm)) geometryArtifacts.set(norm, id);
121
+ }
91
122
  skipped.delete(id);
92
123
  failures.set(id, { expected: entry.expected, observed: entry.observed, artifact: entry.artifact });
124
+ } else if (isGeometryCheck(id) && !notChecked.has(id)) {
125
+ const norm = normalizeArtifact(entry.artifact);
126
+ const existingOwner = geometryArtifacts.get(norm);
127
+ if (existingOwner) {
128
+ notChecked.set(id, `Duplicate artifact '${entry.artifact}' already used by '${existingOwner}'; each viewport/layout check must use a separate artifact.`);
129
+ } else {
130
+ geometryArtifacts.set(norm, id);
131
+ }
93
132
  }
94
133
  }
95
134