@thanhnguyxn/pixelcraft 0.0.0-stage → 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 (455) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +20 -0
  4. package/.claude-plugin/plugin.json +22 -0
  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/LICENSE +21 -0
  13. package/README.md +264 -2
  14. package/SECURITY.md +28 -0
  15. package/assets/README.md +28 -0
  16. package/assets/pixelcraft-logo-128.png +0 -0
  17. package/assets/pixelcraft-logo-256.png +0 -0
  18. package/assets/pixelcraft-logo-512.png +0 -0
  19. package/bin/pixelcraft.mjs +852 -0
  20. package/docs/ARCHITECTURE.md +105 -0
  21. package/docs/DESIGN-RATIONALE.md +191 -0
  22. package/docs/INSTALL.md +221 -0
  23. package/evals/README.md +37 -0
  24. package/evals/fixtures/3d-web-engineering.json +69 -0
  25. package/evals/fixtures/README.md +36 -0
  26. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  27. package/evals/fixtures/ai-ui-libraries.json +53 -0
  28. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  29. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  30. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  31. package/evals/fixtures/build-and-architecture.json +53 -0
  32. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  33. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  34. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  35. package/evals/fixtures/component-systems.json +53 -0
  36. package/evals/fixtures/component-testing.json +53 -0
  37. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  38. package/evals/fixtures/creative-code-rendering.json +69 -0
  39. package/evals/fixtures/creative-reference-evidence.json +67 -0
  40. package/evals/fixtures/data-app-python-marimo.json +49 -0
  41. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  42. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  43. package/evals/fixtures/desktop-native-workspace.json +48 -0
  44. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  45. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  46. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  47. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  48. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  49. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  50. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  51. package/evals/fixtures/enterprise-data-ui.json +53 -0
  52. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  53. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  54. package/evals/fixtures/file-upload-media-ui.json +53 -0
  55. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  56. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  57. package/evals/fixtures/forms-validation.json +53 -0
  58. package/evals/fixtures/game-go-ebitengine.json +49 -0
  59. package/evals/fixtures/game-godot-gdscript.json +49 -0
  60. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  61. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  62. package/evals/fixtures/i18n-engineering.json +53 -0
  63. package/evals/fixtures/local-first-sync.json +53 -0
  64. package/evals/fixtures/lynxjs.json +53 -0
  65. package/evals/fixtures/maizzle-email.json +53 -0
  66. package/evals/fixtures/maps-geospatial.json +53 -0
  67. package/evals/fixtures/media-og-and-video-export.json +43 -0
  68. package/evals/fixtures/media-players.json +53 -0
  69. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  70. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  71. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  72. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  73. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  74. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  75. package/evals/fixtures/motion-engineering.json +69 -0
  76. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  77. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  78. package/evals/fixtures/plan-discovery-interview.json +31 -0
  79. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  80. package/evals/fixtures/reactive-data-apps.json +53 -0
  81. package/evals/fixtures/review-evidence-audit.json +43 -0
  82. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  83. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  84. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  85. package/evals/fixtures/state-architecture.json +53 -0
  86. package/evals/fixtures/styling-ecosystem.json +53 -0
  87. package/evals/fixtures/token-tooling.json +53 -0
  88. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  89. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  90. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  91. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  92. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  93. package/evals/fixtures/web-3d-engines.json +53 -0
  94. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  95. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  96. package/evals/fixtures/workflow-checkpoints.json +30 -0
  97. package/evals/pixelcraft-accessibility.md +74 -0
  98. package/evals/pixelcraft-brandkit.md +58 -0
  99. package/evals/pixelcraft-chat-ui.md +55 -0
  100. package/evals/pixelcraft-constrained.md +55 -0
  101. package/evals/pixelcraft-craft.md +76 -0
  102. package/evals/pixelcraft-data-apps.md +55 -0
  103. package/evals/pixelcraft-dataviz.md +59 -0
  104. package/evals/pixelcraft-desktop.md +55 -0
  105. package/evals/pixelcraft-direction.md +77 -0
  106. package/evals/pixelcraft-document.md +55 -0
  107. package/evals/pixelcraft-email.md +55 -0
  108. package/evals/pixelcraft-extensions.md +55 -0
  109. package/evals/pixelcraft-game-ui.md +59 -0
  110. package/evals/pixelcraft-handoff.md +57 -0
  111. package/evals/pixelcraft-media.md +55 -0
  112. package/evals/pixelcraft-mobile.md +59 -0
  113. package/evals/pixelcraft-patterns.md +73 -0
  114. package/evals/pixelcraft-plan.md +127 -0
  115. package/evals/pixelcraft-review.md +63 -0
  116. package/evals/pixelcraft-spatial.md +55 -0
  117. package/evals/pixelcraft-tokens.md +57 -0
  118. package/evals/pixelcraft-tui.md +55 -0
  119. package/evals/pixelcraft-ux.md +59 -0
  120. package/evals/pixelcraft-visual-qa.md +86 -0
  121. package/evals/pixelcraft-web.md +89 -0
  122. package/evals/pixelcraft.md +70 -0
  123. package/gemini-extension.json +6 -0
  124. package/install.ps1 +341 -0
  125. package/install.sh +512 -0
  126. package/package.json +91 -4
  127. package/plugin.json +29 -0
  128. package/scripts/build-adapters.mjs +288 -0
  129. package/scripts/build-release-archives.mjs +61 -0
  130. package/scripts/build-skill-zips.mjs +94 -0
  131. package/scripts/run-evals.mjs +397 -0
  132. package/scripts/sync-docs.mjs +381 -0
  133. package/scripts/test-build-adapters.mjs +61 -0
  134. package/scripts/test-cross-platform-qa.mjs +359 -0
  135. package/scripts/test-distribution.mjs +203 -0
  136. package/scripts/test-export-tokens.mjs +361 -0
  137. package/scripts/test-finish-gate.mjs +271 -0
  138. package/scripts/test-installers.mjs +216 -0
  139. package/scripts/test-release-archives.mjs +42 -0
  140. package/scripts/test-shoot.mjs +87 -0
  141. package/scripts/test-slop-scan.mjs +416 -0
  142. package/scripts/test-style-inventory.mjs +234 -0
  143. package/scripts/test-sync-docs.mjs +140 -0
  144. package/scripts/test-validate-skills.mjs +195 -0
  145. package/scripts/validate-skills.mjs +658 -0
  146. package/skills/pixelcraft/SKILL.md +155 -0
  147. package/skills/pixelcraft/references/design-brief.md +75 -0
  148. package/skills/pixelcraft/references/floor.md +90 -0
  149. package/skills/pixelcraft/references/report-template.md +49 -0
  150. package/skills/pixelcraft/references/stack-detection.md +226 -0
  151. package/skills/pixelcraft/references/surface-acceptance.md +52 -0
  152. package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
  153. package/skills/pixelcraft-accessibility/SKILL.md +54 -0
  154. package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
  155. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  156. package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
  157. package/skills/pixelcraft-accessibility/references/verification.md +64 -0
  158. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
  159. package/skills/pixelcraft-brandkit/SKILL.md +127 -0
  160. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
  161. package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -0
  162. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  163. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  164. package/skills/pixelcraft-brandkit/references/logo-methods.md +97 -0
  165. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  166. package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
  167. package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
  168. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  169. package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
  170. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  171. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  172. package/skills/pixelcraft-chat-ui/references/conversation-design.md +84 -0
  173. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
  174. package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
  175. package/skills/pixelcraft-constrained/SKILL.md +52 -0
  176. package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
  177. package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
  178. package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
  179. package/skills/pixelcraft-craft/SKILL.md +58 -0
  180. package/skills/pixelcraft-craft/references/color.md +125 -0
  181. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  182. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  183. package/skills/pixelcraft-craft/references/layout.md +73 -0
  184. package/skills/pixelcraft-craft/references/motion.md +163 -0
  185. package/skills/pixelcraft-craft/references/typography.md +110 -0
  186. package/skills/pixelcraft-data-apps/SKILL.md +86 -0
  187. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  188. package/skills/pixelcraft-data-apps/references/dash.md +109 -0
  189. package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
  190. package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
  191. package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
  192. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
  193. package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
  194. package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
  195. package/skills/pixelcraft-data-apps/references/panel.md +99 -0
  196. package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
  197. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  198. package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
  199. package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
  200. package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
  201. package/skills/pixelcraft-dataviz/SKILL.md +60 -0
  202. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  203. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  204. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +107 -0
  205. package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
  206. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  207. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
  208. package/skills/pixelcraft-desktop/SKILL.md +93 -0
  209. package/skills/pixelcraft-desktop/references/appkit.md +92 -0
  210. package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
  211. package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
  212. package/skills/pixelcraft-desktop/references/electron.md +96 -0
  213. package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
  214. package/skills/pixelcraft-desktop/references/gtk.md +97 -0
  215. package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
  216. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
  217. package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
  218. package/skills/pixelcraft-desktop/references/tauri.md +110 -0
  219. package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
  220. package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
  221. package/skills/pixelcraft-desktop/references/working-context.md +84 -0
  222. package/skills/pixelcraft-direction/SKILL.md +120 -0
  223. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  224. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  225. package/skills/pixelcraft-direction/references/direction-card.md +64 -0
  226. package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
  227. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  228. package/skills/pixelcraft-direction/references/movements.md +71 -0
  229. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  230. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  231. package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
  232. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  233. package/skills/pixelcraft-document/SKILL.md +58 -0
  234. package/skills/pixelcraft-document/references/archetypes.md +106 -0
  235. package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
  236. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  237. package/skills/pixelcraft-document/references/print-css.md +187 -0
  238. package/skills/pixelcraft-document/references/slides.md +198 -0
  239. package/skills/pixelcraft-email/SKILL.md +80 -0
  240. package/skills/pixelcraft-email/references/client-quirks.md +113 -0
  241. package/skills/pixelcraft-email/references/html-tables.md +114 -0
  242. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  243. package/skills/pixelcraft-email/references/mjml.md +54 -0
  244. package/skills/pixelcraft-email/references/react-email.md +95 -0
  245. package/skills/pixelcraft-extensions/SKILL.md +56 -0
  246. package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
  247. package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
  248. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  249. package/skills/pixelcraft-extensions/references/raycast.md +98 -0
  250. package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
  251. package/skills/pixelcraft-game-ui/SKILL.md +80 -0
  252. package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
  253. package/skills/pixelcraft-game-ui/references/godot.md +130 -0
  254. package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
  255. package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
  256. package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
  257. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  258. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
  259. package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
  260. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  261. package/skills/pixelcraft-handoff/SKILL.md +50 -0
  262. package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
  263. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  264. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  265. package/skills/pixelcraft-media/SKILL.md +49 -0
  266. package/skills/pixelcraft-media/references/banners-video.md +130 -0
  267. package/skills/pixelcraft-media/references/og-generation.md +154 -0
  268. package/skills/pixelcraft-media/references/social-cards.md +71 -0
  269. package/skills/pixelcraft-mobile/SKILL.md +86 -0
  270. package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
  271. package/skills/pixelcraft-mobile/references/flet.md +80 -0
  272. package/skills/pixelcraft-mobile/references/flutter.md +113 -0
  273. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  274. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
  275. package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
  276. package/skills/pixelcraft-mobile/references/kivy.md +82 -0
  277. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
  278. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  279. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  280. package/skills/pixelcraft-mobile/references/react-native-expo.md +106 -0
  281. package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
  282. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  283. package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
  284. package/skills/pixelcraft-mobile/references/uikit.md +92 -0
  285. package/skills/pixelcraft-patterns/SKILL.md +75 -0
  286. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  287. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  288. package/skills/pixelcraft-patterns/references/auth-onboarding.md +44 -0
  289. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  290. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  291. package/skills/pixelcraft-patterns/references/commerce.md +47 -0
  292. package/skills/pixelcraft-patterns/references/communication.md +45 -0
  293. package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
  294. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  295. package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
  296. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  297. package/skills/pixelcraft-patterns/references/marketing.md +44 -0
  298. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  299. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  300. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  301. package/skills/pixelcraft-patterns/references/pattern-selection.md +80 -0
  302. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  303. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  304. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  305. package/skills/pixelcraft-patterns/references/settings.md +51 -0
  306. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  307. package/skills/pixelcraft-plan/SKILL.md +103 -0
  308. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  309. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  310. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  311. package/skills/pixelcraft-plan/references/plan-template.md +134 -0
  312. package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
  313. package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
  314. package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
  315. package/skills/pixelcraft-review/SKILL.md +86 -0
  316. package/skills/pixelcraft-review/references/audit-report.md +69 -0
  317. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  318. package/skills/pixelcraft-review/references/heuristics.md +63 -0
  319. package/skills/pixelcraft-review/references/personas.md +53 -0
  320. package/skills/pixelcraft-review/references/polish.md +78 -0
  321. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  322. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  323. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  324. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  325. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  326. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  327. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  328. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  329. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  330. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  331. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  332. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  333. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  334. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  335. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  336. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  337. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  338. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  339. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  340. package/skills/pixelcraft-review/scripts/slop-scan.mjs +1233 -0
  341. package/skills/pixelcraft-spatial/SKILL.md +51 -0
  342. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
  343. package/skills/pixelcraft-spatial/references/platforms.md +147 -0
  344. package/skills/pixelcraft-tokens/SKILL.md +60 -0
  345. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  346. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  347. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  348. package/skills/pixelcraft-tokens/references/format.md +84 -0
  349. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  350. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  351. package/skills/pixelcraft-tokens/references/theme-presets.md +122 -0
  352. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  353. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
  354. package/skills/pixelcraft-tui/SKILL.md +76 -0
  355. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
  356. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  357. package/skills/pixelcraft-tui/references/ink.md +109 -0
  358. package/skills/pixelcraft-tui/references/ratatui.md +102 -0
  359. package/skills/pixelcraft-tui/references/rich.md +82 -0
  360. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  361. package/skills/pixelcraft-tui/references/textual.md +108 -0
  362. package/skills/pixelcraft-ux/SKILL.md +56 -0
  363. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  364. package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
  365. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  366. package/skills/pixelcraft-ux/references/forms.md +151 -0
  367. package/skills/pixelcraft-ux/references/i18n.md +221 -0
  368. package/skills/pixelcraft-ux/references/laws.md +39 -0
  369. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  370. package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
  371. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  372. package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
  373. package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
  374. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  375. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
  376. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  377. package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
  378. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
  379. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -0
  380. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  381. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  382. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  383. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  384. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
  385. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  386. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  387. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  388. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  389. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  390. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  391. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +174 -0
  392. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  393. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  394. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  395. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  396. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  397. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  398. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  399. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +668 -0
  400. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
  401. package/skills/pixelcraft-web/SKILL.md +132 -0
  402. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  403. package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
  404. package/skills/pixelcraft-web/references/angular.md +108 -0
  405. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  406. package/skills/pixelcraft-web/references/astro.md +113 -0
  407. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  408. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  409. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  410. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  411. package/skills/pixelcraft-web/references/clojurescript.md +88 -0
  412. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  413. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  414. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  415. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  416. package/skills/pixelcraft-web/references/elm.md +53 -0
  417. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  418. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  419. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  420. package/skills/pixelcraft-web/references/fsharp-fable.md +54 -0
  421. package/skills/pixelcraft-web/references/gsap.md +102 -0
  422. package/skills/pixelcraft-web/references/html-css.md +220 -0
  423. package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
  424. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  425. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  426. package/skills/pixelcraft-web/references/java-web.md +61 -0
  427. package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
  428. package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
  429. package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
  430. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  431. package/skills/pixelcraft-web/references/media-players.md +104 -0
  432. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  433. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  434. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  435. package/skills/pixelcraft-web/references/pwa.md +230 -0
  436. package/skills/pixelcraft-web/references/qwik.md +94 -0
  437. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  438. package/skills/pixelcraft-web/references/react-next.md +168 -0
  439. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  440. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  441. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  442. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  443. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  444. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  445. package/skills/pixelcraft-web/references/server-rendered.md +114 -0
  446. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  447. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  448. package/skills/pixelcraft-web/references/solid.md +111 -0
  449. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  450. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  451. package/skills/pixelcraft-web/references/svelte.md +111 -0
  452. package/skills/pixelcraft-web/references/tailwind.md +99 -0
  453. package/skills/pixelcraft-web/references/video-media.md +69 -0
  454. package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
  455. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -0,0 +1,221 @@
1
+ # International UX
2
+
3
+ Evidence: Unicode locale data, W3C internationalization guidance, logical layout behavior, and cross-cultural variation. Treat every writing system as a first-class constraint. Do not center one language or transliterated ASCII as the default human reality.
4
+
5
+ ## Script and text-engine requirements
6
+
7
+ | Script family | Required behavior |
8
+ |---|---|
9
+ | Latin with diacritics | Preserve base letters, combining marks, normalization, and mark positioning. Vietnamese and Polish are examples only—not special cases. Test stacked tone/underdotted marks, uppercase forms, casing, search normalization, and font clipping. Do not strip accents for validation or storage. |
10
+ | Cyrillic/Greek | Preserve native alphabets without treating them as Latin lookalikes. Test casing/locales, sorting, glyph coverage, italic availability, and stress marks. Greek uses context-sensitive final sigma; let the text engine handle it rather than manipulating letters manually. |
11
+ | Arabic/Hebrew/Persian | Support right-to-left layout, contextual shaping, ligatures, joining, diacritics where used, native/European digits as locale-appropriate, and mixed-direction runs. Never split or reverse strings by code point. Persian digits/letterforms and Arabic-script language variation are not interchangeable automatically. |
12
+ | CJK | Respect locale-specific line breaking/prohibition rules, punctuation compression, ruby/furigana needs where relevant, and no-space scan behavior. Do not synthesize italics by skewing CJK glyphs; use weight/color/semantic emphasis instead. Vertical writing can be culturally appropriate but changes line progression, punctuation, numerals, ruby, scrolling, and text metrics—test it deliberately rather than rotating horizontal text. |
13
+ | Thai/Lao/Khmer | These scripts do not use spaces as ordinary word separators. Use dictionary/locale-aware segmentation for search, selection, wrapping, and measurement. Browser/runtime behavior differs by font/platform. |
14
+ | Indic scripts | Correct rendering depends on complex shaping: reordering, conjuncts, matras, ligatures, clusters, and script-specific font tables. Never truncate/split inside a grapheme/orthographic cluster and never shape manually in application code. |
15
+ | Emoji/ZWJ sequences | Emoji can be multi-code-point graphemes using ZWJ, skin-tone modifiers, flags/regional indicators, variation selectors, and keycap sequences. JavaScript `.length` counts UTF-16 code units and is not a user-perceived character count. |
16
+
17
+ ## Bidi isolation and logical layout
18
+
19
+ Use `dir="auto"` or explicit direction on user-generated mixed-direction text and isolate inline fragments:
20
+
21
+ ```html
22
+ <span dir="auto">اسم المستخدم</span>
23
+ <bdi>@user</bdi>
24
+ ```
25
+
26
+ CSS form: `unicode-bidi: isolate` / `plaintext` where appropriate. Isolate filenames, handles, URLs, error excerpts, brand names, and user-generated strings inserted into opposite-direction prose. Keep punctuation attached to the correct semantic fragment.
27
+
28
+ Use logical properties (`margin-inline-start`, `padding-inline`, `inset-block`, `border-start-end-radius`) rather than physical left/right when meaning follows reading direction. Mirror navigation/progression/layout only when direction is semantic. Do **not** blindly mirror numerals, charts' chronological direction, clocks, playback/media symbols, mathematical notation, playback progress direction, asymmetric product screenshots, or culturally directional iconography.
29
+
30
+ ## Segmentation and grapheme counting
31
+
32
+ Use `Intl.Segmenter` where available:
33
+
34
+ ```js
35
+ const segmenter = new Intl.Segmenter('th', { granularity: 'word' });
36
+ const words = [...segmenter.segment('ภาษาไทย')].map((part) => part.segment);
37
+
38
+ const graphemes = new Intl.Segmenter('en', { granularity: 'grapheme' });
39
+ const count = [...graphemes.segment('👨‍👩‍👧‍👦')].length; // 1
40
+ ```
41
+
42
+ Rules:
43
+
44
+ - use `granularity: 'word'` for Thai/Lao/Khmer word segmentation where supported; provide fallback behavior because segmentation quality/availability varies;
45
+ - use `granularity: 'grapheme'` for maxlength counters, caret movement, truncation, avatars/initials, and deletion behavior;
46
+ - never count UTF-16 units or bytes as user-visible characters;
47
+ - test surrogate pairs, combining marks, regional-indicator flags, family/profession emoji, variation selectors, and skin tones;
48
+ - search indexing/tokenization may need a different locale pipeline from display truncation.
49
+
50
+ ## Font fallback stacks
51
+
52
+ Fallback must be explicit per script and font role. Examples are starting points, not universal mandates:
53
+
54
+ ```css
55
+ font-family:
56
+ "IBM Plex Sans", "Noto Sans", system-ui, sans-serif; /* Latin/Cyrillic/Greek example; pick voice per direction */
57
+
58
+ font-family:
59
+ "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", sans-serif; /* Arabic/Persian */
60
+
61
+ font-family:
62
+ "Noto Sans Hebrew", "Arial Hebrew", sans-serif; /* Hebrew */
63
+
64
+ font-family:
65
+ "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei",
66
+ "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic",
67
+ "Noto Sans CJK KR", "Malgun Gothic", sans-serif; /* CJK examples */
68
+
69
+ font-family:
70
+ "Noto Sans Thai", "Leelawadee UI",
71
+ "Noto Sans Khmer", "Khmer UI",
72
+ "Noto Sans Lao", "Lao UI", sans-serif; /* mainland SE Asian examples */
73
+
74
+ font-family:
75
+ "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil",
76
+ "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Malayalam", sans-serif;
77
+ ```
78
+
79
+ Add emoji fallback such as platform emoji fonts where the product expects emoji rendering. Do not list fonts you do not test or ship/license. Metrics differ by script: line height, ascender/descender clipping, mark attachment, baseline alignment, underline/strike position, and weight synthesis must be inspected. Disable fake/oblique synthesis for CJK where possible (`font-synthesis` controls on web) and avoid synthetic bold when the font lacks proper weight.
80
+
81
+ ## Expansion, contraction, and layout budgets
82
+
83
+ Split text-expansion budgets by UI element class rather than applying one flat percentage everywhere:
84
+
85
+ | Element class | Budget | Why & examples |
86
+ |---|---|---|
87
+ | **Prose & multi-sentence paragraphs** | **`+30–40%`** | Sentence-level grammar evens out word length growth across German, French, Spanish, Portuguese, and Vietnamese |
88
+ | **Short UI labels (buttons, tabs, chips, badges, column headers)** | **`+50–100%`** (up to `+150%` on 3–5 char English words) | Compact English labels (`"Save"`, `"Edit"`, `"Views"`, `"New"`, `"Live"`) routinely double in German (`"Speichern"`, `"Aufrufe"`), Vietnamese (`"Lưu thay đổi"`, `"Lượt xem"`), Finnish, or Greek |
89
+ | **CJK & dense scripts** | `-10–30%` inline width, **`+15–25%` line-height / earlier wrap** | Fewer characters fit per line and complex Hanzi/Kanji/Hangul strokes require taller leading (`1.6–1.8`) without synthetic italics |
90
+
91
+ Design rules:
92
+
93
+ - prefer wrapping, intrinsic sizing, and responsive reflow (`flex-wrap`, auto-sizing columns) before truncation;
94
+ - never assign fixed pixel widths or single-line fixed heights to buttons, tabs, badges, or nav items;
95
+ - preserve minimum hit targets after translation and contraction;
96
+ - never use ellipsis in legal, safety, pricing, or destructive-confirmation text without an inspectable full-text path;
97
+ - measure using real target-locale strings plus pseudo-localization, not naive character-count multiplication.
98
+
99
+ ## Unicode NFC diacritic integrity & Vietnamese glyph-coverage audit
100
+
101
+ 1. **Normalize text to `Unicode NFC` at input, storage, comparison, and search boundaries:** macOS filesystems, clipboard pastes, and certain mobile/desktop keyboards emit decomposed `NFD` sequences (base letter + separate combining code points), causing misaligned marks, broken string equality, and off-by-one length checks. Normalize consistently (`str.normalize('NFC')` in JS, `precomposedStringWithCanonicalMapping` in Swift/Foundation, `Normalizer.normalize(s, Normalizer.Form.NFC)` in Kotlin/Java, `unicodedata.normalize('NFC', s)` in Python, ICU `unorm2` in C++/Rust).
102
+ 2. **Audit custom font subsets against full stacked-diacritic glyph tables:** before shipping any display or UI font for Latin-extended locales, test **Vietnamese horn, breve, circumflex, barred-d, and stacked tone combinations (`ư, ơ, ă, â, ê, ô, đ` + `ệ, ử, ẫ, ợ, ằ, ậ, ữ` in both lowercase and uppercase)** alongside Central/Eastern European (`ł, ń, ř, ș, ț`) and target non-Latin scripts:
103
+ - zero mid-word fallback to a mismatched system font ("ransom-note" rendering where `"Nguyễn"` or `"Hệ thống"` swaps weight/x-height on `ễ` or `ệ`);
104
+ - zero ascender/descender clipping on stacked circumflex + acute/grave/hook/tilde marks under tight display `line-height` or `overflow: hidden`.
105
+
106
+ ## Cross-platform IME composition guard
107
+
108
+ Pressing `Enter` during active Input Method Editor (`IME`) composition commits the candidate string (Vietnamese Telex/VNI, Japanese Kana→Kanji, Korean Hangul, Chinese Pinyin) and pressing `Escape` cancels the candidate popup—neither key may trigger form submit, search execution, chat send, inline-edit save, or modal close while composition is active:
109
+
110
+ | Platform | Active-composition check before handling `Enter` / `Escape` |
111
+ |---|---|
112
+ | **Web DOM** | On `keydown`, guard with `if (event.isComposing || event.keyCode === 229) return;` (never trigger submit on `keyup`, which fires *after* composition commits) |
113
+ | **iOS UIKit / SwiftUI** | Check `textField.markedTextRange != nil` (`UITextInput`) before treating Return/Enter as submit/send in `textFieldShouldReturn` or hardware-key commands |
114
+ | **Android Views / Jetpack Compose** | Check `BaseInputConnection.getComposingSpanStart(editable) != -1` in Views or `textFieldValue.composition != null` in Compose before `Key.Enter` triggers submit/send |
115
+ | **macOS AppKit / Qt / Desktop** | Check `NSTextInputClient.hasMarkedText()` on AppKit or `!event->preeditString().isEmpty()` (`QInputMethodEvent`) in Qt before committing inline edits or closing dialogs |
116
+
117
+ ## ICU plural, gender, and message structure (ICU MF1 & Unicode MessageFormat 2.0)
118
+
119
+ Use complete locale-aware messages; never concatenate grammar around variables. ICU MessageFormat 1.0 supports plural/select/selectordinal and nested formatting:
120
+
121
+ ```text
122
+ {gender, select,
123
+ female {She}
124
+ male {He}
125
+ other {They}
126
+ } updated {count, plural,
127
+ one {# file}
128
+ other {# files}
129
+ }
130
+ ```
131
+
132
+ For greenfield pipelines or toolchains supporting the standardized Unicode **MessageFormat 2.0 (MF2)** specification (part of Unicode CLDR / LDML and upcoming `Intl.MessageFormat`), prefer MF2 syntax when supported by your localization vendor/runtime—it replaces fragile nested braces with explicit `.input`, `.local`, `.match`, and pluggable `:number`/`:datetime` functions:
133
+
134
+ ```text
135
+ .input {$count :number}
136
+ .input {$gender :string}
137
+ .match $gender $count
138
+ female one {{She updated {$count} file}}
139
+ female * {{She updated {$count} files}}
140
+ male one {{He updated {$count} file}}
141
+ male * {{He updated {$count} files}}
142
+ * one {{They updated {$count} file}}
143
+ * * {{They updated {$count} files}}
144
+ ```
145
+
146
+ Correct behavior depends on locale plural categories: languages may use zero/one/two/few/many/other and different semantics. Gender is message/context dependent; do not infer it from names. Preserve placeholders, formatting types, escaping, and translator context. Do not reuse one key in multiple grammatical contexts merely because the English source matches.
147
+
148
+ ## Locale formatting with platform APIs
149
+
150
+ Use `Intl`/CLDR-backed APIs rather than hand formatting:
151
+
152
+ - `Intl.DateTimeFormat` for dates/times/calendars/time zones;
153
+ - `Intl.NumberFormat` for decimal/currency/percent/unit notation;
154
+ - `Intl.RelativeTimeFormat` for localized relative time;
155
+ - `Intl.ListFormat` for conjunction/disjunction lists;
156
+ - `Intl.DisplayNames` for language/region/script/currency names;
157
+ - `Intl.Collator` for sorting/search matching with numeric/case/accent sensitivity options.
158
+
159
+ Do not hard-code digit grouping, decimal separators, month/day order, 12/24-hour clocks, week start, currency symbol placement, negative signs, capitalization, or list punctuation. Persist exact timestamps/values separately from localized display strings.
160
+
161
+ ## Platform notes
162
+
163
+ | Platform | Notes |
164
+ |---|---|
165
+ | Web | `dir`, `lang`, logical CSS, `unicode-bidi`, `Intl`, font `unicode-range`, line breaking/hyphenation vary by browser/lang. Verify actual shaping in target browsers and test `input` behavior during IME composition. |
166
+ | iOS/macOS | use localized strings dictionaries/plural rules, `NSLocale`/formatters, correct semantic content/input direction; test Dynamic Type, line-height clipping, keyboard/IME composition, and localized collation. |
167
+ | Android | use resources/plurals/`strings.xml`, locale-aware formatters, `textDirection`, font fallback, and `Layout` measurement; test pseudo-locales, RTL layout direction, IME composition, and per-app language preferences. |
168
+ | Flutter | use ICU-backed localization/message package plus `Directionality`, locale-aware text measurement/rendering, correct font fallback, and integration tests for RTL/CJK/emoji. Do not rely on pixel count or `String.length`. |
169
+ | Qt/QML | use `qsTr`/translation catalogs, plural-aware overloads, locale-aware formatting, correct `LayoutMirroring`/input method behavior, and font fallback validation. Test desktop/mobile input-method editors. |
170
+ | Terminal/TUI | width calculation is ambiguous: Unicode width, combining marks, East Asian wide/fullwidth, emoji presentation, and terminal emulator support differ. Do not assume one code point equals one cell; test truecolor/NO_COLOR/mono fallback and avoid relying on complex shaping that terminals may not perform. |
171
+
172
+ ## Testing with pseudo-localization
173
+
174
+ Pseudo-localization expands text, adds visible boundaries/accents, and can simulate RTL or placeholder corruption. Use it to detect hard-coded strings, concatenation, clipping, missing locale fallback, encoding errors, and layout fragility. It is not a substitute for real translation or native-speaker review.
175
+
176
+ Minimum fixture matrix for international products:
177
+
178
+ 1. Latin text with combining/stacked diacritics and long compound words;
179
+ 2. Cyrillic and Greek native text;
180
+ 3. Arabic plus Hebrew/Persian mixed-direction examples;
181
+ 4. Chinese/Japanese/Korean text and IME input;
182
+ 5. Thai/Lao/Khmer segmentation examples;
183
+ 6. at least one relevant Indic script;
184
+ 7. emoji/ZWJ/flag/keycap sequences;
185
+ 8. plural categories from multiple language families;
186
+ 9. locale-formatted dates/numbers/currency/lists;
187
+ 10. pseudo-localized expansion plus real RTL layout.
188
+
189
+ Label unavailable review/rendering evidence `not-checked`; passing English-only screenshots is not international verification.
190
+
191
+ ## Message authoring rules
192
+
193
+ Write translatable messages as complete semantic units:
194
+
195
+ - never concatenate sentence fragments around variables because word order, case agreement, gender, number, and prepositions change by language;
196
+ - pass structured values into one ICU/localization message rather than stitching translated substrings in code;
197
+ - include translator context for ambiguous verbs/nouns, truncation, character limits, placeholders, markup, tone, and audience;
198
+ - do not reuse a key in a different grammatical context merely because the English text is identical;
199
+ - preserve placeholder names/types and document allowable formatting;
200
+ - keep markup out of translated strings where possible; when inline emphasis/links are unavoidable, use explicit placeholder boundaries rather than positional string splitting;
201
+ - do not assemble plurals with `if count == 1`; use locale plural categories including zero/two/few/many where relevant;
202
+ - do not infer gender/grammatical agreement from names, avatars, or binary user settings;
203
+ - keep brand/product names stable only when intentionally untranslated; transliteration is a locale decision, not automatic romanization;
204
+ - test empty, zero, one, two/few/many, large-number, negative, and unknown-value cases.
205
+
206
+ A message is not localization-ready if translators cannot see the whole sentence or cannot reorder all meaningful parts.
207
+
208
+ ## Pseudolocalization workflow
209
+
210
+ Use pseudolocalization early and repeatedly, not as a final screenshot trick:
211
+
212
+ 1. **Enable a controlled pseudo-locale** or deterministic transform in the development environment.
213
+ 2. **Accent visible Latin letters** to expose hard-coded/non-localized strings and encoding failure without making text unreadable to developers.
214
+ 3. **Add visible boundaries** such as brackets so truncation/clipping is obvious.
215
+ 4. **Expand representative strings** aggressively enough to expose fixed widths, missing wrapping, and overlap; do not treat one percentage as universal.
216
+ 5. **Exercise placeholders/plurals** with zero/one/other and long variable values rather than only static copy.
217
+ 6. **Run an RTL pseudo-direction pass** where supported to expose physical layout properties, missing isolation, bad mirroring, and punctuation placement.
218
+ 7. **Inspect input paths** including paste, IME composition, validation errors, autocomplete, and bidi isolation.
219
+ 8. **Record what pseudolocalization cannot validate:** real translation quality, correct cultural tone, shaping correctness in every font, native-speaker comprehension, and locale-specific legal wording.
220
+
221
+ Any untransformed visible string is a hard-coded-string candidate. Any clipped boundary marker is a layout defect. Do not hide failures by truncating all text or reducing minimum target sizes.
@@ -0,0 +1,39 @@
1
+ # UX laws as operational checks
2
+
3
+ Evidence: established UX laws, platform ergonomics specifications, WCAG 2.2 target/timing floors, and usability research. Use these checks to spot concrete friction before build and during audit—not as pseudo-mathematical dogma.
4
+
5
+ ## Quantitative target & motor ergonomics (Fitts's Law)
6
+
7
+ Match control size, spacing, and screen placement to input precision and frequency:
8
+
9
+ | Surface / Modality | Minimum target size | Spacing / separation | Edge & ergonomic placement |
10
+ |---|---|---|---|
11
+ | **iOS / visionOS touch** | `44 × 44 pt` (`60 pt` recommended gaze/pinch on visionOS) | `≥ 8 pt` between adjacent controls | Primary frequent actions in bottom thumb zone; destructive actions separated from confirm |
12
+ | **Android / Material touch** | `48 × 48 dp` (even if visible icon is `24 dp`, expand hit slop) | `≥ 8 dp` clearance between interactive targets | Bottom bars / floating actions within one-handed reach; avoid top-corner primary triggers on tall phones |
13
+ | **Web pointer + coarse touch** | `≥ 24 × 24 CSS px` WCAG 2.2 AA floor (`≥ 44 × 44 CSS px` on touch/responsive targets) | ≥ 24px spacing circle if target is smaller than 24px; `≥ 8px` gap between destructive & primary actions | Never trap small icon buttons flush against resize handles or scrollbars |
14
+ | **Desktop pointer (macOS/Windows/Linux)** | `≥ 28–32 px` toolbar/row height; full-row hit target for lists/menus | Zero dead gap between screen edge and edge-pinned menus/scrollbars | Exploit infinite-depth screen edges (menu bar, top-corner close/back, docked rails) by extending hit areas flush to window/screen edges |
15
+ | **Terminal / TUI keyboard** | Single-key triggers (`j`/`k`, `/`, `?`, `q`, `Esc`) for high-frequency actions | Separate destructive chords (`Shift+D`, `Ctrl+K` + confirm) from navigation keys | Keep key legend visible in footer/status bar; never collide with terminal/tmux prefixes (`Ctrl+C`, `Ctrl+B`, `Ctrl+A`) or Vim/Emacs muscle memory without disclosure |
16
+
17
+ ## Quantitative response-latency tiers (Doherty / Miller / Web Vitals)
18
+
19
+ | Latency tier | Threshold | Required UI behavior |
20
+ |---|---|---|
21
+ | **Direct manipulation / press** | `≤ 100 ms` | Immediate visual/haptic acknowledgment (`:active`, selection highlight, cursor echo) |
22
+ | **Interactive responsiveness (INP)** | `≤ 200 ms` | Browser interaction-to-next-paint budget; break heavy JS work so clicks/typing stay fluid |
23
+ | **Momentum threshold (Doherty)** | `≤ 400 ms` | Ideal loop for filter, search-as-you-type, tab switch, and optimistic mutation |
24
+ | **Uninterrupted flow** | `≤ 1 s` | Avoid flashing spinners/skeletons below ~200–300 ms; show subtle pending cues only when work crosses it |
25
+ | **Attention boundary** | `> 10 s` | Show determinate progress (or stage status), allow cancellation, and support background continuation |
26
+
27
+ ## Cognitive-load & decision checks (Hick, Jakob, Chunking)
28
+
29
+ | Principle | Quantitative / concrete check | Misuse to avoid |
30
+ |---|---|---|
31
+ | **Hick's Law** | Cap top-level primary navigation at ~5–7 distinct buckets; limit single-choice button bars to 1 primary + 1–2 secondary actions; group dense settings into scannable categories with search | Hiding frequent primary controls inside nested overflow menus just to make a toolbar look minimal |
32
+ | **Chunking / Miller** | Group related form fields into chunks of 3–5 inputs with visible section headings; format long strings (cards, IBANs, codes) in 3–4 character groups | Wrapping every unrelated field in nested bordered cards that multiply visual noise |
33
+ | **Jakob's Law** | Honor platform navigation/shortcut conventions (`Cmd+K` / `Ctrl+K`, swipe-back on iOS, system Back on Android, `Esc` closes overlays) | Copying mobile bottom sheets onto desktop CAD tools or web hamburger drawers onto native macOS apps |
34
+ | **Recognition over recall** | Show visible current filters, recent items, command palette hints, and inline units/formats instead of expecting users to memorize codes or hidden shortcuts | Dumping every rare advanced flag onto the default screen |
35
+ | **Smart defaults** | Preselect the safest, reversible, high-frequency option and display the active default plainly | Dark-pattern opt-ins, hidden consent, or silently destructive defaults |
36
+ | **Peak-end & recovery** | Design completion summaries, receipts, undo toasts, and error recovery with the same rigor as onboarding | Spending the entire craft budget on the hero/welcome screen while leaving errors generic |
37
+ | **Aesthetic-usability boundary** | Never accept visual polish as a substitute for a broken task, hidden label, or slow path | Rationalizing failed contrast or mystery navigation as “minimalist” |
38
+
39
+ Validate every hypothesis against real content, the state matrix, platform conventions, and evidence-labeled review.
@@ -0,0 +1,60 @@
1
+ # Locale rendering test matrix
2
+
3
+ Use this reference when internationalization is in scope. The goal is not to test every locale; it is to choose a small representative matrix that exposes different writing-system, directionality, segmentation, formatting, plural, input, and font-fallback risks.
4
+
5
+ ## Representative matrix
6
+
7
+ Select rows relevant to the product audience, but do not claim international readiness from English plus pseudo-localization alone.
8
+
9
+ | Risk family | Representative locales/scripts | Concrete stress cases |
10
+ |---|---|---|
11
+ | Latin diacritics and compaction/expansion | Vietnamese, Polish, Czech, German, Finnish, Turkish | stacked/combining marks; uppercase diacritics; long compounds; locale-sensitive casing; contraction/expansion of short labels |
12
+ | Cyrillic/Greek | Russian, Ukrainian, Bulgarian, Greek | native alphabet casing/sorting; italic/font coverage; stress marks; final sigma handled by text engine |
13
+ | RTL and mixed direction | Arabic, Hebrew, Persian | mirrored layout; bidi isolation; native digits where appropriate; punctuation ownership; mixed usernames/URLs/numbers; IME/keyboard input |
14
+ | CJK | Simplified Chinese, Traditional Chinese, Japanese, Korean | locale-specific glyphs; line breaking/prohibition rules; punctuation compression; no-space scanning; IME composition; font fallback variance |
15
+ | Mainland Southeast Asian scripts | Thai, Lao, Khmer | dictionary-aware wrapping/selection; combining vowels/tone marks; no spaces between words; clipping in fixed line heights |
16
+ | Indic scripts | Hindi/Devanagari plus relevant Bengali/Tamil/Telugu/Kannada/Malayalam or other target script | reordering, conjuncts, matras, grapheme clusters, font shaping, caret movement, truncation by grapheme |
17
+ | Emoji and symbols | any target locale plus emoji-heavy input | ZWJ families/professions, flags, skin tones, variation selectors, keycaps, wide-cell terminal behavior |
18
+ | Plural/gender richness | Arabic, Polish, Russian, Czech, Irish or other audience-relevant examples | zero/one/two/few/many/other categories; gender/select agreement; unknown or large counts |
19
+ | Locale formatting | Germany, France, Japan, India, Arabic-locale examples, audience-specific regions | decimal/grouping separators, currency placement, calendars/time zones, 12/24-hour time, week start, list punctuation, collation |
20
+ | Pseudolocalized structural stress | pseudo-locale/RTL transform where supported | hard-coded strings, concatenation, missing boundaries, expansion clipping, incorrect mirroring, placeholder corruption |
21
+
22
+ ## Minimum test data
23
+
24
+ Build fixtures using realistic content rather than repeating one glyph:
25
+
26
+ - short label, long sentence, and paragraph in each selected script;
27
+ - mixed-direction user-generated string containing a URL/handle/file name;
28
+ - plural counts `0`, `1`, `2` where meaningful, a few/many category value, a large formatted number, and an unknown/null count;
29
+ - localized date/time/currency/list examples;
30
+ - names/addresses that do not fit ASCII-only or given/family-name assumptions;
31
+ - emoji sequence and combining-mark sequence for truncation/caret tests;
32
+ - real translated copy where available plus deterministic pseudo-localized copy.
33
+
34
+ Do not use culturally inappropriate imagery, names, or stereotypes as filler. Synthetic fixtures must be marked synthetic.
35
+
36
+ ## Verification procedure
37
+
38
+ For each selected row:
39
+
40
+ 1. render the primary flow at the smallest supported geometry and typical geometry;
41
+ 2. inspect shaping, clipping, line breaking, baseline/line-height behavior, font fallback, truncation, and text direction;
42
+ 3. exercise input/paste/IME composition/autocomplete and validation errors;
43
+ 4. verify plural/message output across count/gender/select cases;
44
+ 5. verify dates, numbers, currency, lists, sorting/search, and collation with platform locale APIs;
45
+ 6. test focus/order/navigation mirroring and bidi isolation in RTL rows;
46
+ 7. inspect accessible names/status messages because concatenation errors often appear there first;
47
+ 8. record actual locale/tag, font/runtime/platform, and evidence label.
48
+
49
+ ## Failure classification
50
+
51
+ - **hard-coded string:** visible text does not change in pseudo-locale;
52
+ - **concatenation defect:** grammar/order cannot be fixed by translating the whole message;
53
+ - **layout defect:** clipping/overlap/target compression caused by expansion or line breaking;
54
+ - **font defect:** missing glyph, synthetic slant/bold, wrong regional glyph preference, baseline clipping;
55
+ - **segmentation defect:** caret/selection/wrapping/counting splits a grapheme or word incorrectly;
56
+ - **directionality defect:** wrong mirroring, punctuation jump, unreadable mixed-direction string;
57
+ - **format defect:** hand-assembled date/number/currency/list/collation contradicts locale behavior;
58
+ - **translation-quality gap:** mechanics pass but real wording/tone is unknown or incorrect; mark native review `not-checked` rather than guessing.
59
+
60
+ A matrix row is incomplete until failures are classified; “looks okay” does not identify what was verified.
@@ -0,0 +1,53 @@
1
+ # State matrix template
2
+
3
+ Evidence: hardening/state coverage practice, usability heuristics, and response/robustness requirements.
4
+
5
+ Create this matrix for every meaningful view/component. Delete only rows proven irrelevant, and record why.
6
+
7
+ | State | Required design answer |
8
+ |---|---|
9
+ | initial/loading | immediate acknowledgement; stable skeleton/structure; no fake content |
10
+ | skeleton | approximate layout mass without mimicking false facts; screen-reader appropriate |
11
+ | optimistic | distinguish unconfirmed state, rollback failure visibly, preserve corrective action |
12
+ | empty first-use | explain value + primary creation/import/sample action |
13
+ | empty no-results | show query/filter context, useful broadening/clear action |
14
+ | empty cleared | acknowledge removal; undo if possible; next useful action |
15
+ | partial data | identify what is missing/stale; do not render gaps as zero/false |
16
+ | error validation | field/problem/recovery-specific message; preserve input |
17
+ | error server/system | plain-language cause boundary; retry/support/correlation detail as appropriate |
18
+ | offline | cached/stale indication; queue or block explicitly; preserve draft |
19
+ | permission needed | explain benefit/need before prompt; provide non-permission fallback |
20
+ | permission denied | explain consequence and exact settings recovery without shame |
21
+ | success | what happened, next consequence/action; avoid dead-end modal |
22
+ | disabled | reason visible or inferable; how/when enabled; tooltip not sole carrier |
23
+ | zero | distinguish absent, none allowed, none yet |
24
+ | one | avoid awkward plural/empty controls; direct edit/detail path |
25
+ | many | pagination/virtualization/filter/grouping; maintain selection/context |
26
+ | long content | wrap/truncate deliberately with expansion/copy path; no overlap |
27
+ | missing asset/data | meaningful fallback, no broken image/icon |
28
+ | interruption | autosave/draft/resume semantics; no duplicated side effects |
29
+ | resume/deep link | correct entity/step/filter/scroll/permission context |
30
+ | concurrency | lock/merge/version conflict behavior; show freshness/ownership |
31
+ | duplication/retry | idempotency, double-submit prevention, status visibility |
32
+ | background/expired | session/auth expiry with data preservation and reauthentication |
33
+
34
+ ## AI, streaming, and agentic states
35
+
36
+ Include these rows whenever a surface streams LLM output, invokes tools, or executes agent actions:
37
+
38
+ | State | Required design answer |
39
+ |---|---|
40
+ | streaming tokens | acknowledge request immediately; stream incrementally without reflow jitter; pause auto-scroll if the user scrolls up to read; render partial markdown/code fences safely |
41
+ | stop / abort | expose a keyboard-reachable Stop/Cancel control throughout generation; keep partial output visible and allow editing, copying, or resuming from the prompt |
42
+ | tool-call progress | name the active tool/action and target concisely (`Searching invoices…`); distinguish running, succeeded, and failed tool steps with expandable inputs/outputs |
43
+ | approval pending (HITL) | before side effects (write, delete, send, spend), present exact scope, diff/preview, and explicit Approve / Edit / Reject controls with safe focus defaults |
44
+ | citation / provenance fallback | bind claims to verifiable source links/snippets; when grounding is absent or partial, mark unverified/unavailable provenance explicitly instead of fabricating citations |
45
+ | undo of agent action | expose rollback/checkpoint/revert for state mutations with clear summary of what will be restored; require upfront approval when an action is irreversible |
46
+ | rate-limit / context-limit | explain whether the limit is transient (show retry-after / backoff) or context-window overflow (offer trim/summarize/start-new-thread); always preserve the user's unsent prompt |
47
+
48
+ ## Rules
49
+
50
+ - Do not use spinners as the only answer. Choose stable layout, progressive content, or explicit task state based on duration/context.
51
+ - “Empty” is not an error unless the user expected required data.
52
+ - Error copy must say what happened, what was preserved, and how to proceed.
53
+ - Simulate slow network, cancellation, token expiry, malformed data, streaming interruption, and concurrency where feasible; otherwise label `not-checked`.
@@ -0,0 +1,84 @@
1
+ # Lightweight usability testing escalation
2
+
3
+ Use this reference when inspection cannot answer whether real users understand or complete the task. Automated agents should not fabricate user evidence. Either run an approved lightweight study with real participants or label the uncertainty `not-checked`.
4
+
5
+ ## When to escalate
6
+
7
+ Escalate when a decision depends on any of:
8
+
9
+ - whether users understand domain vocabulary, navigation, or conceptual model;
10
+ - whether they notice the correct action without guidance;
11
+ - error cost, trust, comprehension, or abandonment risk;
12
+ - competing designs whose differences are behavioral rather than visual;
13
+ - accessibility or localization needs outside the implementer's direct experience;
14
+ - a cognitive walkthrough finding rated medium/high risk that cannot be resolved by platform convention.
15
+
16
+ Do not escalate merely to validate taste. Usability testing answers behavior/comprehension questions, not whether the team prefers a color.
17
+
18
+ ## Minimum viable study
19
+
20
+ For a small iterative study, use approximately 3–5 participants per materially distinct audience segment. This is a risk-discovery sample, not statistical proof. More participants or quantitative instrumentation are needed for comparative claims.
21
+
22
+ Record:
23
+
24
+ | Field | Required content |
25
+ |---|---|
26
+ | research question | behavioral uncertainty to resolve |
27
+ | participant segment | inclusion criteria and evidence source; avoid convenience-only bias when possible |
28
+ | task(s) | realistic goals with completion criteria |
29
+ | fixture/data | realistic content, permissions, device, network, locale, accessibility setup |
30
+ | moderator behavior | neutral prompts; no teaching unless testing recovery after failure |
31
+ | measurement | success/failure/assists, time where useful, errors, navigation path, verbatim comprehension evidence |
32
+ | privacy/consent | consent, recording permission, data handling, redaction |
33
+
34
+ Never claim statistical significance or population truth from five users. Report discovered failure patterns and unresolved risk.
35
+
36
+ ## Session structure
37
+
38
+ 1. **Context:** establish relevant background without demonstrating the answer.
39
+ 2. **Task:** give the goal, not click instructions.
40
+ 3. **Think-aloud or retrospective probing:** choose based on task risk/accessibility; do not interrupt the user's natural recovery immediately.
41
+ 4. **Neutral prompts:** “What are you expecting?” / “What would you do next?” rather than leading hints.
42
+ 5. **Recovery boundary:** intervene only when the participant is stuck beyond the defined failure threshold or harm/frustration is disproportionate.
43
+ 6. **Debrief:** ask comprehension and expectation questions after the task.
44
+
45
+ ## Measures
46
+
47
+ Use behavior first:
48
+
49
+ | Measure | Evidence |
50
+ |---|---|
51
+ | task success | completed / assisted / failed / abandoned, defined before session |
52
+ | critical errors | wrong destructive action, lost data, wrong interpretation, inability to recover |
53
+ | navigation path | detours, backtracking, search use, help use |
54
+ | comprehension | user's own explanation of what happened or what a label means |
55
+ | confidence/trust | stated certainty before committing; treat as secondary |
56
+ | time/efficiency | useful only with context and enough care about variance |
57
+
58
+ Do not reduce the result to a satisfaction score. A participant can like an interface and still fail the task.
59
+
60
+ ## Reporting template
61
+
62
+ ```markdown
63
+ ## Usability evidence
64
+ - Question:
65
+ - Participants: n, segment, recruitment limitation
66
+ - Build/prototype/context:
67
+ - Tasks and success criteria:
68
+
69
+ | Task | Success | Critical failure pattern | Evidence | Severity | Recommended change |
70
+ |---|---|---|---|---|---|
71
+
72
+ - Confirmed risks:
73
+ - Not-generalizable / not checked:
74
+ ```
75
+
76
+ Distinguish observed behavior from interpretation. Quote or describe what happened before inferring why.
77
+
78
+ ## Agent honesty rules
79
+
80
+ - Never fabricate participants, sessions, quotes, metrics, or consent.
81
+ - Do not call a model-generated persona walkthrough “user testing.”
82
+ - Do not use employees/friends as proof of target-user behavior without saying so.
83
+ - If no participants are available, keep the risk open and choose the safer conventional design.
84
+ - Do not continue polishing visual detail while a critical behavioral question remains unresolved.
@@ -0,0 +1,44 @@
1
+ # UX writing
2
+
3
+ Evidence: empty-state/form guidance, concise copy practice, and mode-specific expression budgets.
4
+
5
+ ## Rules
6
+
7
+ - Write for the user's goal, not the system's implementation. Prefer concrete domain nouns and verbs.
8
+ - Buttons are verbs or verb phrases that state consequence: “Save invoice”, “Invite member”, “Resume upload”. Avoid vague “Submit/OK/Next” when the consequence is knowable.
9
+ - Link text describes destination/action without bare “click here”; match surrounding reading flow.
10
+ - Use consistent action vocabulary across surfaces. Do not alternate delete/remove/archive or sign in/log in casually.
11
+ - Headings state the object or decision, not generic “Information”/“Details” when specificity is possible.
12
+ - Front-load distinguishing words for scanning and truncation.
13
+ - Do not blame users, expose internal exception text, or use fake warmth in high-stakes errors.
14
+ - **Ban 2025–2026 AI marketing copy clichés:** never write `supercharge`, `elevate`, `revolutionize`, `unlock`, `seamless`, `cutting-edge`, `next-gen`, `effortless`, `empower`, `streamline`, `all-in-one`, `reimagine`, `unleash`, `AI-powered`, `built for modern teams`, `delve`, `transform your`, or vague `"Get started"` / `"Learn more"` filler when a concrete domain outcome or action is knowable. Replace every buzzword with the verifiable user action, time/data unit, or domain object (e.g., `"Diff two Parquet schemas in 300ms"` instead of `"Effortlessly streamline your next-gen data workflow"`).
15
+
16
+ ## Error pattern
17
+
18
+ `<what happened>` + `<what is preserved/unchanged>` + `<how to recover>`.
19
+
20
+ Do/don't:
21
+
22
+ - Do: “We couldn't upload `budget.pdf`; no file was added. Check your connection and retry.”
23
+ - Don't: “Oops! Something went wrong.”
24
+ - Do: “Enter expiry as MM/YY.”
25
+ - Don't: “Invalid input.”
26
+
27
+ ## Empty states
28
+
29
+ - First-use: explain value and provide primary create/import/connect/sample action.
30
+ - No-results: reflect active query/filter and provide clear/broaden/search alternatives.
31
+ - Cleared/permission/offline: state cause and recovery. Do not use cheerful illustration to mask data loss.
32
+ - Keep empty states operational in Operate mode; decorative illustration must not consume primary space.
33
+
34
+ ## Tone by mode
35
+
36
+ | Mode | Tone posture |
37
+ |---|---|
38
+ | Persuade | confident, concrete, evidence-backed |
39
+ | Operate | terse, predictable, low emotional noise |
40
+ | Read | clear editorial voice, minimal interruption |
41
+ | Experience/Play | expressive but subordinate to orientation/legibility |
42
+ | Communicate | direct and robust when images/fonts fail |
43
+
44
+ Microcopy is interface structure. Review strings at real lengths, plural forms, RTL/mixed bidi, truncation, screen-reader order, and error/offline states.
@@ -0,0 +1,96 @@
1
+ ---
2
+ name: pixelcraft-visual-qa
3
+ description: Verifies interfaces through rendered evidence using a render → screenshot → self-critique → fix loop and finish gate. Use for visual QA, Playwright screenshot/video/trace capture, Core Web Vitals (LCP, INP, CLS), responsive/light/dark/reduced-motion inspection, browser or device verification, WebGL/WebGPU profiling, horizontal overflow, clipping, contrast, PDF/document raster checks, and honest rendered-vs-static evidence reporting across web, mobile, desktop, terminal, email, document, and game surfaces.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft visual QA
10
+
11
+ Render the actual surface, inspect representative captures, execute the primary task, and gate completion on the evidence. A missing check is not a pass.
12
+
13
+ ## References
14
+
15
+ - Read [references/critique-rubric.md](references/critique-rubric.md) before judging captures; it prevents generic taste commentary.
16
+ - Read [references/task-verification.md](references/task-verification.md) when behavior or task completion matters more than static appearance.
17
+ - Read [references/finish-gate.md](references/finish-gate.md) before verifying a new or materially changed UI flow; it defines required evidence and the repair limit.
18
+ - Read [references/baseline-governance.md](references/baseline-governance.md) before updating, trusting, masking, or retaining screenshot baselines.
19
+ - Read [references/motion-capture.md](references/motion-capture.md) when timing, scrub, drag, route transitions, or animated states need video/trace evidence.
20
+ - Read [references/realtime-graphics.md](references/realtime-graphics.md) for canvas/WebGL/WebGPU runtime states, context loss, GPU/asset budgets, and actual-device evidence.
21
+ - Read [references/performance-budgets.md](references/performance-budgets.md) when setting or evaluating web vitals, interaction latency, frame budgets, and asset budgets.
22
+ - Read [references/measured-craft.md](references/measured-craft.md) when comparing an expressive treatment, measuring before/after, or choosing non-browser evidence.
23
+ - Run `node scripts/style-inventory.mjs <url-or-html-file>` when a rendered style/payload inventory would make critique measurable; it emits JSON rather than proof of quality.
24
+ - Read [references/capture-mobile.md](references/capture-mobile.md) for iOS simulator, Android emulator/device, responsive viewport, gesture, and safe-area capture.
25
+ - Read [references/capture-terminal.md](references/capture-terminal.md) for tmux, VHS, asciinema, snapshot backends, color fallback, resize, and scrollback evidence.
26
+ - Read [references/capture-email.md](references/capture-email.md) for email-client matrix, 102 KB Gmail clipping, image blocking, dark mode, plaintext, and local SMTP capture.
27
+ - Read [references/capture-document.md](references/capture-document.md) when verifying final PDFs, print layouts, PDF/UA tags, embedded fonts, or Slidev/Marp slide exports.
28
+ - Read [references/capture-desktop-game.md](references/capture-desktop-game.md) for native windows, Wayland/X11/macOS/Windows capture, Electron/Tauri drivers, high-DPI, frame capture, HUD legibility, and game-safe-area checks.
29
+ - Run `node scripts/shoot.mjs --help` for optional browser capture/audit. The script has no required dependencies; it uses Playwright only when already installed or installable by the user.
30
+ - Run `node scripts/check-contrast.mjs --help` for zero-dependency WCAG 2.2 / APCA contrast verification across tokens and stylesheets.
31
+ - Run `node scripts/check-email.mjs --help` for zero-dependency email HTML auditing (102 KB Gmail clipping, Outlook/Flexbox hazards, image-only CTA/alt checks, preheader spacer padding, plaintext parity, and `--headers` RFC 8058 One-Click unsubscribe checks).
32
+ - Run `node scripts/check-tui.mjs --help` for zero-dependency terminal output auditing (UAX #29 grapheme-cluster width/wrapping for CJK & ZWJ emoji, `NO_COLOR` resilience, and 6-step terminal mode teardown checks).
33
+ - Run `node scripts/check-pdf.mjs --help` for zero-dependency PDF verification (page geometry, embedded fonts, `/ToUnicode` CMap copy/ATS extractability, PDF/UA structure checks, and `--prepress` PDF/X `/TrimBox`, `/BleedBox`, `/OutputIntents` gates).
34
+
35
+ ## Required loop
36
+
37
+ 1. **Render** — build/run the real product surface. A typecheck, bundle, DOM snapshot, or successful server start is not visual evidence. For behavior that matters, execute a defined user task rather than only loading a page.
38
+ 2. **Capture** — use the plan's applicable device/layout classes, including landscape and short height for responsive web. Observe the task, available controls, focus and state after resize or rotation, not just the fit of static screenshots. On other surfaces use supported devices, sizes, clients or output formats. Include applicable appearance and reduced-motion settings; capture meaningful states, task feedback, failures and end states.
39
+ 3. **Inspect** — evaluate the capture against the direction card, platform conventions, floor requirements, rubric, and task. Look at edges, clipping, overlap, empty space, contrast, hierarchy, alignment, text truncation, input modality, and state communication.
40
+ 4. **Fix and retest (`Scan → Fix → Rescan`)** — deterministic static/CLI/build failures (`slop-scan --fail-on p2`, `check-contrast`, `check-email`, `check-tui`, `check-pdf`, compiler/linter/test errors, dead controls, missing states) have **no early-exit cap**: fix the root cause and re-run all affected checks until they exit `0`. For rendered layout/pixel critique inside `finish-gate.mjs`, normally use one focused repair round and at most three documented rendered rounds (retaining earlier evidence) before escalating a genuinely blocked visual conflict as `OPEN`. Do not iterate by subjective taste.
41
+ 5. **Gate and report** — run the finish gate for new or materially changed flows and confirm all applicable deterministic `check-*` / `slop-scan` commands exited `0`; report status, repair rounds, and any remaining `OPEN` or `not-checked` items. List captures inspected and use `rendered` only for actual runtime or capture evidence.
42
+
43
+ ## Capture matrix
44
+
45
+ Choose rows relevant to the surface; do not claim rows skipped without saying so.
46
+
47
+ | Dimension | Minimum evidence |
48
+ |---|---|
49
+ | geometry | smallest supported size, typical size, large/resize behavior |
50
+ | appearance | light, dark, high contrast/forced colors where platform supports it |
51
+ | motion/input | reduced motion, keyboard/controller/touch focus, pointer size or D-pad where applicable |
52
+ | state | loading, empty, error, long content, offline/permission when relevant |
53
+ | locale | expansion/contraction, RTL, non-Latin scripts when in scope |
54
+ | capability | zoom/text scaling, magnification, image blocking, reduced data, degraded color/unicode |
55
+
56
+ ## Browser quick path
57
+
58
+ ```bash
59
+ node scripts/shoot.mjs http://localhost:3000 --out visual-qa --keyboard
60
+ node scripts/shoot.mjs dist/index.html --breakpoints 390x844,768x1024,1440x900 --keyboard
61
+ ```
62
+
63
+ The script writes PNGs plus `report.json`; highlights overflow, clipping, contrast, broken images, essential content hidden after settling, and visible text possibly covered by opaque elements. Use `data-pixelcraft-essential` on task-critical content outside the built-in main/heading targets. Opt in with `--keyboard` on a safe fixture to probe up to eight Tab stops and likely missing visual indicators. Treat findings as leads: inspect the relevant state manually. A probe or clean report is not proof of task completion, contrast compliance, or correct focus order.
64
+
65
+ For local files, the built-in server defaults to the file's own directory. Pass `--root` only when shared parent assets are required: it exposes every non-dotfile beneath that root to page scripts for the duration of the capture. Dot-segments such as `.env` and `.git/` are refused. HTTP error pages are still captured and recorded; runs exit non-zero for 4xx/5xx unless `--allow-http-error` is intentionally used for error-page design review.
66
+
67
+ ## Iron Law against abusing `not-checked`
68
+
69
+ **IRON LAW:** `not-checked` is an honest fallback for genuinely unavailable tooling—never an excuse to skip running available checks. Before marking *any* verification item `not-checked`:
70
+
71
+ 1. Actively check and attempt every available local runtime/tool first (local dev server + Playwright/`shoot.mjs`, zero-dep `check-contrast.mjs` / `check-email.mjs` / `check-tui.mjs` / `check-pdf.mjs`, simulator/emulator, CLI capture, or build/test runner) and record the exact attempted command or missing binary.
72
+ 2. **Never declare a UI "done", "verified", "clean", or "production-ready" while rendered checks remain `not-checked`.** Report the work as *implemented / statically checked only, pending rendered verification* and name the exact next command to verify it.
73
+
74
+ ## Hard rules
75
+
76
+ - Do not use browser emulation as proof of physical-device behavior; label it emulation.
77
+ - Do not hide overflow-x globally to silence a capture finding.
78
+ - Do not lower text contrast, shrink type below platform norms, or truncate essential content to fit a screenshot.
79
+ - Do not crop away defects or capture only flattering states.
80
+ - Do not update screenshot baselines merely to make a check pass; classify intentional change, regression, environment drift, fixture nondeterminism, or platform difference first.
81
+ - Do not claim task completion from pixels alone; execute the task or label behavioral uncertainty.
82
+ - Do not claim accessibility from pixels alone; pair captures with semantic/keyboard inspection.
83
+ - Preserve user data and secrets: redact private content in saved artifacts.
84
+
85
+ ## Pre-submit checklist
86
+
87
+ - [ ] actual surface rendered in the target runtime or the closest explicitly labeled emulation;
88
+ - [ ] required breakpoints/orientations/safe areas captured;
89
+ - [ ] light/dark and reduced-motion behavior inspected where applicable;
90
+ - [ ] primary empty/loading/error/long-content states inspected;
91
+ - [ ] primary task/recovery path executed with expected end state evidence where feasible;
92
+ - [ ] no unintended horizontal overflow, clipped essential text, overlap, or off-viewport controls;
93
+ - [ ] contrast/legibility checked in context, including disabled and focus states;
94
+ - [ ] performance budget measured or explicitly marked `not-checked`;
95
+ - [ ] reproducible failures were repaired and rerun, or explicitly remain open;
96
+ - [ ] report distinguishes `rendered`, `static`, `model-judgment`, `not-checked`, and `waived`.