@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,83 @@
1
+ # Rust GUI: GPUI, Dioxus, Iced, Slint, egui, & emerging toolkits
2
+
3
+ Rust GUI frameworks have fundamentally different rendering, layout, and accessibility models—never treat “Rust GUI” as one uniform platform.
4
+
5
+ ## Framework decision matrix
6
+
7
+ | Framework | Rendering & UI model | Key 2025–2026 idioms | Best fit |
8
+ |---|---|---|---|
9
+ | **GPUI** | Hybrid immediate/retained GPU (Metal/Vulkan/DX12, Taffy Flexbox, up to 120 FPS) | `gpui-component` widget kit, `Entity<T>`, `Render`, `FocusHandle`, `actions!` keymaps | Ultra-fast developer tools, editors, data workspaces (Zed ecosystem) |
10
+ | **Dioxus 0.6/0.7** | RSX reactive components over OS WebView **or** **Blitz** (pure-Rust native HTML/CSS renderer) | `dx` CLI, **Subsecond** live Rust hot-patching, fullstack/desktop/mobile sharing | Web-fluent Rust teams wanting fast iteration and optional zero-WebView Blitz |
11
+ | **Iced 0.13/0.14** | Elm-inspired functional reactive (`wgpu` / tiny-skia) | `iced::application(title, update, view)` and `iced::daemon` multi-window API | Cross-platform desktop apps, predictable state machines |
12
+ | **`libcosmic`** | COSMIC Desktop adaptive toolkit built on Iced + Wayland layer-shell | `cosmic::Application`, `cosmic::applet::run`, `nav_model`, `context_drawer`, live `cosmic-config` tokens | Linux / COSMIC Desktop native apps and panel applets with adaptive condensed/expanded layouts |
13
+ | **Slint** | Declarative `.slint` DSL compiled to native Rust/C++ | IDE / `slint-viewer` live preview, shared desktop + `#![no_std]` MCU codebases | Embedded HMIs and crisp lightweight native desktop utilities |
14
+ | **egui** | Pure immediate-mode (`eframe`, glow/wgpu) | Frame-local `egui::Ui`, `egui_plot`, retained app state outside UI closure | Engineering tools, debuggers, audio/CAD inspectors, internal utilities |
15
+ | **Relm4** | Idiomatic Rust Elm-style wrapper over **GTK4 / libadwaita** | Native Linux Wayland, AT-SPI accessibility, Blueprint/GTK widgets | Linux-first native desktop apps prioritizing full OS accessibility (see `gtk.md`) |
16
+ | **Vizia** | Reactive Lens-based tree + Morphorm layout + Femtovg/Skia | `#[derive(Lens)]`, hot-reloadable external CSS stylesheets with CSS custom properties, built-in AccessKit | Reactive CSS-styled desktop utilities and audio plugins (check release cadence before greenfield commitment) |
17
+ | **Floem** | Fine-grained reactive signals + Taffy Flexbox (Vger/tiny-skia) | Leptos-like signals without VDOM diffing (Lapce ecosystem) | Responsive native editors and reactive Rust desktop apps |
18
+ | **Xilem** | Linebender reactive stack: **Vello** (GPU 2D) + **Masonry** (widget tree) + **Parley** (text) | Modern GPU compute rendering + AccessKit-first architecture | Next-gen high-craft vector/text-heavy Rust apps (track API stability) |
19
+ | **Makepad** | GPU shader-first live-design DSL with instant hot reload | Custom SDF shaders, cross-platform desktop/mobile/WASM | Visually bespoke audio/creative/shader-driven tools |
20
+ | **Freya** | Dioxus RSX reactive components rendered directly via **Skia** | No WebView, CSS-like layout over Skia | Dioxus developers wanting native Skia rendering |
21
+
22
+ ## Token mapping & idiomatic snippets
23
+
24
+ Centralize semantic theme values once—never scatter raw hex literals across render closures:
25
+
26
+ ```rust
27
+ // Iced 0.13/0.14 functional application entry point:
28
+ pub fn main() -> iced::Result {
29
+ iced::application("Invoices", App::update, App::view)
30
+ .theme(App::theme)
31
+ .run()
32
+ }
33
+ ```
34
+
35
+ - **`libcosmic` (COSMIC Desktop & adaptive applets)**: implement `cosmic::Application` (or `cosmic::applet::run::<MyApplet>(())` for Wayland panel applets with popups). Consume live user/system theme tokens via `cosmic::theme::active()` (`theme.cosmic().accent_color()`, `spacing()`, `corner_radii`) synced automatically through `cosmic-config` instead of hardcoding colors; use `nav_model()` + `context_drawer()` so windows collapse cleanly from expanded multi-pane desktop layouts to condensed narrow widths, and populate widget accessibility labels exposed through Iced/AccessKit on Wayland/AT-SPI.
36
+ - **Vizia**: bind reactive state with `#[derive(Lens)]` and map DTCG semantic roles into CSS custom properties inside loaded stylesheets (`cx.add_stylesheet(include_style!("src/tokens.css"))`) so light/dark theme classes swap without rebuilding widget code.
37
+ - **GPUI**: read a global `Theme` struct from `App` context (`cx.theme()`) and pair `gpui-component` primitives with semantic tokens rather than repeating `rgb(0x...)`.
38
+ - **Slint**: declare `export global Palette { in-out property <color> action; }` in `.slint` files for light/dark switching.
39
+ - **Dioxus**: map DTCG CSS custom properties directly in stylesheets (works across both WebView and Blitz).
40
+ - **egui**: configure `ctx.style_mut(...)` / `egui::Visuals` centrally; never mutate global style mid-frame unpredictably.
41
+
42
+ ## Layout, typography, & power-aware motion
43
+
44
+ - Use virtualized lists (`uniform_list` in GPUI, `ScrollArea::show_rows` in egui, virtualized views in Slint/Iced/`libcosmic`) for logs and large tables.
45
+ - Verify font registration, fallback chains (CJK/RTL/emoji via `cosmic-text` or `Parley`), and fractional HiDPI scaling per OS—custom GPU renderers often ship with missing glyph fallback ("tofu") unless bundled explicitly.
46
+ - Guard animations against wasted power: in immediate-mode (`egui`), drive repaints on events or `ctx.request_repaint_after(...)` rather than spinning 120 FPS idle loops. Provide an app-level reduced-motion toggle when OS integration is incomplete.
47
+
48
+ ## Accessibility & AccessKit
49
+
50
+ **AccessKit** is the shared Rust accessibility bridge translating widget trees to **Windows UI Automation**, **macOS NSAccessibility**, and **Linux AT-SPI** (integrated in `egui`, `Slint`, `Masonry`/`Xilem`, `Floem`, `Iced`/`libcosmic`, and `Vizia`).
51
+
52
+ - AccessKit enables native screen-reader support, but **only** for widgets that actually populate roles, names, bounds, states, and focus actions—its presence in `Cargo.toml` is **not** proof of accessibility.
53
+ - For accessibility-mandated productivity apps on Linux/cross-platform where native screen-reader parity is non-negotiable, prefer **Relm4 (GTK4)**, **`libcosmic`** (on COSMIC/Wayland, verified with Orca), **Slint**, or **Dioxus** and verify live with VoiceOver, Narrator, and Orca; treat custom GPU/immediate-mode accessibility as `not-checked` until actually tested with assistive tech.
54
+
55
+ ## States, atomic storage, & release signing idioms
56
+
57
+ Own async I/O on Tokio/async executors with explicit cancellation handles and bounded channels—never block the UI/render thread (`< 300 ms` cold start, `~0%` idle CPU when minimized/unfocused). Resolve OS-standard paths with the **`directories` (`ProjectDirs`)** crate (XDG / `~/Library/Application Support` / `%APPDATA%`), write config/workspace files atomically via **`tempfile::NamedTempFile`** (`as_file().sync_all()?` → `persist(target)?`), and configure local `rusqlite`/`sqlx` SQLite databases with `PRAGMA journal_mode = WAL;` and versioned migrations ([working-context.md](working-context.md)). When using **Dioxus WebView**, apply all 8 WebView Giveaway Killers (`cursor: default`, `user-select: none`, hidden dark cold start, custom titlebar drag/traffic-light inset, native menus/DnD—see [tauri.md](tauri.md)). Sign releases with macOS Developer ID + `notarytool` + `stapler`, Windows Azure Artifact Signing / HSM Authenticode, Linux Flatpak/AppStream, and `Ed25519`/`minisign` auto-updates. Handle dirty-document close interception, mixed-DPI bounds clamping, and multi-window focus cleanly, and prefer framework text-editing widgets (`gpui-component` input, Slint `TextInput`, `iced::widget::text_editor`, `cosmic::widget::text_input`) over hand-rolled keystroke buffers so IME composition, dead keys, selection, and clipboard paste work reliably.
58
+
59
+ ## Do/don't pairs
60
+
61
+ | Do | Don't |
62
+ |---|---|
63
+ | Use `iced::application`/`daemon`, `libcosmic` `Application`/`applet` + `cosmic::theme::active()`, `dx` Subsecond, or `gpui-component` idioms | Copy obsolete pre-0.13 `Application` traits, hardcode COSMIC colors, or hand-roll custom text editors |
64
+ | Verify AccessKit output (including `libcosmic` and `Vizia`) with VoiceOver, Narrator, and Orca | Claim screen-reader compliance merely because AccessKit is a dependency |
65
+ | Request repaints on dirty state/events in `egui` / GPU renderers | Spin a continuous 120 FPS render loop while the window is idle |
66
+ | Centralize semantic `Theme`, Vizia CSS custom properties, or `.slint` `global` palettes | Scatter `Color32::from_rgb(...)` or `rgb(0x...)` literals across views |
67
+ | Bundle fallback fonts and verify CJK/RTL shaping & fractional DPI | Ship ASCII-only embedded fonts that turn localized text into tofu boxes |
68
+
69
+ ## Known traps
70
+
71
+ Incomplete AccessKit widget semantics (missing names/focus/actions), IME & dead-key breakage in custom GPU text inputs, idle CPU/GPU battery drain from continuous repaints, fractional Wayland/Windows HiDPI blur, missing font fallbacks, blocking the render thread with synchronous disk/network calls, failing to restore or clamp multi-monitor window state.
72
+
73
+ ## Verification commands
74
+
75
+ ```sh
76
+ cargo test
77
+ cargo clippy --all-targets -- -D warnings
78
+ cargo run
79
+ # Dioxus live desktop iteration:
80
+ dx serve --platform desktop
81
+ ```
82
+
83
+ `cargo test` and `cargo clippy` are `static` evidence. Run native binaries on each target OS across keyboard-only traversal, VoiceOver/Narrator/Orca (or label screen-reader testing `not-checked`), fractional HiDPI resize, dark/high-contrast themes, idle CPU/GPU usage, and dirty-close recovery for `rendered` evidence.
@@ -0,0 +1,110 @@
1
+ # Tauri (v2)
2
+
3
+ ## Token mapping
4
+
5
+ Use generated DTCG CSS custom properties inside the WebView exactly as web UI, while mirroring semantic theme values for native shell surfaces (window background color on launch to prevent white flash in dark mode, native menus, tray icons, and dialogs) in Rust / `tauri.conf.json`.
6
+
7
+ ## Tauri v2 IPC: commands, streaming `Channel`, & binary `Response`
8
+
9
+ Design backend communication around explicit typed contracts and non-blocking async Rust commands:
10
+
11
+ - **`#[tauri::command]`**: declare `async fn` returning `Result<T, E>` (serialized errors) for I/O or CPU work so the UI never freezes and the frontend receives structured error states.
12
+ - **`tauri::ipc::Channel<T>`**: use `Channel` for ordered, high-throughput streaming (build logs, AI token streams, download progress) instead of broadcasting global `app.emit(...)` events across every window.
13
+ - **`tauri::ipc::Response`**: return `tauri::ipc::Response::new(bytes)` for binary payloads (images, audio buffers, Arrow/Parquet chunks) to bypass JSON serialization overhead.
14
+
15
+ ```rust
16
+ use tauri::ipc::{Channel, Response};
17
+
18
+ #[tauri::command]
19
+ async fn export_report(
20
+ id: String,
21
+ on_progress: Channel<u8>,
22
+ ) -> Result<Response, String> {
23
+ on_progress.send(25).map_err(|e| e.to_string())?;
24
+ let pdf_bytes: Vec<u8> = generate_pdf(&id).await.map_err(|e| e.to_string())?;
25
+ on_progress.send(100).map_err(|e| e.to_string())?;
26
+ Ok(Response::new(pdf_bytes))
27
+ }
28
+ ```
29
+
30
+ ## Official v2 plugins & capability-based ACLs
31
+
32
+ - **Capabilities (`src-tauri/capabilities/*.json`)**: grant least-privilege permissions scoped explicitly by `windows` and `platforms` (`["linux", "macOS", "windows"]` vs `["iOS", "android"]`). Never open broad `remote.urls` wildcards unless audited.
33
+ - Prefer official Tauri v2 plugins for standard desktop behavior instead of hand-rolling fragile hacks:
34
+ - **`tauri-plugin-window-state`**: persists and safely clamps window size/position/maximized state across launches.
35
+ - **`tauri-plugin-store`**: lightweight persisted settings/preferences store.
36
+ - **`tauri-plugin-updater`**: signed in-app updates with explicit restart/defer UX.
37
+ - **`tauri-plugin-single-instance`**: focuses the existing window and forwards CLI/file-open args instead of spawning duplicate instances.
38
+ - **`tauri-plugin-deep-link`**: handles custom URL schemes (`myapp://...`) cleanly on both cold start and warm launch.
39
+
40
+ ## The 8 WebView Giveaway Killers & Tauri v2 shell craft
41
+
42
+ Every Tauri v2 desktop app must eliminate the 8 browser-in-a-box giveaways so the app feels indistinguishable from native OS software:
43
+
44
+ 1. **Arrow cursor on UI chrome**: set `cursor: default` across buttons, tabs, sidebar rows, menus, and headers—reserve `cursor: pointer` strictly for external web hyperlinks (`a[href^="http"]`).
45
+ 2. **Non-selectable chrome**: apply `user-select: none; -webkit-user-select: none;` to all toolbars, sidebars, tabs, menus, and buttons; opt into `user-select: text` only inside editors, tables, logs, and message bodies.
46
+ 3. **Suppress browser giveaways in production**: disable default WebView `contextmenu` ("Inspect Element" / "Reload") outside debug builds (`#[cfg(not(debug_assertions))]`), block accidental `Cmd/Ctrl+R` page reloads and rubber-band pinch-zoom, and set `overscroll-behavior: none` on `html, body`.
47
+ 4. **Zero white flash on dark cold start**: configure `"visible": false` and a dark/theme-matched `"backgroundColor"` in `tauri.conf.json`, then call `window.show()` from a frontend-ready command (or after first paint) so dark-mode launches never flash `#ffffff` (`< 300–500 ms` cold start).
48
+ 5. **Custom titlebar geometry & fullscreen traffic lights**: use `"titleBarStyle": "Overlay"` + `"hiddenTitle": true` on macOS with a `40–52 px` header band marked **`data-tauri-drag-region`** (keeping interactive child `<button>`/`<input>` controls outside drag capture), double-click titlebar to zoom/maximize per OS setting, and reserve **`72–80 px` left inset** for macOS traffic lights—collapsing that left inset when the window enters macOS fullscreen!
49
+ 6. **Native OS materials + inactive-window dimming**: pair `window-vibrancy` (`NSVisualEffectView` / `Mica` / `Acrylic`) with a `tauri://focus` / `tauri://blur` (`data-window-focused="false"`) style that softens sidebar/titlebar contrast when unfocused so multi-window focus is unmistakable.
50
+ 7. **Two-way native file drag-and-drop & dialogs**: listen to native `DragDropEvent` (`onDragDropEvent` with physical file paths + drop-target highlight—never relying solely on sandboxed HTML5 `File` blobs) and `tauri-plugin-drag` for dragging files out to Finder/Explorer, plus `tauri-plugin-dialog` for native open/save sheets.
51
+ 8. **Native OS menu bar, platform modifiers & single-instance deep links**: register `tauri::menu::Menu` (`File/Edit/View/Window/Help`) with `CmdOrCtrl+...` accelerators, plus `tauri-plugin-single-instance` + `tauri-plugin-deep-link`.
52
+
53
+ ```css
54
+ /* Desktop WebView shell baseline */
55
+ html, body {
56
+ overscroll-behavior: none;
57
+ user-select: none;
58
+ -webkit-user-select: none;
59
+ cursor: default;
60
+ }
61
+ .selectable-pane, input, textarea, [contenteditable="true"] {
62
+ user-select: text;
63
+ -webkit-user-select: text;
64
+ cursor: auto;
65
+ }
66
+ a[href^="http"] { cursor: pointer; }
67
+ .titlebar {
68
+ block-size: 44px;
69
+ padding-inline-start: var(--macos-traffic-inset, 78px); /* set to 12px when fullscreen or non-macOS */
70
+ }
71
+ [data-window-focused="false"] .sidebar,
72
+ [data-window-focused="false"] .titlebar {
73
+ opacity: 0.78;
74
+ }
75
+ ```
76
+
77
+ ## Storage, signing, & accessibility idioms
78
+
79
+ - **OS-standard paths & atomic writes**: resolve paths via `app.path().app_config_dir()` / `app_data_dir()` / `app_cache_dir()` (XDG / `~/Library/Application Support` / `%APPDATA%`); persist JSON/project files via `temp file → File::sync_all() → fs::rename` and run local SQLite in `WAL` mode ([working-context.md](working-context.md)).
80
+ - **2026 signing & `Ed25519` delta updates**: sign macOS Universal builds with Developer ID + Hardened Runtime + `notarytool` + `stapler`; sign Windows `.msi`/NSIS installers with Azure Artifact Signing / HSM Authenticode (building SmartScreen reputation consistently in CI); and sign `tauri-plugin-updater` artifacts with `minisign`/`Ed25519` keys.
81
+ - **Accessibility & idle CPU**: bundle local `.woff2` fonts, honor `prefers-reduced-motion`, pause background timers/animations when minimized (`~0%` idle CPU), guard unsaved work via `on_window_event(WindowEvent::CloseRequested)`, and verify native menus, dialogs, and WebView content with `VoiceOver`, `NVDA`/`Narrator`, and `Orca`.
82
+
83
+ ## Tauri v2 mobile targets
84
+
85
+ When sharing a Tauri v2 codebase across desktop and iOS/Android, isolate mobile plugins (biometrics, NFC, haptics) in platform-scoped capability files and pair mobile WebView ergonomics with `pixelcraft-mobile` safe-area and touch-target rules.
86
+
87
+ ## Do/don't pairs
88
+
89
+ | Do | Don't |
90
+ |---|---|
91
+ | Stream progress/logs via `tauri::ipc::Channel<T>` and binary data via `ipc::Response` | Serialize megabyte buffers as JSON arrays or spam global window events |
92
+ | Start window `"visible": false` with dark `backgroundColor`, `cursor: default`, `user-select: none`, and `overscroll-behavior: none` | Flash white on dark launch, show `cursor: pointer` on every button, or leave browser "Inspect Element" context menus in prod |
93
+ | Reserve `72–80 px` macOS traffic-light inset (resetting on fullscreen) + inactive-window dimming | Cover macOS traffic lights, swallow header clicks inside drag regions, or keep unfocused windows at full active contrast |
94
+ | Write config/DB to `app_config_dir()` / `app_data_dir()` atomically (`sync_all` + `rename`) + SQLite `WAL` | Write files next to the binary or overwrite user documents in place without `fsync` |
95
+ | Scope `src-tauri/capabilities/*.json`, intercept `CloseRequested`, and sign updates with `Ed25519` | Grant wildcard permissions, drop unsaved edits on close, or ship unsigned updaters |
96
+
97
+ ## Known traps
98
+
99
+ WebView engine differences (WKWebView vs WebView2 vs WebKitGTK CSS/backdrop/font quirks), white launch flash when `visible: false` + `backgroundColor` is omitted, forgetting to collapse the `72–80 px` traffic-light padding in macOS fullscreen, `Cmd/Ctrl+R` reloading the SPA in production, synchronous `#[tauri::command]` blocking the main thread, cold-start deep links firing before frontend listeners mount.
100
+
101
+ ## Verification commands
102
+
103
+ ```sh
104
+ cargo tauri info
105
+ npm run build
106
+ cargo test --manifest-path src-tauri/Cargo.toml
107
+ cargo tauri build
108
+ ```
109
+
110
+ `cargo tauri info`, `npm run build`, and `cargo test` provide environment and `static` evidence. Run packaged builds on each target OS (macOS/Windows/Linux) to verify `< 500 ms` cold start, `~0%` idle CPU, all 8 WebView giveaway killers, native menus, mixed-DPI bounds clamping, screen readers (`VoiceOver`/`NVDA`/`Narrator`/`Orca`), and dirty-close behavior for `rendered` evidence; browser-only dev preview is inner-DOM evidence only—label untested OSes `not-checked`.
@@ -0,0 +1,71 @@
1
+ # Uno Platform (5 / 6)
2
+
3
+ ## Architecture: `Uno.Sdk` Single Project & Skia Desktop
4
+
5
+ Modern Uno Platform 5/6 consolidates desktop, mobile, and web targets inside a single **`Uno.Sdk`** project (`<Project Sdk="Uno.Sdk">`) with feature flags (`<UnoFeatures>`) and a unified **Skia Desktop** renderer (`net9.0-desktop` / `net10.0-desktop`) shipping consistent rendering across Windows, macOS, and Linux from one Skia host alongside native WinUI (`net9.0-windows*`), iOS, Android, and WebAssembly targets:
6
+
7
+ ```xml
8
+ <Project Sdk="Uno.Sdk">
9
+ <PropertyGroup>
10
+ <TargetFrameworks>net9.0-desktop;net9.0-windows10.0.22621;net9.0-ios;net9.0-android;net9.0-browserwasm</TargetFrameworks>
11
+ <UnoFeatures>Material;Toolkit;MVUX;SkiaRenderer</UnoFeatures>
12
+ </PropertyGroup>
13
+ </Project>
14
+ ```
15
+
16
+ Shared XAML and Skia rendering do **not** erase host platform conventions: desktop windows still require native menus/shortcuts, minimum resize bounds, and keyboard acceleration; mobile targets still require safe areas, touch targets, and predictive/swipe back (`pixelcraft-mobile`).
17
+
18
+ ## Token mapping & Uno Toolkit
19
+
20
+ Map DTCG semantic tokens into WinUI-compatible `ResourceDictionary.ThemeDictionaries` (`Default`, `Light`, `HighContrast`) consumed via `{ThemeResource ...}` rather than inline hex literals.
21
+
22
+ Use **Uno Toolkit** (`Uno.Toolkit.UI`) layout and navigation primitives to avoid hand-rolling cross-target layout math:
23
+ - **`AutoLayout`** (Figma-aligned stack/spacing/alignment container with predictable padding/gap),
24
+ - **`SafeArea`** (`utu:SafeArea.Insets="VisibleBounds"` so mobile notches and desktop chrome stay clear),
25
+ - **`NavigationBar`** and **`DrawerControl`** adapting cleanly between narrow mobile panes and wider desktop layouts.
26
+
27
+ ## State management: MVUX & MVVM
28
+
29
+ Alongside standard MVVM (`CommunityToolkit.Mvvm`), Uno provides **MVUX (Model-View-Update eXtended)**—immutable C# records + `IFeed<T>` / `IState<T>` + **`FeedView`** that automatically binds loading, data, empty, and error templates without boolean soup:
30
+
31
+ ```csharp
32
+ public partial record InvoiceModel(IInvoiceService Service)
33
+ {
34
+ public IFeed<IImmutableList<Invoice>> Invoices => Feed.Async(Service.GetAllAsync);
35
+ public IState<string> Filter => State<string>.Value(this, () => string.Empty);
36
+ }
37
+ ```
38
+
39
+ Pair `FeedView` with explicit `ProgressTemplate`, `NoneTemplate` (empty state), and `ErrorTemplate` (with retry command) so every async branch is intentionally designed.
40
+
41
+ ## Typography, motion, accessibility, & Hot Design
42
+
43
+ Bundle font assets in shared resources and verify glyph coverage, DPI scaling, and text rasterization separately on native WinUI vs Skia Desktop vs WebAssembly. Keep WinUI/XAML transitions concise and honor host reduced-motion preferences where exposed (or provide an app-level toggle on targets without OS hook parity).
44
+
45
+ Uno implements the WinUI UI Automation model (`AutomationProperties.Name`, `LabeledBy`, `HeadingLevel`, `LiveSetting`) with renderer-dependent maturity across WinUI, Skia Desktop (Windows/macOS/Linux), mobile, and WASM. Prefer standard controls with built-in automation peers and verify actual Narrator/VoiceOver/Orca/TalkBack trees per shipped target rather than extrapolating from Windows alone.
46
+
47
+ **Hot Design** (runtime visual designer + XAML/C# Hot Reload) accelerates layout iteration on a live running app, but tweaking spacing inside Hot Design is **not** verification for keyboard traversal, High Contrast, DPI scaling, or OS accessibility.
48
+
49
+ ## Do/don't pairs
50
+
51
+ | Do | Don't |
52
+ |---|---|
53
+ | Use `Uno.Sdk` Single Project + `<UnoFeatures>` + `ThemeDictionaries` | Duplicate per-platform head projects and inline hex brushes |
54
+ | Pair MVUX `IFeed<T>` with explicit `FeedView` error/empty/loading templates | Leave unhandled async exceptions or blank screens on empty feeds |
55
+ | Use Uno Toolkit `SafeArea` & adaptive desktop/mobile navigation | Ship a mobile bottom tab bar unchanged on 1440px Skia Desktop |
56
+ | Verify `AutomationProperties` and keyboard navigation on each target renderer | Assume WinUI accessibility automatically guarantees Skia Linux/WASM parity |
57
+
58
+ ## Known traps
59
+
60
+ Renderer parity differences between native WinUI, Skia Desktop, and WASM, missing `HighContrast` theme dictionary keys, unverified Skia font fallbacks on Linux, cold-start WASM payload bloat without AOT/trimming profiling, treating Hot Design previews as cross-OS QA.
61
+
62
+ ## Verification commands
63
+
64
+ ```sh
65
+ dotnet build
66
+ dotnet test
67
+ # Run target framework explicitly (e.g., Skia Desktop or Windows):
68
+ dotnet run -f net9.0-desktop
69
+ ```
70
+
71
+ `dotnet build` and `dotnet test` provide `static` evidence. Run each shipped target framework (Skia Desktop on macOS/Linux/Windows, native WinUI, mobile, or WASM) across keyboard navigation, screen readers, Dark/High Contrast modes, resize/DPI, and offline/resume states for `rendered` evidence; label untested targets `not-checked`.
@@ -0,0 +1,98 @@
1
+ # WinUI 3 & WPF (Windows desktop)
2
+
3
+ WinUI 3 (Windows App SDK) and .NET 9/10 WPF share XAML lineage but differ significantly in theming, bindings, titlebars, and deployment—apply the idioms for the stack actually in use.
4
+
5
+ ## Choosing & separating WinUI 3 vs .NET 9/10 WPF
6
+
7
+ | Dimension | WinUI 3 / Windows App SDK | .NET 9/10 WPF |
8
+ |---|---|---|
9
+ | **Theming & dark mode** | `ThemeResource` + `ResourceDictionary.ThemeDictionaries` (`Default`, `Light`, `HighContrast`) | Built-in **WPF Fluent Theme**: set `ThemeMode="System"` (`Light`/`Dark`/`None`) on `Application` or `Window` |
10
+ | **Data binding** | Prefer **`{x:Bind}`** (compile-time checked, faster, default `Mode=OneTime`—set `Mode=OneWay` for updates) | `{Binding}` with `INotifyPropertyChanged` / `CommunityToolkit.Mvvm` |
11
+ | **Backdrop & titlebar** | `MicaBackdrop` (`Base`/`BaseAlt`), `DesktopAcrylicBackdrop`, `AppWindowTitleBar` (`ExtendsContentIntoTitleBar`, `SetDragRectangles`) | Fluent window backdrop / `WindowChrome` (avoid legacy Aero/custom non-client hacks that break Snap Layouts) |
12
+ | **Reduced motion** | `new Windows.UI.ViewManagement.UISettings().AnimationsEnabled` | `SystemParameters.ClientAreaAnimation` + `SystemParameters.HighContrast` |
13
+ | **Packaging** | **MSIX packaged** (Windows identity, clean uninstall, Store/App Installer) vs **Unpackaged** (`WindowsPackageType=None`, self-contained WindowsAppSDK for enterprise/legacy installers) | Self-contained / single-file `.exe` / MSI / MSIX |
14
+
15
+ ## Token mapping (WinUI 3 & WPF)
16
+
17
+ Map DTCG semantic tokens into `ThemeDictionaries` (WinUI 3) or merged Fluent resource dictionaries (WPF)—never scatter raw `#FF...` hex colors through pages:
18
+
19
+ ```xml
20
+ <!-- WinUI 3: ThemeDictionaries supporting Dark (Default), Light, and HighContrast -->
21
+ <ResourceDictionary.ThemeDictionaries>
22
+ <ResourceDictionary x:Key="Default">
23
+ <SolidColorBrush x:Key="PcActionBrush" Color="#FF5BB2FF" />
24
+ </ResourceDictionary>
25
+ <ResourceDictionary x:Key="Light">
26
+ <SolidColorBrush x:Key="PcActionBrush" Color="#FF0074CA" />
27
+ </ResourceDictionary>
28
+ <ResourceDictionary x:Key="HighContrast">
29
+ <SolidColorBrush x:Key="PcActionBrush" Color="{ThemeResource SystemColorHighlightColor}" />
30
+ </ResourceDictionary>
31
+ </ResourceDictionary.ThemeDictionaries>
32
+ ```
33
+
34
+ ```xml
35
+ <!-- .NET 9/10 WPF App.xaml: built-in Fluent Theme honoring Windows light/dark & accent -->
36
+ <Application x:Class="InvoiceApp.App"
37
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
38
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
39
+ ThemeMode="System" />
40
+ ```
41
+
42
+ ## WinUI 3 backdrop, titlebar, & reduced-motion idioms
43
+
44
+ Configure `MicaBackdrop`, custom titlebar drag rectangles, and Windows reduced-motion awareness cleanly in C#:
45
+
46
+ ```csharp
47
+ using Microsoft.UI.Composition.SystemBackdrops;
48
+ using Microsoft.UI.Xaml.Media;
49
+ using Windows.UI.ViewManagement;
50
+
51
+ SystemBackdrop = new MicaBackdrop { Kind = MicaKind.BaseAlt };
52
+ ExtendsContentIntoTitleBar = true;
53
+ SetTitleBar(AppTitleBar); // or AppWindow.TitleBar.SetDragRectangles(...) for precise regions
54
+
55
+ var uiSettings = new UISettings();
56
+ bool animationsEnabled = uiSettings.AnimationsEnabled; // disable custom transitions when false
57
+ ```
58
+
59
+ Always keep `AppWindowTitleBar.PreferredHeightOption` tall enough for Windows 11 Snap Layouts hover triggers, and preserve caption button legibility across Light, Dark, and High Contrast modes.
60
+
61
+ ## Layout, typography, accessibility, states, & forms
62
+
63
+ - Use `Grid`, `StackPanel`, `NavigationView` (WinUI 3), `VisualStateManager` adaptive triggers, `UseLayoutRounding="True"`, per-monitor DPI awareness (`PerMonitorV2` across `100%` ↔ `200%` monitors with off-screen bounds clamping on unplug), and minimum window dimensions. Dim titlebar/caption chrome when `WindowActivationState.Deactivated` fires.
64
+ - Respect Windows **Text Scaling** (`UISettings.TextScaleFactor` / `IsTextScaleFactorEnabled="True"` in WinUI 3) and verify ClearType/DirectWrite legibility and localization expansion.
65
+ - Set **`AutomationProperties.Name`**, `AutomationProperties.LabeledBy`, `AutomationProperties.HeadingLevel`, `AutomationProperties.LiveSetting`, keyboard accelerators (`KeyboardAccelerator`), and access keys (`AccessKey`). Verify with **Accessibility Insights for Windows** (UIA tree) plus **`NVDA`**, **`JAWS`**, and **`Narrator`**—custom `ControlTemplate` overrides frequently strip UIA control patterns if not verified.
66
+ - Model MVVM async state via `CommunityToolkit.Mvvm` (`[RelayCommand(IncludeCancelCommand = true)]`), marshal UI updates onto `DispatcherQueue` (WinUI 3) / `Dispatcher` (WPF), keep idle CPU at `~0%` (`< 400 ms` cold start), guard window `Closing` for unsaved documents, and show inline error text (not red borders alone) in forms.
67
+
68
+ ## Atomic `%APPDATA%` storage, `WebView2` hygiene & 2026 Windows signing
69
+
70
+ - **OS-standard paths & atomic writes**: store roaming config under `Environment.SpecialFolder.ApplicationData` (`%APPDATA%\<App>`) and databases/caches/logs under `LocalApplicationData` (`%LOCALAPPDATA%\<App>`)—**never** beside `.exe` inside `Program Files`. Write files atomically (write `.tmp` → `FileStream.Flush(flushToDisk: true)` → `File.Move(..., overwrite: true)` / `File.Replace`) and configure SQLite in `WAL` mode.
71
+ - **Embedded `WebView2` giveaway killers**: whenever hosting `CoreWebView2` inside WinUI/WPF, set `DefaultBackgroundColor = Colors.Transparent` (eliminating dark-mode white flash), disable `AreDefaultContextMenusEnabled`, `AreBrowserAcceleratorKeysEnabled` (`Ctrl+R`/`F5`), `IsPinchZoomEnabled`, and `IsSwipeNavigationEnabled` in production, and enforce `cursor: default` + `user-select: none` on UI chrome ([tauri.md](tauri.md)).
72
+ - **2026 Authenticode & SmartScreen reality**: sign `.exe`/`.msi`/`.msix` via **Azure Artifact Signing (Trusted Signing)** or FIPS 140-2 Level 2+ HSM OV/EV keys (`signtool`). **Note that since 2024 Microsoft removed instant EV certificate SmartScreen bypass**—new EV certs still face SmartScreen until publisher reputation accrues across consistent, reproducible signed CI releases and WinGet/MSIX distribution. Ship cryptographically signed delta updates (**Velopack** or MSIX App Installer) with background staging and crash rollback.
73
+
74
+ ## Do/don't pairs
75
+
76
+ | Do | Don't |
77
+ |---|---|
78
+ | Use `{x:Bind}` + `ThemeResource` + `ThemeDictionaries` (`HighContrast`) in WinUI 3 | Scatter `StaticResource` raw hex brushes that fail Windows High Contrast |
79
+ | Enable `ThemeMode="System"` in .NET 9/10 WPF for modern Fluent dark/light parity | Ship raw 2006 Aero gray styles or broken custom dark-mode hacks |
80
+ | Store config/DB in `%APPDATA%` / `%LOCALAPPDATA%` via `Flush(true)` + atomic `File.Move` + SQLite `WAL` | Write files next to `.exe` in `Program Files` or overwrite user projects non-atomically |
81
+ | Sign CI releases consistently with Azure Artifact Signing / HSM Authenticode + signed Velopack/MSIX updates | Assume buying an EV certificate instantly bypasses Windows SmartScreen in 2026 |
82
+ | Define clean `AppWindowTitleBar` / `SetDragRectangles` preserving Snap Layouts + mixed-DPI clamping | Strip titlebar chrome without drag regions or restore windows off-screen after monitor unplug |
83
+ | Verify UIA tree with Accessibility Insights, `NVDA`, `JAWS`, and `Narrator` | Assume custom XAML templates preserve keyboard focus and screen-reader roles |
84
+
85
+ ## Known traps
86
+
87
+ Forgetting `{x:Bind}` defaults to `Mode=OneTime` (UI stops updating), missing `HighContrast` dictionary entries causing invisible borders/text, `WebView2` flashing white before `DefaultBackgroundColor` applies, unpackaged WinUI 3 missing Windows App Runtime bootstrap, `DispatcherQueue` cross-thread exceptions, fixed-width panels clipping `150%`/`200%` Windows Text Scaling.
88
+
89
+ ## Verification commands
90
+
91
+ ```sh
92
+ dotnet build
93
+ dotnet test
94
+ # Verify Authenticode signature on Windows release artifact:
95
+ signtool verify /pa /v bin/Release/net9.0-windows/win-x64/publish/App.exe
96
+ ```
97
+
98
+ `dotnet build`, `dotnet test`, and `signtool verify` are `static` evidence. Run on real Windows 11 across **Accessibility Insights for Windows**, **`NVDA`**, **`JAWS`**, **`Narrator`**, Windows High Contrast themes, Dark/Light mode, `100%` ↔ `200%` mixed-DPI & Text Scaling, Snap Layouts, and dirty-close recovery for `rendered` evidence; label untested configurations `not-checked`.
@@ -0,0 +1,84 @@
1
+ # Working context: linked panes, persistence, and multi-monitor safety
2
+
3
+ In desktop editors, debuggers, CAD tools, and inspectors, secondary panes exist to act on a specific subject in the primary canvas or source view. Never let a detached inspector or result pane leave its subject ambiguous.
4
+
5
+ ## Linked source, canvas, & inspector context
6
+
7
+ - **Mark the active subject in both places**: a debugger marks the paused source line with an icon + highlight while the call-stack pane names the selected frame and file:line; a document inspector names the selected layer/node in its header while the canvas renders selection handles. Never rely on color alone—pair visual selection with a text label, icon, or breadcrumb.
8
+ - **Explicit empty & multi-selection states**: when nothing is selected, show document/page properties or a clear `"No item selected"` state rather than stale fields from the previous item. When N items are selected, show `"3 layers selected"`, display shared values, and label divergent fields `"Mixed"` rather than silently overwriting differing values on blur.
9
+ - **Bi-directional synchronization**: navigating to an error/search result focuses and scrolls the primary pane without stealing keyboard focus unintentionally; editing a property in the inspector updates the primary view with a single coherent undo step (`Cmd/Ctrl+Z`).
10
+
11
+ ## Pane focus-ring traversal (`F6`)
12
+
13
+ Keyboard-only users must traverse major workspace regions without tabbing through 200 toolbar or tree items:
14
+
15
+ | Shortcut | Action |
16
+ |---|---|
17
+ | `F6` / `Shift+F6` (Windows/Linux) or `Ctrl+F6` / documented landmark key (macOS) | Cycle focus between primary landmark panes (Sidebar → Editor/Canvas → Inspector → Bottom Output/Console) while restoring the last focused item inside each pane. |
18
+ | `Escape` | Return focus from a secondary inspector, search bar, or quick-filter input back to the primary working canvas/editor without clearing the active selection. |
19
+ | `Cmd/Ctrl+B`, `Cmd/Ctrl+Alt+I`, etc. | Toggle sidebar/inspector visibility via discoverable menu commands so collapsed panes remain reachable when hidden. |
20
+
21
+ ## Minimum-width disclosure fallback
22
+
23
+ Define a tested minimum window width (e.g., `720–900 px` logical) and split-pane minimum widths so panes cannot be dragged to an irreversible `0 px` slit:
24
+
25
+ - Below the multi-pane threshold, collapse the secondary inspector into a tab, slide-over drawer, or temporary sheet—preserving the active selection and keeping all inspector commands accessible in menus and the command palette.
26
+ - Provide a visible re-open button and menu toggle whenever a pane is collapsed; persist collapsed/expanded state independently of last known width so reopening restores a usable width.
27
+
28
+ ## Full workspace session restoration & multi-monitor clamping
29
+
30
+ Store workspace and session state in a versioned schema (JSON/SQLite/Preferences) so restarts restore **open windows, tabs, split ratios, active/dirty documents, scroll offsets, and selection** without crashing across schema upgrades:
31
+
32
+ ```json
33
+ {
34
+ "schemaVersion": 2,
35
+ "windows": [{
36
+ "width": 1280, "height": 800, "x": 120, "y": 80, "maximized": false, "displayId": "DELL-U2723QE",
37
+ "openTabs": ["doc-1", "doc-2"], "activeTab": "doc-2",
38
+ "panes": { "sidebarOpen": true, "sidebarWidth": 260, "inspectorOpen": true, "inspectorWidth": 320 }
39
+ }]
40
+ }
41
+ ```
42
+
43
+ **Multi-monitor & mixed-DPI (`100%` ↔ `200%`) clamping rule**: users unplug external monitors, drag windows between `100%` 1080p and `200%` 4K/Retina displays, and rearrange display layouts. Persist logical DIPs alongside display scale/ID, handle live `PerMonitorV2` / backing-scale changes cleanly, and on restore (on X11/Windows/macOS where coordinates apply; on Wayland persist only `width`/`height`/maximized because Wayland disallows global positioning):
44
+
45
+ 1. Enumerate all currently connected displays' **usable work areas** (excluding taskbar/dock/menu bar).
46
+ 2. Verify that at least the window's titlebar drag band and a usable portion (e.g., ≥ `120×80 px`) intersect a connected display's work area.
47
+ 3. If the saved bounds fall off-screen or exceed the current display's work area, clamp `width`/`height` to the primary display's work area and re-center the window—**never restore an unreachable off-screen window**.
48
+
49
+ ## Performance envelope, OS-standard paths, clean uninstall & support logs
50
+
51
+ - **Startup, idle CPU & 30-minute active RAM budgets**: hit **`< 300–500 ms`** cold start on Native/Tauri/Rust/C++/Qt/AppKit/WinUI/GTK apps and **`< 1.0–1.2 s`** on Electron (whose Chromium memory footprint must be explicitly justified in the project brief). Maintain **`~0%` idle CPU** when minimized, occluded, or unfocused, **measure RSS/private RAM after 30 minutes of active editing/navigation** to confirm zero unbounded leaks against the agreed ceiling, and run heavy file/Git/SQLite/indexing work on background worker threads or utility processes.
52
+ - **High-contrast OS modes**: honor **Windows `forced-colors` / High Contrast themes** (`SystemColors` / `@media (forced-colors: active)`) and **macOS `Increase Contrast` + `Reduce Transparency`** so borders, focus rings, selection states, and translucent sidebars stay unmistakable.
53
+ - **OS-standard storage paths**: **never** write user config, caches, databases, or logs next to the application binary (`Program Files`, `/Applications`, `/usr/bin` are read-only or invalidate code signatures). Resolve platform-standard directories (`directories` crate in Rust, `app.getPath()` in Electron, `QStandardPaths` in Qt, `os.UserConfigDir()` in Go):
54
+ - **macOS**: `~/Library/Application Support/<AppId>`, `~/Library/Caches/<AppId>`, `~/Library/Logs/<AppId>`
55
+ - **Windows**: `%APPDATA%\<AppId>` (roaming config), `%LOCALAPPDATA%\<AppId>` (local DB, cache, logs)
56
+ - **Linux**: XDG Base Directory spec (`$XDG_CONFIG_HOME`, `$XDG_DATA_HOME`, `$XDG_STATE_HOME`, `$XDG_CACHE_HOME`)
57
+ - **Atomic file persistence (`write temp → fsync → rename`) & SQLite `WAL`**: never `truncate` + overwrite project files or `settings.json` in place; write to `<target>.tmp.<pid>` in the same directory, flush kernel buffers (`File::sync_all()` / `fsync` / `FlushFileBuffers`), and atomically `rename` onto `<target>`. Configure SQLite with `PRAGMA journal_mode = WAL; PRAGMA synchronous = NORMAL; PRAGMA foreign_keys = ON; PRAGMA busy_timeout = 5000;` and numbered migrations.
58
+ - **Clean uninstaller & opt-in support log export**: ensure uninstallers cleanly remove binaries, background helpers/daemons, `LaunchAgents`, Windows Services, file associations, and registry keys (prompting before deleting user workspaces), and provide a one-click **opt-in diagnostic/support log export** (`Help → Export Diagnostic Logs…`) with auth tokens, secrets, and PII automatically redacted.
59
+
60
+ ## 2026 code signing, clean-VM install proof & live `v(N-1) -> vN` update rollback
61
+
62
+ - **macOS**: sign with **Developer ID Application** + **Hardened Runtime** + minimal audited Entitlements, submit via **`xcrun notarytool submit --wait`**, staple (`xcrun stapler staple`), and capture a **clean-VM install screenshot** verifying Gatekeeper opens the app cleanly without `"unidentified developer"` blocks.
63
+ - **Windows (post-2024 EV SmartScreen reality)**: sign `.exe`/`.msi`/`.msix` via **Azure Artifact Signing (Trusted Signing)** or FIPS 140-2 Level 2+ HSM-backed OV/EV certificates, and capture a **clean-VM install screenshot** documenting exact SmartScreen/publisher behavior (**since 2024, Microsoft removed instant EV certificate SmartScreen bypass**, so reputation builds across consistent signed CI releases under one stable publisher identity).
64
+ - **Linux**: ship `.deb`/`.rpm`, **Flatpak** (with XDG Portals + valid AppStream metainfo XML), or GPG-signed **AppImage**.
65
+ - **Live `v(N-1) -> vN` delta auto-update + rollback verification**: sign update manifests and delta bundles with **`Ed25519` / `minisign`** (`tauri-plugin-updater`, Sparkle 2 `EdDSA`, Velopack, or verified `electron-updater`), stage silently in the background, prompt before restarting dirty windows, and **test a live upgrade AND simulated crash rollback across 2 consecutive packaged versions (`v(N-1) -> vN`)** before release.
66
+
67
+ ## Do/don't pairs
68
+
69
+ | Do | Don't |
70
+ |---|---|
71
+ | Show selected object name/breadcrumb in the inspector header AND mark it on canvas | Leave stale fields in a detached inspector when selection clears |
72
+ | Support `F6`/`Shift+F6` pane hopping, `Esc` back to canvas, and Windows `forced-colors` + macOS `Increase Contrast` | Force keyboard users to `Tab` through 100 tree rows or hide borders in High Contrast mode |
73
+ | Restore full workspace sessions (windows, tabs, active docs) and clamp bounds across mixed-DPI (`100%` ↔ `200%`) work areas | Restore `x: 2800, y: 100` onto an unplugged monitor or drop open tabs on restart |
74
+ | Store data in XDG / `Application Support` / `%APPDATA%` with atomic writes, clean uninstallers, and redacted support log export | Write `config.json` beside the binary or leave orphan daemons/registry keys after uninstall |
75
+ | Capture clean-VM Gatekeeper/SmartScreen install proofs and test live `v(N-1) -> vN` updates + rollback | Assume a Windows EV cert buys instant SmartScreen bypass or ship an untested auto-updater |
76
+ | Hold `~0%` idle CPU and verify steady RAM after **30 minutes of active usage** | Spin background timers in minimized windows or ignore slow memory leaks |
77
+
78
+ ## Verification checks
79
+
80
+ Verify in a real running desktop app (`rendered`; static showcase screenshots never prove keyboard traversal, clamping, signing, or restoration—label untested OSes `not-checked`):
81
+
82
+ 1. Select an item, press `F6` to move to the inspector, edit a field, press `Esc` back to canvas, and undo (`Cmd/Ctrl+Z`): verify selection, focus ring, High Contrast / `Increase Contrast` visibility, and undo agree (`rendered`).
83
+ 2. Open multiple windows/tabs/documents, resize down to minimum width, drag between `100%` and `200%` DPI displays, seed off-screen coordinates (`x: 9999`), relaunch, and verify full session restoration + on-screen clamping (`rendered`).
84
+ 3. Measure `~0%` idle CPU and **RAM after 30 minutes of active usage**, verify atomic save + clean uninstall + redacted log export, walk `NVDA`/`JAWS`/`Narrator`, `VoiceOver`, and `Orca`, and attach **clean-VM Gatekeeper/SmartScreen install screenshots** plus **live `v(N-1) -> vN` update + rollback** evidence (`rendered` / `static`).
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: pixelcraft-direction
3
+ description: Generates distinctive visual direction without template collapse. Use when starting a new UI, redesigning a surface, choosing an aesthetic direction, fighting generic AI-looking design, creating a design concept, or checking repetition against prior builds. Extracts the brief and real material, samples several far-apart directions, scores and commits to one, defines a signature element, maintains .pixelcraft/history.json, and scans for slop fingerprints.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft direction
10
+
11
+ Divergence is a procedure, not a mood. Never ask for “the best design” in one shot; generate a small distribution of materially different directions, score them against evidence, then commit.
12
+
13
+ ## References
14
+
15
+ - Read [references/creative-brainstorming.md](references/creative-brainstorming.md) before pitching directions on any greenfield, redesign, or undecided surface (3-Tier Ambition Pitch, Ideation Operators, ASCII structural proof, Design Approval `<HARD-GATE>`, and feedback loop to `pixelcraft-plan`).
16
+ - Read [references/movements.md](references/movements.md) when selecting or translating a design movement/aesthetic.
17
+ - Read [references/composition-library.md](references/composition-library.md) when choosing the structural composition/grid or when hero-plus-cards feels like the default answer.
18
+ - Read [references/slop-fingerprints.md](references/slop-fingerprints.md) before proposing directions and again before finalizing one.
19
+ - Read [references/direction-card.md](references/direction-card.md) whenever writing the committed direction.
20
+ - Read [references/direction-scoring.md](references/direction-scoring.md) before comparing or selecting directions.
21
+ - Read [references/repetition-history.md](references/repetition-history.md) before generating candidates and when writing the final repetition check.
22
+ - Read [references/motion-identity.md](references/motion-identity.md) when defining a consistent motion language.
23
+ - Read [references/reference-analysis.md](references/reference-analysis.md) when researching visual examples and transferring patterns with provenance and evidence labels.
24
+ - Read [references/wildcards.md](references/wildcards.md) when catalog directions feel repetitive, insufficiently subject-derived, or too safe.
25
+
26
+ ## 1. Extract brief and material first
27
+
28
+ Before ideation, record:
29
+
30
+ | Field | Required content |
31
+ |---|---|
32
+ | subject | what the thing actually is, in domain vocabulary |
33
+ | audience | who uses/reads it, expertise, locale/language scope, accessibility needs |
34
+ | job | primary job-to-be-done and success signal |
35
+ | mode | Persuade, Operate, Read, Experience, Play, Communicate, or hybrid |
36
+ | material | real copy, data, images, products, brand assets, screenshots, terminology |
37
+ | constraints | platform, input modality, viewport/window, performance, legal, existing tokens/components, user anti-goals/hate-list |
38
+ | absence | what is unknown or missing; mark it instead of inventing proof |
39
+
40
+ Use real material as a constraint. If the subject is absent from the visual concept, the direction is decoration.
41
+
42
+ ## 2. Verbalized-sampling & 3-tier creative brainstorming
43
+
44
+ Generate 3–5 directions using [references/creative-brainstorming.md](references/creative-brainstorming.md) (3-Tier Ambition Pitch + Ideation Operators: Domain-Object Transfer, Constraint Inversion, Anti-Reference Extraction, Real-Material Anchor). Assign each a rough probability that a conventional model would choose it; do not treat probability as quality. At least one direction must have low conventional probability but high brief fit.
45
+
46
+ Every pair of directions must differ on at least three axes:
47
+
48
+ 1. composition/grid & IA structure;
49
+ 2. typography/voice;
50
+ 3. color posture;
51
+ 4. material/texture/depth;
52
+ 5. motion behavior;
53
+ 6. imagery/iconography;
54
+ 7. density/information structure & technical craft ambition.
55
+
56
+ Do not create false diversity by changing only hue or font. Reject near-duplicates and regenerate. Every pitched direction MUST include a compact **ASCII structural skeleton** and a **real-copy headline/primary action draft**.
57
+
58
+ ## 3. Score before choosing
59
+
60
+ Score each direction 0–4 across all 12 criteria defined in `references/direction-scoring.md`. Require concrete evidence notes for **high scores (3–4)** as well as low/uncertain scores (0–2)—never rubber-stamp a favorite template with unsubstantiated 4s.
61
+
62
+ | Criterion | Question |
63
+ |---|---|
64
+ | subject fit | does it arise from the actual domain/material? |
65
+ | task/mode fit | does expression match user success and frequency of use? |
66
+ | prototypicality | does it preserve learned platform/domain recognition where helpful? |
67
+ | hierarchy clarity | is the next decision obvious without reading every pixel? |
68
+ | visual complexity | does element count, grouping, and density match the mode? |
69
+ | accessibility risk | can contrast, text scaling, focus, motion safety, and cognitive load be preserved? |
70
+ | localization risk | does the layout/type system survive expansion, RTL, and script shaping? |
71
+ | platform transfer | can it be idiomatic in the target stack and input modality? |
72
+ | implementation cost | can it be built honestly within project constraints and timeline? |
73
+ | distinctiveness | is it meaningfully apart from slop fingerprints and prior project history? |
74
+ | content truth | is every claim, metric, copy block, and visual backed by real provenance? |
75
+ | coherence | can one system sustain all required states, modes, and screens? |
76
+
77
+ Apply mode weights from `references/direction-scoring.md`. Hard floor/legal/truth failures are disqualifying regardless of total. Log why every losing direction lost using criterion names; “less pretty” is not a reason.
78
+
79
+ ## 4. Design Approval `<HARD-GATE>` & commit to one direction
80
+
81
+ On **greenfield products, new multi-screen features, or undecided redesigns**, present the top 2–3 contrasting directions—each with its ambition tier, ASCII structural skeleton, real-copy lead draft, signature element, and stack/library impact, leading with your `(Recommended)` choice—and **wait for explicit user approval before entering Build**. Only bypass this `<HARD-GATE>` when the user explicitly tells you to decide and build directly, or when an already-approved design fixes the direction.
82
+
83
+ If the approved direction requires upgrading the renderer, runtime, or library (e.g., Rive, WebGPU, Typst, Tauri, or native desktop/mobile), reopen and update `.pixelcraft/plan.md` via `pixelcraft-plan` before coding.
84
+
85
+ Write the committed direction card (`references/direction-card.md`) including: concept, ASCII structural skeleton, real-copy lead draft, composition/grid, type roles & script fallback, color posture/semantic roles, material/depth rules, motion + reduced-motion equivalent, imagery/icon provenance, one subject-derived signature element, explicit taboos, and floor validation plan. Spend boldness in one primary place; keep everything around the signature disciplined for the mode.
86
+
87
+ ## 5. Signature element
88
+
89
+ Define exactly one memorable element unless the brief is explicitly maximalist. It must be derived from subject or material, repeatable without decoration spam, implementable in the target surface, legible/accessible without relying on motion or color alone, and quiet/removable in dense Operate contexts. Valid: measurement-scale nav for a precision instrument; botanical plate index for a seed archive. Invalid: random gradient blob, generic 3D shape, oversized italic word, glass card, animated grid background.
90
+
91
+ ## 6. Repetition history
92
+
93
+ Use `.pixelcraft/history.json` in the user's project when writable. Never commit it for the user unless asked. The canonical schema, normalization rules, recall procedure, and privacy limits live in `references/repetition-history.md`. Before proposing directions, inspect prior entries and penalize repeats of the same movement, composition family, color posture, type pairing, signature shape, or copy formula across unrelated surfaces.
94
+
95
+ ## 7. Slop scan
96
+
97
+ Reject or explicitly redesign any direction whose identity depends on a fingerprint in `references/slop-fingerprints.md`—including cream+serif+terracotta neo-slop, Inter/Geist-only defaults, indigo-purple-pink mesh gradients, border-beam cards, centered eyebrow+H1+2-CTA hero + 3 tinted-`40×40`-icon cards, pulsing `animate-ping` status pills, fake sparklines/`+24.5%` KPI deltas, emoji-as-icons, default shadcn zinc skins, generic AI marketing clichés (`next-gen`, `effortless`, `empower`, `streamline`, `reimagine`, `unleash`, `supercharge`), or implementation laziness stubs. A fingerprint may be used only when the user/project already owns it or the brief makes it semantically necessary; record the waiver.
98
+
99
+ ## Iron Laws & Rationalization Table
100
+
101
+ - **IRON LAW 1:** Never pitch 3 color/font swaps of the same wireframe; every option must differ on IA/structure, visual posture, and craft ambition—proven by an ASCII skeleton and real-copy lead draft.
102
+ - **IRON LAW 2:** Never enter Build on undecided greenfield or redesign scope without passing the **Design Approval `<HARD-GATE>`** (unless explicitly instructed to decide and build directly).
103
+ - **IRON LAW 3:** Never assign a 3 or 4 score without citing concrete structural/material evidence.
104
+
105
+ | Agent rationalization | Reality & required action |
106
+ |---|---|
107
+ | "I'll pick one strong direction myself and start coding to save time." | Unapproved guesses waste implementation work and collapse to model defaults. Pitch 2–3 contrasting directions with ASCII skeletons and get sign-off first. |
108
+ | "I described the layout in prose; an ASCII skeleton is overkill." | Prose lets implementation quietly revert to hero+3-cards. Draw the ASCII skeleton and real-copy lead before committing. |
109
+ | "All three directions use the same layout, just light/dark/accent swaps." | Color swaps are not divergence. Apply Domain-Object Transfer, Constraint Inversion, and Anti-Reference Extraction to change structure. |
110
+ | "This direction fits best, so I'll give it straight 4s." | Unsubstantiated 4s mask bias and floor risks. Cite concrete evidence for every 3–4 score and every 0–2 risk. |
111
+
112
+ ## Pre-submit checklist
113
+
114
+ - [ ] Real brief material, user anti-goals/hate-list, and missing provenance inventoried before ideation.
115
+ - [ ] 3–5 genuinely divergent directions generated across the 3-Tier Ambition Pitch using at least two Ideation Operators (not hue/font swaps).
116
+ - [ ] Every pitched direction includes a compact **ASCII structural skeleton** and **real-copy headline/primary action draft**.
117
+ - [ ] All 12 criteria scored with concrete evidence notes for **high scores (3–4)** as well as low/uncertain scores (0–2); losing directions logged by criterion name.
118
+ - [ ] `.pixelcraft/history.json` checked and `references/slop-fingerprints.md` cleared (or user brand waiver recorded).
119
+ - [ ] **Design Approval `<HARD-GATE>`** satisfied (or explicit user bypass recorded) and `.pixelcraft/plan.md` updated if the winning concept upgrades the stack/renderer.
120
+ - [ ] Committed direction card complete with one subject-derived signature element and explicit taboos.