@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,89 @@
1
+ # Structured design critique protocol
2
+
3
+ Use this reference for critique mode. Critique is a decision process: it evaluates whether the design meets intent and exposes risk. It is not a vote about taste and not permission to redesign outside scope.
4
+
5
+ ## Before the session
6
+
7
+ Prepare explicit inputs:
8
+
9
+ - design brief/plan, direction card, approved artifact/version, and scope of critique;
10
+ - user/audience/context evidence and open behavioral assumptions;
11
+ - platform/accessibility/localization constraints;
12
+ - state matrix, real content/data inventory, and verification evidence;
13
+ - decision owner and decision deadline;
14
+ - what is fixed versus open for change.
15
+
16
+ If these are absent, critique the missing evidence as a risk instead of filling gaps with personal preference.
17
+
18
+ ## Roles
19
+
20
+ | Role | Responsibility |
21
+ |---|---|
22
+ | presenter/author | explain intent, constraints, evidence, and known trade-offs without defending every choice |
23
+ | facilitator | enforce scope/order, separate clarification from evaluation, prevent loudest-voice collapse |
24
+ | reviewers | independently inspect before group discussion; provide evidence-backed observations |
25
+ | decision owner | accept/reject/prioritize outcomes and own unresolved risk |
26
+ | recorder | preserve decision rationale, losing alternatives, waivers, and action owners |
27
+
28
+ In an agent workflow one agent may simulate roles, but must not pretend independent human review occurred. Label role simulation as model judgment.
29
+
30
+ ## Independent review first
31
+
32
+ Before discussion or generation of fixes, each reviewer inspects independently against:
33
+
34
+ 1. task success and cognitive walkthrough risks;
35
+ 2. hierarchy/composition/visual complexity;
36
+ 3. state coverage and recovery;
37
+ 4. platform/input/accessibility floor;
38
+ 5. localization/content truth;
39
+ 6. token/component/system coherence;
40
+ 7. distinctiveness/repetition against the brief and history.
41
+
42
+ Independent notes prevent anchoring. Require concrete evidence locations: screenshot region, flow step, state, file/component, or behavioral observation.
43
+
44
+ ## Session order
45
+
46
+ 1. **Restate intent/constraints:** outcome, user, mode, approval scope, hard floors.
47
+ 2. **Clarify only:** resolve factual misunderstandings before evaluation.
48
+ 3. **Evidence review:** inspect rendered/static/task evidence; separate observed fact from inference.
49
+ 4. **Strengths:** identify what must be preserved so critique does not flatten the design.
50
+ 5. **Risks/defects:** report severity, confidence, evidence, affected user/task, and scope.
51
+ 6. **Alternatives:** generate only after problems are understood; do not jump to a preferred redesign.
52
+ 7. **Decision:** accept, revise, escalate, defer, or waive each material issue with rationale.
53
+
54
+ ## Feedback taxonomy
55
+
56
+ Classify every comment:
57
+
58
+ | Type | Example | Handling |
59
+ |---|---|---|
60
+ | defect | contrast failure, inaccessible dialog, clipped critical text | fix before release unless explicitly waived |
61
+ | behavioral risk | users may not understand navigation | inspect/test or choose safer convention |
62
+ | requirement conflict | approved design conflicts with localization/legal/platform constraint | escalate according to authority order |
63
+ | hypothesis | denser layout may improve scanning | mark experiment/test needed; do not present as fact |
64
+ | preference | reviewer dislikes hue/typeface | lowest authority; must not silently override brief/project direction |
65
+ | scope expansion | new feature/page/request | record separately; do not hide inside critique |
66
+
67
+ ## Decision log
68
+
69
+ ```markdown
70
+ | Issue | Severity | Evidence/label | Decision | Owner | Rationale/trade-off | Follow-up |
71
+ |---|---|---|---|---|---|---|
72
+ ```
73
+
74
+ Valid decisions include fix, preserve intentionally, test behavior, escalate override, defer with consequence, or waive explicitly. “No decision” is sometimes honest, but record it as unresolved risk rather than implying approval.
75
+
76
+ ## Critique anti-patterns
77
+
78
+ - brainstorming fixes before agreeing on the problem;
79
+ - treating novelty as inherently good or bad;
80
+ - averaging conflicting feedback into a bland compromise;
81
+ - criticizing placeholder absence when real content was explicitly unavailable;
82
+ - letting visual polish crowd out floor/state/task blockers;
83
+ - using “users won't understand” without labeling it hypothesis/risk;
84
+ - redesigning approved visual scope without explicit authority;
85
+ - ending with no priority, owner, or preservation rule.
86
+
87
+ ## Termination
88
+
89
+ Stop when material issues have decisions, additional comments repeat existing risks, evidence required is unavailable and recorded, or further changes would exceed scope. One focused revision round is normal; endless critique by taste is not verification.
@@ -0,0 +1,18 @@
1
+ # Nielsen heuristics as concrete checks
2
+
3
+ Use 0–4 severity/confidence-aware scoring only as a communication aid; do not average away a P0.
4
+
5
+ | Heuristic | Concrete checks |
6
+ |---|---|
7
+ | visibility of system status | immediate input acknowledgment; progress truthfulness; sync/save/upload state; background completion; stale/offline indication |
8
+ | match system and real world | domain vocabulary, ordering, units, symbols, cultural fit; no implementation jargon |
9
+ | user control/freedom | undo/cancel/escape/back; reversible defaults; no trapped modal/navigation; interruption recovery |
10
+ | consistency/standards | same action/name/icon/component behavior; platform back/gesture/shortcut conventions |
11
+ | error prevention | constraints, forgiving input, destructive friction proportional to cost, defaults/autocomplete |
12
+ | recognition rather than recall | visible options/context; persistent labels; recent/saved items; no hidden command dependency |
13
+ | flexibility/efficiency | keyboard shortcuts, bulk actions, filters, expert acceleration without harming novice path |
14
+ | minimalist design | every element supports task/meaning; no duplicate decoration/noise competing with content |
15
+ | recognize/diagnose/recover errors | plain-language problem, preserved data, exact corrective action, no blame/raw exception |
16
+ | help/documentation | contextual help where needed, searchable/recoverable, consistent location; no documentation as substitute for broken UX |
17
+
18
+ Translate each heuristic into observable evidence. “System is inconsistent” is not a finding; “the same archive action is labeled Archive in list but Remove in detail at file:line” is.
@@ -0,0 +1,26 @@
1
+ # Persona walkthrough protocol
2
+
3
+ Personas are hypothesis generators, not simulated users and not evidence of actual human behavior.
4
+
5
+ ## Walkthrough cast
6
+
7
+ | Persona lens | Force through the walkthrough |
8
+ |---|---|
9
+ | confused novice | no domain knowledge; relies on recognition/help; misunderstands jargon |
10
+ | impatient expert | keyboard/bulk/shortcut path; repeats task; notices latency/friction |
11
+ | screen-reader user | semantic name/order/state/status; no visual-only grouping |
12
+ | one-hand mobile user | reach/occlusion/interruption/small target/network switching |
13
+ | slow/offline network user | loading, stale cache, retry, duplication, background completion |
14
+ | non-native/RTL user | translation expansion, reading direction, formality, locale formats, IME |
15
+ | stressed/rushed user | low working memory, interruptions, error recovery, irreversible action risk |
16
+ | accessibility-dependent user | zoom, high contrast, reduced motion, switch/voice/controller input |
17
+
18
+ ## Protocol
19
+
20
+ 1. Pick 2–4 relevant lenses; do not perform theatrical personas unrelated to risk.
21
+ 2. Write the exact task, entry point, context, constraints, and success criterion.
22
+ 3. Step through without author knowledge. At each step record: what is perceived, what is ambiguous, expected next action, actual affordance, failure/recovery path.
23
+ 4. Mark outputs as hypotheses. Promote to findings only when supported by code, rendered inspection, deterministic behavior, or strong platform evidence.
24
+ 5. State what remains unverified because a real assistive technology/device/user was unavailable.
25
+
26
+ Do not use personas to launder taste (“the expert would find this ugly”). Use them to expose missing cues, memory burden, unsafe assumptions, and recovery failures.
@@ -0,0 +1,38 @@
1
+ # Polish checklist
2
+
3
+ Polish refines an accepted direction; do not use it to restart visual exploration.
4
+
5
+ ## Alignment and spacing
6
+
7
+ - inspect optical alignment of icons/text/baselines/caps, not only numeric boxes;
8
+ - equalize outer content edges and intentional asymmetry; remove accidental 1–2px drift where units allow;
9
+ - verify spacing rhythm at empty/compact/long-content states;
10
+ - test narrow/wide/text-scaled/RTL/window-resize/safe-area/keyboard occlusion.
11
+
12
+ ## States and interaction
13
+
14
+ - hover/focus/active/selected/disabled/pressed/visited where applicable;
15
+ - loading/success/error/empty/offline/permission/concurrency states;
16
+ - target size/hit area/focus visibility/keyboard and controller path;
17
+ - scroll restoration/back/escape/deep-link behavior.
18
+
19
+ ## Copy and localization
20
+
21
+ - buttons are consequence verbs; errors explain recovery; empty states give useful action;
22
+ - scan truncation, capitalization, punctuation, plural/gender, mixed bidi, long compounds, numeric/date/locale formats;
23
+ - remove filler, blame, fake enthusiasm, and repeated vague links.
24
+
25
+ ## Visual craft
26
+
27
+ - hierarchy survives squint/grayscale; no unintended color-only dependence;
28
+ - radius/elevation/border/shadow vary semantically rather than uniformly;
29
+ - image crop/provenance/alt treatment correct; icon optical sizes consistent;
30
+ - dark/light/high-contrast themes preserve semantic meaning and state visibility.
31
+
32
+ ## Motion/performance
33
+
34
+ - motion has purpose, correct duration/easing/interruptibility, and reduced-motion equivalent;
35
+ - no layout shift, input blockage, scroll-jacking, or decorative animation noise;
36
+ - inspect actual assets/fonts/images and priority ordering, not just bundle size.
37
+
38
+ Every polish note still needs evidence and severity; most are P3 unless they impair use.
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "rule": "gradient-text-treatment",
4
+ "file": "brand-critique.css",
5
+ "line": 3,
6
+ "reason": "Approved wordmark uses this treatment; checked legibility in both themes."
7
+ },
8
+ {
9
+ "rule": "rounded-accent-rail",
10
+ "file": "brand-critique.css",
11
+ "line": 17,
12
+ "reason": "Old callout from the previous brand guidelines."
13
+ }
14
+ ]
@@ -0,0 +1,18 @@
1
+ .heading {
2
+ background: linear-gradient(red, blue);
3
+ background-clip: text;
4
+ color: transparent;
5
+ }
6
+ .card {
7
+ border-radius: 12px;
8
+ border-inline-start: 6px solid teal;
9
+ }
10
+ .plain-heading {
11
+ background: linear-gradient(red, blue);
12
+ background-clip: padding-box;
13
+ color: black;
14
+ }
15
+ .plain-card {
16
+ border-radius: 12px;
17
+ border-inline-start: 1px solid teal;
18
+ }
@@ -0,0 +1,43 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <style>
6
+ :root {
7
+ --surface: Canvas;
8
+ --ink: CanvasText;
9
+ --accent: LinkText;
10
+ --focus: Highlight;
11
+ }
12
+ body {
13
+ font-family: ui-serif, Georgia, 'Times New Roman', serif;
14
+ background: var(--surface);
15
+ color: var(--ink);
16
+ }
17
+ .task-layout {
18
+ max-width: 68ch;
19
+ margin-inline: auto;
20
+ padding-inline: 1rem;
21
+ }
22
+ .button:focus-visible {
23
+ outline: 3px solid var(--focus);
24
+ outline-offset: 3px;
25
+ }
26
+ .status-panel {
27
+ border-block-start: 1px solid color-mix(in srgb, var(--ink), transparent 75%);
28
+ }
29
+ @media (prefers-reduced-motion: no-preference) {
30
+ .status-panel { transition: opacity 160ms ease-out; }
31
+ }
32
+ </style>
33
+ </head>
34
+ <body>
35
+ <main class="task-layout">
36
+ <h1>Review harvest measurements</h1>
37
+ <p>Compare observed moisture readings before approving the batch.</p>
38
+ <label for="batch">Batch identifier</label>
39
+ <input id="batch" name="batch" autocomplete="off">
40
+ <button class="button">Review batch</button>
41
+ </main>
42
+ </body>
43
+ </html>
@@ -0,0 +1,4 @@
1
+ button:focus-visible {
2
+ color: inherit;
3
+ }
4
+ input:focus { outline: none; }
@@ -0,0 +1,17 @@
1
+ @media (min-width: 40rem) {
2
+ button:focus-visible {
3
+ outline: none;
4
+ }
5
+ }
6
+
7
+ @supports (display: grid) {
8
+ input:focus {
9
+ outline: 0;
10
+ }
11
+ }
12
+
13
+ @layer components {
14
+ a:focus-visible {
15
+ outline: none currentColor;
16
+ }
17
+ }
@@ -0,0 +1,10 @@
1
+ /* button:focus-visible { outline: none; } */
2
+ button:focus-visible {
3
+ /* outline: none; */
4
+ outline: none currentColor;
5
+ outline: solid 2px currentColor;
6
+ }
7
+
8
+ input:focus-visible {
9
+ outline: /* inline comment */ none;
10
+ }
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html>
3
+ <body>
4
+ <p>Don't let this prose apostrophe leak into CSS parsing.</p>
5
+ <style>
6
+ /* input:focus-visible { outline: none; } */
7
+ button:focus-visible {
8
+ outline: none;
9
+ }
10
+ </style>
11
+ </body>
12
+ </html>
@@ -0,0 +1,27 @@
1
+ button:focus-visible {
2
+ outline: none;
3
+ outline-width: 3px;
4
+ }
5
+
6
+ input:focus-visible {
7
+ outline: none;
8
+ border-radius: 4px;
9
+ box-shadow: none;
10
+ }
11
+
12
+ a:focus-visible {
13
+ outline: none;
14
+ text-decoration-color: red;
15
+ text-decoration-line: none;
16
+ }
17
+
18
+ div:focus-visible {
19
+ outline: none;
20
+ border-width: 2px;
21
+ border-style: solid;
22
+ }
23
+
24
+ span:focus-visible {
25
+ outline: none;
26
+ border-color: transparent;
27
+ }
@@ -0,0 +1,19 @@
1
+ button {
2
+ color: inherit;
3
+
4
+ &:focus-visible {
5
+ outline: none;
6
+ }
7
+ }
8
+
9
+ input:focus {
10
+ &.compact {
11
+ outline: none;
12
+ }
13
+ }
14
+
15
+ a {
16
+ &:focus:not(:focus-visible) {
17
+ outline: none;
18
+ }
19
+ }
@@ -0,0 +1,8 @@
1
+ button:not(:focus-visible) {
2
+ outline: none;
3
+ }
4
+ input:focus:not(:focus-visible) {
5
+ outline: none;
6
+ border-radius: 4px;
7
+ box-shadow: none;
8
+ }
@@ -0,0 +1,11 @@
1
+ button:focus-visible {
2
+ outline: none currentColor;
3
+ }
4
+
5
+ input:focus-visible {
6
+ outline: 0 solid red;
7
+ }
8
+
9
+ a:focus-visible {
10
+ outline: 0px dashed red;
11
+ }
@@ -0,0 +1,15 @@
1
+ button:focus-visible {
2
+ outline: var(--focus-ring);
3
+ }
4
+
5
+ input:focus-visible {
6
+ outline: none;
7
+ border-width: 1px;
8
+ border-style: solid;
9
+ }
10
+
11
+ a:focus-visible {
12
+ outline: 0 var(--focus-outline);
13
+ border-width: 0;
14
+ border-style: solid;
15
+ }
@@ -0,0 +1,19 @@
1
+ button:focus-visible {
2
+ outline: var(--ring);
3
+ outline: none;
4
+ }
5
+
6
+ input:focus-visible {
7
+ outline: none;
8
+ outline: var(--ring);
9
+ }
10
+
11
+ a:focus-visible {
12
+ outline: 2px solid currentColor;
13
+ outline: none;
14
+ }
15
+
16
+ span:focus-visible {
17
+ outline: none;
18
+ outline: 2px solid currentColor;
19
+ }
@@ -0,0 +1,29 @@
1
+ button:focus-visible {
2
+ outline: none;
3
+ outline: 2px solid currentColor;
4
+ }
5
+
6
+ input:focus-visible {
7
+ outline: none;
8
+ border: 1px solid currentColor;
9
+ }
10
+
11
+ a:focus-visible {
12
+ outline: none;
13
+ border-color: currentColor;
14
+ }
15
+
16
+ span:focus-visible {
17
+ outline: none;
18
+ text-decoration: underline;
19
+ }
20
+
21
+ strong:focus-visible {
22
+ outline: none;
23
+ box-shadow: 0 0 0 2px currentColor;
24
+ }
25
+
26
+ em:focus-visible {
27
+ outline: none;
28
+ outline: thin dotted;
29
+ }
@@ -0,0 +1,3 @@
1
+ button:focus-visible {
2
+ outline: none;
3
+ }
@@ -0,0 +1,9 @@
1
+ button:focus-visible {
2
+ outline: none;
3
+ box-shadow: 0 0 0 3px currentColor;
4
+ }
5
+ input:focus-visible {
6
+ outline: none;
7
+ border-color: currentColor;
8
+ }
9
+ a:focus-visible { outline: none; text-decoration: underline; }
@@ -0,0 +1,28 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
5
+ <style>
6
+ body { font-family: Inter; background: linear-gradient(135deg, purple, blue); color: #111111; }
7
+ .hero { text-align: center; margin: 0 auto; }
8
+ .card { border-radius: 24px; transition: all .3s ease; box-shadow: 0 20px 40px #0004; }
9
+ .card2 { border-radius: 24px; box-shadow: 0 20px 40px #0004; color: #222222; }
10
+ .card3 { border-radius: 24px; box-shadow: 0 20px 40px #0004; color: #333333; }
11
+ .card4 { border-radius: 24px; box-shadow: 0 20px 40px #0004; color: #444444; }
12
+ button:focus { outline: none; }
13
+ @keyframes float { to { transform: translateY(-4px); } }
14
+ </style>
15
+ <script>
16
+ document.addEventListener('paste', function (event) { event.preventDefault(); });
17
+ </script>
18
+ </head>
19
+ <body>
20
+ <section class="hero">
21
+ <p>Elevate your workflow</p>
22
+ <h1>Unlock seamless productivity</h1>
23
+ <input placeholder="Email address">
24
+ <button><span class="icon">🚀</span> Get started</button>
25
+ <a href="/more">Learn more</a>
26
+ </section>
27
+ </body>
28
+ </html>