@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
@@ -6,14 +6,18 @@ Email clients mutate HTML. A browser screenshot of the source file is useful sta
6
6
 
7
7
  Prioritize actual audience analytics. Otherwise inspect at minimum:
8
8
 
9
- - Outlook desktop/Win32 where enterprise users matter (Word rendering engine constraints);
10
- - Gmail web and Gmail mobile clipping behavior;
11
- - Apple Mail/iOS Mail dark-mode treatment;
12
- - plain-text output;
9
+ - **Classic Outlook for Windows (Word HTML engine)** when enterprise Win32 clients remain in scope (`mso-*` conditionals, VML buttons, strict table widths);
10
+ - **New Outlook for Windows / Outlook on the Web (WebView2 / modern Chromium)** — renders modern CSS differently from Classic Outlook; verify both rather than assuming one proves the other;
11
+ - **Gmail web & mobile** — strips unsupported `<style>` rules and **clips any email whose HTML payload exceeds `102 KB`** (`[Message clipped] View entire message`), hiding footers and unsubscribe links;
12
+ - **Apple Mail / iOS Mail** dark-mode treatment (`prefers-color-scheme: dark` + `color-scheme` meta tags);
13
+ - plain-text multipart output;
13
14
  - images blocked and images loaded;
14
- - narrow mobile width and desktop reading pane.
15
+ - narrow mobile width (`375–390 px`) and desktop reading pane.
15
16
 
16
- Commercial render matrices (Litmus, Email on Acid) can broaden coverage. Manual test accounts are weaker but honest evidence. Label provider/account/client/version/date because behavior changes.
17
+ ### Local SMTP inspection and cross-client render matrices
18
+
19
+ - **Local SMTP capture (`Mailpit` or `Mailhog`):** send real MIME messages locally during development to inspect rendered HTML preview, plain-text parity, headers, link targets, spam/HTML checks, and **exact HTML byte size (`< 102 KB`)** before touching external inboxes.
20
+ - **Commercial render matrices (Litmus, Email on Acid):** use for broad live client screenshots across OS/client combinations. Manual test accounts are weaker but honest evidence. Always label provider, client, version, and date because email rendering changes without notice.
17
21
 
18
22
  ## What to inspect
19
23
 
@@ -21,14 +25,14 @@ Commercial render matrices (Litmus, Email on Acid) can broaden coverage. Manual
21
25
  - alt text meaningful when images are blocked;
22
26
  - background images absent or gracefully degraded;
23
27
  - dark-mode inversion does not destroy logos, icons, or contrast;
24
- - CTA bulletproof enough in target clients;
28
+ - CTA bulletproof enough in both Classic Outlook (Word) and New Outlook (WebView2) / Gmail / Apple Mail;
25
29
  - table layout does not collapse or horizontally scroll essential content;
26
30
  - plaintext version preserves links and meaning;
27
- - clipping threshold: avoid oversized MIME/HTML weight; measure rather than guessing.
31
+ - **Gmail `102 KB` clipping gate:** measure compiled HTML byte size (e.g., `wc -c email.html`) and keep safely under `102 KB` (target `< 90 KB` to leave headroom for ESP tracking/rewriting).
28
32
 
29
33
  ## Rules
30
34
 
31
- - Never claim cross-client compatibility from one browser render.
35
+ - Never claim cross-client compatibility from one browser render or Mailpit preview alone (label browser/Mailpit preview honestly and mark untested clients `not-checked`).
32
36
  - Never depend on external CSS, scripting, video, or forms in email clients.
33
37
  - Redact recipient data before storing screenshots.
34
38
  - Compare content with the plaintext version for semantic parity.
@@ -3,9 +3,14 @@
3
3
  ## iOS Simulator
4
4
 
5
5
  ```bash
6
- xcrun simctl list devices
7
- xcrun simctl boot "iPhone 15"
8
- xcrun simctl io booted screenshot capture.png
6
+ xcrun simctl list devices available
7
+ xcrun simctl boot "<Current iPhone Simulator>"
8
+ xcrun simctl ui booted appearance dark
9
+ xcrun simctl ui booted content_size accessibility-extra-extra-large
10
+ xcrun simctl io booted screenshot capture-dark-axxl.png
11
+ # Restore defaults afterward
12
+ xcrun simctl ui booted appearance light
13
+ xcrun simctl ui booted content_size large
9
14
  ```
10
15
 
11
16
  Capture the smallest and largest supported device classes when layout behavior differs. Exercise Dynamic Type sizes, dark mode, landscape/split multitasking where supported, safe-area edges, keyboard presentation, and VoiceOver focus order. Simulator evidence is `rendered` but not physical-device performance/touch evidence.
@@ -14,12 +19,22 @@ Capture the smallest and largest supported device classes when layout behavior d
14
19
 
15
20
  ```bash
16
21
  adb devices
17
- adb shell settings put system font_scale 1.3 # restore afterward
18
- adb exec-out screencap -p > capture.png
22
+ adb shell cmd uimode night yes
23
+ adb shell settings put system font_scale 1.3
24
+ adb exec-out screencap -p > capture-dark-large.png
25
+ # Restore defaults afterward
26
+ adb shell cmd uimode night no
27
+ adb shell settings put system font_scale 1.0
19
28
  ```
20
29
 
21
30
  Use emulator device definitions matching target API/density. Capture gesture-navigation edge conflicts, display cutouts, keyboard, dark/high-contrast text, font scaling, orientation/foldable resize, and TalkBack focus order. Restore changed settings. Physical-device evidence is stronger for touch, performance, haptics, and camera/sensor behavior.
22
31
 
32
+ ## Automated mobile UI & golden tests
33
+
34
+ - **Maestro (`maestro test flow.yaml`):** cross-platform declarative flows for iOS and Android driving real user tasks, assertions, and `takeScreenshot` captures.
35
+ - **Detox:** gray-box E2E test runner for React Native synchronizing with animations/network and capturing device screenshots on key steps.
36
+ - **Flutter golden tests:** `expectLater(find.byType(Screen), matchesGoldenFile('goldens/screen.png'))` via `flutter test` (`--update-goldens` only on intentional, reviewed UI changes); note golden tests run in Flutter's headless widget rasterizer, so pair with real simulator/device verification for fonts, platform views, and safe areas.
37
+
23
38
  ## Responsive web emulation
24
39
 
25
40
  Browser emulation is useful for viewport geometry, DPR, touch hit layouts, and media queries. It is not proof of mobile browser chrome behavior, thermal/CPU performance, haptics, safe-area hardware, or platform accessibility. Label it browser emulation.
@@ -11,11 +11,15 @@ tmux kill-session -t qa
11
11
 
12
12
  `-e` preserves escape sequences; `-J` joins wrapped lines. Resize the pane and recapture to verify grid adaptation. Test keyboard input with `tmux send-keys`; do not infer keyboard behavior from a static capture alone.
13
13
 
14
- ## Recording
14
+ ## Recording and framework snapshots
15
15
 
16
16
  - `asciinema rec session.cast` records timing/input for review and sharing.
17
17
  - VHS uses a `.tape` script to produce deterministic terminal GIF/video when installed.
18
- - Framework snapshots such as Textual `pytest-textual-snapshot` and Ratatui `TestBackend` are deterministic layout evidence, not proof of runtime color support.
18
+ - Framework snapshot & golden runners provide deterministic layout/interaction evidence (still pair with a live PTY test for real terminal color/resize behavior):
19
+ - **Python (Textual):** `pytest-textual-snapshot` (SVG render snapshots across sizes/themes);
20
+ - **Rust (Ratatui):** `TestBackend` + `insta` buffer snapshots;
21
+ - **Go (Bubble Tea):** `teatest` (`github.com/charmbracelet/x/exp/teatest`) driving `Send()` / `Type()` input and asserting `RequireEqualOutput` golden captures;
22
+ - **Node/TypeScript (Ink):** `ink-testing-library` (`render()`, `lastFrame()`, `stdin.write()`) verifying rendered frames and keyboard navigation states.
19
23
 
20
24
  ## Terminal constraints to capture
21
25
 
@@ -0,0 +1,63 @@
1
+ # Motion capture and verification
2
+
3
+ A screenshot is one frame, not proof that motion works. For a motion task, capture visual milestones, active animations, and the transition between states under both default and reduced-motion modes.
4
+
5
+ ## Capture plan
6
+
7
+ - Record target route, build/revision, viewport, DPR, browser, input modality, state, and reduced-motion setting.
8
+ - Capture named timeline milestones: initial, mid-transition, settled/completed state, interrupted/closed state, and reduced-motion fallback.
9
+ - Record a screen video or interaction trace when timing, scrub, hover, drag, or route transitions matter.
10
+ - Test fast/reverse scroll, scrollbar drag, anchor navigation, resizing, font/image load, tab hide/show, route unmount, and reduced motion.
11
+ - Repeat with keyboard and touch; do not report pointer-only evidence as full interaction coverage.
12
+ - Check zero hidden copy, lost focus, layout shift, input blocking, or orphaned looping animations after navigation.
13
+
14
+ ## Concrete Playwright / Chromium capture commands
15
+
16
+ ```js
17
+ // Record video + Playwright trace + inspect Web Animations + verify reduced motion
18
+ const context = await browser.newContext({
19
+ viewport: { width: 1280, height: 720 },
20
+ recordVideo: { dir: 'visual-qa/videos', size: { width: 1280, height: 720 } },
21
+ });
22
+ await context.tracing.start({ screenshots: true, snapshots: true, sources: false });
23
+ const page = await context.newPage();
24
+ await page.goto(url, { waitUntil: 'networkidle' });
25
+
26
+ // Inspect active animations (catch stuck loops or non-compositor transitions)
27
+ const running = await page.evaluate(() =>
28
+ document.getAnimations().map((a) => ({
29
+ name: a.animationName || a.transitionProperty || a.id,
30
+ playState: a.playState,
31
+ duration: a.effect?.getTiming().duration,
32
+ }))
33
+ );
34
+
35
+ // Verify reduced-motion path explicitly
36
+ await page.emulateMedia({ reducedMotion: 'reduce' });
37
+ await page.screenshot({ path: 'visual-qa/reduced-motion.png' });
38
+
39
+ await context.tracing.stop({ path: 'visual-qa/motion-trace.zip' });
40
+ await context.close(); // flushes recorded video file
41
+ ```
42
+
43
+ For Chromium DevTools main-thread/compositor frame traces, wrap the interaction with `browser.startTracing(page, { path: 'visual-qa/perf-trace.json', screenshots: true })` and `await browser.stopTracing()`.
44
+
45
+ ### Extract transition frames with FFmpeg
46
+
47
+ Convert recorded video into numbered PNG frames to inspect easing continuity, mid-flight clipping, and focus-ring stability:
48
+
49
+ ```bash
50
+ mkdir -p visual-qa/frames
51
+ ffmpeg -i visual-qa/videos/transition.webm -vf "fps=12" visual-qa/frames/frame-%03d.png
52
+ ```
53
+
54
+ ## Determinism
55
+
56
+ - Freeze random seeds and virtual clocks when possible.
57
+ - Use stable content/fixtures and wait for `document.fonts.ready` and media decode before capturing.
58
+ - Keep capture scale and viewport identical for before/after comparisons.
59
+ - Store screenshots, videos, and traces alongside an evidence manifest, redact sensitive content, and name the exact tested state.
60
+
61
+ ## Evidence label
62
+
63
+ Mark actual screen recording, extracted frames, or browser trace output `rendered`; source inspection `static`; visual taste comments `model-judgment`; inaccessible devices `not-checked`.
@@ -2,42 +2,55 @@
2
2
 
3
3
  Budgets are user-experience constraints, not score chasing. Set them during planning and measure in the real runtime whenever possible.
4
4
 
5
- ## Core Web Vitals
5
+ ## Core Web Vitals & 3-run median Lighthouse
6
6
 
7
7
  | Metric | Good threshold | What it represents |
8
8
  |---|---:|---|
9
9
  | LCP | ≤ 2.5 s at p75 | largest contentful paint / perceived loading |
10
10
  | INP | ≤ 200 ms at p75 | interaction responsiveness |
11
11
  | CLS | ≤ 0.1 at p75 | visual stability |
12
+ | **Lighthouse (3-run median)** | **Perf ≥ 90, A11y ≥ 95, BP ≥ 95, SEO ≥ 95** | **3-run median under 4G throttling on both mobile and desktop for every primary template** (with real tags active) |
12
13
 
13
- Use field data when available. Lighthouse/WebPageTest/local tracing are lab evidence and must be labeled as such. Do not optimize hidden test widgets at the expense of the real page.
14
+ Use field data when available. Lighthouse/WebPageTest/local tracing are lab `rendered` evidence (never `static`—**Rule #0.3**). Always capture a **Network waterfall on the heaviest page** alongside the 3-run Lighthouse medians and cross-browser/device verification (`Chrome`, `Firefox`, `Edge`, `Safari macOS`, real `Safari iOS`, `Chrome Android`).
14
15
 
15
16
  ## Interaction and frame budgets
16
17
 
17
18
  | Surface | Budget |
18
19
  |---|---|
19
- | pointer/keyboard acknowledgment | visible feedback within 100 ms; preferably immediate |
20
+ | pointer/keyboard acknowledgment | visible feedback within `<= 100 ms`; `> 1 s` progress indicator; `> 10 s` cancellable action |
20
21
  | ordinary 60 Hz frame | 16.7 ms total frame budget; leave main-thread headroom |
21
22
  | high-refresh/game frame | 11.1 ms at 90 Hz, 8.3 ms at 120 Hz; engine/platform dependent |
22
- | scrolling/dragging | no long task blocking input; virtualization for large lists |
23
+ | scrolling/dragging (`LoAF` + flash safety) | zero blocking **Long Animation Frames (`LoAF`)** on scroll/drag; virtualization for large lists; `<= 3 Hz` luminance flash cap (`WCAG 2.3.1`) |
23
24
  | startup | meaningful skeleton/first useful surface before decorative assets |
24
25
 
25
- ## Indicative web asset budgets
26
+ ## Initial web asset budgets by surface class
26
27
 
27
- Adjust by mode and document the choice.
28
+ Adjust by surface class and lock the target in `.pixelcraft/plan.md` + `.pixelcraft/acceptance.json`:
28
29
 
29
- | Mode | Initial compressed JS+CSS | Notes |
30
+ | Surface class | Initial compressed JS+CSS | Notes |
30
31
  |---|---:|---|
31
- | content/read | ≤ 150–250 KB | prioritize fonts/images and stable measure |
32
- | operate/dashboard | ≤ 250–450 KB | route-level splitting; avoid chart/map cost on unrelated routes |
33
- | persuade/experience | ≤ 350–700 KB | media-heavy work needs explicit loading/adaptive quality |
34
- | embedded/widget | ≤ 100–200 KB | host page pays additional cost |
32
+ | Content / editorial | ≤ 150–250 KB | prioritize fonts/images and stable measure |
33
+ | Dashboard / app | ≤ 250–450 KB | route-level splitting; avoid chart/map cost on unrelated routes |
34
+ | Promotional / rich experience | ≤ 350–700 KB | media-heavy work needs explicit loading/adaptive quality |
35
+ | Embedded widget | ≤ 100–200 KB | host page pays additional cost |
35
36
 
36
37
  Fonts: subset and limit families/weights; use `font-display` appropriate to content. Images: responsive sizes, modern formats when supported, explicit dimensions to prevent CLS. Video/3D: adaptive quality, poster/loading state, reduced-motion/data path.
37
38
 
38
39
  ## Measurement commands and signals
39
40
 
40
- - Browser: Performance panel, Lighthouse/WebPageTest, `performance.measure`, long-task/INP observers, coverage and bundle analyzer.
41
+ - Browser: Performance panel, **3-run median Lighthouse** (4G throttled mobile + desktop per primary template), **Network waterfall capture on the heaviest page**, `performance.measure`, **INP** 3-phase breakdown (input delay + processing + presentation delay), **Long Animation Frames (`long-animation-frame` / LoAF)** on scroll/drag for script-level jank attribution, coverage, and bundle analyzer.
42
+ - Responsiveness engineering: break up long main-thread work with `scheduler.yield()` (fallback `setTimeout(..., 0)`) so user input paints within `≤ 200 ms`; on multi-page sites, evaluate the **Speculation Rules API** (`prefetch`/`prerender` with `eagerness: "moderate"`) for near-instant navigation while respecting data-saver and auth/logout exclusions.
43
+
44
+ ```js
45
+ // Yield to the main thread during heavy client work so INP stays <= 200ms
46
+ async function yieldToMain() {
47
+ if ('scheduler' in globalThis && typeof scheduler.yield === 'function') {
48
+ await scheduler.yield();
49
+ } else {
50
+ await new Promise((r) => setTimeout(r, 0));
51
+ }
52
+ }
53
+ ```
41
54
  - Native/mobile: platform profiler, frame-time instrumentation, startup tracing, memory/energy impact.
42
55
  - Game: engine profiler, CPU/GPU frame breakdown, texture/font atlas cost, worst-scene capture—not menu-only measurement.
43
56
  - Terminal: startup latency, resize redraw cost, input echo latency; snapshot tests do not measure runtime performance.
@@ -0,0 +1,55 @@
1
+ # Canvas, WebGL, WebGPU and 3D verification
2
+
3
+ ## Runtime states
4
+
5
+ Verify:
6
+ - poster/placeholder before renderer initialization;
7
+ - ready state and the primary task;
8
+ - failed asset and offline/network failure;
9
+ - unsupported API or lost GPU context;
10
+ - document hidden/offscreen and restored;
11
+ - resize/orientation change and DPR change;
12
+ - reduced-motion or low-power mode;
13
+ - repeated open/close and memory cleanup (zero geometry/texture leak across remounts).
14
+
15
+ ## Profiling tools and concrete verification checks
16
+
17
+ | Check | Tool / API | What to verify |
18
+ |---|---|---|
19
+ | **WebGL draw-call & shader audit** | **Spector.js** (browser extension or `spectorjs` embed) | Capture a live frame; verify redundant state changes, draw-call count, framebuffer passes, and uncompressed textures |
20
+ | **Three.js / R3F resource leaks** | `renderer.info.render` (`calls`, `triangles`) and `renderer.info.memory` (`geometries`, `textures`) | Record baseline, navigate away and return 3×, confirm `geometries` and `textures` return to baseline (`dispose()` called) |
21
+ | **WebGL context loss recovery** | `WEBGL_lose_context` extension | Force loss + restore and confirm static fallback displays and scene recovers cleanly without unhandled errors |
22
+ | **WebGPU capability fallback** | `navigator.gpu` / `requestAdapter()` stub | Simulate missing `navigator.gpu` or `requestAdapter() => null`; confirm graceful fallback to WebGL2, 2D canvas, or static media |
23
+ | **FPS & GPU memory** | Chrome DevTools **Rendering → Frame Rendering Stats** (FPS meter), Performance GPU track, Chrome Task Manager **GPU Memory** column | Confirm steady frame pacing without sustained > 16.6 ms frames or unbounded GPU memory growth |
24
+
25
+ ```js
26
+ // Playwright / DevTools verification snippets for context loss & WebGPU fallback
27
+ // 1. Simulate WebGL context loss and recovery
28
+ await page.evaluate(() => {
29
+ const gl = document.querySelector('canvas')?.getContext('webgl2');
30
+ const ext = gl?.getExtension('WEBGL_lose_context');
31
+ ext?.loseContext();
32
+ setTimeout(() => ext?.restoreContext(), 500);
33
+ });
34
+
35
+ // 2. Simulate unsupported WebGPU before page load (verify fallback path)
36
+ await page.addInitScript(() => {
37
+ Object.defineProperty(navigator, 'gpu', { value: undefined, configurable: true });
38
+ });
39
+ ```
40
+
41
+ ## Performance record
42
+
43
+ Record browser/device/GPU where visible (`chrome://gpu` or `WEBGL_debug_renderer_info` where exposed), viewport, DPR, refresh rate, scene state, cold/warm cache, frame-time/FPS sample, long tasks, transfer/parse cost, asset sizes, `renderer.info` draw calls/texture counts, and measurement method. Distinguish actual hardware from software SwiftShader/emulation.
44
+
45
+ ## Visual evidence
46
+
47
+ A rendered screenshot supports composition, not frame stability, interaction, or GPU cost. Use a profiler/performance trace and actual interaction where available. If tooling cannot expose GPU/memory information, report the limitation (`not-checked`); do not estimate a passing number.
48
+
49
+ ## Quality gates
50
+
51
+ - Essential text/actions remain semantic DOM.
52
+ - Canvas has a fallback and accessible summary/control path.
53
+ - Render loop pauses when hidden/offscreen (`document.hidden` / `IntersectionObserver`) where appropriate.
54
+ - GPU buffers, geometries, textures, and event listeners are released on unmount/route change.
55
+ - No high-frequency flashing (`≤ 3 flashes/s`) or unpausable motion (`> 5 s`).