@thanhnguyxn/pixelcraft 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/.agents/plugins/marketplace.json +1 -1
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +1 -1
  4. package/.claude-plugin/plugin.json +15 -4
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/README.md +185 -328
  13. package/SECURITY.md +28 -0
  14. package/assets/pixelcraft-logo-128.png +0 -0
  15. package/assets/pixelcraft-logo-256.png +0 -0
  16. package/bin/pixelcraft.mjs +431 -23
  17. package/docs/ARCHITECTURE.md +40 -37
  18. package/docs/DESIGN-RATIONALE.md +51 -3
  19. package/docs/INSTALL.md +221 -0
  20. package/evals/README.md +16 -6
  21. package/evals/fixtures/3d-web-engineering.json +69 -0
  22. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  23. package/evals/fixtures/ai-ui-libraries.json +53 -0
  24. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  25. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  26. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  27. package/evals/fixtures/build-and-architecture.json +53 -0
  28. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  29. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  30. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  31. package/evals/fixtures/component-systems.json +53 -0
  32. package/evals/fixtures/component-testing.json +53 -0
  33. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  34. package/evals/fixtures/creative-code-rendering.json +69 -0
  35. package/evals/fixtures/creative-reference-evidence.json +67 -0
  36. package/evals/fixtures/data-app-python-marimo.json +49 -0
  37. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  38. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  39. package/evals/fixtures/desktop-native-workspace.json +48 -0
  40. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  41. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  42. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  43. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  44. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  45. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  46. package/evals/fixtures/enterprise-data-ui.json +53 -0
  47. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  48. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  49. package/evals/fixtures/file-upload-media-ui.json +53 -0
  50. package/evals/fixtures/forms-validation.json +53 -0
  51. package/evals/fixtures/game-go-ebitengine.json +49 -0
  52. package/evals/fixtures/game-godot-gdscript.json +49 -0
  53. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  54. package/evals/fixtures/i18n-engineering.json +53 -0
  55. package/evals/fixtures/local-first-sync.json +53 -0
  56. package/evals/fixtures/lynxjs.json +53 -0
  57. package/evals/fixtures/maizzle-email.json +53 -0
  58. package/evals/fixtures/maps-geospatial.json +53 -0
  59. package/evals/fixtures/media-og-and-video-export.json +43 -0
  60. package/evals/fixtures/media-players.json +53 -0
  61. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  62. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  63. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  64. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  65. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  66. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  67. package/evals/fixtures/motion-engineering.json +69 -0
  68. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  69. package/evals/fixtures/plan-discovery-interview.json +31 -0
  70. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  71. package/evals/fixtures/reactive-data-apps.json +53 -0
  72. package/evals/fixtures/review-evidence-audit.json +43 -0
  73. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  74. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  75. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  76. package/evals/fixtures/state-architecture.json +53 -0
  77. package/evals/fixtures/styling-ecosystem.json +53 -0
  78. package/evals/fixtures/token-tooling.json +53 -0
  79. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  80. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  81. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  82. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  83. package/evals/fixtures/web-3d-engines.json +53 -0
  84. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  85. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  86. package/evals/pixelcraft-accessibility.md +17 -0
  87. package/evals/pixelcraft-craft.md +16 -0
  88. package/evals/pixelcraft-dataviz.md +3 -3
  89. package/evals/pixelcraft-direction.md +17 -0
  90. package/evals/pixelcraft-game-ui.md +3 -3
  91. package/evals/pixelcraft-mobile.md +3 -3
  92. package/evals/pixelcraft-patterns.md +16 -0
  93. package/evals/pixelcraft-plan.md +65 -3
  94. package/evals/pixelcraft-review.md +3 -3
  95. package/evals/pixelcraft-visual-qa.md +11 -5
  96. package/evals/pixelcraft-web.md +21 -3
  97. package/evals/pixelcraft.md +4 -4
  98. package/gemini-extension.json +3 -2
  99. package/install.ps1 +57 -11
  100. package/install.sh +82 -7
  101. package/package.json +32 -4
  102. package/plugin.json +6 -1
  103. package/scripts/build-adapters.mjs +11 -13
  104. package/scripts/run-evals.mjs +397 -0
  105. package/scripts/sync-docs.mjs +381 -0
  106. package/scripts/test-build-adapters.mjs +14 -1
  107. package/scripts/test-cross-platform-qa.mjs +359 -0
  108. package/scripts/test-distribution.mjs +86 -7
  109. package/scripts/test-export-tokens.mjs +259 -3
  110. package/scripts/test-finish-gate.mjs +133 -10
  111. package/scripts/test-installers.mjs +155 -6
  112. package/scripts/test-shoot.mjs +23 -1
  113. package/scripts/test-slop-scan.mjs +390 -3
  114. package/scripts/test-style-inventory.mjs +23 -0
  115. package/scripts/test-sync-docs.mjs +140 -0
  116. package/scripts/test-validate-skills.mjs +82 -4
  117. package/scripts/validate-skills.mjs +149 -3
  118. package/skills/pixelcraft/SKILL.md +67 -47
  119. package/skills/pixelcraft/references/design-brief.md +2 -2
  120. package/skills/pixelcraft/references/floor.md +36 -19
  121. package/skills/pixelcraft/references/report-template.md +25 -11
  122. package/skills/pixelcraft/references/stack-detection.md +138 -67
  123. package/skills/pixelcraft/references/surface-acceptance.md +33 -21
  124. package/skills/pixelcraft/references/workflow-checkpoints.md +49 -7
  125. package/skills/pixelcraft-accessibility/SKILL.md +34 -13
  126. package/skills/pixelcraft-accessibility/references/apg-patterns.md +13 -0
  127. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  128. package/skills/pixelcraft-accessibility/references/platforms.md +34 -6
  129. package/skills/pixelcraft-accessibility/references/verification.md +15 -10
  130. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +38 -5
  131. package/skills/pixelcraft-brandkit/SKILL.md +42 -30
  132. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +90 -50
  133. package/skills/pixelcraft-brandkit/references/brand-governance.md +29 -27
  134. package/skills/pixelcraft-brandkit/references/logo-methods.md +33 -34
  135. package/skills/pixelcraft-brandkit/references/prompt-template.md +53 -51
  136. package/skills/pixelcraft-brandkit/references/qa-checklist.md +7 -2
  137. package/skills/pixelcraft-brandkit/references/visual-modes.md +16 -16
  138. package/skills/pixelcraft-chat-ui/SKILL.md +31 -27
  139. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  140. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  141. package/skills/pixelcraft-chat-ui/references/conversation-design.md +12 -6
  142. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +58 -68
  143. package/skills/pixelcraft-chat-ui/references/slack-discord.md +60 -76
  144. package/skills/pixelcraft-constrained/SKILL.md +21 -20
  145. package/skills/pixelcraft-constrained/references/specialized-hardware.md +69 -45
  146. package/skills/pixelcraft-constrained/references/tv-wearables.md +123 -73
  147. package/skills/pixelcraft-constrained/references/voice-ui.md +86 -45
  148. package/skills/pixelcraft-craft/SKILL.md +29 -15
  149. package/skills/pixelcraft-craft/references/color.md +62 -6
  150. package/skills/pixelcraft-craft/references/layout.md +32 -0
  151. package/skills/pixelcraft-craft/references/motion.md +99 -12
  152. package/skills/pixelcraft-craft/references/typography.md +48 -9
  153. package/skills/pixelcraft-data-apps/SKILL.md +50 -31
  154. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  155. package/skills/pixelcraft-data-apps/references/dash.md +87 -31
  156. package/skills/pixelcraft-data-apps/references/evidence.md +41 -26
  157. package/skills/pixelcraft-data-apps/references/gradio.md +65 -27
  158. package/skills/pixelcraft-data-apps/references/julia-genie.md +64 -29
  159. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +65 -27
  160. package/skills/pixelcraft-data-apps/references/nicegui.md +73 -34
  161. package/skills/pixelcraft-data-apps/references/observable-framework.md +65 -27
  162. package/skills/pixelcraft-data-apps/references/panel.md +69 -23
  163. package/skills/pixelcraft-data-apps/references/r-shiny.md +104 -34
  164. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  165. package/skills/pixelcraft-data-apps/references/reflex.md +85 -31
  166. package/skills/pixelcraft-data-apps/references/shiny.md +84 -27
  167. package/skills/pixelcraft-data-apps/references/streamlit.md +73 -25
  168. package/skills/pixelcraft-dataviz/SKILL.md +21 -24
  169. package/skills/pixelcraft-dataviz/references/color-accessibility.md +2 -2
  170. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +35 -25
  171. package/skills/pixelcraft-dataviz/references/libraries.md +165 -46
  172. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  173. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +58 -65
  174. package/skills/pixelcraft-desktop/SKILL.md +61 -39
  175. package/skills/pixelcraft-desktop/references/appkit.md +60 -26
  176. package/skills/pixelcraft-desktop/references/avalonia.md +65 -29
  177. package/skills/pixelcraft-desktop/references/cpp-gui.md +104 -27
  178. package/skills/pixelcraft-desktop/references/electron.md +68 -26
  179. package/skills/pixelcraft-desktop/references/go-gui.md +59 -30
  180. package/skills/pixelcraft-desktop/references/gtk.md +74 -31
  181. package/skills/pixelcraft-desktop/references/javafx-swing.md +54 -25
  182. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +57 -30
  183. package/skills/pixelcraft-desktop/references/rust-gui.md +59 -41
  184. package/skills/pixelcraft-desktop/references/tauri.md +80 -24
  185. package/skills/pixelcraft-desktop/references/uno-platform.md +42 -23
  186. package/skills/pixelcraft-desktop/references/winui-wpf.md +66 -26
  187. package/skills/pixelcraft-desktop/references/working-context.md +82 -3
  188. package/skills/pixelcraft-direction/SKILL.md +48 -82
  189. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  190. package/skills/pixelcraft-direction/references/direction-card.md +11 -1
  191. package/skills/pixelcraft-direction/references/direction-scoring.md +5 -1
  192. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  193. package/skills/pixelcraft-direction/references/movements.md +3 -0
  194. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  195. package/skills/pixelcraft-direction/references/slop-fingerprints.md +32 -7
  196. package/skills/pixelcraft-document/SKILL.md +27 -23
  197. package/skills/pixelcraft-document/references/archetypes.md +27 -4
  198. package/skills/pixelcraft-document/references/pdf-tools.md +241 -81
  199. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  200. package/skills/pixelcraft-document/references/print-css.md +96 -43
  201. package/skills/pixelcraft-document/references/slides.md +123 -27
  202. package/skills/pixelcraft-email/SKILL.md +42 -20
  203. package/skills/pixelcraft-email/references/client-quirks.md +101 -33
  204. package/skills/pixelcraft-email/references/html-tables.md +83 -22
  205. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  206. package/skills/pixelcraft-email/references/mjml.md +13 -11
  207. package/skills/pixelcraft-email/references/react-email.md +76 -34
  208. package/skills/pixelcraft-extensions/SKILL.md +32 -27
  209. package/skills/pixelcraft-extensions/references/browser-extensions.md +91 -17
  210. package/skills/pixelcraft-extensions/references/figma-office.md +97 -14
  211. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  212. package/skills/pixelcraft-extensions/references/raycast.md +90 -11
  213. package/skills/pixelcraft-extensions/references/vscode-webviews.md +91 -17
  214. package/skills/pixelcraft-game-ui/SKILL.md +45 -26
  215. package/skills/pixelcraft-game-ui/references/bevy.md +69 -31
  216. package/skills/pixelcraft-game-ui/references/godot.md +100 -27
  217. package/skills/pixelcraft-game-ui/references/hud-principles.md +50 -21
  218. package/skills/pixelcraft-game-ui/references/love2d.md +53 -27
  219. package/skills/pixelcraft-game-ui/references/monogame.md +45 -29
  220. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  221. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +69 -27
  222. package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -26
  223. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  224. package/skills/pixelcraft-handoff/SKILL.md +14 -13
  225. package/skills/pixelcraft-handoff/references/design-translation.md +40 -10
  226. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  227. package/skills/pixelcraft-media/SKILL.md +20 -23
  228. package/skills/pixelcraft-media/references/banners-video.md +83 -65
  229. package/skills/pixelcraft-media/references/og-generation.md +110 -63
  230. package/skills/pixelcraft-media/references/social-cards.md +57 -58
  231. package/skills/pixelcraft-mobile/SKILL.md +53 -36
  232. package/skills/pixelcraft-mobile/references/dotnet-maui.md +62 -34
  233. package/skills/pixelcraft-mobile/references/flet.md +53 -26
  234. package/skills/pixelcraft-mobile/references/flutter.md +76 -32
  235. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  236. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +48 -26
  237. package/skills/pixelcraft-mobile/references/jetpack-compose.md +92 -24
  238. package/skills/pixelcraft-mobile/references/kivy.md +54 -31
  239. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +53 -27
  240. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  241. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  242. package/skills/pixelcraft-mobile/references/react-native-expo.md +66 -31
  243. package/skills/pixelcraft-mobile/references/swiftui.md +158 -28
  244. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  245. package/skills/pixelcraft-mobile/references/task-state-composition.md +82 -2
  246. package/skills/pixelcraft-mobile/references/uikit.md +57 -23
  247. package/skills/pixelcraft-patterns/SKILL.md +30 -13
  248. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  249. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  250. package/skills/pixelcraft-patterns/references/auth-onboarding.md +32 -13
  251. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  252. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  253. package/skills/pixelcraft-patterns/references/commerce.md +35 -16
  254. package/skills/pixelcraft-patterns/references/communication.md +34 -15
  255. package/skills/pixelcraft-patterns/references/creative-tools.md +30 -17
  256. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  257. package/skills/pixelcraft-patterns/references/dashboard-admin.md +22 -18
  258. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  259. package/skills/pixelcraft-patterns/references/marketing.md +31 -19
  260. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  261. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  262. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  263. package/skills/pixelcraft-patterns/references/pattern-selection.md +8 -2
  264. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  265. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  266. package/skills/pixelcraft-patterns/references/settings.md +40 -12
  267. package/skills/pixelcraft-plan/SKILL.md +54 -18
  268. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  269. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  270. package/skills/pixelcraft-plan/references/plan-template.md +44 -9
  271. package/skills/pixelcraft-plan/references/repo-discovery.md +16 -9
  272. package/skills/pixelcraft-plan/references/stack-freshness.md +22 -5
  273. package/skills/pixelcraft-plan/references/stack-selection.md +65 -9
  274. package/skills/pixelcraft-review/SKILL.md +41 -19
  275. package/skills/pixelcraft-review/references/audit-report.md +20 -1
  276. package/skills/pixelcraft-review/references/heuristics.md +63 -18
  277. package/skills/pixelcraft-review/references/personas.md +41 -14
  278. package/skills/pixelcraft-review/references/polish.md +66 -26
  279. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  280. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  281. package/skills/pixelcraft-review/scripts/slop-scan.mjs +679 -32
  282. package/skills/pixelcraft-spatial/SKILL.md +16 -17
  283. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +25 -84
  284. package/skills/pixelcraft-spatial/references/platforms.md +123 -53
  285. package/skills/pixelcraft-tokens/SKILL.md +18 -14
  286. package/skills/pixelcraft-tokens/assets/tokens.example.json +1 -1
  287. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +1 -1
  288. package/skills/pixelcraft-tokens/references/format.md +39 -9
  289. package/skills/pixelcraft-tokens/references/governance.md +1 -1
  290. package/skills/pixelcraft-tokens/references/theme-presets.md +36 -8
  291. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  292. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +637 -75
  293. package/skills/pixelcraft-tui/SKILL.md +41 -25
  294. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +49 -30
  295. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  296. package/skills/pixelcraft-tui/references/ink.md +77 -28
  297. package/skills/pixelcraft-tui/references/ratatui.md +70 -30
  298. package/skills/pixelcraft-tui/references/rich.md +53 -33
  299. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  300. package/skills/pixelcraft-tui/references/textual.md +75 -34
  301. package/skills/pixelcraft-ux/SKILL.md +22 -12
  302. package/skills/pixelcraft-ux/references/feedback-performance.md +39 -19
  303. package/skills/pixelcraft-ux/references/forms.md +57 -3
  304. package/skills/pixelcraft-ux/references/i18n.md +50 -12
  305. package/skills/pixelcraft-ux/references/laws.md +35 -14
  306. package/skills/pixelcraft-ux/references/state-matrix.md +15 -1
  307. package/skills/pixelcraft-ux/references/ux-writing.md +1 -0
  308. package/skills/pixelcraft-visual-qa/SKILL.md +21 -7
  309. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +28 -7
  310. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  311. package/skills/pixelcraft-visual-qa/references/capture-email.md +13 -9
  312. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +20 -5
  313. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +6 -2
  314. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  315. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +25 -12
  316. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  317. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  318. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  319. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  320. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  321. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +50 -11
  322. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +214 -59
  323. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +121 -49
  324. package/skills/pixelcraft-web/SKILL.md +105 -49
  325. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  326. package/skills/pixelcraft-web/references/adaptive-layout.md +52 -8
  327. package/skills/pixelcraft-web/references/angular.md +63 -16
  328. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  329. package/skills/pixelcraft-web/references/astro.md +64 -13
  330. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  331. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  332. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  333. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  334. package/skills/pixelcraft-web/references/clojurescript.md +52 -17
  335. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  336. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  337. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  338. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  339. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  340. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  341. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  342. package/skills/pixelcraft-web/references/fsharp-fable.md +3 -2
  343. package/skills/pixelcraft-web/references/gsap.md +102 -0
  344. package/skills/pixelcraft-web/references/html-css.md +144 -12
  345. package/skills/pixelcraft-web/references/htmx-alpine.md +68 -18
  346. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  347. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  348. package/skills/pixelcraft-web/references/java-web.md +27 -18
  349. package/skills/pixelcraft-web/references/kotlin-web.md +6 -2
  350. package/skills/pixelcraft-web/references/leptos-yew.md +62 -19
  351. package/skills/pixelcraft-web/references/lit-web-components.md +4 -2
  352. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  353. package/skills/pixelcraft-web/references/media-players.md +104 -0
  354. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  355. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  356. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  357. package/skills/pixelcraft-web/references/pwa.md +6 -1
  358. package/skills/pixelcraft-web/references/qwik.md +51 -11
  359. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  360. package/skills/pixelcraft-web/references/react-next.md +112 -13
  361. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  362. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  363. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  364. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  365. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  366. package/skills/pixelcraft-web/references/server-rendered.md +106 -63
  367. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  368. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  369. package/skills/pixelcraft-web/references/solid.md +67 -16
  370. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  371. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  372. package/skills/pixelcraft-web/references/svelte.md +61 -11
  373. package/skills/pixelcraft-web/references/tailwind.md +40 -14
  374. package/skills/pixelcraft-web/references/video-media.md +69 -0
  375. package/skills/pixelcraft-web/references/vue-nuxt.md +37 -13
  376. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -6,6 +6,11 @@ import os from 'node:os';
6
6
  import path from 'node:path';
7
7
  import { fileURLToPath } from 'node:url';
8
8
 
9
+ if (process.argv.includes('--help') || process.argv.includes('-h')) {
10
+ console.log('Usage: node scripts/test-validate-skills.mjs\n\nRuns contract tests for scripts/validate-skills.mjs.');
11
+ process.exit(0);
12
+ }
13
+
9
14
  const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
10
15
  const validatorSource = path.join(root, 'scripts/validate-skills.mjs');
11
16
  const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'pixelcraft-validator-test-'));
@@ -44,13 +49,13 @@ const validFixture = JSON.stringify({
44
49
  }, null, 2);
45
50
  fs.writeFileSync(path.join(tmp, 'evals/fixtures/case-valid.json'), `${validFixture}\n`);
46
51
 
47
- function runValidator(frontmatter) {
48
- fs.writeFileSync(skillFile, `---\n${frontmatter}\n---\n\n# Case\n`);
52
+ function runValidator(frontmatter, body = '# Case\n') {
53
+ fs.writeFileSync(skillFile, `---\n${frontmatter}\n---\n\n${body}`);
49
54
  return spawnSync(process.execPath, [validator], { encoding: 'utf8' });
50
55
  }
51
56
 
52
- function expectFailure(frontmatter, pattern, label) {
53
- const result = runValidator(frontmatter);
57
+ function expectFailure(frontmatter, pattern, label, body = '# Case\n') {
58
+ const result = runValidator(frontmatter, body);
54
59
  assert.notEqual(result.status, 0, `${label} unexpectedly passed`);
55
60
  assert.match(result.stderr, pattern, `${label} failed with unexpected message: ${result.stderr}`);
56
61
  }
@@ -111,7 +116,80 @@ try {
111
116
  fs.rmSync(path.join(tmp, 'evals/fixtures/case-broken.json'));
112
117
  console.log('ok 9 - evaluation fixture negative controls are required');
113
118
 
119
+ expectFailure('name: case\ndescription: Handles YAML\nalwaysApply: true\nlicense: MIT', /unsupported non-portable frontmatter key: alwaysApply/, 'disallowed host-specific frontmatter key');
120
+ console.log('ok 10 - non-portable frontmatter keys are rejected');
121
+
122
+ const refsDir = path.join(skillDir, 'references');
123
+ fs.mkdirSync(refsDir, { recursive: true });
124
+ fs.writeFileSync(path.join(refsDir, 'orphan.md'), '# Orphan\n');
125
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /orphan reference not linked from SKILL\.md/, 'orphan reference');
126
+ fs.writeFileSync(path.join(refsDir, 'orphan.md'), '# Linked\n\nSee [broken](missing.md).\n');
127
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /broken relative link: missing\.md/, 'broken link in reference', '# Case\n\n- Read [references/orphan.md](references/orphan.md) when testing.\n');
128
+ fs.writeFileSync(path.join(refsDir, 'orphan.md'), '# Linked\n\n```sh\nnpm run build || true\n```\n');
129
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /suppresses command failures/, 'suppressed shell failure in reference', '# Case\n\n- Read [references/orphan.md](references/orphan.md) when testing.\n');
130
+ fs.writeFileSync(path.join(refsDir, 'orphan.md'), '# Linked\n');
131
+ fs.mkdirSync(path.join(refsDir, 'nested'), { recursive: true });
132
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /must stay one level deep/, 'nested references subdirectory', '# Case\n\n- Read [references/orphan.md](references/orphan.md) when testing.\n');
133
+ fs.rmSync(refsDir, { recursive: true, force: true });
134
+ console.log('ok 11 - orphan refs, nested ref dirs, ref links, and shell suppressions are enforced');
135
+
136
+ const badRouteFixture = JSON.parse(validFixture);
137
+ badRouteFixture.id = 'case-bad-route';
138
+ badRouteFixture.expectedRouting = ['case', 'references/does-not-exist.md'];
139
+ fs.writeFileSync(path.join(tmp, 'evals/fixtures/case-bad-route.json'), `${JSON.stringify(badRouteFixture, null, 2)}\n`);
140
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /expectedRouting references missing file/, 'missing expectedRouting reference');
141
+ fs.rmSync(path.join(tmp, 'evals/fixtures/case-bad-route.json'));
142
+ console.log('ok 12 - expectedRouting file targets are verified');
143
+
144
+ // Duplicate consecutive headings and duplicate Domain/Platform routing headings
145
+ expectFailure(
146
+ 'name: case\ndescription: Handles YAML\nlicense: MIT',
147
+ /duplicate consecutive heading: ## Details/,
148
+ 'duplicate consecutive heading',
149
+ '# Case\n\n## Details\n\nText.\n\n## Details\n\nMore text.\n',
150
+ );
151
+ expectFailure(
152
+ 'name: case\ndescription: Handles YAML\nlicense: MIT',
153
+ /duplicate '## Domain routing' heading/,
154
+ 'duplicate Domain routing heading',
155
+ '# Case\n\n## Domain routing\n\nA.\n\n## Notes\n\nB.\n\n## Domain routing\n\nC.\n',
156
+ );
157
+ expectFailure(
158
+ 'name: case\ndescription: Handles YAML\nlicense: MIT',
159
+ /duplicate '## Platform routing' heading/,
160
+ 'duplicate Platform routing heading',
161
+ '# Case\n\n## Platform routing\n\nA.\n\n## Notes\n\nB.\n\n## Platform routing\n\nC.\n',
162
+ );
163
+ console.log('ok 13 - duplicate consecutive headings and duplicate Domain/Platform routing headings are rejected');
164
+
165
+ // Platform routing table sync enforcement on skills/pixelcraft/SKILL.md
166
+ const orchDir = path.join(tmp, 'skills/pixelcraft');
167
+ const surfDir = path.join(tmp, 'skills/pixelcraft-demo');
168
+ const surfRefsDir = path.join(surfDir, 'references');
169
+ fs.mkdirSync(orchDir, { recursive: true });
170
+ fs.mkdirSync(surfRefsDir, { recursive: true });
171
+ fs.writeFileSync(path.join(tmp, 'evals/pixelcraft.md'), '# Eval\n\n## Case 1 — demo\n');
172
+ fs.writeFileSync(path.join(tmp, 'evals/pixelcraft-demo.md'), '# Eval\n\n## Case 1 — demo\n');
173
+ fs.writeFileSync(path.join(surfRefsDir, 'alpha.md'), '# Alpha\n');
174
+ fs.writeFileSync(path.join(surfRefsDir, 'beta.md'), '# Beta\n');
175
+ fs.writeFileSync(path.join(surfDir, 'SKILL.md'), '---\nname: pixelcraft-demo\ndescription: Demo platform skill.\nlicense: MIT\n---\n\n# Demo\n\n- Read [references/alpha.md](references/alpha.md) when alpha.\n- Read [references/beta.md](references/beta.md) when beta.\n');
176
+
177
+ // Missing reference ('beta') in Platform routing table -> fails
178
+ fs.writeFileSync(path.join(orchDir, 'SKILL.md'), '---\nname: pixelcraft\ndescription: Orchestrator.\nlicense: MIT\n---\n\n# Orchestrator\n\n## Platform routing\n\n| Platform skill | Framework and surface references |\n|---|---|\n| `pixelcraft-demo` | `alpha` |\n');
179
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /Platform routing table for pixelcraft-demo is missing reference 'beta'/, 'missing platform routing ref');
180
+
181
+ // Nonexistent reference ('ghost') in Platform routing table -> fails
182
+ fs.writeFileSync(path.join(orchDir, 'SKILL.md'), '---\nname: pixelcraft\ndescription: Orchestrator.\nlicense: MIT\n---\n\n# Orchestrator\n\n## Platform routing\n\n| Platform skill | Framework and surface references |\n|---|---|\n| `pixelcraft-demo` | `alpha`, `beta`, `ghost` |\n');
183
+ expectFailure('name: case\ndescription: Handles YAML\nlicense: MIT', /Platform routing table for pixelcraft-demo lists nonexistent reference 'ghost'/, 'nonexistent platform routing ref');
184
+
185
+ // Exact match -> passes
186
+ fs.writeFileSync(path.join(orchDir, 'SKILL.md'), '---\nname: pixelcraft\ndescription: Orchestrator.\nlicense: MIT\n---\n\n# Orchestrator\n\n## Platform routing\n\n| Platform skill | Framework and surface references |\n|---|---|\n| `pixelcraft-demo` | `alpha`, `beta` |\n');
187
+ const syncedRun = runValidator('name: case\ndescription: Handles YAML\nlicense: MIT');
188
+ assert.equal(syncedRun.status, 0, syncedRun.stderr);
189
+ console.log('ok 14 - Platform routing table reference sync enforces both missing and nonexistent references');
190
+
114
191
  console.log('validator YAML tests passed');
115
192
  } finally {
116
193
  fs.rmSync(tmp, { recursive: true, force: true });
117
194
  }
195
+
@@ -7,9 +7,16 @@ import { fileURLToPath } from 'node:url';
7
7
  const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
8
8
  const skillsRoot = path.join(root, 'skills');
9
9
  const evalsRoot = path.join(root, 'evals');
10
+ const rootScriptsDir = path.join(root, 'scripts');
10
11
  const errors = [];
11
12
  const namePattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
12
13
  const yamlPlainStartPattern = /^[-?:,\[\]{}#&*!|>'"%@`]/;
14
+ const allowedFrontmatterKeys = new Set(['name', 'description', 'license', 'metadata']);
15
+
16
+ if (process.argv.includes('--help') || process.argv.includes('-h')) {
17
+ console.log('Usage: node scripts/validate-skills.mjs\n\nValidates all skills/*/SKILL.md frontmatter, body limits, local/reference links, orphan references, eval guides/fixtures, and script --help contracts.');
18
+ process.exit(0);
19
+ }
13
20
 
14
21
  function fail(file, message) {
15
22
  errors.push(`${path.relative(root, file)}: ${message}`);
@@ -277,6 +284,7 @@ function parseFrontmatter(file, text) {
277
284
  const match = /^([A-Za-z0-9_-]+):(?:[ \t]*(.*))?$/.exec(line);
278
285
  if (!match) return { error: `unparseable frontmatter line: ${line}` };
279
286
  const [, key, raw = ''] = match;
287
+ if (!allowedFrontmatterKeys.has(key)) return { error: `unsupported non-portable frontmatter key: ${key}` };
280
288
  if (seen.has(key)) return { error: `duplicate frontmatter key: ${key}` };
281
289
  seen.add(key);
282
290
  const requiresScalar = key === 'name' || key === 'description';
@@ -325,7 +333,7 @@ function stripCode(text) {
325
333
  return text.replace(/^```[\s\S]*?^```/gm, '').replace(/`[^`\n]*`/g, '');
326
334
  }
327
335
 
328
- function checkLinks(file, skillDir, skillName, text) {
336
+ function checkLinks(file, baseDir, skillName, text) {
329
337
  const visible = stripCode(text);
330
338
  const linkPattern = /\[[^\]\n]+\]\(([^)\s]+)(?:\s+["'][^"']*["'])?\)/g;
331
339
  for (const match of visible.matchAll(linkPattern)) {
@@ -333,7 +341,7 @@ function checkLinks(file, skillDir, skillName, text) {
333
341
  if (!target || target.startsWith('#') || /^[a-z][a-z0-9+.-]*:/i.test(target)) continue;
334
342
  target = decodeURIComponent(target.split('#')[0].split('?')[0]);
335
343
  if (!target) continue;
336
- const resolved = path.resolve(skillDir, target);
344
+ const resolved = path.resolve(baseDir, target);
337
345
  const relToSkills = path.relative(skillsRoot, resolved);
338
346
  if (!relToSkills.startsWith('..') && !path.isAbsolute(relToSkills)) {
339
347
  const owner = relToSkills.split(path.sep)[0];
@@ -343,6 +351,17 @@ function checkLinks(file, skillDir, skillName, text) {
343
351
  }
344
352
  }
345
353
 
354
+ function checkSuppressedShellCommands(file, text) {
355
+ const fencePattern = /^```([a-zA-Z0-9_-]*)\r?\n([\s\S]*?)^```/gm;
356
+ for (const match of text.matchAll(fencePattern)) {
357
+ const lang = (match[1] || '').toLowerCase();
358
+ if (lang && !['sh', 'bash', 'shell', 'zsh'].includes(lang)) continue;
359
+ if (/\|\|\s*true\b/.test(match[2])) {
360
+ fail(file, 'shell snippet suppresses command failures with `|| true`');
361
+ }
362
+ }
363
+ }
364
+
346
365
  function checkScriptHelp(file) {
347
366
  const result = spawnSync(process.execPath, [file, '--help'], { encoding: 'utf8' });
348
367
  const output = `${result.stdout}\n${result.stderr}`;
@@ -403,6 +422,18 @@ function checkEvalFixture(file, skillNames, seenIds) {
403
422
  }
404
423
 
405
424
  checkStringArray(file, fixture.expectedRouting, 'expectedRouting');
425
+ if (Array.isArray(fixture.expectedRouting)) {
426
+ const routedSkills = [fixture.skill, ...fixture.expectedRouting.filter((item) => isNonEmptyString(item) && skillNames.has(item))];
427
+ for (const entry of fixture.expectedRouting) {
428
+ if (!isNonEmptyString(entry)) continue;
429
+ if (/^pixelcraft(?:-[a-z0-9]+)*$/.test(entry) && !skillNames.has(entry)) {
430
+ fail(file, `expectedRouting references unknown skill: ${entry}`);
431
+ } else if (entry.startsWith('references/')) {
432
+ const exists = routedSkills.some((owner) => owner && fs.existsSync(path.join(skillsRoot, owner, entry)));
433
+ if (!exists) fail(file, `expectedRouting references missing file: ${entry}`);
434
+ }
435
+ }
436
+ }
406
437
  checkStringArray(file, fixture.forbiddenBehaviors, 'forbiddenBehaviors');
407
438
 
408
439
  if (!Array.isArray(fixture.rubricDimensions) || fixture.rubricDimensions.length === 0) {
@@ -484,7 +515,28 @@ for (const entry of skillDirs) {
484
515
  if (!data.description || !data.description.trim()) fail(file, 'description is missing or empty');
485
516
  else if (data.description.length > 1024) fail(file, `description is ${data.description.length} characters; limit is 1024`);
486
517
  if (bodyLines.length > 500) fail(file, `body has ${bodyLines.length} lines; limit is 500`);
518
+ checkSkillHeadings(file, bodyLines);
487
519
  checkLinks(file, skillDir, skillName, text);
520
+ checkSuppressedShellCommands(file, text);
521
+
522
+ const refsDir = path.join(skillDir, 'references');
523
+ if (fs.existsSync(refsDir)) {
524
+ const visibleSkillText = stripCode(text);
525
+ for (const refEntry of fs.readdirSync(refsDir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
526
+ const refPath = path.join(refsDir, refEntry.name);
527
+ if (refEntry.isDirectory()) {
528
+ fail(refPath, 'references/ must stay one level deep (no subdirectories)');
529
+ continue;
530
+ }
531
+ if (!refEntry.isFile() || !refEntry.name.endsWith('.md')) continue;
532
+ if (!visibleSkillText.includes(`references/${refEntry.name}`)) {
533
+ fail(refPath, `orphan reference not linked from SKILL.md`);
534
+ }
535
+ const refText = fs.readFileSync(refPath, 'utf8');
536
+ checkLinks(refPath, refsDir, skillName, refText);
537
+ checkSuppressedShellCommands(refPath, refText);
538
+ }
539
+ }
488
540
 
489
541
  const evalFile = path.join(evalsRoot, `${skillName}.md`);
490
542
  if (!fs.existsSync(evalFile)) {
@@ -502,7 +554,15 @@ for (const entry of skillDirs) {
502
554
  }
503
555
  }
504
556
 
505
- checkEvalFixtures(new Set(skillDirs.map((entry) => entry.name)));
557
+ const skillNameSet = new Set(skillDirs.map((entry) => entry.name));
558
+ checkPlatformRoutingSync(skillNameSet);
559
+ checkEvalFixtures(skillNameSet);
560
+
561
+ if (fs.existsSync(rootScriptsDir)) {
562
+ for (const script of fs.readdirSync(rootScriptsDir).filter((name) => name.endsWith('.mjs')).sort()) {
563
+ checkScriptHelp(path.join(rootScriptsDir, script));
564
+ }
565
+ }
506
566
 
507
567
  if (errors.length) {
508
568
  console.error(`Skill validation failed (${errors.length} problem${errors.length === 1 ? '' : 's'}):`);
@@ -510,3 +570,89 @@ if (errors.length) {
510
570
  process.exit(1);
511
571
  }
512
572
  console.log(`Skill validation passed: ${skillDirs.length} skill${skillDirs.length === 1 ? '' : 's'} checked.`);
573
+
574
+ function checkSkillHeadings(file, bodyLines) {
575
+ let inCodeFence = false;
576
+ let prevHeading = null;
577
+ const seenRouting = new Set();
578
+ for (const line of bodyLines) {
579
+ if (/^```/.test(line.trimStart())) {
580
+ inCodeFence = !inCodeFence;
581
+ continue;
582
+ }
583
+ if (inCodeFence) continue;
584
+ const match = /^(#{1,6})\s+(.+?)\s*$/.exec(line);
585
+ if (!match) continue;
586
+ const level = match[1];
587
+ const title = match[2].trim().toLowerCase();
588
+ const normalized = `${level} ${title}`;
589
+ if (prevHeading !== null && normalized === prevHeading) {
590
+ fail(file, `duplicate consecutive heading: ${line.trim()}`);
591
+ }
592
+ prevHeading = normalized;
593
+ if (level === '##' && (title === 'domain routing' || title === 'platform routing')) {
594
+ if (seenRouting.has(normalized)) {
595
+ fail(file, `duplicate '${line.trim()}' heading`);
596
+ }
597
+ seenRouting.add(normalized);
598
+ }
599
+ }
600
+ }
601
+
602
+ function checkPlatformRoutingSync(skillNames) {
603
+ const orchestratorFile = path.join(skillsRoot, 'pixelcraft', 'SKILL.md');
604
+ if (!fs.existsSync(orchestratorFile)) return;
605
+ const text = fs.readFileSync(orchestratorFile, 'utf8').replace(/^```[\s\S]*?^```/gm, '');
606
+ const headerMatch = /^##\s+Platform routing\s*$/mi.exec(text);
607
+ if (!headerMatch) {
608
+ fail(orchestratorFile, "missing '## Platform routing' section");
609
+ return;
610
+ }
611
+ const rest = text.slice(headerMatch.index + headerMatch[0].length);
612
+ const nextSection = rest.search(/^##\s+/m);
613
+ const section = nextSection >= 0 ? rest.slice(0, nextSection) : rest;
614
+
615
+ const seenPlatformRows = new Set();
616
+ for (const rawLine of section.split(/\r?\n/)) {
617
+ const m = /^\|\s*`(pixelcraft-[a-z0-9-]+)`\s*\|\s*(.+?)\s*\|$/.exec(rawLine.trim());
618
+ if (!m) continue;
619
+ const platformSkill = m[1];
620
+ const cell = m[2];
621
+ if (seenPlatformRows.has(platformSkill)) {
622
+ fail(orchestratorFile, `duplicate Platform routing row for ${platformSkill}`);
623
+ continue;
624
+ }
625
+ seenPlatformRows.add(platformSkill);
626
+ if (!skillNames.has(platformSkill)) {
627
+ fail(orchestratorFile, `Platform routing table references unknown skill: ${platformSkill}`);
628
+ continue;
629
+ }
630
+ const listed = new Set();
631
+ for (const refMatch of cell.matchAll(/`([a-z0-9][a-z0-9-]*)`/g)) {
632
+ const refName = refMatch[1];
633
+ if (listed.has(refName)) {
634
+ fail(orchestratorFile, `Platform routing table for ${platformSkill} lists duplicate reference '${refName}'`);
635
+ }
636
+ listed.add(refName);
637
+ }
638
+ const refsDir = path.join(skillsRoot, platformSkill, 'references');
639
+ const actual = new Set();
640
+ if (fs.existsSync(refsDir)) {
641
+ for (const entry of fs.readdirSync(refsDir, { withFileTypes: true })) {
642
+ if (entry.isFile() && entry.name.endsWith('.md')) {
643
+ actual.add(entry.name.slice(0, -3));
644
+ }
645
+ }
646
+ }
647
+ for (const stem of [...actual].sort()) {
648
+ if (!listed.has(stem)) {
649
+ fail(orchestratorFile, `Platform routing table for ${platformSkill} is missing reference '${stem}'`);
650
+ }
651
+ }
652
+ for (const stem of [...listed].sort()) {
653
+ if (!actual.has(stem)) {
654
+ fail(orchestratorFile, `Platform routing table for ${platformSkill} lists nonexistent reference '${stem}'`);
655
+ }
656
+ }
657
+ }
658
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: pixelcraft
3
- description: Orchestrates distinctive, evidence-verified UI work across any frontend stack. Use when designing, building, redesigning, auditing, or polishing interfaces, pages, screens, components, emails, terminal UI, game UI, or app shells. Detects the stack and surface mode, runs the Pixelcraft loop, routes to named Pixelcraft skills, applies the mandatory cross-platform floor, and produces an evidence-labeled final report.
3
+ description: Orchestrates distinctive, evidence-verified UI work across any frontend stack. Use when designing, building, redesigning, auditing, brainstorming, grilling requirements, or polishing web apps, mobile apps, desktop windows, data apps, terminal UI, game UI, emails, paginated documents/PDFs/slides, social/video media, chat/bot/AI assistant UI, spatial/XR, constrained TV/wearable/voice/embedded surfaces, browser/IDE extensions, dataviz dashboards, brand kits, or Figma design handoffs. Detects the stack and surface mode, runs the Pixelcraft loop with Grill-Me discovery, creative divergence, anti-slop iron laws, and produces an evidence-labeled final report.
4
4
  license: MIT
5
5
  metadata:
6
6
  version: 0.1.0
@@ -26,17 +26,33 @@ Never override a user or project decision because it resembles a common pattern.
26
26
 
27
27
  When the user asks to implement an approved design, do **not** run divergence or change visual direction. Route through `pixelcraft-handoff` to preserve layout, hierarchy, token/color/type decisions, interaction meaning, and accessibility while translating into the actual stack. Divergence applies only to undecided parts: missing states/breakpoints/behavior, token or accessibility gaps, and regions explicitly classified as inspiration rather than specification.
28
28
 
29
+ ## Iron laws and rationalization table
30
+
31
+ | Excuse the agent is tempted to use | Required reality |
32
+ |---|---|
33
+ | "This is a quick demo / small page, skip Plan & Diverge." | Scale depth proportionally, never skip checkpoints. Only narrow bug fixes, copy tweaks, or approved designs use Direct Execution. |
34
+ | "I'll guess requirements and jump straight to code to save a turn." | When scope or direction is open, inspect the repo first, run `pixelcraft-plan` Grill-Me one question at a time, and stop at the pre-code Design Approval gate. |
35
+ | "Tkinter / Electron / Streamlit / raw `print()` / DIY modal is faster." | Reject lazy defaults and fragile DIY widgets. Use the Stack & Library Craft Gate in `pixelcraft-plan` to pick native primitives or purpose-built libraries. |
36
+ | "I'll leave `// TODO`, `// ...`, empty `onClick`, or 3 mock rows for now." | Zero stubs, zero ellipsis truncation, zero dead handlers, zero unapproved mock data posing as live state. |
37
+ | "Playwright/device isn't handy, so `not-checked` or `static` means pass." | Attempt available local tools first (`slop-scan`, `check-*`, `check-acceptance`, runtime/test runner). **Rule #0.3:** `static` or `model-judgment` **never** counts as `pass` for visual appearance, performance budgets, or interactive/assistive a11y; never claim "ready to ship" on `not-checked` scope. |
38
+ | "Code is written / I did one quick pass, so I can stop now." | **Forbidden.** Enforce the **Completion & Scan-Until-Clean `<HARD-GATE>`**: walk every applicable checklist (`floor.md`, platform `Pre-submit`, `polish.md`) and run `scan → fix → rescan` until all deterministic scans (`slop-scan --fail-on p2`, `check-*`, compiler/linter/tests) and `check-acceptance.mjs .pixelcraft/acceptance.json` pass with `0` `fail`/`pending` rows. |
39
+
29
40
  ## References
30
41
 
31
42
  - Read [references/stack-detection.md](references/stack-detection.md) when identifying the frontend stack, rendering surface, input modality, or existing design system.
32
43
  - Read [references/design-brief.md](references/design-brief.md) during framing whenever the work changes a user-facing surface.
33
- - Read [references/workflow-checkpoints.md](references/workflow-checkpoints.md) before planning; it selects the task route and defines what must exist before advancing each phase.
44
+ - Read [references/workflow-checkpoints.md](references/workflow-checkpoints.md) before planning; it selects Grill-Me vs Fast Confirm vs Direct Execution and defines hard phase exit gates.
34
45
  - Read [references/surface-acceptance.md](references/surface-acceptance.md) before choosing platform-specific acceptance evidence.
35
46
  - Read [references/floor.md](references/floor.md) before implementation and again before reporting; every rule is mandatory unless the user explicitly waives it.
36
47
  - Read [references/report-template.md](references/report-template.md) before the final response or handoff.
37
48
 
38
49
  ## Frame before designing
39
50
 
51
+ Inspect available context first (repository, tokens, manifests, existing screens). Then select the planning mode in `pixelcraft-plan`:
52
+ - **Grill-Me / Deep Shaping:** greenfield products, vague briefs, major redesigns, or when the user asks to brainstorm/grill — walk unresolved branches **one question per turn** with 2–4 options leading with **(Recommended)**.
53
+ - **Fast Confirm:** clear feature with a few open direction/library choices.
54
+ - **Direct Execution:** narrow bug fix, copy edit, or already-approved design.
55
+
40
56
  Classify the surface using evidence in the repository rather than assumptions:
41
57
 
42
58
  | Mode | User success | Expression budget | Typical surfaces |
@@ -52,84 +68,88 @@ Hybrid surfaces pick one primary mode per screen or region. Do not let a persuas
52
68
 
53
69
  ## The Pixelcraft loop
54
70
 
55
- 0. **Plan** — use the `pixelcraft-plan` skill first. In brownfield work, read the repository systematically and write `.pixelcraft/plan.md`; in greenfield work, intake constraints and justify stack selection with a weighted matrix before any visual direction. If `pixelcraft-plan` is not installed, meet the applicable Plan checkpoint inline and record missing evidence as `not-checked`; a missing skill is not permission to skip planning.
56
- 1. **Frame** — detect stack/surface/input modality; identify audience, job-to-be-done, real material inventory, constraints, locale scope, and existing design system. Create or update the design brief artifact using `references/design-brief.md`; classify facts as user-provided, repo-observed, artifact-observed, research/analytics, assumption, or unknown. Ask only for information that materially changes the design.
57
- 2. **Diverge** — only for undecided visual scope. Use the `pixelcraft-direction` skill to generate 3–5 far-apart directions with probabilities, score them, select one, record why the others lost, and inspect repetition history. Do not rediverge an approved design; handoff preserves that intent. For brand-kit, identity-board, logo-system, moodboard, or visual-identity image generation, use the `pixelcraft-brandkit` skill by name and its 2–3 brand-world divergence flow before image prompting.
58
- 3. **Specify** — produce the direction card; use `pixelcraft-tokens` for DTCG tokens, `pixelcraft-handoff` when translating Figma/design-system artifacts into implementation, `pixelcraft-ux` for flows plus the state matrix, `pixelcraft-patterns` when the work matches a named product pattern, and `pixelcraft-dataviz` when the work communicates quantitative data, dashboards, maps, graphs, or visualization-heavy interfaces. Do not start with component trivia before direction and constraints exist.
59
- 4. **Build** — use the appropriate platform skill by name when installed (`pixelcraft-web`, `pixelcraft-mobile`, `pixelcraft-data-apps`, `pixelcraft-desktop`, `pixelcraft-tui`, `pixelcraft-email`, `pixelcraft-document`, `pixelcraft-media`, `pixelcraft-chat-ui`, `pixelcraft-constrained`, `pixelcraft-spatial`, `pixelcraft-game-ui`, or `pixelcraft-extensions`). If absent, translate the direction idiomatically yourself without importing web assumptions. Match version-sensitive APIs to the resolved stack in the plan; verify against versioned official docs, optional Context7 and registry metadata as available. Record source and date, or mark assumptions `not-checked`. Preserve existing locks and runtimes unless upgrades are authorized; commit reproducible locks for new apps, never floating `@latest` in CI/deploy.
60
- 5. **Verify** — use `pixelcraft-review` for slop scanning, heuristic critique, accessibility/state review, and evidence-ranked findings; use `pixelcraft-visual-qa` for rendered QA and performance budgets. For new or materially changed UI flows, run its evidence finish gate. If the gate or runtime is unavailable, report unchecked scope and open defects rather than declaring a pass.
61
- 6. **Report** — decisions, verification evidence, unresolved risks, and waived items using the report contract.
71
+ 0. **Plan** — use the `pixelcraft-plan` skill first. In brownfield work, map the repository systematically and write `.pixelcraft/plan.md`; in greenfield or ambiguous work, run Grill-Me / Discovery one question at a time, reject lazy tech-stack defaults, resolve purpose-built sub-stack libraries, justify stack selection with evidence, **initialize `.pixelcraft/acceptance.json` (`check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json` in `pixelcraft-review`) with agreed numeric/device thresholds upfront**, and **lock in the Mandatory Completion Gate & Scan-Until-Clean Contract** inside `.pixelcraft/plan.md` before visual direction. If `pixelcraft-plan` is not installed, meet the Plan checkpoint inline and record missing evidence as `not-checked`.
72
+ 1. **Frame** — detect stack/surface/input modality; identify audience, job-to-be-done, real material inventory, constraints, locale scope, and existing design system. Update the design brief using `references/design-brief.md`; classify facts as user-provided, repo-observed, artifact-observed, research/analytics, assumption, or unknown.
73
+ 2. **Diverge** — only for undecided visual/IA scope. Use `pixelcraft-direction` (plus `pixelcraft-ux` for competing IA/workflow shapes) to generate 3–5 far-apart directions across IA, visual posture, and craft ambition, each with an ASCII structural skeleton and real-copy draft. Enforce the **Pre-Code Design Approval `<HARD-GATE>`**: present top contrasting options + `(Recommended)` pick and confirm before coding on greenfield/redesign scope unless the user explicitly asks to decide and build directly. Allow a feedback loop back to `pixelcraft-plan` if the winning concept requires upgrading the stack. For brand-kit/logo image generation, route through `pixelcraft-brandkit`.
74
+ 3. **Specify** — produce the direction card (with ASCII skeleton + real-copy draft); use `pixelcraft-tokens` for DTCG 2025.10 tokens, `pixelcraft-handoff` for Figma/approved-design translation, `pixelcraft-ux` for flows + complete state matrix, `pixelcraft-patterns` for named product patterns (escalating complex widgets to vetted libraries), and `pixelcraft-dataviz` for quantitative dashboards, maps, or graphs.
75
+ 4. **Build** — use the matching platform skill by name (`pixelcraft-web`, `pixelcraft-mobile`, `pixelcraft-data-apps`, `pixelcraft-desktop`, `pixelcraft-tui`, `pixelcraft-email`, `pixelcraft-document`, `pixelcraft-media`, `pixelcraft-chat-ui`, `pixelcraft-constrained`, `pixelcraft-spatial`, `pixelcraft-game-ui`, or `pixelcraft-extensions`). Translate idiomatically without importing web assumptions. Deliver complete in-scope behavior: zero `// TODO`, zero ellipsis truncation, zero empty handlers, zero unapproved mocks. Verify version-sensitive APIs against versioned official docs/registries and commit reproducible locks (never floating `@latest`).
76
+ 5. **Verify (`Completion & Scan-Until-Clean <HARD-GATE>`)** — **never stop after Build.** Execute the planned verification contract in `pixelcraft-review` and `pixelcraft-visual-qa`: (a) walk every applicable row of `references/floor.md`, the active platform skill's `Pre-submit checklist`, and `pixelcraft-review`'s `polish.md`; (b) run `slop-scan.mjs <target> --fail-on p2`, applicable surface CLIs (`check-contrast.mjs`, `check-email.mjs`, `check-tui.mjs`, `check-pdf.mjs`), and strict active-language compiler/type/linter/test suites; (c) run rendered QA (`shoot.mjs`, simulator/device/CLI capture, and `finish-gate.mjs` where applicable); (d) update `.pixelcraft/acceptance.json` and run `check-acceptance.mjs .pixelcraft/acceptance.json` (enforcing **Evidence Rule #0.3** and 3-tier Studio grading). **If any deterministic scan, compiler/test check, checklist item, or acceptance row fails or remains `pending`, fix the root cause and re-run the scans until `0` `fail` and `0` `pending` rows remain before advancing to Report.**
77
+ 6. **Report** — only after passing the Phase 5 `<HARD-GATE>`, report the 3-tier Studio verdict (`PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO`, or `PENDING_RENDERED_ENV` when external hardware is unavailable—never `FAIL`), decisions, executed scan commands + exit codes, checklist sign-off, verification evidence by label, unresolved risks, and waived items using `references/report-template.md`.
62
78
 
63
- One repair round is normal. Use at most three for reproducible, measurable failures, then report unresolved defects as OPEN and state unchecked scope. A command with a suppressed failure is a probe, not evidence of a passing check.
64
-
65
- Before advancing, record the applicable phase result and its evidence using the workflow checkpoints. Reuse current artifacts rather than making new copies. If a prerequisite is missing, resolve it before dependent work or report the blocker; a skill name, unchecked box, or polished output is not phase evidence.
79
+ Deterministic scan, compiler/test, stub, state, and floor-checklist failures have **zero repair-round shortcut**: keep fixing and rescanning until clean (never suppress errors, delete essential content, or invent waivers). For rendered layout/pixel loops under `finish-gate.mjs`, use at most three documented rendered repair rounds before escalating a genuinely blocked visual conflict as `OPEN` alongside unchecked scope. A command with a suppressed failure is a probe, not evidence of a passing check.
66
80
 
67
81
  ## Scoped work and stopping
68
82
 
69
- - Before editing, name the affected route/interaction, preserved behavior, and the smallest check that can disprove success. For narrow changes, reuse the current plan and approved direction; read only the relevant reference sections. New or materially changed flows still need the full applicable finish gate.
70
- - Reuse recorded repository and version evidence unless scope, inputs, or dependencies change. Run the affected check first; expand coverage for shared behavior or a demonstrated risk. Do not rerun unchanged commands to gain confidence or repeat a failed lookup without a better source.
71
- - If the tool/time/context budget runs low, preserve revision, changed scope, evidence paths, unchecked checks and the next discriminating command in the handoff. Never trade outcome evidence for a completion claim.
83
+ - Before editing, name the affected route/interaction, preserved behavior, and the smallest check that can disprove success. For narrow changes, reuse the current plan and approved direction; read only the relevant reference sections. New or materially changed flows still require the applicable finish gate.
84
+ - Reuse recorded repository and version evidence unless scope, inputs, or dependencies change. Run the affected check first; expand coverage for shared behavior or demonstrated risk.
85
+ - If the tool/time/context budget runs low, preserve revision, changed scope, evidence paths, unchecked checks, and the next discriminating command in the handoff. Never trade outcome evidence for a completion claim.
72
86
 
73
87
  ## Platform routing
74
88
 
75
89
  After detecting the stack, use the matching platform skill by name and read only the relevant framework reference inside it:
76
90
 
77
- | Platform skill | Framework references |
91
+ | Platform skill | Framework and surface references |
78
92
  |---|---|
79
- | `pixelcraft-web` | `html-css`, `react-next`, `vue-nuxt`, `svelte`, `solid`, `angular`, `astro`, `qwik`, `htmx-alpine`, `lit-web-components`, `tailwind`, `server-rendered`, `leptos-yew`, `kotlin-web`, `elm`, `clojurescript`, `fsharp-fable`, `scala-laminar`, `java-web`, `pwa`, `adaptive-layout` |
80
- | `pixelcraft-mobile` | `swiftui`, `uikit`, `jetpack-compose`, `flutter`, `react-native-expo`, `kotlin-multiplatform`, `ionic-capacitor`, `dotnet-maui`, `flet`, `kivy` |
81
- | `pixelcraft-data-apps` | `streamlit`, `gradio`, `reflex`, `nicegui`, `dash`, `panel`, `shiny`, `jupyter-widgets`, `r-shiny`, `julia-genie`, `observable-framework`, `evidence` |
82
- | `pixelcraft-desktop` | `tauri`, `electron`, `qt-pyside-qml`, `winui-wpf`, `appkit`, `gtk`, `avalonia`, `rust-gui`, `javafx-swing`, `cpp-gui`, `go-gui`, `uno-platform` |
83
- | `pixelcraft-tui` | `textual`, `rich`, `ink`, `bubbletea-lipgloss`, `ratatui` |
84
- | `pixelcraft-email` | `html-tables`, `mjml`, `react-email`, `client-quirks` |
85
- | `pixelcraft-document` | `print-css`, `pdf-tools`, `archetypes`, `slides` |
93
+ | `pixelcraft-web` | Frameworks: `html-css`, `react-next`, `vue-nuxt`, `svelte`, `solid`, `angular`, `astro`, `qwik`, `preact-fresh-hono`, `htmx-alpine`, `lit-web-components`, `server-rendered`, `leptos-yew`, `kotlin-web`, `elm`, `clojurescript`, `fsharp-fable`, `scala-laminar`, `java-web`; Engineering: `tailwind`, `styling-ecosystem`, `component-systems`, `interaction-and-search-primitives`, `state-architecture`, `forms-validation`, `enterprise-data-ui`, `rich-text-and-code-editors`, `canvas-and-node-editors`, `local-first-sync`, `auth-and-checkout-ui`, `file-upload-media-ui`, `i18n-engineering`, `build-and-architecture`, `component-testing`, `adaptive-layout`, `pwa`; Motion/3D/Media: `gsap`, `motion-react`, `smooth-scroll`, `motion-recipes`, `rive-lottie`, `scene-architecture`, `r3f-integration`, `web-3d-engines`, `assets-pipeline`, `rendering-choice`, `rendering-performance`, `shader-workflow`, `creative-effects`, `creative-runtime`, `media-players`, `video-media`, `audio-reactive`, `accessibility-performance` |
94
+ | `pixelcraft-mobile` | `swiftui`, `uikit`, `jetpack-compose`, `flutter`, `react-native-expo`, `lynxjs`, `kotlin-multiplatform`, `nativescript-and-skip`, `harmonyos-and-emerging-mobile`, `ionic-capacitor`, `dotnet-maui`, `flet`, `kivy`, `tactile-interactions`, `task-state-composition` |
95
+ | `pixelcraft-data-apps` | `streamlit`, `gradio`, `reactive-data-apps`, `ai-and-internal-data-apps`, `reflex`, `nicegui`, `dash`, `panel`, `shiny`, `jupyter-widgets`, `r-shiny`, `julia-genie`, `observable-framework`, `evidence` |
96
+ | `pixelcraft-desktop` | `tauri`, `electron`, `qt-pyside-qml`, `winui-wpf`, `appkit`, `gtk`, `avalonia`, `rust-gui`, `javafx-swing`, `cpp-gui`, `go-gui`, `uno-platform`, `working-context` |
97
+ | `pixelcraft-tui` | `textual`, `rich`, `ink`, `bubbletea-lipgloss`, `ratatui`, `extended-tui-toolkits`, `terminal-protocols` |
98
+ | `pixelcraft-email` | `html-tables`, `mjml`, `react-email`, `maizzle`, `client-quirks` |
99
+ | `pixelcraft-document` | `print-css`, `pdf-tools`, `pdfjs-and-pptx`, `archetypes`, `slides` |
86
100
  | `pixelcraft-media` | `social-cards`, `og-generation`, `banners-video` |
87
- | `pixelcraft-chat-ui` | `slack-discord`, `mobile-business-platforms`, `conversation-design` |
101
+ | `pixelcraft-chat-ui` | `slack-discord`, `mobile-business-platforms`, `conversation-design`, `agentic-workspace`, `ai-ui-libraries` |
88
102
  | `pixelcraft-constrained` | `tv-wearables`, `specialized-hardware`, `voice-ui` |
89
- | `pixelcraft-handoff` | `design-translation`, `fidelity-tolerance` |
103
+ | `pixelcraft-handoff` | `design-translation`, `fidelity-tolerance`, `motion-handoff` |
90
104
  | `pixelcraft-spatial` | `platforms`, `comfort-accessibility` |
91
- | `pixelcraft-game-ui` | `unity-ui-toolkit`, `godot`, `unreal-umg`, `hud-principles`, `love2d`, `bevy`, `monogame` |
92
- | `pixelcraft-extensions` | `browser-extensions`, `vscode-webviews`, `raycast`, `figma-office` |
105
+ | `pixelcraft-game-ui` | `unity-ui-toolkit`, `unity-ugui`, `godot`, `unreal-umg`, `hud-principles`, `love2d`, `bevy`, `monogame`, `web-and-middleware-game-ui` |
106
+ | `pixelcraft-extensions` | `browser-extensions`, `vscode-webviews`, `raycast`, `figma-office`, `ide-and-saas-plugins` |
93
107
 
94
108
  References are named here for routing only. Do not construct relative paths across skill folders; read the file inside the installed platform skill.
95
109
 
96
- ## Domain routing
97
-
98
- Use `pixelcraft-dataviz` alongside the platform skill whenever the deliverable depends on charts, analytical tables, metrics dashboards, streaming visualization, node graphs, maps, or canvas/WebGL rendering. It governs analytical truth, encoding, color/accessibility, and library selection; the platform skill still governs implementation idioms.
110
+ Use `pixelcraft-craft` for motion design intent; `pixelcraft-web` for browser implementation including GSAP/Motion, scroll controllers, Canvas/PixiJS, shaders, Three.js/R3F/Babylon/PlayCanvas/Threlte/TresJS/`<model-viewer>`/Theatre.js/Spline, WebGPU/TSL fallbacks, and browser audio/video players. `pixelcraft-spatial` remains responsible for embodied XR/VR/AR interaction; ordinary browser 3D scenes route through `pixelcraft-web`.
99
111
 
100
- ## Brand routing
112
+ ## Domain and brand routing
101
113
 
102
- Use `pixelcraft-brandkit` when the deliverable is a brand kit, identity board, logo system, brand guidelines image, moodboard, visual-world board, rebrand/refresh concept, or implementation-oriented brand direction. It runs alongside `pixelcraft-direction` rather than replacing it: direction supplies divergence discipline; brandkit supplies intake, logo methods, board composition, prompt construction, and brand-specific QA. Use `pixelcraft-tokens` when the selected palette/type must become DTCG implementation tokens.
114
+ - **Dataviz:** Use `pixelcraft-dataviz` alongside the platform skill whenever the deliverable depends on charts, analytical tables, metrics dashboards, streaming visualization, node graphs, maps, or BI plugins.
115
+ - **Brand identity:** Use `pixelcraft-brandkit` alongside `pixelcraft-direction` for brand kits, identity boards, logo systems, moodboards, or visual-world boards, and `pixelcraft-tokens` to export DTCG tokens.
103
116
 
104
117
  ## Mandatory floor summary
105
118
 
106
- The full floor is normative. At minimum:
119
+ The full floor in `references/floor.md` is normative. At minimum:
107
120
 
108
- - truthfulness: no invented facts, proof, assets, metrics, logos, or testimonials;
109
- - accessibility: semantic controls, names/labels, keyboard/focus path, contrast floor, reduced-motion path, text scaling/reflow, no color-only meaning;
110
- - interaction: visible feedback, suitable targets, cancellation/undo/escape, no conflicting gestures, complete states;
121
+ - truthfulness & completeness: no invented facts, metrics, logos, or testimonials; zero `// TODO`, zero ellipsis truncation, zero no-op handlers/commands/links, zero unapproved mock arrays posing as live data;
122
+ - accessibility: native semantic controls, persistent names/labels, visible & unobscured keyboard/focus path (`WCAG 2.4.11`), contrast floor, reduced-motion & reduced-transparency paths, text scaling/reflow, no color-only meaning, plus `EAA`/`EN 301 549` statement readiness where applicable;
123
+ - interaction & invisible craft: frequency-calibrated timing, origin-aware overlays, optical alignment, forgiving hit-slop, tabular numerals, cancellation/undo/escape, no conflicting gestures, complete states;
111
124
  - adaptation: restructure across sizes, orientations, input modalities, and platform idioms;
112
- - localization: expansion/contraction, directionality, script/font fallback, input composition, plural/gender/case, locale formatting, culturally appropriate copy/imagery;
113
- - performance: fast acknowledgment, stable layout, asset budgets, nonblocking interaction;
114
- - robustness: zero/one/many/long/missing/error/offline/permission/interruption/concurrency states;
125
+ - localization: `+30–40%` prose and `+50–100%` short-label expansion, logical directionality, `Unicode NFC` diacritic & font-glyph integrity, active `IME` `Enter`-commit safety, locale formatting;
126
+ - performance: instant orientation, stable layout, asset budgets, nonblocking interaction;
127
+ - robustness: zero/one/many/long/missing/error/offline/permission/interruption/concurrency/AI-streaming states;
115
128
  - coherence: semantic tokens and consistent hierarchy, affordances, motion, iconography, and copy;
116
129
  - distinctiveness: at least one deliberate subject-specific commitment when mode permits;
117
- - verifiability: no claim without an evidence label.
130
+ - engineering & handoff hygiene: strict compiler/type/analyzer checks for the active language, clean ecosystem dependency vulnerability audit alongside lockfiles, staging separated from production, `< 10m` clean-clone setup, isolated state previews where supported, zero client-exposed secrets, verified commercial font/icon/media licenses, owner-level account/key handoff, and 30–90 day defect-warranty triage handoff note;
131
+ - verifiability: no claim without an evidence label (`references/surface-acceptance.md` covers the 12-row Surface Matrix and 3-tier Studio verdict).
118
132
 
119
133
  The floor never mandates a hero, card, palette, typeface, border radius, shadow, layout shape, or visual movement.
120
134
 
121
135
  ## Evidence labels
122
136
 
123
- Use exactly these labels in reports and critique:
124
-
125
137
  | Label | Meaning |
126
138
  |---|---|
127
- | `rendered` | inspected actual rendered output, screenshot, device, simulator, snapshot, or browser surface |
139
+ | `rendered` | inspected actual rendered output, screenshot, device, simulator, terminal buffer, or runtime profiler |
128
140
  | `static` | inferred from source, schema, configuration, or deterministic static analysis |
129
141
  | `model-judgment` | heuristic/model evaluation; useful hypothesis, not proof |
130
- | `not-checked` | relevant but not inspected; state why when material |
131
- | `waived` | user/brief explicitly overrides the rule; record scope and consequence |
142
+ | `not-checked` | relevant but not inspected; state concrete environment reason and next command when material |
143
+ | `waived` | user/brief explicitly overrides the rule; record client sign-off, scope, and consequence |
144
+
145
+ **Golden Evidence Rule (`Rule #0.3`):** **`static` or `model-judgment` NEVER counts as `pass` / accepted for visual appearance, measured performance budgets, or interactive/assistive accessibility requirements.** Those rows require `rendered` evidence—or must be recorded honestly as `not-checked` (with concrete reason) or `waived` (with explicit user authorization, scope, and consequence).
132
146
 
133
- ## Final response contract
147
+ ## Pre-submit checklist
134
148
 
135
- End with: what changed; which direction was selected and why; verification performed by evidence label; floor items remaining `not-checked` or `waived`; and concrete open risks. Do not claim visual quality because the app compiled, a page loaded, or code merely exists.
149
+ - [ ] planning mode selected honestly (`Grill-Me` / `Fast Confirm` / `Direct Execution`), repo inspected first, and `.pixelcraft/acceptance.json` initialized (`check-acceptance.mjs --init <platform>`) with agreed numeric/device thresholds;
150
+ - [ ] lazy stack defaults rejected and complex UI capabilities routed to native primitives or purpose-built libraries;
151
+ - [ ] pre-code Design Approval gate met for greenfield/redesign/undecided scope (or approved design preserved via `pixelcraft-handoff`);
152
+ - [ ] zero `// TODO`, zero ellipsis stubs, zero dead controls/handlers, zero unwired mobile navigation, zero client secrets, zero unapproved fake proof/mocks;
153
+ - [ ] mandatory floor (`A1–A8`: a11y, `<=100ms`/`>1s`/`>10s` latency ladder, states, adaptation, `+50–100%` short-label i18n & `IME`/`NFC` safety, invisible craft, tokens, strict language & dependency vulnerability checks, staging separation, license & 30–90d warranty handoff) applied natively;
154
+ - [ ] **Completion & Scan-Until-Clean `<HARD-GATE>` passed:** every applicable checklist (`floor.md`, active platform `Pre-submit checklist`, and `pixelcraft-review` `polish.md`) walked item-by-item, and `slop-scan.mjs --fail-on p2`, applicable `check-*` CLIs, compiler/type/linter/test suites, `finish-gate.mjs`, and `check-acceptance.mjs .pixelcraft/acceptance.json` re-run after fixes until `0` `fail`/`pending` rows remain (enforcing **Rule #0.3**);
155
+ - [ ] final response reports the 3-tier Studio verdict (`PASS_STUDIO_10K_20K` / `EXCEEDS_STUDIO` / `PENDING_RENDERED_ENV`, never `FAIL`), selected direction, executed scan commands + exit codes, 12-row Surface Matrix, `not-checked`/`waived` items, and open risks.
@@ -23,7 +23,7 @@ Write or update `.pixelcraft/brief.md` when the project directory is writable. I
23
23
  ## Evidence
24
24
  | Fact or requirement | Class | Source/scope |
25
25
  |---|---|---|
26
- | | user-provided / repo-observed / artifact-observed / analytics/research / assumption / unknown | |
26
+ | | user-provided / repo-observed / artifact-observed / research/analytics / assumption / unknown | |
27
27
 
28
28
  ## Constraints and authority
29
29
  - Explicit user decisions:
@@ -53,7 +53,7 @@ Write or update `.pixelcraft/brief.md` when the project directory is writable. I
53
53
  ## Field rules
54
54
 
55
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.
56
+ 2. **Evidence class is mandatory.** Do not blend user facts, repository facts, visual-source observations, research/analytics evidence, assumptions, and unknowns into one undifferentiated list.
57
57
  3. **Approval ownership names a role/person when known.** “Team” or “everyone” is not an approval owner.
58
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
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.