@thanhnguyxn/pixelcraft 0.0.0-stage → 0.1.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 (297) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +20 -0
  3. package/.claude-plugin/plugin.json +11 -0
  4. package/LICENSE +21 -0
  5. package/README.md +407 -2
  6. package/assets/README.md +28 -0
  7. package/assets/pixelcraft-logo-512.png +0 -0
  8. package/bin/pixelcraft.mjs +444 -0
  9. package/docs/ARCHITECTURE.md +102 -0
  10. package/docs/DESIGN-RATIONALE.md +143 -0
  11. package/evals/README.md +27 -0
  12. package/evals/fixtures/README.md +36 -0
  13. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  14. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  15. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  16. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  17. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  18. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  19. package/evals/fixtures/workflow-checkpoints.json +30 -0
  20. package/evals/pixelcraft-accessibility.md +57 -0
  21. package/evals/pixelcraft-brandkit.md +58 -0
  22. package/evals/pixelcraft-chat-ui.md +55 -0
  23. package/evals/pixelcraft-constrained.md +55 -0
  24. package/evals/pixelcraft-craft.md +60 -0
  25. package/evals/pixelcraft-data-apps.md +55 -0
  26. package/evals/pixelcraft-dataviz.md +59 -0
  27. package/evals/pixelcraft-desktop.md +55 -0
  28. package/evals/pixelcraft-direction.md +60 -0
  29. package/evals/pixelcraft-document.md +55 -0
  30. package/evals/pixelcraft-email.md +55 -0
  31. package/evals/pixelcraft-extensions.md +55 -0
  32. package/evals/pixelcraft-game-ui.md +59 -0
  33. package/evals/pixelcraft-handoff.md +57 -0
  34. package/evals/pixelcraft-media.md +55 -0
  35. package/evals/pixelcraft-mobile.md +59 -0
  36. package/evals/pixelcraft-patterns.md +57 -0
  37. package/evals/pixelcraft-plan.md +65 -0
  38. package/evals/pixelcraft-review.md +63 -0
  39. package/evals/pixelcraft-spatial.md +55 -0
  40. package/evals/pixelcraft-tokens.md +57 -0
  41. package/evals/pixelcraft-tui.md +55 -0
  42. package/evals/pixelcraft-ux.md +59 -0
  43. package/evals/pixelcraft-visual-qa.md +80 -0
  44. package/evals/pixelcraft-web.md +71 -0
  45. package/evals/pixelcraft.md +70 -0
  46. package/gemini-extension.json +5 -0
  47. package/install.ps1 +295 -0
  48. package/install.sh +437 -0
  49. package/package.json +63 -4
  50. package/plugin.json +24 -0
  51. package/scripts/build-adapters.mjs +290 -0
  52. package/scripts/build-release-archives.mjs +61 -0
  53. package/scripts/build-skill-zips.mjs +94 -0
  54. package/scripts/test-build-adapters.mjs +48 -0
  55. package/scripts/test-distribution.mjs +124 -0
  56. package/scripts/test-export-tokens.mjs +105 -0
  57. package/scripts/test-finish-gate.mjs +148 -0
  58. package/scripts/test-installers.mjs +67 -0
  59. package/scripts/test-release-archives.mjs +42 -0
  60. package/scripts/test-shoot.mjs +65 -0
  61. package/scripts/test-slop-scan.mjs +29 -0
  62. package/scripts/test-style-inventory.mjs +211 -0
  63. package/scripts/test-validate-skills.mjs +117 -0
  64. package/scripts/validate-skills.mjs +512 -0
  65. package/skills/pixelcraft/SKILL.md +135 -0
  66. package/skills/pixelcraft/references/design-brief.md +75 -0
  67. package/skills/pixelcraft/references/floor.md +73 -0
  68. package/skills/pixelcraft/references/report-template.md +35 -0
  69. package/skills/pixelcraft/references/stack-detection.md +155 -0
  70. package/skills/pixelcraft/references/surface-acceptance.md +40 -0
  71. package/skills/pixelcraft/references/workflow-checkpoints.md +29 -0
  72. package/skills/pixelcraft-accessibility/SKILL.md +33 -0
  73. package/skills/pixelcraft-accessibility/references/apg-patterns.md +51 -0
  74. package/skills/pixelcraft-accessibility/references/platforms.md +58 -0
  75. package/skills/pixelcraft-accessibility/references/verification.md +59 -0
  76. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +66 -0
  77. package/skills/pixelcraft-brandkit/SKILL.md +115 -0
  78. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +125 -0
  79. package/skills/pixelcraft-brandkit/references/brand-governance.md +80 -0
  80. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  81. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  82. package/skills/pixelcraft-brandkit/references/logo-methods.md +98 -0
  83. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  84. package/skills/pixelcraft-brandkit/references/prompt-template.md +85 -0
  85. package/skills/pixelcraft-brandkit/references/qa-checklist.md +88 -0
  86. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  87. package/skills/pixelcraft-chat-ui/SKILL.md +53 -0
  88. package/skills/pixelcraft-chat-ui/references/conversation-design.md +78 -0
  89. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +87 -0
  90. package/skills/pixelcraft-chat-ui/references/slack-discord.md +96 -0
  91. package/skills/pixelcraft-constrained/SKILL.md +51 -0
  92. package/skills/pixelcraft-constrained/references/specialized-hardware.md +66 -0
  93. package/skills/pixelcraft-constrained/references/tv-wearables.md +84 -0
  94. package/skills/pixelcraft-constrained/references/voice-ui.md +63 -0
  95. package/skills/pixelcraft-craft/SKILL.md +44 -0
  96. package/skills/pixelcraft-craft/references/color.md +69 -0
  97. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  98. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  99. package/skills/pixelcraft-craft/references/layout.md +41 -0
  100. package/skills/pixelcraft-craft/references/motion.md +76 -0
  101. package/skills/pixelcraft-craft/references/typography.md +71 -0
  102. package/skills/pixelcraft-data-apps/SKILL.md +67 -0
  103. package/skills/pixelcraft-data-apps/references/dash.md +53 -0
  104. package/skills/pixelcraft-data-apps/references/evidence.md +75 -0
  105. package/skills/pixelcraft-data-apps/references/gradio.md +65 -0
  106. package/skills/pixelcraft-data-apps/references/julia-genie.md +54 -0
  107. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +53 -0
  108. package/skills/pixelcraft-data-apps/references/nicegui.md +63 -0
  109. package/skills/pixelcraft-data-apps/references/observable-framework.md +67 -0
  110. package/skills/pixelcraft-data-apps/references/panel.md +53 -0
  111. package/skills/pixelcraft-data-apps/references/r-shiny.md +54 -0
  112. package/skills/pixelcraft-data-apps/references/reflex.md +62 -0
  113. package/skills/pixelcraft-data-apps/references/shiny.md +53 -0
  114. package/skills/pixelcraft-data-apps/references/streamlit.md +65 -0
  115. package/skills/pixelcraft-dataviz/SKILL.md +63 -0
  116. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  117. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  118. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +97 -0
  119. package/skills/pixelcraft-dataviz/references/libraries.md +57 -0
  120. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +99 -0
  121. package/skills/pixelcraft-desktop/SKILL.md +71 -0
  122. package/skills/pixelcraft-desktop/references/appkit.md +58 -0
  123. package/skills/pixelcraft-desktop/references/avalonia.md +59 -0
  124. package/skills/pixelcraft-desktop/references/cpp-gui.md +52 -0
  125. package/skills/pixelcraft-desktop/references/electron.md +54 -0
  126. package/skills/pixelcraft-desktop/references/go-gui.md +54 -0
  127. package/skills/pixelcraft-desktop/references/gtk.md +54 -0
  128. package/skills/pixelcraft-desktop/references/javafx-swing.md +52 -0
  129. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +61 -0
  130. package/skills/pixelcraft-desktop/references/rust-gui.md +65 -0
  131. package/skills/pixelcraft-desktop/references/tauri.md +54 -0
  132. package/skills/pixelcraft-desktop/references/uno-platform.md +52 -0
  133. package/skills/pixelcraft-desktop/references/winui-wpf.md +58 -0
  134. package/skills/pixelcraft-desktop/references/working-context.md +5 -0
  135. package/skills/pixelcraft-direction/SKILL.md +154 -0
  136. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  137. package/skills/pixelcraft-direction/references/direction-card.md +54 -0
  138. package/skills/pixelcraft-direction/references/direction-scoring.md +72 -0
  139. package/skills/pixelcraft-direction/references/movements.md +68 -0
  140. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  141. package/skills/pixelcraft-direction/references/slop-fingerprints.md +58 -0
  142. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  143. package/skills/pixelcraft-document/SKILL.md +54 -0
  144. package/skills/pixelcraft-document/references/archetypes.md +83 -0
  145. package/skills/pixelcraft-document/references/pdf-tools.md +154 -0
  146. package/skills/pixelcraft-document/references/print-css.md +134 -0
  147. package/skills/pixelcraft-document/references/slides.md +102 -0
  148. package/skills/pixelcraft-email/SKILL.md +58 -0
  149. package/skills/pixelcraft-email/references/client-quirks.md +45 -0
  150. package/skills/pixelcraft-email/references/html-tables.md +53 -0
  151. package/skills/pixelcraft-email/references/mjml.md +52 -0
  152. package/skills/pixelcraft-email/references/react-email.md +53 -0
  153. package/skills/pixelcraft-extensions/SKILL.md +51 -0
  154. package/skills/pixelcraft-extensions/references/browser-extensions.md +31 -0
  155. package/skills/pixelcraft-extensions/references/figma-office.md +23 -0
  156. package/skills/pixelcraft-extensions/references/raycast.md +19 -0
  157. package/skills/pixelcraft-extensions/references/vscode-webviews.md +26 -0
  158. package/skills/pixelcraft-game-ui/SKILL.md +61 -0
  159. package/skills/pixelcraft-game-ui/references/bevy.md +52 -0
  160. package/skills/pixelcraft-game-ui/references/godot.md +57 -0
  161. package/skills/pixelcraft-game-ui/references/hud-principles.md +38 -0
  162. package/skills/pixelcraft-game-ui/references/love2d.md +51 -0
  163. package/skills/pixelcraft-game-ui/references/monogame.md +52 -0
  164. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +65 -0
  165. package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -0
  166. package/skills/pixelcraft-handoff/SKILL.md +49 -0
  167. package/skills/pixelcraft-handoff/references/design-translation.md +104 -0
  168. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  169. package/skills/pixelcraft-media/SKILL.md +52 -0
  170. package/skills/pixelcraft-media/references/banners-video.md +112 -0
  171. package/skills/pixelcraft-media/references/og-generation.md +107 -0
  172. package/skills/pixelcraft-media/references/social-cards.md +72 -0
  173. package/skills/pixelcraft-mobile/SKILL.md +69 -0
  174. package/skills/pixelcraft-mobile/references/dotnet-maui.md +63 -0
  175. package/skills/pixelcraft-mobile/references/flet.md +53 -0
  176. package/skills/pixelcraft-mobile/references/flutter.md +69 -0
  177. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +65 -0
  178. package/skills/pixelcraft-mobile/references/jetpack-compose.md +61 -0
  179. package/skills/pixelcraft-mobile/references/kivy.md +59 -0
  180. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +60 -0
  181. package/skills/pixelcraft-mobile/references/react-native-expo.md +71 -0
  182. package/skills/pixelcraft-mobile/references/swiftui.md +70 -0
  183. package/skills/pixelcraft-mobile/references/task-state-composition.md +5 -0
  184. package/skills/pixelcraft-mobile/references/uikit.md +58 -0
  185. package/skills/pixelcraft-patterns/SKILL.md +58 -0
  186. package/skills/pixelcraft-patterns/references/auth-onboarding.md +25 -0
  187. package/skills/pixelcraft-patterns/references/commerce.md +28 -0
  188. package/skills/pixelcraft-patterns/references/communication.md +26 -0
  189. package/skills/pixelcraft-patterns/references/creative-tools.md +29 -0
  190. package/skills/pixelcraft-patterns/references/dashboard-admin.md +31 -0
  191. package/skills/pixelcraft-patterns/references/marketing.md +32 -0
  192. package/skills/pixelcraft-patterns/references/pattern-selection.md +74 -0
  193. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  194. package/skills/pixelcraft-patterns/references/settings.md +23 -0
  195. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  196. package/skills/pixelcraft-plan/SKILL.md +67 -0
  197. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  198. package/skills/pixelcraft-plan/references/plan-template.md +99 -0
  199. package/skills/pixelcraft-plan/references/repo-discovery.md +42 -0
  200. package/skills/pixelcraft-plan/references/stack-freshness.md +50 -0
  201. package/skills/pixelcraft-plan/references/stack-selection.md +42 -0
  202. package/skills/pixelcraft-review/SKILL.md +64 -0
  203. package/skills/pixelcraft-review/references/audit-report.md +50 -0
  204. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  205. package/skills/pixelcraft-review/references/heuristics.md +18 -0
  206. package/skills/pixelcraft-review/references/personas.md +26 -0
  207. package/skills/pixelcraft-review/references/polish.md +38 -0
  208. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  209. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  210. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  211. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  212. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  213. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  214. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  215. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  216. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  217. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  218. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  219. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  220. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  221. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  222. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  223. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  224. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  225. package/skills/pixelcraft-review/scripts/slop-scan.mjs +586 -0
  226. package/skills/pixelcraft-spatial/SKILL.md +52 -0
  227. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +98 -0
  228. package/skills/pixelcraft-spatial/references/platforms.md +77 -0
  229. package/skills/pixelcraft-tokens/SKILL.md +56 -0
  230. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  231. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  232. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  233. package/skills/pixelcraft-tokens/references/format.md +54 -0
  234. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  235. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  236. package/skills/pixelcraft-tokens/references/theme-presets.md +94 -0
  237. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +285 -0
  238. package/skills/pixelcraft-tui/SKILL.md +60 -0
  239. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +60 -0
  240. package/skills/pixelcraft-tui/references/ink.md +60 -0
  241. package/skills/pixelcraft-tui/references/ratatui.md +62 -0
  242. package/skills/pixelcraft-tui/references/rich.md +62 -0
  243. package/skills/pixelcraft-tui/references/textual.md +67 -0
  244. package/skills/pixelcraft-ux/SKILL.md +46 -0
  245. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  246. package/skills/pixelcraft-ux/references/feedback-performance.md +30 -0
  247. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  248. package/skills/pixelcraft-ux/references/forms.md +97 -0
  249. package/skills/pixelcraft-ux/references/i18n.md +183 -0
  250. package/skills/pixelcraft-ux/references/laws.md +18 -0
  251. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  252. package/skills/pixelcraft-ux/references/state-matrix.md +39 -0
  253. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  254. package/skills/pixelcraft-ux/references/ux-writing.md +43 -0
  255. package/skills/pixelcraft-visual-qa/SKILL.md +82 -0
  256. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  257. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +38 -0
  258. package/skills/pixelcraft-visual-qa/references/capture-email.md +34 -0
  259. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +35 -0
  260. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +31 -0
  261. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  262. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  263. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  264. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +65 -0
  265. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  266. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +135 -0
  267. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  268. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  269. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  270. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  271. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  272. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  273. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  274. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +513 -0
  275. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1154 -0
  276. package/skills/pixelcraft-web/SKILL.md +76 -0
  277. package/skills/pixelcraft-web/references/adaptive-layout.md +25 -0
  278. package/skills/pixelcraft-web/references/angular.md +61 -0
  279. package/skills/pixelcraft-web/references/astro.md +62 -0
  280. package/skills/pixelcraft-web/references/clojurescript.md +53 -0
  281. package/skills/pixelcraft-web/references/elm.md +53 -0
  282. package/skills/pixelcraft-web/references/fsharp-fable.md +53 -0
  283. package/skills/pixelcraft-web/references/html-css.md +88 -0
  284. package/skills/pixelcraft-web/references/htmx-alpine.md +53 -0
  285. package/skills/pixelcraft-web/references/java-web.md +52 -0
  286. package/skills/pixelcraft-web/references/kotlin-web.md +53 -0
  287. package/skills/pixelcraft-web/references/leptos-yew.md +54 -0
  288. package/skills/pixelcraft-web/references/lit-web-components.md +61 -0
  289. package/skills/pixelcraft-web/references/pwa.md +225 -0
  290. package/skills/pixelcraft-web/references/qwik.md +54 -0
  291. package/skills/pixelcraft-web/references/react-next.md +69 -0
  292. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  293. package/skills/pixelcraft-web/references/server-rendered.md +71 -0
  294. package/skills/pixelcraft-web/references/solid.md +60 -0
  295. package/skills/pixelcraft-web/references/svelte.md +61 -0
  296. package/skills/pixelcraft-web/references/tailwind.md +73 -0
  297. package/skills/pixelcraft-web/references/vue-nuxt.md +62 -0
@@ -0,0 +1,75 @@
1
+ # Design brief contract
2
+
3
+ Use this reference before direction, handoff, or implementation whenever the work changes a user-facing surface. The brief is the alignment object: it records what must be true before taste, exploration, or framework choice begins. Keep it short enough that a later agent can read it in one pass.
4
+
5
+ ## Required brief artifact
6
+
7
+ Write or update `.pixelcraft/brief.md` when the project directory is writable. If it is not writable, include the same fields in the working plan/report.
8
+
9
+ ```markdown
10
+ # Design brief
11
+
12
+ ## Outcome
13
+ - User/business outcome:
14
+ - Primary task and success signal:
15
+ - Failure cost if the task fails:
16
+ - Frequency/criticality:
17
+
18
+ ## Audience and context
19
+ - Actors/personas backed by evidence:
20
+ - Expertise, accessibility, locale/language, input modality:
21
+ - Environment/device/network constraints:
22
+
23
+ ## Evidence
24
+ | Fact or requirement | Class | Source/scope |
25
+ |---|---|---|
26
+ | | user-provided / repo-observed / artifact-observed / analytics/research / assumption / unknown | |
27
+
28
+ ## Constraints and authority
29
+ - Explicit user decisions:
30
+ - Existing project authority:
31
+ - Platform/legal/accessibility constraints:
32
+ - Performance/privacy/security constraints:
33
+ - Approval owner and approval state:
34
+
35
+ ## Material inventory
36
+ - Real copy/data/media/assets available:
37
+ - Missing material that must not be invented:
38
+ - Content tone/language constraints:
39
+
40
+ ## Boundaries
41
+ - Non-goals:
42
+ - Explicit anti-goals/taboo patterns:
43
+ - Approved visual scope vs undecided scope:
44
+ - Deadline/cost/implementation budget:
45
+
46
+ ## Validation plan
47
+ - Success measurement:
48
+ - Required states/breakpoints/locales:
49
+ - Rendered/device evidence required:
50
+ - What may be marked `not-checked` and why:
51
+ ```
52
+
53
+ ## Field rules
54
+
55
+ 1. **Outcome before appearance.** “Increase activation by improving first-run completion” is actionable; “make it modern” is not.
56
+ 2. **Evidence class is mandatory.** Do not blend user facts, repository facts, visual-source observations, analytics/research evidence, assumptions, and unknowns into one undifferentiated list.
57
+ 3. **Approval ownership names a role/person when known.** “Team” or “everyone” is not an approval owner.
58
+ 4. **Missing material is a constraint.** Record absent copy, data, imagery, legal text, logo assets, and customer evidence so the agent does not fabricate them.
59
+ 5. **Anti-goals must be behavioral.** “No dashboard clone” is weak; “do not use a three-card feature row as the main structure” is checkable.
60
+ 6. **Validation is part of the brief.** A visual goal without a measurement/rendering plan is incomplete.
61
+ 7. **Update rather than fork.** When scope changes, preserve the old decision, record who/what changed it, and keep the waiver history.
62
+
63
+ ## Minimum viable brief
64
+
65
+ For a small task, do not skip the brief; compress it. Record at least: primary task, audience, evidence class for key facts, hard constraints, approved-vs-undecided visual scope, non-goals, missing material, validation plan, and unresolved questions.
66
+
67
+ ## Escalation triggers
68
+
69
+ Ask or stop when any missing fact changes the outcome materially:
70
+
71
+ - the target user or primary task is unknown;
72
+ - legal/safety/destructive behavior is implied but not specified;
73
+ - visual direction is claimed to be approved but no artifact/scope/version exists;
74
+ - success means a metric but no baseline or measurement source exists;
75
+ - required real content/data/assets are absent and cannot be truthfully represented.
@@ -0,0 +1,73 @@
1
+ # Mandatory cross-platform floor
2
+
3
+ Evidence base: WCAG 2.2, platform target-size guidance, response-time principles, and cross-platform hardening practice.
4
+
5
+ The floor is non-negotiable unless the user explicitly waives a scoped item. It constrains quality, not appearance.
6
+
7
+ ## 1. Truthfulness
8
+
9
+ - Do not invent facts, testimonials, usage counts, customer logos, case studies, screenshots, measurements, certifications, or image content.
10
+ - Missing material must be omitted, requested, or visibly marked as an approved placeholder.
11
+ - Never use stock-looking fake proof to fill a layout. Empty space is better than false evidence.
12
+ - Generated imagery must match the brief and must not accidentally include illegible pseudo-text unless intentionally abstract.
13
+ - Deliver the in-scope behavior, not a stub: no dead primary actions, unfinished handlers, or omitted implementation represented by TODO or ellipsis. Approved placeholders, fixtures, and intentional display truncation are not defects; label demo data and do not present it as production truth.
14
+
15
+ ## 2. Accessibility
16
+
17
+ - Use real interactive semantics before adding roles or keyboard handlers.
18
+ - Every control needs an accessible name; every input needs a persistent visible label or platform-equivalent labeling behavior.
19
+ - Keyboard/touch/controller/remote paths must complete the primary task. Focus is visible, logical, and never obscured by sticky UI.
20
+ - Meet the applicable contrast floor. For WCAG 2.2 AA web work: normal text 4.5:1, large text 3:1, non-text UI 3:1 unless exempt.
21
+ - Respect reduced-motion settings and provide a non-motion way to perceive state changes.
22
+ - Text scaling must not clip, overlap, or truncate essential content. Test dynamic type/sp scaling or platform equivalent where available.
23
+ - Do not encode meaning by color alone; pair color with text, shape, icon, position, or pattern.
24
+ - Dragging requires a single-pointer alternative. Authentication must not require a cognitive memory test or block paste/password managers.
25
+
26
+ ## 3. Interaction
27
+
28
+ - Acknowledge input quickly: target approximately 0.1s for direct manipulation feedback, 1s for uninterrupted flow, and explicit progress or interruption options beyond that.
29
+ - Targets obey platform units: web floor 24×24 CSS px for WCAG 2.2 AA unless an exception applies; iOS baseline 44×44 pt; Android/Material baseline 48×48 dp.
30
+ - Every asynchronous action exposes loading, success, failure, cancellation/retry, and duplicate-submission behavior.
31
+ - destructive actions use confirmation or undo proportionate to consequence.
32
+ - Escape/cancel/back behavior is consistent with the platform and never traps the user.
33
+ - Gesture conflicts, edge swipes, nested scrolling, hover-only affordances, and focus loss are checked explicitly.
34
+
35
+ ## 4. Adaptation and responsiveness
36
+
37
+ - Restructure rather than stretch. Reflow across narrow/wide, portrait/landscape, window resizing, split screen, text scaling, and input modality.
38
+ - Plan and verify the primary task for each supported layout/input class; preserve task access, content meaning, input and focus as the presentation changes. A different mobile and desktop composition is allowed; a mobile task cut just to fit is not.
39
+ - No unintentional clipping, overlap, horizontal scrolling, unreachable controls, or hidden primary actions.
40
+ - Respect safe areas, system bars, on-screen keyboards, display cutouts, browser chrome, and minimum practical viewport/window sizes.
41
+ - Use platform navigation idioms instead of transplanting UI patterns across operating systems.
42
+
43
+ ## 5. Localization and internationalization
44
+
45
+ - Budget approximately 30–40% expansion for translated strings in dense UI; test contraction for CJK and expansion for German/Finnish-like cases where feasible.
46
+ - Use logical direction (`inline-start`, trailing/leading) rather than physical left/right assumptions in directional layout.
47
+ - Support RTL mirroring where directionality is semantic; do not mirror numerals, clocks, playback direction, or culturally asymmetric symbols blindly.
48
+ - Use locale-aware plural, gender/case, date, time, number, currency, calendar, sorting, input method, and name formatting. Do not concatenate translated fragments.
49
+ - Choose fonts/fallbacks for script coverage and test shaping, line breaking, hyphenation, emphasis, numerals, and input composition.
50
+ - Treat color symbolism, gestures, imagery, formality, humor, reading order, and trust cues as localizable design decisions, not translation afterthoughts.
51
+
52
+ ## 6. Performance and resilience
53
+
54
+ - Keep layout stable while assets load; reserve dimensions or skeleton structure without fake content.
55
+ - Prioritize the primary content/action. Defer decorative media and heavy effects.
56
+ - Cover zero, one, many, very long, missing, malformed, offline, permission-denied, interrupted, concurrent, slow, and error states.
57
+ - Preserve user input after validation/server failures. Error text identifies the problem and recovery path.
58
+ - Avoid blocking interaction during animation or network activity unless the operation truly is modal.
59
+
60
+ ## 7. Coherence and craft
61
+
62
+ - Use semantic tokens for color, spacing, type, elevation, motion, and state rather than raw one-off values.
63
+ - Establish hierarchy through scale, weight, spacing, position, and contrast—not decoration everywhere.
64
+ - Keep affordance consistent: things that look interactive must be interactive; identical actions use identical language and behavior.
65
+ - Iconography has one metaphor system, stroke/fill logic, optical size, and meaning inventory.
66
+ - Copy uses consistent action vocabulary, active voice, and user-centered naming.
67
+
68
+ ## 8. Distinctiveness and verifiability
69
+
70
+ - When mode permits, make at least one deliberate subject-specific commitment: composition, material, imagery, motion behavior, typography, or interaction detail.
71
+ - Check repetition history so “distinctive” does not become a repeating template.
72
+ - Every compliance claim carries `rendered`, `static`, `model-judgment`, `not-checked`, or `waived` plus method/scope.
73
+ - A successful build, DOM presence, or page load is not evidence that visual or UX quality was inspected.
@@ -0,0 +1,35 @@
1
+ # Evidence-labeled report template
2
+
3
+ Use this structure for substantial UI creation or review. Compress it for tiny changes, but never omit unverified floor risks.
4
+
5
+ ```markdown
6
+ ## Pixelcraft report
7
+
8
+ **Direction selected:** <name> — <one-sentence rationale>.
9
+ **Rejected directions:** <names> — <why each lost, terse>.
10
+ **Surface/mode:** <stack/render surface/input modality>; <Persuade/Operate/Read/Experience/Play/Communicate>.
11
+
12
+ ### Implemented
13
+ - <user-visible change and files/surface affected>
14
+
15
+ ### Verification
16
+ | Claim | Evidence label | Method/scope | Result |
17
+ |---|---|---|---|
18
+ | Floor: accessibility | rendered/static/model-judgment/not-checked/waived | <tool, viewport, locale, input path> | <pass/issue/unknown> |
19
+ | Floor: states | ... | ... | ... |
20
+ | Distinctive intent | ... | ... | ... |
21
+
22
+ ### Not checked / waived
23
+ - `<label>` <item> — reason and consequence.
24
+
25
+ ### Open risks
26
+ - <risk, affected user/context, suggested next check>
27
+ ```
28
+
29
+ ## Rules
30
+
31
+ - Use only the five canonical labels: `rendered`, `static`, `model-judgment`, `not-checked`, `waived`.
32
+ - `rendered` requires actual rendered evidence; code inspection is `static` even when the code obviously encodes the behavior.
33
+ - State scope: viewport/device/window, orientation, locale/script/direction, input modality, theme/contrast/motion setting, and dataset size when relevant.
34
+ - Do not enumerate every floor item mechanically if unchanged. Group passed items only when the method truly covers them.
35
+ - Never hide a material unknown in prose. Put it in “Not checked / waived.”
@@ -0,0 +1,155 @@
1
+ # Stack and surface detection
2
+
3
+ Detect from concrete files; do not infer from repository age, buzzwords, or one copied import. Multiple matches mean multiple surfaces. Prefer the file nearest the UI being changed. The reference names below live inside the named platform skill; never construct cross-skill relative paths.
4
+
5
+ ## Web signals
6
+
7
+ | Signal | Platform skill → framework reference |
8
+ |---|---|
9
+ | plain `.html`/`.css` or no framework dependency | `pixelcraft-web` → `html-css` |
10
+ | `react`, `next`, `@vitejs/plugin-react` | `pixelcraft-web` → `react-next` |
11
+ | `vue`, `nuxt`, `vite.config` Vue plugin | `pixelcraft-web` → `vue-nuxt` |
12
+ | `svelte`, `@sveltejs/kit`, `.svelte` | `pixelcraft-web` → `svelte` |
13
+ | `solid-js`, SolidStart config | `pixelcraft-web` → `solid` |
14
+ | `@angular/core`, `angular.json` | `pixelcraft-web` → `angular` |
15
+ | `astro`, `.astro` | `pixelcraft-web` → `astro` |
16
+ | `@builder.io/qwik`, Qwik City config | `pixelcraft-web` → `qwik` |
17
+ | `htmx.org`, `alpinejs`, `hx-*` fragments/`x-data` | `pixelcraft-web` → `htmx-alpine` |
18
+ | `lit`, custom elements/`.ce`/`shadowRoot` UI | `pixelcraft-web` → `lit-web-components` |
19
+ | `tailwindcss`, `@import "tailwindcss"`, Tailwind classes/config | `pixelcraft-web` → `tailwind` |
20
+ | Rails views/Hotwire (`Gemfile`, Turbo/Stimulus) | `pixelcraft-web` → `server-rendered` |
21
+ | Laravel Blade/Livewire (`composer.json`, `.blade.php`) | `pixelcraft-web` → `server-rendered` |
22
+ | Django/Jinja/templates (`manage.py`, template dirs) | `pixelcraft-web` → `server-rendered` |
23
+ | Phoenix/LiveView (`mix.exs`, `.heex`) | `pixelcraft-web` → `server-rendered` |
24
+ | Blazor (`.razor`, `.csproj`) | `pixelcraft-web` → `server-rendered` |
25
+ | Go templ/html template (`.templ`, `.tmpl`, handler templates) | `pixelcraft-web` → `server-rendered` |
26
+ | `Cargo.toml` deps `leptos`/`yew`, `Trunk.toml`, `Leptos.toml` | `pixelcraft-web` → `leptos-yew` |
27
+ | Kotlin web/Kobweb dependencies/config in Gradle project | `pixelcraft-web` → `kotlin-web` |
28
+ | `elm.json` | `pixelcraft-web` → `elm` |
29
+ | `deps.edn`, `shadow-cljs.edn`, Reagent/re-frame deps | `pixelcraft-web` → `clojurescript` |
30
+ | `.fsproj`, Fable/Feliz/Elmish deps | `pixelcraft-web` → `fsharp-fable` |
31
+ | `build.sbt`, Scala.js/Laminar deps | `pixelcraft-web` → `scala-laminar` |
32
+ | `pom.xml`/Gradle Vaadin or Thymeleaf deps/templates | `pixelcraft-web` → `java-web` |
33
+
34
+ ## Mobile signals
35
+
36
+ | Signal | Platform skill → framework reference |
37
+ |---|---|
38
+ | SwiftUI imports/types, `Package.swift`, Xcode project | `pixelcraft-mobile` → `swiftui` |
39
+ | UIKit imports/view controllers/storyboards | `pixelcraft-mobile` → `uikit` |
40
+ | `build.gradle(.kts)` Compose dependencies, `@Composable` | `pixelcraft-mobile` → `jetpack-compose` |
41
+ | `pubspec.yaml`, Flutter imports | `pixelcraft-mobile` → `flutter` |
42
+ | React Native/Expo config, `app.json`, RN dependencies | `pixelcraft-mobile` → `react-native-expo` |
43
+ | Kotlin Multiplatform/Compose Multiplatform source sets | `pixelcraft-mobile` → `kotlin-multiplatform` |
44
+ | Ionic/Capacitor config/dependencies | `pixelcraft-mobile` → `ionic-capacitor` |
45
+ | MAUI `.csproj`/XAML/AppShell references | `pixelcraft-mobile` → `dotnet-maui` |
46
+ | `flet` controls/page | `pixelcraft-mobile` → `flet` |
47
+ | `kivy`/KV language/App classes | `pixelcraft-mobile` → `kivy` |
48
+
49
+ ## Data-app signals
50
+
51
+ | Signal | Platform skill → framework reference |
52
+ |---|---|
53
+ | `streamlit` import/dependency or `.streamlit/config.toml` | `pixelcraft-data-apps` → `streamlit` |
54
+ | `gradio`/`gr.Blocks`/`gr.Interface` | `pixelcraft-data-apps` → `gradio` |
55
+ | `reflex`/`rx.App` | `pixelcraft-data-apps` → `reflex` |
56
+ | `nicegui`/`from nicegui import ui` | `pixelcraft-data-apps` → `nicegui` |
57
+ | `dash`/Dash layout callbacks | `pixelcraft-data-apps` → `dash` |
58
+ | `panel`/`import panel as pn` | `pixelcraft-data-apps` → `panel` |
59
+ | Shiny for Python (`shiny` UI/server/reactive) | `pixelcraft-data-apps` → `shiny` |
60
+ | `ipywidgets`/notebook widget traits | `pixelcraft-data-apps` → `jupyter-widgets` |
61
+ | R `DESCRIPTION`/`app.R` with `shiny`/`bslib` | `pixelcraft-data-apps` → `r-shiny` |
62
+ | Julia `Project.toml` with Genie/Stipple | `pixelcraft-data-apps` → `julia-genie` |
63
+ | `observablehq.config.*`, Framework Markdown/data loaders | `pixelcraft-data-apps` → `observable-framework` |
64
+ | `evidence.config.yaml`, `theme.yaml`, Evidence `pages/`/`sources/` | `pixelcraft-data-apps` → `evidence` |
65
+
66
+ ## Desktop signals
67
+
68
+ | Signal | Platform skill → framework reference |
69
+ |---|---|
70
+ | `src-tauri/tauri.conf.json` or Tauri dependency | `pixelcraft-desktop` → `tauri` |
71
+ | Electron main/preload/package configuration | `pixelcraft-desktop` → `electron` |
72
+ | Qt `.pro`/CMake Qt modules/PySide/PyQt/`.qml` | `pixelcraft-desktop` → `qt-pyside-qml` |
73
+ | WinUI/WPF `.csproj`/XAML/WindowsAppSDK references | `pixelcraft-desktop` → `winui-wpf` |
74
+ | AppKit/Cocoa imports/macOS target | `pixelcraft-desktop` → `appkit` |
75
+ | GTK/libadwaita build definitions/imports/blueprints | `pixelcraft-desktop` → `gtk` |
76
+ | Avalonia `.csproj`/XAML references | `pixelcraft-desktop` → `avalonia` |
77
+ | `egui`, `slint`, `dioxus`, `iced` in Rust dependencies | `pixelcraft-desktop` → `rust-gui` |
78
+ | `pom.xml`/Gradle JavaFX, Swing UI entry points/FXML | `pixelcraft-desktop` → `javafx-swing` |
79
+ | `CMakeLists.txt` Qt/imgui/wxWidgets dependencies | `pixelcraft-desktop` → `cpp-gui` |
80
+ | `go.mod` Fyne/Wails/Gio deps | `pixelcraft-desktop` → `go-gui` |
81
+ | Uno Platform `.csproj`/XAML/config references | `pixelcraft-desktop` → `uno-platform` |
82
+
83
+ ## TUI signals
84
+
85
+ | Signal | Platform skill → framework reference |
86
+ |---|---|
87
+ | `textual` dependency/import | `pixelcraft-tui` → `textual` |
88
+ | `rich` dependency/import without full Textual app | `pixelcraft-tui` → `rich` |
89
+ | `ink` dependency/import | `pixelcraft-tui` → `ink` |
90
+ | Go `bubbletea`/`lipgloss` imports | `pixelcraft-tui` → `bubbletea-lipgloss` |
91
+ | Rust `ratatui`/`crossterm` dependencies | `pixelcraft-tui` → `ratatui` |
92
+
93
+ ## Email signals
94
+
95
+ | Signal | Platform skill → framework reference |
96
+ |---|---|
97
+ | table-heavy HTML email/inline CSS templates | `pixelcraft-email` → `html-tables` |
98
+ | `.mjml` files or `mjml` dependency | `pixelcraft-email` → `mjml` |
99
+ | `@react-email`/`react-email` dependencies/templates | `pixelcraft-email` → `react-email` |
100
+ | Outlook/Gmail/Apple Mail/client/dark/plaintext concerns | `pixelcraft-email` → `client-quirks` |
101
+
102
+ ## Game UI signals
103
+
104
+ | Signal | Platform skill → framework reference |
105
+ |---|---|
106
+ | `ProjectSettings/`, `.unity`, UXML/USS/UI Builder assets | `pixelcraft-game-ui` → `unity-ui-toolkit` |
107
+ | `project.godot`, `.tscn`, `.gd`, Control/Theme resources | `pixelcraft-game-ui` → `godot` |
108
+ | `.uproject`, UMG/Slate/CommonUI assets or references | `pixelcraft-game-ui` → `unreal-umg` |
109
+ | HUD/controller/safe-area/certification/accessibility question | `pixelcraft-game-ui` → `hud-principles` |
110
+ | `main.lua` + `conf.lua`, `love.*` calls | `pixelcraft-game-ui` → `love2d` |
111
+ | `Cargo.toml` with `bevy` dependency | `pixelcraft-game-ui` → `bevy` |
112
+ | MonoGame `.csproj`/Content Pipeline/Game class references | `pixelcraft-game-ui` → `monogame` |
113
+
114
+ ## Language → framework routing matrix
115
+
116
+ | Language | Frameworks/surfaces | Skill → reference |
117
+ |---|---|---|
118
+ | C# | Blazor, MAUI, WinUI/WPF, Avalonia, Uno, MonoGame | `pixelcraft-web` → `server-rendered`; `pixelcraft-mobile` → `dotnet-maui`; `pixelcraft-desktop` → `winui-wpf`/`avalonia`/`uno-platform`; `pixelcraft-game-ui` → `monogame` |
119
+ | C++ | Qt/QML, Dear ImGui, wxWidgets | `pixelcraft-desktop` → `cpp-gui` |
120
+ | Clojure | ClojureScript/Reagent/re-frame | `pixelcraft-web` → `clojurescript` |
121
+ | Dart | Flutter mobile/desktop/web | `pixelcraft-mobile` → `flutter`; apply `pixelcraft-web` checks for browser-dominant surfaces |
122
+ | Elm | Elm Browser UI | `pixelcraft-web` → `elm` |
123
+ | Elixir | Phoenix LiveView | `pixelcraft-web` → `server-rendered` |
124
+ | F# | Fable/Feliz/Elmish, .NET desktop | `pixelcraft-web` → `fsharp-fable`; desktop by actual XAML framework |
125
+ | Go | templ/templates, Bubble Tea/Lip Gloss, Fyne/Wails/Gio | `pixelcraft-web` → `server-rendered`; `pixelcraft-tui` → `bubbletea-lipgloss`; `pixelcraft-desktop` → `go-gui` |
126
+ | Java | Vaadin/Thymeleaf, JavaFX/Swing | `pixelcraft-web` → `java-web`; `pixelcraft-desktop` → `javafx-swing` |
127
+ | Julia | Genie/Stipple | `pixelcraft-data-apps` → `julia-genie` |
128
+ | Kotlin | Compose Android/KMP, Compose Web/Kobweb | `pixelcraft-mobile` → `jetpack-compose`/`kotlin-multiplatform`; `pixelcraft-web` → `kotlin-web` |
129
+ | Lua | LÖVE2D | `pixelcraft-game-ui` → `love2d` |
130
+ | PHP | Laravel Blade/Livewire | `pixelcraft-web` → `server-rendered` |
131
+ | Python | Streamlit/Gradio/Reflex/NiceGUI/Dash/Panel/Shiny/Jupyter; Flet/Kivy; Qt/PySide; Textual/Rich | `pixelcraft-data-apps` matching reference; `pixelcraft-mobile` → `flet`/`kivy`; `pixelcraft-desktop` → `qt-pyside-qml`; `pixelcraft-tui` → `textual`/`rich` |
132
+ | R | Shiny/bslib | `pixelcraft-data-apps` → `r-shiny` |
133
+ | Ruby | Rails/Hotwire | `pixelcraft-web` → `server-rendered` |
134
+ | Rust | Leptos/Yew, egui/Slint/Dioxus/iced, Ratatui, Bevy | `pixelcraft-web` → `leptos-yew`; `pixelcraft-desktop` → `rust-gui`; `pixelcraft-tui` → `ratatui`; `pixelcraft-game-ui` → `bevy` |
135
+ | Scala | Laminar/Scala.js | `pixelcraft-web` → `scala-laminar` |
136
+ | Swift | SwiftUI, UIKit, AppKit | `pixelcraft-mobile` → `swiftui`/`uikit`; `pixelcraft-desktop` → `appkit` |
137
+ | TS/JS | React/Next, Vue/Nuxt, Svelte, Solid, Angular, Astro, Qwik, htmx/Alpine, Lit, Observable Framework, Evidence, Electron/Tauri, Ink | `pixelcraft-web` matching reference; `pixelcraft-data-apps` → `observable-framework`/`evidence`; `pixelcraft-desktop`/`pixelcraft-tui` matching reference |
138
+ | Zig | no substantive dedicated reference yet | plan manually in `pixelcraft-plan`; inspect actual UI/library constraints |
139
+
140
+ ## Brand identity signals
141
+
142
+ | Signal | Route |
143
+ |---|---|
144
+ | request for brand kit, identity board, visual identity, brand guidelines image, moodboard, visual-world board, logo system, launch identity, rebrand, or refresh | `pixelcraft-brandkit` |
145
+ | supplied logo/wordmark/palette/type/brand assets to preserve | `pixelcraft-brandkit` intake: build on existing brand |
146
+ | explicit rebrand/refresh scope | `pixelcraft-brandkit` intake: refresh/rebrand |
147
+ | selected palette/type must become implementation tokens | `pixelcraft-brandkit` → `pixelcraft-tokens` |
148
+
149
+ ## Existing system inventory
150
+
151
+ Before designing, inspect design token files (`tokens.json`, `.tokens`, theme objects, Tailwind CSS/theme, asset catalogs, resource dictionaries, Qt/QSS, Godot themes, UMG styles), component libraries, lint/test/screenshot fixtures, localization catalogs, brand assets/licenses, density conventions, and navigation structure. Record whether the system is authoritative, partial, inconsistent, or absent. Existing tokens outrank Pixelcraft-generated taste.
152
+
153
+ ## Input/render surface
154
+
155
+ Classify input modality (touch, mouse/keyboard, controller, remote, terminal keyboard, screen reader, voice), viewport/window constraints, network context, platform/version, and rendering surface (DOM/canvas/native/skia/terminal cells/email client/game engine). These facts determine which floor checks and platform idioms apply.
@@ -0,0 +1,40 @@
1
+ # Shared surface acceptance matrix
2
+
3
+ Use this reference when deciding what evidence a platform implementation must produce. It is the cross-surface contract; platform skills add native idioms and tooling. Do not treat every row as mandatory in every prototype: classify skipped rows as `not-checked` or `waived` with consequence.
4
+
5
+ ## Acceptance dimensions
6
+
7
+ | Dimension | Required design/implementation behavior | Acceptance evidence |
8
+ |---|---|---|
9
+ | layout ownership | the surface controls resize/reflow through constraints rather than fixed perfect pixels | smallest/typical/large geometry inspected without clipping or accidental two-dimensional scrolling |
10
+ | navigation truth | back/escape/close/deep link/refresh/relaunch restore understandable state | primary forward/back task path exercised in the real runtime or labeled emulation |
11
+ | input completeness | pointer/touch/keyboard/controller/remote/voice/IME paths match platform expectations | primary task completed without mouse-only, hover-only, precision-only, or hidden-command dependency |
12
+ | focus and restoration | focus/selection/scroll/input context survive dialogs, errors, route changes, interruption, and re-entry | focus path and restoration inspected across at least one interruption |
13
+ | state coverage | loading/empty/error/offline/permission/long-content/conflict/cancellation states are designed | representative non-happy-path states rendered or explicitly marked absent/not applicable |
14
+ | accessibility exposure | native semantics/accessibility tree carry name, role, value, state, order, grouping, and status changes | automated scan plus manual keyboard/screen-reader or platform-equivalent inspection where available |
15
+ | text scaling/localization | expansion, contraction, line breaking, directionality, numerals, fonts, plural forms, IME composition survive | representative locale matrix or targeted stress case; no fixed-height clipping |
16
+ | performance/interaction | acknowledgment is fast, input remains responsive, layout is stable, media/asset cost is proportionate | runtime measurement against surface budget or explicit `not-checked` |
17
+ | safe geometry | safe areas, overscan, notches, system chrome, virtual keyboard, taskbar/menu bar, window minimums are respected | real device/simulator/windowed/terminal evidence where environment permits |
18
+ | capture/verification | output can be captured meaningfully without hiding defects | screenshots/recordings/snapshots include edge cases and identify exact runtime/build |
19
+ | data/privacy | user data, secrets, private media, and personal identifiers are protected in artifacts | captures redacted/synthetic; no fake metrics/proof/testimonials |
20
+ | platform idiom | navigation, controls, feedback, scaling, lifecycle, packaging, and system integration feel native | idioms named in implementation notes; deviations deliberate and justified |
21
+
22
+ ## Mode overlays
23
+
24
+ - **Operate:** keyboard/controller efficiency, density discipline, recovery/undo, latency, scanability, and state persistence dominate.
25
+ - **Read:** measure, typography, navigation orientation, print/export behavior, scaling, and distraction control dominate.
26
+ - **Persuade:** truthful proof, decision sequence, performance, memorable hierarchy, and action visibility dominate.
27
+ - **Experience/Play:** frame stability, input latency, comfort, HUD legibility, interruption recovery, and sensory-safe alternatives dominate.
28
+ - **Communicate:** client degradation, plaintext/low-bandwidth equivalent, image blocking, ink/data cost, and locale robustness dominate.
29
+
30
+ ## Minimum acceptance statement
31
+
32
+ Every surface implementation must end with a matrix row summary:
33
+
34
+ ```markdown
35
+ | Dimension | Result | Evidence | Label |
36
+ |---|---|---|---|
37
+ | layout ownership | pass/issue/not applicable | artifact/path/command | rendered/static/model-judgment/not-checked/waived |
38
+ ```
39
+
40
+ A blank matrix means the implementation is unverified even if it compiles.
@@ -0,0 +1,29 @@
1
+ # Workflow checkpoints
2
+
3
+ ## Choose the task route during Plan
4
+
5
+ Classify both the project (greenfield, brownfield or hybrid) and the requested change. A new screen in an existing product is not a new project. For mixed work, name the route per affected surface and verify shared contracts.
6
+
7
+ | Task route | Required scope |
8
+ |---|---|
9
+ | New project | Run the full loop and produce each applicable result below. Identify platform, audience, hard constraints and real material before choosing a compatible stack. Diverge wherever visual direction is undecided; use the approved-design path where it is already fixed. Specify complete flows and applicable states before coding. |
10
+ | Extend existing product | For a new screen, feature or platform, first read the existing entry points/navigation, design system, data contracts, locked stack and neighboring tests. Then frame the new task, decide direction only where unresolved, and specify its full flow and applicable states before building. Reuse the existing stack where it fits; do constrained stack selection when a new platform or separate runtime requires one. Verify both the new outcome and affected existing paths. |
11
+ | Edit or fix | Trace the affected entry point, component, state/data path, tokens and checks. Record the current behavior or defect, intended change and invariants. Use a scoped brief and spec; keep unchanged visual decisions. Reproduce a reported defect where possible, then verify the fix and affected neighbors. |
12
+ | Redesign or rebuild | Inventory existing routes or entry points, task outcomes, content/data, accessibility and localization, and other relevant contracts. Record what stays, what changes, and how each preserved or migrated contract will be checked before replacing anything. Diverge only in the undecided scope. A rebuild does not by itself authorize a new stack, dropped routes or changed outcomes. |
13
+ | Behavior-preserving refactor | Inventory consumers and observable contracts first. Reuse the approved direction and assert output, interactions, accessibility behavior and public contracts before/after where affected. Do not turn an internal change into a visual redesign. |
14
+
15
+ ## Check before advancing
16
+
17
+ Use the existing brief, plan, direction card, checks and report; link or summarize their relevant sections in the plan rather than creating a separate set of artifacts. For each phase, record the result and point to what you actually read, inspected or ran (path and section or symbol; source and date; command and outcome; rendered artifact and state). Name the constraint or decision it established. A filename list, headings-only skim, or search hit without reading the relevant surrounding code or rule does not count. Use current evidence only; reread affected sections when inputs or scope change. If the workspace cannot be written, keep the same record in the run or handoff.
18
+
19
+ | Phase | Exit evidence |
20
+ |---|---|
21
+ | 0. Plan | Record the task route, scoped requirements, stack/version decision, applicable platform and reference, and verification capabilities. For existing products, cite the inspected conventions, runtime/lock, affected UI/state path (or the new surface's integration points) and relevant tests; identify preserved behavior and its verification baseline. Where a stack must be selected, include requirements, weighted stack comparison and version sources. |
22
+ | 1. Frame | Record the target user, job, real material, surface mode, constraints and a concrete task success condition in the brief. Reuse a brief only after checking those facts against the current scope. |
23
+ | 2. Diverge | Record the selected direction, scored alternatives and repetition check for undecided scope. Where direction is already fixed, cite the approved design or existing convention and state why divergence is not applicable. |
24
+ | 3. Specify | Record the direction card or scoped decision, task flows, applicable states and acceptance checks, including how preserved behavior will be verified. Resolve material assumptions that determine implementation before building. |
25
+ | 4. Build | Point to implementation and its platform/reference decisions. Check against the spec, applicable floor, and preserved contracts before handing off to verification. Do not count stubs, simulated production outcomes, or unapproved dependency changes as delivery. |
26
+ | 5. Verify | Record checks and observed outcomes for the actual task and relevant regressions. Include rendered evidence when the runtime is available and the finish gate for new or materially changed flows. Compilation or a loaded screen alone proves neither behavior nor visual quality. |
27
+ | 6. Report | Point to the results and artifacts, report open failures and unchecked scope, and include the next discriminating check when work remains. |
28
+
29
+ Use the standard evidence labels. Explain why a branch is not applicable rather than marking it as passed; reserve `waived` for explicit user authorization. Mark unavailable requirements `not-checked` with the affected claim. Do not advance dependent work on an unresolved prerequisite or claim completion for an unchecked requirement. Scope reduces the size of the evidence, not the obligation to inspect or verify.
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: pixelcraft-accessibility
3
+ description: Applies and verifies the accessibility floor across platforms. Use when designing or reviewing UI for WCAG 2.2 AA, semantic structure, keyboard/focus operability, contrast, target size, screen readers, Dynamic Type/text scaling, reduced motion, dragging alternatives, redundant entry, accessible authentication, high contrast, subtitles, controller remapping, TUI/email/game accessibility, or platform-specific assistive technology behavior.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft accessibility
10
+
11
+ Accessibility is a floor built during design, not a final repair pass. Meet the platform's native expectations first; use custom behavior only when native semantics cannot express the interaction.
12
+
13
+ ## References
14
+
15
+ - Read [references/wcag22-checks.md](references/wcag22-checks.md) for the concrete WCAG 2.2 AA floor and pass/fail checks.
16
+ - Read [references/apg-patterns.md](references/apg-patterns.md) before implementing or reviewing custom dialogs, menus, tabs, comboboxes, disclosures, grids, tooltips, carousels, live regions, trees, or drag/drop.
17
+ - Read [references/platforms.md](references/platforms.md) when translating the floor to web, iOS, Android, Flutter/React Native, data apps, desktop, TUI, email, or game UI.
18
+ - Read [references/verification.md](references/verification.md) before claiming compliance; separate automated evidence from manual judgment.
19
+
20
+ ## Core rules
21
+
22
+ 1. Use native semantic controls before custom widgets. Accessibility labels and keyboard handlers do not repair a fundamentally wrong element/control.
23
+ 2. Composite widgets need a complete interaction contract: role/state/value, keyboard/controller input, focus entry/exit/restoration, activation/selection semantics, async behavior, and escape/cancel behavior—not merely an ARIA role.
24
+ 3. Every meaningful control has a persistent name/label, role/state/value where applicable, visible focus or platform equivalent, and a complete keyboard/touch/controller/assistive path.
25
+ 4. Test task completion—not just component presence—with keyboard only, screen reader where available, text scaling, dark/high contrast, reduced motion, narrow viewport/small window, and touch/target constraints.
26
+ 5. Never encode meaning by color alone; pair color with text, shape, icon, pattern, position, or state language.
27
+ 6. Do not disable zoom/text scaling or block paste/password managers/autofill.
28
+ 7. Motion, audio, flashing, vibration, and timed behavior need safe alternatives and user control.
29
+ 8. Localization and accessibility overlap: expanded strings, RTL/bidi, IMEs, scripts, and plural forms must not clip, reorder, or obscure interaction.
30
+
31
+ ## Verification honesty
32
+
33
+ WCAG conformance cannot be proven by one automated scan. Report each material claim as `rendered`, `static`, `model-judgment`, `not-checked`, or `waived`, including tool, platform, input modality, viewport/device, theme/motion setting, and scope. A missing automated violation is not evidence of accessibility.
@@ -0,0 +1,51 @@
1
+ # ARIA APG pattern matrix
2
+
3
+ Use native platform semantics first. This matrix applies when a custom or composite widget is genuinely necessary. ARIA APG patterns are interaction contracts: role alone is never enough without keyboard behavior, focus management, state exposure, and accessible naming.
4
+
5
+ ## Core matrix
6
+
7
+ | Pattern | Required behavior highlights | Common failure |
8
+ |---|---|---|
9
+ | button/link | correct native element; activation keys/platform equivalents; disabled state meaningful | `div` with click handler; link used for action or button used for navigation |
10
+ | dialog/modal | labelled; focus moves inside deliberately; tab cycles or platform-equivalent containment; escape/close behavior; focus restored on close | background still reachable; focus lost to body; close button unnamed; nested modal confusion |
11
+ | non-modal dialog/popover | discoverable trigger relationship; does not steal focus unexpectedly; dismiss behavior and collision/overflow handling | autoclose loses input; focus jumps without cause; screen-reader order unrelated |
12
+ | menu/menubar | roving tabindex or platform equivalent; arrow/home/end keys; typeahead where specified; escape returns focus | menu items only clickable; focus/activation order mismatched; hidden menu remains focusable |
13
+ | tabs | tab list semantics; selected state; declared manual or automatic activation; panel association. Automatic: arrows move focus and select. Manual: arrows move focus only; Enter/Space activates. | behavior inconsistent with the declared activation mode; visual active class only; hidden panels readable |
14
+ | accordion/disclosure | button controls region; expanded state; keyboard activation; content order logical | heading and button compete; no state exposure; hidden content focusable |
15
+ | combobox/autocomplete | input labelled; popup relationship; expanded state; active descendant or real focus model; arrow/enter/escape behavior; async/empty/error status | selecting on every keystroke; no result count/status; focus trapped; paste/IME broken |
16
+ | listbox/select | orientation-aware arrow behavior; selection state; typeahead where appropriate; multi-select semantics | active option visual only; selection committed without confirmation contrary to platform norm |
17
+ | grid/table interactive | grid semantics only when cell-level interaction requires it; row/column navigation; selection; editable cell behavior; escape/revert | semantic table converted unnecessarily; keyboard model undocumented; focus disappears on sort/filter |
18
+ | tooltip | supplementary nonessential content; trigger focus/hover behavior; escape dismissal; no interactive content unless pattern differs | essential error/help only in tooltip; tooltip appears but is not exposed/dismissible |
19
+ | alert/status/live region | correct urgency; concise text; no focus theft; repeated updates controlled | every validation keystroke announced; decorative loading noise; duplicate announcements |
20
+ | carousel | slide controls named; rotation pausable; focus/reading order coherent; reduced-motion behavior | auto-advance steals context; hidden slides focusable; dots have no labels |
21
+ | tree view | hierarchical roles/states; arrow/expand/collapse/typeahead behavior; selection vs expansion distinct | chevron only mouse; nested levels flatten visually for assistive tech |
22
+ | drag/drop | drag state plus keyboard/single-pointer alternative; drop target descriptors; cancel behavior | dragging is sole path; target size/precision too demanding; no announcement of result |
23
+
24
+ ## Implementation checklist
25
+
26
+ For each composite widget:
27
+
28
+ 1. Write the interaction contract before coding: keys/input methods, focus model, selection/activation model, escape/cancel behavior, async behavior, empty/error states.
29
+ 2. Use the platform-native equivalent if it exists and can meet the requirement.
30
+ 3. Assign name/role/value/state through the platform accessibility API; do not use ARIA roles that conflict with native semantics.
31
+ 4. Keep DOM/tree order aligned with visual and interaction order unless deviation is deliberate and announced.
32
+ 5. Implement keyboard/controller behavior before visual polish.
33
+ 6. Manage focus deterministically: opening, closing, deleting the focused node, validation failure, async refresh, and route transition.
34
+ 7. Expose state changes and status messages without stealing focus.
35
+ 8. Test with keyboard only and at least one real screen-reader/platform pairing when available; otherwise label manual behavior `not-checked`.
36
+ 9. Test text scaling, RTL, high contrast/forced colors, reduced motion, and touch/target behavior.
37
+ 10. Document exceptions and platform deviations; do not copy web key bindings blindly into native, terminal, game, or spatial surfaces.
38
+
39
+ ## Red flags requiring redesign
40
+
41
+ - ARIA is being used to repair an element that should have been native.
42
+ - Keyboard behavior exists but focus is invisible or clipped.
43
+ - The component works only when visual layout matches exactly.
44
+ - Async loading leaves focus on a removed element.
45
+ - Screen-reader announcements are noisy enough that users cannot complete the form.
46
+ - Keyboard and pointer selection models diverge without intentional design.
47
+ - Hidden content remains interactive or visible content is missing from the accessibility tree.
48
+
49
+ ## Verification evidence
50
+
51
+ Report pattern verification by task, not component presence: “Completed date selection using keyboard only in dialog; focus returned to trigger” is evidence. “Added `role=dialog`” is implementation detail and proves nothing by itself.
@@ -0,0 +1,58 @@
1
+ # Platform accessibility translations
2
+
3
+ Evidence: Apple HIG, Material, WCAG, generated-code accessibility research.
4
+
5
+ ## Web/HTML
6
+
7
+ - Use button/input/select/a/label/dialog/table/list/heading semantics before div/ARIA. First rule of ARIA: don't use it when native HTML exists.
8
+ - Labels are programmatically associated; errors use accessible description/live status where appropriate.
9
+ - Dialogs: initial focus inside, logical containment/inert background, Escape close where safe, restore focus to invoker. Follow APG only as pattern guidance.
10
+ - Never remove outline without visible replacement. Manage focus on route/content deletion; preserve scroll restoration separately.
11
+ - Do not use positive tabindex. Use DOM order and roving tabindex only for composite widgets that need it.
12
+
13
+ ## iOS / macOS
14
+
15
+ - VoiceOver: accessibility label, traits, value, hint only when useful; correct ordering/grouping; custom actions/rotor where relevant.
16
+ - Dynamic Type: scale text without clipping essential content; use system text styles where appropriate. Touch baseline 44×44 pt.
17
+ - Honor Reduce Motion, Increase Contrast, Differentiate Without Color, Bold Text, Reduce Transparency, Voice Control, Switch Control, Full Keyboard Access.
18
+ - Respect safe areas/focus engine on tvOS and keyboard shortcuts/modified-state semantics on macOS.
19
+
20
+ ## Android
21
+
22
+ - TalkBack: contentDescription only where needed, correct traversal order, state descriptions, live regions/assertive politeness sparingly.
23
+ - Use sp for text and dp for layout; preserve scaling. Touch baseline 48×48 dp.
24
+ - Support keyboard/d-pad/controller focus, predictive back, color contrast, reduced animation, magnification, switch access, and autofill.
25
+
26
+ ## Flutter / React Native
27
+
28
+ - Flutter: Semantics widgets/labels/liveRegion/button/header flags; test TalkBack/VoiceOver rather than trusting compile-time semantics. TextScaler and focus traversal must survive custom painters.
29
+ - React Native: accessibilityRole/Label/State/Hint, importantForAccessibility, accessibilityLiveRegion; native components first. Do not strip focus or rely on nested text hacks.
30
+
31
+ ## Data-app UIs
32
+
33
+ Streamlit/Gradio/Reflex/NiceGUI/Dash/Panel/Shiny/Jupyter widgets/R Shiny/Genie/Observable Framework/Evidence expose varying semantic control. Inspect actual DOM/native output where possible; label inputs, preserve keyboard path, avoid canvas/image-only output, provide tables/text alternatives, and state framework limits honestly.
34
+
35
+ ## Desktop
36
+
37
+ - Qt/QML/PySide: accessible names/descriptions/roles where exposed; keyboard focus chain, shortcuts/mnemonics, platform high-contrast themes, scalable fonts. Test NVDA/JAWS/Narrator/orca/VoiceOver by platform where possible.
38
+ - Electron/Tauri are web inside but must also honor desktop keyboard/window conventions.
39
+ - WinUI/WPF/AppKit/GTK/Avalonia/Rust GUIs: use native accessibility APIs/control patterns; never draw custom controls without exposing UI Automation/Accessibility/AT-SPI equivalents.
40
+
41
+ ## TUI
42
+
43
+ - Do not rely on color alone; provide symbols/text state and honor `NO_COLOR`/terminal contrast.
44
+ - Mouse support is optional enhancement; complete keyboard path is mandatory.
45
+ - Announce/preserve meaningful focus/cursor location where screen readers can interpret terminal output; avoid rapid full-screen redraw noise.
46
+ - Provide non-Unicode/limited-color fallback for box glyphs/braille/sparklines when applicable.
47
+
48
+ ## Email
49
+
50
+ - Semantic heading structure where clients permit, real text rather than image-only copy, meaningful alt text, table roles/layout isolation, visible focus, sufficient contrast, dark-mode resilience, plaintext parity, and no tiny clustered tap targets.
51
+ - Do not depend on background images, custom fonts, animation, forms, or exact pixel layout.
52
+
53
+ ## Game UI
54
+
55
+ - Subtitles/captions: speaker, sound cues where useful, size/background/contrast controls.
56
+ - Input remapping, hold/toggle options, sensitivity/dead zones, controller/keyboard/mouse parity, no mandatory rapid repeated input where avoidable.
57
+ - Colorblind-safe team/status differentiation using shape/icon/text; scalable HUD; screenreader/menu narration where platform supports it.
58
+ - Photosensitivity: avoid high-frequency flashes; provide reduction options. Motion sickness settings for camera/UI movement.
@@ -0,0 +1,59 @@
1
+ # Accessibility verification split
2
+
3
+ Evidence: WCAG, axe-core, generated-code accessibility repair research.
4
+
5
+ ## Automated evidence (`static` or tool-generated `rendered` when run in renderer)
6
+
7
+ | Tool/surface | Detects | Does not prove |
8
+ |---|---|---|
9
+ | axe-core/browser scan | many missing labels/names, contrast, invalid ARIA, landmarks, duplicate IDs | actual usability, correct focus order, meaningful labels, cognitive load |
10
+ | Lighthouse accessibility | selected DOM/browser rules | full WCAG conformance |
11
+ | Accessibility Inspector/Xcode | iOS/macOS accessibility tree, labels/traits/audit | real VoiceOver task completion |
12
+ | Android Accessibility Scanner/Layout Inspector | touch target/content description/contrast heuristics | correct TalkBack flow or meaningful behavior |
13
+ | linters/static scanners | banned patterns, hardcoded assumptions | rendered visibility and interaction quality |
14
+
15
+ Automated zero means “no detected violations in scanned scope,” never “accessible.”
16
+
17
+ ## Manual protocol
18
+
19
+ 1. Keyboard/controller only: complete primary task (stopping before final payment or other irreversible commit unless running in an explicitly isolated sandbox, mock, or test mode), reverse direction, close/escape, recover after error.
20
+ 2. Screen reader: inspect name/role/value/order/status/error/form behavior. Use the platform pairing realistically (NVDA/JAWS+Chrome/Edge, VoiceOver+Safari/iOS, TalkBack+Android/Chrome, orca+Linux).
21
+ 3. Zoom/reflow/text scaling: 200% or platform largest text where practical; verify clipping/overlap/truncation.
22
+ 4. Visual modes: dark/light/high contrast/increased contrast/forced colors; inspect state boundaries and focus.
23
+ 5. Input modalities: touch target one-hand, keyboard, mouse, controller/switch/voice where applicable.
24
+ 6. Motion/audio: reduced motion, captions/subtitles, flashing, autoplay control.
25
+ 7. Forms/auth: paste/password manager/autofill, preserve input, error association/recovery, redundant entry.
26
+ 8. Record scope: build/commit, OS/browser/assistive tech versions, viewport/device, locale/direction, test data, exact task path.
27
+
28
+ ## Reporting language
29
+
30
+ Use: “axe-core scan of `<scope>` reported zero violations `static`; keyboard checkout flow verified up to final payment confirmation `rendered`; live payment submission `not run` (no isolated sandbox/test mode); VoiceOver not tested `not-checked`.”
31
+
32
+ Never use: “WCAG compliant” unless the full scoped conformance process actually happened and legal/conformance language is intended.
33
+
34
+ ## Composite-widget scripts
35
+
36
+ For custom dialogs, menus, tabs, comboboxes, disclosures, grids, trees, carousels, live regions, tooltips, and drag/drop, write the expected interaction contract before manual testing. At minimum verify:
37
+
38
+ - entry: how focus/attention enters the widget and whether context is announced;
39
+ - movement: arrows/tab/home/end/escape/controller equivalents and direction reversal;
40
+ - activation vs selection: when each happens and whether async state is pending;
41
+ - exit/restoration: where focus goes after close, delete, submit, error, or route change;
42
+ - hidden state: inactive content is neither focusable nor announced as active;
43
+ - async refresh: focus does not disappear and status is concise/truthful;
44
+ - mode stress: text scaling, RTL, high contrast/forced colors, reduced motion, touch target behavior.
45
+
46
+ Record exact assistive technology/platform versions when available. If only keyboard inspection is possible, do not infer screen-reader quality from it.
47
+
48
+ ## Regression minimum
49
+
50
+ When fixing one accessibility defect, retest:
51
+
52
+ 1. the original failing task path;
53
+ 2. reverse navigation/focus restoration;
54
+ 3. one error/recovery path;
55
+ 4. smallest supported geometry or text scaling;
56
+ 5. relevant dark/high-contrast/forced-colors mode;
57
+ 6. any composite-widget state touched by the fix.
58
+
59
+ Do not close a defect because the automated scanner became quiet.