@thanhnguyxn/pixelcraft 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.antigravity-plugin/plugin.json +32 -0
  3. package/.claude-plugin/marketplace.json +20 -0
  4. package/.claude-plugin/plugin.json +22 -0
  5. package/.codex-plugin/plugin.json +45 -0
  6. package/.cursor-plugin/marketplace.json +17 -0
  7. package/.cursor-plugin/plugin.json +27 -0
  8. package/.devin-plugin/plugin.json +21 -0
  9. package/.github/plugin/marketplace.json +34 -0
  10. package/CHANGELOG.md +159 -0
  11. package/GEMINI.md +1 -0
  12. package/LICENSE +21 -0
  13. package/README.md +264 -2
  14. package/SECURITY.md +28 -0
  15. package/assets/README.md +28 -0
  16. package/assets/pixelcraft-logo-128.png +0 -0
  17. package/assets/pixelcraft-logo-256.png +0 -0
  18. package/assets/pixelcraft-logo-512.png +0 -0
  19. package/bin/pixelcraft.mjs +852 -0
  20. package/docs/ARCHITECTURE.md +105 -0
  21. package/docs/DESIGN-RATIONALE.md +191 -0
  22. package/docs/INSTALL.md +221 -0
  23. package/evals/README.md +37 -0
  24. package/evals/fixtures/3d-web-engineering.json +69 -0
  25. package/evals/fixtures/README.md +36 -0
  26. package/evals/fixtures/acceptance-checklist-rule03-gate.json +43 -0
  27. package/evals/fixtures/ai-ui-libraries.json +53 -0
  28. package/evals/fixtures/audio-visual-accessibility.json +69 -0
  29. package/evals/fixtures/auth-and-checkout-ui.json +53 -0
  30. package/evals/fixtures/brandkit-identity-governance.json +48 -0
  31. package/evals/fixtures/build-and-architecture.json +53 -0
  32. package/evals/fixtures/canvas-and-node-editors.json +53 -0
  33. package/evals/fixtures/chat-ai-exfiltration-ime-hitl-gate.json +43 -0
  34. package/evals/fixtures/completion-gate-scan-until-clean.json +44 -0
  35. package/evals/fixtures/component-systems.json +53 -0
  36. package/evals/fixtures/component-testing.json +53 -0
  37. package/evals/fixtures/constrained-voice-and-tv.json +43 -0
  38. package/evals/fixtures/creative-code-rendering.json +69 -0
  39. package/evals/fixtures/creative-reference-evidence.json +67 -0
  40. package/evals/fixtures/data-app-python-marimo.json +49 -0
  41. package/evals/fixtures/desktop-cpp-juce-audio.json +49 -0
  42. package/evals/fixtures/desktop-csharp-avalonia.json +49 -0
  43. package/evals/fixtures/desktop-native-workspace.json +48 -0
  44. package/evals/fixtures/desktop-python-anti-tkinter.json +49 -0
  45. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  46. package/evals/fixtures/document-prepress-pdfx4-tounicode.json +43 -0
  47. package/evals/fixtures/document-rust-typst-invoice.json +49 -0
  48. package/evals/fixtures/document-typst-and-print-css.json +43 -0
  49. package/evals/fixtures/email-mjml-dark-mode.json +49 -0
  50. package/evals/fixtures/email-outlook-and-plaintext.json +43 -0
  51. package/evals/fixtures/enterprise-data-ui.json +53 -0
  52. package/evals/fixtures/extended-tui-toolkits.json +53 -0
  53. package/evals/fixtures/extensions-mv3-and-vscode.json +43 -0
  54. package/evals/fixtures/file-upload-media-ui.json +53 -0
  55. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  56. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  57. package/evals/fixtures/forms-validation.json +53 -0
  58. package/evals/fixtures/game-go-ebitengine.json +49 -0
  59. package/evals/fixtures/game-godot-gdscript.json +49 -0
  60. package/evals/fixtures/game-ui-hud-and-engines.json +43 -0
  61. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  62. package/evals/fixtures/i18n-engineering.json +53 -0
  63. package/evals/fixtures/local-first-sync.json +53 -0
  64. package/evals/fixtures/lynxjs.json +53 -0
  65. package/evals/fixtures/maizzle-email.json +53 -0
  66. package/evals/fixtures/maps-geospatial.json +53 -0
  67. package/evals/fixtures/media-og-and-video-export.json +43 -0
  68. package/evals/fixtures/media-players.json +53 -0
  69. package/evals/fixtures/mobile-compose-16kb-foldable-store-gate.json +44 -0
  70. package/evals/fixtures/mobile-elixir-liveview-native.json +49 -0
  71. package/evals/fixtures/mobile-flutter-dynamic-type.json +49 -0
  72. package/evals/fixtures/mobile-harmonyos-arkui.json +49 -0
  73. package/evals/fixtures/mobile-jetpack-compose.json +49 -0
  74. package/evals/fixtures/mobile-swiftui-ios.json +49 -0
  75. package/evals/fixtures/motion-engineering.json +69 -0
  76. package/evals/fixtures/pdfjs-and-pptx.json +53 -0
  77. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  78. package/evals/fixtures/plan-discovery-interview.json +31 -0
  79. package/evals/fixtures/plan-grill-me-brainstorm-gate.json +49 -0
  80. package/evals/fixtures/reactive-data-apps.json +53 -0
  81. package/evals/fixtures/review-evidence-audit.json +43 -0
  82. package/evals/fixtures/rich-text-and-code-editors.json +53 -0
  83. package/evals/fixtures/scrollytelling-resilience.json +70 -0
  84. package/evals/fixtures/spatial-xr-comfort-and-platforms.json +43 -0
  85. package/evals/fixtures/state-architecture.json +53 -0
  86. package/evals/fixtures/styling-ecosystem.json +53 -0
  87. package/evals/fixtures/token-tooling.json +53 -0
  88. package/evals/fixtures/tui-go-bubbletea.json +49 -0
  89. package/evals/fixtures/tui-rust-ratatui-grapheme-paste-teardown.json +44 -0
  90. package/evals/fixtures/tui-rust-ratatui.json +49 -0
  91. package/evals/fixtures/ux-state-matrix-and-i18n.json +43 -0
  92. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  93. package/evals/fixtures/web-3d-engines.json +53 -0
  94. package/evals/fixtures/web-php-laravel-filament.json +49 -0
  95. package/evals/fixtures/web-ruby-viewcomponent-phlex.json +49 -0
  96. package/evals/fixtures/workflow-checkpoints.json +30 -0
  97. package/evals/pixelcraft-accessibility.md +74 -0
  98. package/evals/pixelcraft-brandkit.md +58 -0
  99. package/evals/pixelcraft-chat-ui.md +55 -0
  100. package/evals/pixelcraft-constrained.md +55 -0
  101. package/evals/pixelcraft-craft.md +76 -0
  102. package/evals/pixelcraft-data-apps.md +55 -0
  103. package/evals/pixelcraft-dataviz.md +59 -0
  104. package/evals/pixelcraft-desktop.md +55 -0
  105. package/evals/pixelcraft-direction.md +77 -0
  106. package/evals/pixelcraft-document.md +55 -0
  107. package/evals/pixelcraft-email.md +55 -0
  108. package/evals/pixelcraft-extensions.md +55 -0
  109. package/evals/pixelcraft-game-ui.md +59 -0
  110. package/evals/pixelcraft-handoff.md +57 -0
  111. package/evals/pixelcraft-media.md +55 -0
  112. package/evals/pixelcraft-mobile.md +59 -0
  113. package/evals/pixelcraft-patterns.md +73 -0
  114. package/evals/pixelcraft-plan.md +127 -0
  115. package/evals/pixelcraft-review.md +63 -0
  116. package/evals/pixelcraft-spatial.md +55 -0
  117. package/evals/pixelcraft-tokens.md +57 -0
  118. package/evals/pixelcraft-tui.md +55 -0
  119. package/evals/pixelcraft-ux.md +59 -0
  120. package/evals/pixelcraft-visual-qa.md +86 -0
  121. package/evals/pixelcraft-web.md +89 -0
  122. package/evals/pixelcraft.md +70 -0
  123. package/gemini-extension.json +6 -0
  124. package/install.ps1 +341 -0
  125. package/install.sh +512 -0
  126. package/package.json +91 -4
  127. package/plugin.json +29 -0
  128. package/scripts/build-adapters.mjs +288 -0
  129. package/scripts/build-release-archives.mjs +61 -0
  130. package/scripts/build-skill-zips.mjs +94 -0
  131. package/scripts/run-evals.mjs +397 -0
  132. package/scripts/sync-docs.mjs +381 -0
  133. package/scripts/test-build-adapters.mjs +61 -0
  134. package/scripts/test-cross-platform-qa.mjs +359 -0
  135. package/scripts/test-distribution.mjs +203 -0
  136. package/scripts/test-export-tokens.mjs +361 -0
  137. package/scripts/test-finish-gate.mjs +271 -0
  138. package/scripts/test-installers.mjs +216 -0
  139. package/scripts/test-release-archives.mjs +42 -0
  140. package/scripts/test-shoot.mjs +87 -0
  141. package/scripts/test-slop-scan.mjs +416 -0
  142. package/scripts/test-style-inventory.mjs +234 -0
  143. package/scripts/test-sync-docs.mjs +140 -0
  144. package/scripts/test-validate-skills.mjs +195 -0
  145. package/scripts/validate-skills.mjs +658 -0
  146. package/skills/pixelcraft/SKILL.md +155 -0
  147. package/skills/pixelcraft/references/design-brief.md +75 -0
  148. package/skills/pixelcraft/references/floor.md +90 -0
  149. package/skills/pixelcraft/references/report-template.md +49 -0
  150. package/skills/pixelcraft/references/stack-detection.md +226 -0
  151. package/skills/pixelcraft/references/surface-acceptance.md +52 -0
  152. package/skills/pixelcraft/references/workflow-checkpoints.md +71 -0
  153. package/skills/pixelcraft-accessibility/SKILL.md +54 -0
  154. package/skills/pixelcraft-accessibility/references/apg-patterns.md +64 -0
  155. package/skills/pixelcraft-accessibility/references/motion-canvas.md +57 -0
  156. package/skills/pixelcraft-accessibility/references/platforms.md +86 -0
  157. package/skills/pixelcraft-accessibility/references/verification.md +64 -0
  158. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +99 -0
  159. package/skills/pixelcraft-brandkit/SKILL.md +127 -0
  160. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +165 -0
  161. package/skills/pixelcraft-brandkit/references/brand-governance.md +82 -0
  162. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  163. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  164. package/skills/pixelcraft-brandkit/references/logo-methods.md +97 -0
  165. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  166. package/skills/pixelcraft-brandkit/references/prompt-template.md +87 -0
  167. package/skills/pixelcraft-brandkit/references/qa-checklist.md +93 -0
  168. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  169. package/skills/pixelcraft-chat-ui/SKILL.md +57 -0
  170. package/skills/pixelcraft-chat-ui/references/agentic-workspace.md +66 -0
  171. package/skills/pixelcraft-chat-ui/references/ai-ui-libraries.md +259 -0
  172. package/skills/pixelcraft-chat-ui/references/conversation-design.md +84 -0
  173. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +77 -0
  174. package/skills/pixelcraft-chat-ui/references/slack-discord.md +80 -0
  175. package/skills/pixelcraft-constrained/SKILL.md +52 -0
  176. package/skills/pixelcraft-constrained/references/specialized-hardware.md +90 -0
  177. package/skills/pixelcraft-constrained/references/tv-wearables.md +134 -0
  178. package/skills/pixelcraft-constrained/references/voice-ui.md +104 -0
  179. package/skills/pixelcraft-craft/SKILL.md +58 -0
  180. package/skills/pixelcraft-craft/references/color.md +125 -0
  181. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  182. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  183. package/skills/pixelcraft-craft/references/layout.md +73 -0
  184. package/skills/pixelcraft-craft/references/motion.md +163 -0
  185. package/skills/pixelcraft-craft/references/typography.md +110 -0
  186. package/skills/pixelcraft-data-apps/SKILL.md +86 -0
  187. package/skills/pixelcraft-data-apps/references/ai-and-internal-data-apps.md +147 -0
  188. package/skills/pixelcraft-data-apps/references/dash.md +109 -0
  189. package/skills/pixelcraft-data-apps/references/evidence.md +90 -0
  190. package/skills/pixelcraft-data-apps/references/gradio.md +103 -0
  191. package/skills/pixelcraft-data-apps/references/julia-genie.md +89 -0
  192. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +91 -0
  193. package/skills/pixelcraft-data-apps/references/nicegui.md +102 -0
  194. package/skills/pixelcraft-data-apps/references/observable-framework.md +105 -0
  195. package/skills/pixelcraft-data-apps/references/panel.md +99 -0
  196. package/skills/pixelcraft-data-apps/references/r-shiny.md +124 -0
  197. package/skills/pixelcraft-data-apps/references/reactive-data-apps.md +186 -0
  198. package/skills/pixelcraft-data-apps/references/reflex.md +116 -0
  199. package/skills/pixelcraft-data-apps/references/shiny.md +110 -0
  200. package/skills/pixelcraft-data-apps/references/streamlit.md +113 -0
  201. package/skills/pixelcraft-dataviz/SKILL.md +60 -0
  202. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  203. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  204. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +107 -0
  205. package/skills/pixelcraft-dataviz/references/libraries.md +176 -0
  206. package/skills/pixelcraft-dataviz/references/maps-geospatial.md +159 -0
  207. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +92 -0
  208. package/skills/pixelcraft-desktop/SKILL.md +93 -0
  209. package/skills/pixelcraft-desktop/references/appkit.md +92 -0
  210. package/skills/pixelcraft-desktop/references/avalonia.md +95 -0
  211. package/skills/pixelcraft-desktop/references/cpp-gui.md +129 -0
  212. package/skills/pixelcraft-desktop/references/electron.md +96 -0
  213. package/skills/pixelcraft-desktop/references/go-gui.md +83 -0
  214. package/skills/pixelcraft-desktop/references/gtk.md +97 -0
  215. package/skills/pixelcraft-desktop/references/javafx-swing.md +81 -0
  216. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +88 -0
  217. package/skills/pixelcraft-desktop/references/rust-gui.md +83 -0
  218. package/skills/pixelcraft-desktop/references/tauri.md +110 -0
  219. package/skills/pixelcraft-desktop/references/uno-platform.md +71 -0
  220. package/skills/pixelcraft-desktop/references/winui-wpf.md +98 -0
  221. package/skills/pixelcraft-desktop/references/working-context.md +84 -0
  222. package/skills/pixelcraft-direction/SKILL.md +120 -0
  223. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  224. package/skills/pixelcraft-direction/references/creative-brainstorming.md +72 -0
  225. package/skills/pixelcraft-direction/references/direction-card.md +64 -0
  226. package/skills/pixelcraft-direction/references/direction-scoring.md +76 -0
  227. package/skills/pixelcraft-direction/references/motion-identity.md +67 -0
  228. package/skills/pixelcraft-direction/references/movements.md +71 -0
  229. package/skills/pixelcraft-direction/references/reference-analysis.md +37 -0
  230. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  231. package/skills/pixelcraft-direction/references/slop-fingerprints.md +83 -0
  232. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  233. package/skills/pixelcraft-document/SKILL.md +58 -0
  234. package/skills/pixelcraft-document/references/archetypes.md +106 -0
  235. package/skills/pixelcraft-document/references/pdf-tools.md +314 -0
  236. package/skills/pixelcraft-document/references/pdfjs-and-pptx.md +114 -0
  237. package/skills/pixelcraft-document/references/print-css.md +187 -0
  238. package/skills/pixelcraft-document/references/slides.md +198 -0
  239. package/skills/pixelcraft-email/SKILL.md +80 -0
  240. package/skills/pixelcraft-email/references/client-quirks.md +113 -0
  241. package/skills/pixelcraft-email/references/html-tables.md +114 -0
  242. package/skills/pixelcraft-email/references/maizzle.md +54 -0
  243. package/skills/pixelcraft-email/references/mjml.md +54 -0
  244. package/skills/pixelcraft-email/references/react-email.md +95 -0
  245. package/skills/pixelcraft-extensions/SKILL.md +56 -0
  246. package/skills/pixelcraft-extensions/references/browser-extensions.md +105 -0
  247. package/skills/pixelcraft-extensions/references/figma-office.md +106 -0
  248. package/skills/pixelcraft-extensions/references/ide-and-saas-plugins.md +125 -0
  249. package/skills/pixelcraft-extensions/references/raycast.md +98 -0
  250. package/skills/pixelcraft-extensions/references/vscode-webviews.md +100 -0
  251. package/skills/pixelcraft-game-ui/SKILL.md +80 -0
  252. package/skills/pixelcraft-game-ui/references/bevy.md +90 -0
  253. package/skills/pixelcraft-game-ui/references/godot.md +130 -0
  254. package/skills/pixelcraft-game-ui/references/hud-principles.md +67 -0
  255. package/skills/pixelcraft-game-ui/references/love2d.md +77 -0
  256. package/skills/pixelcraft-game-ui/references/monogame.md +68 -0
  257. package/skills/pixelcraft-game-ui/references/unity-ugui.md +109 -0
  258. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +107 -0
  259. package/skills/pixelcraft-game-ui/references/unreal-umg.md +80 -0
  260. package/skills/pixelcraft-game-ui/references/web-and-middleware-game-ui.md +122 -0
  261. package/skills/pixelcraft-handoff/SKILL.md +50 -0
  262. package/skills/pixelcraft-handoff/references/design-translation.md +134 -0
  263. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  264. package/skills/pixelcraft-handoff/references/motion-handoff.md +54 -0
  265. package/skills/pixelcraft-media/SKILL.md +49 -0
  266. package/skills/pixelcraft-media/references/banners-video.md +130 -0
  267. package/skills/pixelcraft-media/references/og-generation.md +154 -0
  268. package/skills/pixelcraft-media/references/social-cards.md +71 -0
  269. package/skills/pixelcraft-mobile/SKILL.md +86 -0
  270. package/skills/pixelcraft-mobile/references/dotnet-maui.md +91 -0
  271. package/skills/pixelcraft-mobile/references/flet.md +80 -0
  272. package/skills/pixelcraft-mobile/references/flutter.md +113 -0
  273. package/skills/pixelcraft-mobile/references/harmonyos-and-emerging-mobile.md +121 -0
  274. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +87 -0
  275. package/skills/pixelcraft-mobile/references/jetpack-compose.md +129 -0
  276. package/skills/pixelcraft-mobile/references/kivy.md +82 -0
  277. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +86 -0
  278. package/skills/pixelcraft-mobile/references/lynxjs.md +110 -0
  279. package/skills/pixelcraft-mobile/references/nativescript-and-skip.md +91 -0
  280. package/skills/pixelcraft-mobile/references/react-native-expo.md +106 -0
  281. package/skills/pixelcraft-mobile/references/swiftui.md +200 -0
  282. package/skills/pixelcraft-mobile/references/tactile-interactions.md +55 -0
  283. package/skills/pixelcraft-mobile/references/task-state-composition.md +85 -0
  284. package/skills/pixelcraft-mobile/references/uikit.md +92 -0
  285. package/skills/pixelcraft-patterns/SKILL.md +75 -0
  286. package/skills/pixelcraft-patterns/references/accessibility-resilience.md +29 -0
  287. package/skills/pixelcraft-patterns/references/ai-and-offline-patterns.md +54 -0
  288. package/skills/pixelcraft-patterns/references/auth-onboarding.md +44 -0
  289. package/skills/pixelcraft-patterns/references/billing-paywalls.md +40 -0
  290. package/skills/pixelcraft-patterns/references/command-workspace.md +56 -0
  291. package/skills/pixelcraft-patterns/references/commerce.md +47 -0
  292. package/skills/pixelcraft-patterns/references/communication.md +45 -0
  293. package/skills/pixelcraft-patterns/references/creative-tools.md +42 -0
  294. package/skills/pixelcraft-patterns/references/creative-web-composition.md +38 -0
  295. package/skills/pixelcraft-patterns/references/dashboard-admin.md +35 -0
  296. package/skills/pixelcraft-patterns/references/history-diff-undo.md +50 -0
  297. package/skills/pixelcraft-patterns/references/marketing.md +44 -0
  298. package/skills/pixelcraft-patterns/references/multi-tenant-rbac.md +47 -0
  299. package/skills/pixelcraft-patterns/references/narrative-systems.md +42 -0
  300. package/skills/pixelcraft-patterns/references/notifications-activity.md +57 -0
  301. package/skills/pixelcraft-patterns/references/pattern-selection.md +80 -0
  302. package/skills/pixelcraft-patterns/references/scheduling-kanban.md +47 -0
  303. package/skills/pixelcraft-patterns/references/scroll-implementation.md +37 -0
  304. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  305. package/skills/pixelcraft-patterns/references/settings.md +51 -0
  306. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  307. package/skills/pixelcraft-plan/SKILL.md +103 -0
  308. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  309. package/skills/pixelcraft-plan/references/discovery-interview.md +110 -0
  310. package/skills/pixelcraft-plan/references/grill-me-protocol.md +63 -0
  311. package/skills/pixelcraft-plan/references/plan-template.md +134 -0
  312. package/skills/pixelcraft-plan/references/repo-discovery.md +49 -0
  313. package/skills/pixelcraft-plan/references/stack-freshness.md +67 -0
  314. package/skills/pixelcraft-plan/references/stack-selection.md +98 -0
  315. package/skills/pixelcraft-review/SKILL.md +86 -0
  316. package/skills/pixelcraft-review/references/audit-report.md +69 -0
  317. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  318. package/skills/pixelcraft-review/references/heuristics.md +63 -0
  319. package/skills/pixelcraft-review/references/personas.md +53 -0
  320. package/skills/pixelcraft-review/references/polish.md +78 -0
  321. package/skills/pixelcraft-review/scripts/check-acceptance.mjs +619 -0
  322. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  323. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  324. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  325. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  326. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  327. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  328. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  329. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  330. package/skills/pixelcraft-review/scripts/fixtures/focus-longhand-removal.css +34 -0
  331. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  332. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  333. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  334. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  335. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  336. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  337. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  338. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  339. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  340. package/skills/pixelcraft-review/scripts/slop-scan.mjs +1233 -0
  341. package/skills/pixelcraft-spatial/SKILL.md +51 -0
  342. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +39 -0
  343. package/skills/pixelcraft-spatial/references/platforms.md +147 -0
  344. package/skills/pixelcraft-tokens/SKILL.md +60 -0
  345. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  346. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  347. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  348. package/skills/pixelcraft-tokens/references/format.md +84 -0
  349. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  350. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  351. package/skills/pixelcraft-tokens/references/theme-presets.md +122 -0
  352. package/skills/pixelcraft-tokens/references/token-tooling.md +119 -0
  353. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +847 -0
  354. package/skills/pixelcraft-tui/SKILL.md +76 -0
  355. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +79 -0
  356. package/skills/pixelcraft-tui/references/extended-tui-toolkits.md +127 -0
  357. package/skills/pixelcraft-tui/references/ink.md +109 -0
  358. package/skills/pixelcraft-tui/references/ratatui.md +102 -0
  359. package/skills/pixelcraft-tui/references/rich.md +82 -0
  360. package/skills/pixelcraft-tui/references/terminal-protocols.md +80 -0
  361. package/skills/pixelcraft-tui/references/textual.md +108 -0
  362. package/skills/pixelcraft-ux/SKILL.md +56 -0
  363. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  364. package/skills/pixelcraft-ux/references/feedback-performance.md +50 -0
  365. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  366. package/skills/pixelcraft-ux/references/forms.md +151 -0
  367. package/skills/pixelcraft-ux/references/i18n.md +221 -0
  368. package/skills/pixelcraft-ux/references/laws.md +39 -0
  369. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  370. package/skills/pixelcraft-ux/references/state-matrix.md +53 -0
  371. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  372. package/skills/pixelcraft-ux/references/ux-writing.md +44 -0
  373. package/skills/pixelcraft-visual-qa/SKILL.md +96 -0
  374. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  375. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +59 -0
  376. package/skills/pixelcraft-visual-qa/references/capture-document.md +70 -0
  377. package/skills/pixelcraft-visual-qa/references/capture-email.md +38 -0
  378. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +50 -0
  379. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +35 -0
  380. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  381. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  382. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  383. package/skills/pixelcraft-visual-qa/references/motion-capture.md +63 -0
  384. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +78 -0
  385. package/skills/pixelcraft-visual-qa/references/realtime-graphics.md +55 -0
  386. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  387. package/skills/pixelcraft-visual-qa/scripts/check-contrast.mjs +442 -0
  388. package/skills/pixelcraft-visual-qa/scripts/check-email.mjs +397 -0
  389. package/skills/pixelcraft-visual-qa/scripts/check-pdf.mjs +189 -0
  390. package/skills/pixelcraft-visual-qa/scripts/check-tui.mjs +321 -0
  391. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +174 -0
  392. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  393. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  394. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  395. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  396. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  397. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  398. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  399. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +668 -0
  400. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1226 -0
  401. package/skills/pixelcraft-web/SKILL.md +132 -0
  402. package/skills/pixelcraft-web/references/accessibility-performance.md +42 -0
  403. package/skills/pixelcraft-web/references/adaptive-layout.md +69 -0
  404. package/skills/pixelcraft-web/references/angular.md +108 -0
  405. package/skills/pixelcraft-web/references/assets-pipeline.md +67 -0
  406. package/skills/pixelcraft-web/references/astro.md +113 -0
  407. package/skills/pixelcraft-web/references/audio-reactive.md +61 -0
  408. package/skills/pixelcraft-web/references/auth-and-checkout-ui.md +115 -0
  409. package/skills/pixelcraft-web/references/build-and-architecture.md +215 -0
  410. package/skills/pixelcraft-web/references/canvas-and-node-editors.md +157 -0
  411. package/skills/pixelcraft-web/references/clojurescript.md +88 -0
  412. package/skills/pixelcraft-web/references/component-systems.md +102 -0
  413. package/skills/pixelcraft-web/references/component-testing.md +170 -0
  414. package/skills/pixelcraft-web/references/creative-effects.md +59 -0
  415. package/skills/pixelcraft-web/references/creative-runtime.md +34 -0
  416. package/skills/pixelcraft-web/references/elm.md +53 -0
  417. package/skills/pixelcraft-web/references/enterprise-data-ui.md +138 -0
  418. package/skills/pixelcraft-web/references/file-upload-media-ui.md +82 -0
  419. package/skills/pixelcraft-web/references/forms-validation.md +123 -0
  420. package/skills/pixelcraft-web/references/fsharp-fable.md +54 -0
  421. package/skills/pixelcraft-web/references/gsap.md +102 -0
  422. package/skills/pixelcraft-web/references/html-css.md +220 -0
  423. package/skills/pixelcraft-web/references/htmx-alpine.md +103 -0
  424. package/skills/pixelcraft-web/references/i18n-engineering.md +106 -0
  425. package/skills/pixelcraft-web/references/interaction-and-search-primitives.md +196 -0
  426. package/skills/pixelcraft-web/references/java-web.md +61 -0
  427. package/skills/pixelcraft-web/references/kotlin-web.md +57 -0
  428. package/skills/pixelcraft-web/references/leptos-yew.md +97 -0
  429. package/skills/pixelcraft-web/references/lit-web-components.md +63 -0
  430. package/skills/pixelcraft-web/references/local-first-sync.md +105 -0
  431. package/skills/pixelcraft-web/references/media-players.md +104 -0
  432. package/skills/pixelcraft-web/references/motion-react.md +96 -0
  433. package/skills/pixelcraft-web/references/motion-recipes.md +82 -0
  434. package/skills/pixelcraft-web/references/preact-fresh-hono.md +111 -0
  435. package/skills/pixelcraft-web/references/pwa.md +230 -0
  436. package/skills/pixelcraft-web/references/qwik.md +94 -0
  437. package/skills/pixelcraft-web/references/r3f-integration.md +69 -0
  438. package/skills/pixelcraft-web/references/react-next.md +168 -0
  439. package/skills/pixelcraft-web/references/rendering-choice.md +63 -0
  440. package/skills/pixelcraft-web/references/rendering-performance.md +80 -0
  441. package/skills/pixelcraft-web/references/rich-text-and-code-editors.md +220 -0
  442. package/skills/pixelcraft-web/references/rive-lottie.md +73 -0
  443. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  444. package/skills/pixelcraft-web/references/scene-architecture.md +132 -0
  445. package/skills/pixelcraft-web/references/server-rendered.md +114 -0
  446. package/skills/pixelcraft-web/references/shader-workflow.md +77 -0
  447. package/skills/pixelcraft-web/references/smooth-scroll.md +58 -0
  448. package/skills/pixelcraft-web/references/solid.md +111 -0
  449. package/skills/pixelcraft-web/references/state-architecture.md +107 -0
  450. package/skills/pixelcraft-web/references/styling-ecosystem.md +273 -0
  451. package/skills/pixelcraft-web/references/svelte.md +111 -0
  452. package/skills/pixelcraft-web/references/tailwind.md +99 -0
  453. package/skills/pixelcraft-web/references/video-media.md +69 -0
  454. package/skills/pixelcraft-web/references/vue-nuxt.md +86 -0
  455. package/skills/pixelcraft-web/references/web-3d-engines.md +97 -0
@@ -0,0 +1,37 @@
1
+ # Scroll and progression choreography
2
+
3
+ This reference defines the **surface-independent UX contract** for scroll-coupled and stepped narrative progression. For browser-specific implementation APIs (CSS Scroll-Driven Animations, `IntersectionObserver`, `position: sticky`, or GSAP ScrollTrigger), coordinate with `pixelcraft-web`; for native scroll-offset choreography, coordinate with `pixelcraft-mobile` or `pixelcraft-desktop`.
4
+
5
+ ## Synchronization model matrix
6
+
7
+ Choose the simplest coupling that communicates the story without fighting user control:
8
+
9
+ | Coupling model | User-experience role | When to choose | When to avoid |
10
+ |---|---|---|---|
11
+ | **Normal flow (unpinned)** | Standard continuous reading with inline visuals | Default for articles, docs, and narrow mobile viewports | Only when side-by-side persistent artifact comparison materially aids comprehension |
12
+ | **Threshold-activated stages** | Discrete chapter transitions when each section enters reading focus | Step-by-step diagrams, chart filter changes, highlighted callouts | Smooth scrub physics that require frame-by-frame interpolation |
13
+ | **Sticky artifact + flowing prose** | One persistent visual stays anchored while explanatory steps scroll alongside | Artifact + annotations, data narratives, product anatomy | Short viewport heights where the pinned visual crowds out readable text |
14
+ | **Continuous progress scrub** | Visual transformation tracks user scroll offset proportionally inside a bounded stage | Controlled before/after reveals, bounded timeline/camera progression | Multi-screen forced scrub walls where users lose scroll speed intuition |
15
+ | **Explicit stepped controls** | Previous / Next / Chapter selector controls change stage without scroll hijacking | Accessibility fallback, touch carousels, keyboard-first inspection, embedded frames | Never omit as an escape hatch on complex interactive stages |
16
+
17
+ ## Behavioral contract
18
+
19
+ - **Scroll is read-only input**: Never hijack wheel inertia, touch momentum, scrollbar dragging, PageUp/PageDown, or Back/Forward history.
20
+ - **Bounded pinning**: Every pinned visual stage has an unmistakable entry, a bounded duration, and a clean release back into normal flow. Never nest pinned stages inside each other.
21
+ - **Anchor-driven state**: Derive chapter state from semantic chapter identifiers/anchors, not brittle raw pixel offsets that break on font load, text zoom, localization expansion, or viewport resize.
22
+ - **Bidirectional fidelity**: Scrolling backward, jumping via table-of-contents links, or resizing mid-chapter must settle immediately into the accurate visual state for the visible chapter.
23
+ - **Viewport-height budgeting**: Short landscape viewports (e.g., 1280×600 laptops, split-screen tablets) fail pinned layouts faster than narrow widths—test height constraints explicitly and release pinning when the visual plus caption cannot fit comfortably.
24
+
25
+ ## Narrow-viewport and compact fallback
26
+
27
+ - Prefer linear chapters with inline static or compact interactive visuals on phones and narrow split panes.
28
+ - If offering a horizontal step sequence, expose explicit Previous/Next buttons, visible step indicators (`2 of 6`), keyboard arrow controls, and direct chapter links—never scale down a wide desktop pinned canvas into an illegible thumbnail.
29
+
30
+ ## Do/don't pairs
31
+
32
+ | Do | Don't |
33
+ |---|---|
34
+ | Keep native scroll physics intact and observe position passively | Intercept wheel/touch events to enforce fake momentum or scroll locks |
35
+ | Derive visual state from semantic chapter IDs and deep links | Hardcode magic pixel offsets (`y > 2400`) that drift on text resize |
36
+ | Fall back to stacked inline visuals on narrow or short viewports | Pin a 500 px diagram inside a 560 px tall laptop window |
37
+ | Provide chapter jumps and a skip-section link | Force readers to scrub through 8 screens to reach the summary |
@@ -0,0 +1,42 @@
1
+ # Search and filtering
2
+
3
+ Search quality is measured by recovery as much as result relevance.
4
+
5
+ ## Query input
6
+
7
+ - Use a persistent label or accessible name; placeholder is hint only.
8
+ - Support paste, clear, keyboard submission, autocomplete/IME composition, and cancellation of stale requests.
9
+ - Debounce without hiding that work is pending; preserve typed query through errors/navigation.
10
+ - Advanced syntax/filter UI must not expose implementation jargon unless users know it.
11
+
12
+ ## Results
13
+
14
+ - Show count/scope/time freshness where meaningful; never claim zero means absence when permissions hide data.
15
+ - Sorting/filter state must be visible, reversible, shareable where possible, and preserved on back/refresh.
16
+ - Empty results diagnose likely cause and offer concrete recovery: remove filter, broaden query, correct spelling, change scope.
17
+ - Large results need pagination/virtualization/stable ordering and selection semantics that users understand.
18
+
19
+ ## Faceting/filtering
20
+
21
+ Show applied filters as removable objects. Avoid cascading dependent dropdowns when direct filters or grouped controls communicate better. Do not hide counts in ways that dead-end users. Explain incompatible combinations.
22
+
23
+ ## Empty-result diagnosis
24
+
25
+ Classify the cause before writing copy:
26
+
27
+ | Cause | UI response |
28
+ |---|---|
29
+ | filters too restrictive | show removable active filters and a one-action clear/loosen path |
30
+ | spelling/ambiguous query | suggest correction or broader matching without pretending certainty |
31
+ | scope too narrow | offer visible scope change such as folder/project/team/date range |
32
+ | permission-hidden data | state that restricted objects may not appear; provide request/sign-in path where appropriate |
33
+ | indexing/sync delay | show freshness/pending state and retry; do not claim absence |
34
+ | malformed/unsupported query | identify the syntax problem and preserve the typed query |
35
+ | system/network failure | distinguish failure from legitimate zero results; provide retry and preserve state |
36
+ | collection genuinely empty | teach/create/import the first useful object when that is the correct next action |
37
+
38
+ Order recovery actions by likelihood and cost. Never use “No results found” as the complete state, never show fake suggested results, and never silently broaden the query/scope in a way that violates user intent.
39
+
40
+ ## Verification
41
+
42
+ Test no query, no results, one result, thousands, slow network, aborted stale response, malformed query, Unicode/IME/case/diacritic behavior, locale sort expectations, keyboard focus into results, screen-reader status announcements, narrow layout, saved/deep-linked state, permission-hidden objects, indexing lag, filter combinations that mutually exclude, and recovery after clearing only one filter versus all filters.
@@ -0,0 +1,51 @@
1
+ # Settings and preferences
2
+
3
+ Settings are high-trust operational surfaces. Predictability, scope clarity, and safe commit semantics beat visual novelty.
4
+
5
+ ## Organization and scope inheritance
6
+
7
+ - Group settings by user goal or domain object (Account, Notifications, Security, Workspace), never by backend microservice or database table.
8
+ - In multi-level products (**Organization -> Workspace -> User**), expose inheritance explicitly:
9
+ - Label every inherited value ("Inherited from Org default") and highlight local overrides with a one-action `Reset to default`.
10
+ - When a higher-level policy locks a setting, render it read-only with a visible explanation ("Managed by Organization Admin") rather than silently disabling or hiding it.
11
+ - Settings search should jump directly to the matching section while preserving its scope breadcrumb and permission state.
12
+
13
+ ## Save models and sticky dirty-save bars
14
+
15
+ Choose one explicit save model per section and never mix them ambiguously:
16
+
17
+ | Save model | Best for | Required feedback |
18
+ |---|---|---|
19
+ | Immediate toggle/auto-commit | Low-risk personal preferences (theme, compact density, mute sound) | Instant applied state + rollback toast on failure; no separate Save button |
20
+ | Explicit Save / Discard with sticky dirty bar | Multi-field forms, security/SSO configs, webhook URLs, retention policies | Sticky bottom/top bar showing unsaved change count, `Save changes` and `Discard`, plus unsaved-navigation guard on route leave |
21
+ | Staged apply / restart required | System configs requiring reload, worker restart, or re-indexing | Banner explaining pending change and when it takes effect |
22
+
23
+ ## Controls and danger zones
24
+
25
+ - Match control to choice semantics: radio group for 2–5 mutually exclusive visible choices, select/combobox for larger sets, checkbox for independent booleans, switch/toggle strictly for immediate persistent preferences. Always expose accessible state labels alongside toggles.
26
+ - Isolate irreversible actions (delete workspace, revoke all tokens, purge data, transfer ownership) inside a clearly separated **Danger Zone** at the bottom or dedicated sub-tab:
27
+ - State the exact blast radius (e.g., "Permanently deletes 14 projects, 320 files, and revokes 8 API keys").
28
+ - Require **type-to-confirm** matching the concrete resource slug or name (not a generic "Are you sure?" click) plus re-authentication for account/org destruction.
29
+
30
+ ## State matrix
31
+
32
+ | State | Required behavior |
33
+ |---|---|
34
+ | Unsaved edits (dirty) | Sticky dirty bar visible; warn before navigating away; allow one-click discard |
35
+ | Permission read-only | Show current value clearly with lock reason and who can change it |
36
+ | Validation failure | Keep dirty bar active, highlight inline errors, preserve every entered value |
37
+ | Concurrent edit conflict | Detect stale version (`ETag`/revision), show conflicting fields, never silently overwrite another admin's save |
38
+ | Failed destructive action | Preserve confirmation context, explain partial or full failure, and report audit ID if generated |
39
+
40
+ ## Do/don't pairs
41
+
42
+ | Do | Don't |
43
+ |---|---|
44
+ | Show "Inherited from Org" badge + `Reset to default` action | Hide whether a value is global, workspace-wide, or personal |
45
+ | Sticky dirty-save bar + leave-page warning for multi-field settings | Silently discard 10 edited fields when the user clicks another tab |
46
+ | Type-to-confirm resource name with concrete blast radius in Danger Zone | One-click red Delete button next to Save |
47
+ | Confirm actual backend persistence before clearing dirty state | Show "Saved" optimistically and ignore failed writes |
48
+
49
+ ## Verification
50
+
51
+ Test refresh/back/deep link, dirty-state leave guards, inherited vs overridden values, admin-locked read-only controls, concurrent two-window save conflicts, validation with preserved input, keyboard tab order, focus restoration after save/error, long localized labels, narrow layouts, and danger-zone type-to-confirm enforcement.
@@ -0,0 +1,43 @@
1
+ # Tables, lists, and CRUD
2
+
3
+ Dense operational UI succeeds through scanability, predictable editing, and safe recovery.
4
+
5
+ ## Tables/lists
6
+
7
+ - Choose row identity and primary column deliberately; keep actions/context visible without mystery icons.
8
+ - Support keyboard/focus/selection semantics, stable sorting, column width behavior, empty/loading/error states, and responsive transformation.
9
+ - Virtualize large datasets only when needed and preserve focus/scroll/selection correctly.
10
+ - Never truncate essential unique identifiers without expansion/copy/access.
11
+
12
+ ## Create/read/update/delete
13
+
14
+ | Action | Rules |
15
+ |---|---|
16
+ | create | sensible defaults, validation near fields, duplicate prevention, clear success/location |
17
+ | read/detail | preserve context/back state; distinguish missing vs no permission |
18
+ | update | concurrency/version conflict handling; explicit dirty/save state where platform expects it |
19
+ | delete | consequence-specific confirmation; undo/archive preferred when truthful |
20
+ | bulk | visible selection count/scope, filter-aware selection behavior, progress/partial failure report |
21
+
22
+ Import/export needs schema errors with row/column references, encoding/locale behavior, progress, cancellation, and no silent data loss.
23
+
24
+ ## Dense selection and virtualization contract
25
+
26
+ Define selection behavior before implementation:
27
+
28
+ | Concern | Required rule |
29
+ |---|---|
30
+ | scope | distinguish row selection, page/viewport selection, filtered-set selection, and all-query selection |
31
+ | persistence | state whether selection survives sort/filter/pagination/virtualization; silent loss is a defect unless explicitly documented |
32
+ | feedback | show affected count/scope before destructive/bulk action and report partial success/failure afterward |
33
+ | keyboard/controller | provide row-level navigation/action path without forcing traversal through every cell |
34
+ | position orientation | virtualized/large collections preserve total count, approximate position, stable ordering, and scroll/focus restoration |
35
+ | removal | deleting the focused/selected row moves focus predictably to next/previous/context row rather than dropping it |
36
+ | permissions | rows/actions hidden by permission do not create false “select all” counts |
37
+ | reflow | priority columns remain visible; do not uniformly shrink every column until text/data are unreadable |
38
+
39
+ Virtualization is a rendering optimization, not permission to omit semantic rows, selection state, live count/status, keyboard range behavior, or focus restoration. If the platform cannot support both virtualization and required accessibility semantics, reduce rendered scale/page size or choose pagination rather than breaking operability.
40
+
41
+ ## Verification
42
+
43
+ Test zero/one/many rows, long unbroken text, locale sorting/numeric formatting, mixed RTL, row selection by keyboard, focus after delete/dialog, refresh/back/deep link, concurrent edit conflict, failed partial bulk action, narrow screens, dark/high contrast, selection persistence across sort/filter/page changes, range/multi-selection semantics, screen-reader count/position exposure, and virtualization accessibility.
@@ -0,0 +1,103 @@
1
+ ---
2
+ name: pixelcraft-plan
3
+ description: Plans greenfield and brownfield UI work, runs Socratic Grill-Me discovery interviews for ambiguous or greenfield briefs, selects platforms and technology stacks while rejecting lazy defaults, maps complex capabilities to purpose-built libraries, checks dependency freshness and lockfile reproducibility, records architecture decisions (ADR), and produces the .pixelcraft/plan.md consumed by later Pixelcraft skills. Use when starting a product or feature, brainstorming or shaping an ambiguous idea, choosing a stack, mapping an existing brownfield codebase, verifying library versions, or resolving material scope and architecture decisions.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft plan
10
+
11
+ This skill runs **first**, before `pixelcraft-direction`, UX specification, platform implementation, review, or brand generation. Its job is evidence before taste: inspect the codebase that exists, grill unresolved product/IA/visual/stack branches one question at a time, and choose the stack and libraries that should exist.
12
+
13
+ ## Adaptive discovery modes
14
+
15
+ Always inspect the repository, manifests, tokens, and supplied artifacts **first** (never ask the user facts readable from the repo), then choose the matching mode:
16
+
17
+ | Mode | Trigger | Required behavior |
18
+ |---|---|---|
19
+ | **Grill-Me / Deep Shaping** | Greenfield product, vague/ambiguous brief, major redesign, or user asks to brainstorm / grill / compare options | Read [references/grill-me-protocol.md](references/grill-me-protocol.md). Walk unresolved decision branches **one principal question per turn** with 1-sentence stakes + 2–4 concrete options leading with **(Recommended)** + trade-offs. Stop once actionable. |
20
+ | **Fast Confirm** | Clear feature or scoped surface with 1–2 undecided design, IA, or stack/library choices | Read [references/discovery-interview.md](references/discovery-interview.md). Summarize observed evidence, propose concrete recommended defaults + trade-offs in one focused turn, and confirm before coding. |
21
+ | **Direct Execution** | Narrow bug fix, copy tweak, visual polish, behavior-preserving refactor, or already-approved design spec | Skip discovery interviewing. Record a concise scoped `.pixelcraft/plan.md`, use reversible defaults for trivia, and proceed directly. |
22
+
23
+ ## Brownfield/greenfield decision
24
+
25
+ Classify the task before acting:
26
+
27
+ - **Brownfield:** a repository, application, package, prototype, or existing design system exists—even if the requested surface is new.
28
+ - **Greenfield:** no meaningful implementation exists, or the user explicitly asks for stack selection from scratch.
29
+ - **Hybrid:** a new surface in an existing product needs a separate stack/runtime decision. Inventory the existing system first, then run constrained greenfield selection. A new surface on the current stack follows brownfield planning.
30
+
31
+ Do not infer greenfield merely because the current folder is empty; inspect parent context, user brief, linked assets, and whether an existing product/database/API constrains the choice.
32
+
33
+ Record the task route separately: new project, extend existing product, edit/fix, redesign/rebuild, or behavior-preserving refactor. To extend an existing product, map the affected integration points and conventions first, then plan the new surface's requirements, flows, states and acceptance checks. Keep the existing stack unless a separate decision is needed and in scope.
34
+
35
+ ## Brownfield workflow
36
+
37
+ 1. **Scope the read (Codebase-First Gate).** Enumerate repository roots, packages/apps, generated/vendor directories, and ownership boundaries. Do not skim only `package.json`.
38
+ 2. **Inventory systematically.** Use [references/repo-discovery.md](references/repo-discovery.md): languages/frameworks, entry points, routing/screens, design tokens/theme/components, styling approach, state management, i18n, tests/visual tooling, CI, packaging, runtime constraints, accessibility evidence, and legal/privacy constraints.
39
+ 3. **Distinguish fact from inference.** Cite key files in the repo map. Classify material facts as user-provided, repo-observed, artifact-observed, research/analytics, assumption, or unknown. Mark unread/generated/ignored areas explicitly.
40
+ 4. **Intake design inputs.** Use [references/design-input.md](references/design-input.md) for Figma, screenshots, mockups, existing UI, prototypes, and reference imagery: classify specification versus inspiration, record provenance/version/breakpoints/constraints, assess completeness, and decide whether `pixelcraft-handoff` is needed.
41
+ 5. **Map existing authority.** Decide whether tokens/components/conventions are authoritative, partial, inconsistent, or absent. Existing project decisions outrank Pixelcraft taste.
42
+ 6. **Resolve material open decisions.** After inspecting the repo and artifacts, enter **Grill-Me / Deep Shaping** ([references/grill-me-protocol.md](references/grill-me-protocol.md)) or **Fast Confirm** ([references/discovery-interview.md](references/discovery-interview.md)) if outcome, anti-goals, IA, visual ambition, or architecture remains unresolved. Ask only what the repo and docs cannot answer.
43
+ 7. **Apply the Capability Library Gate & check versions.** Map any complex UI capability (editor, chart, >500-row table, command palette, drawer, toast, carousel, search, DnD, calendar, map, node graph, PDF, media player, complex form) to a vetted library using [references/stack-selection.md](references/stack-selection.md). Verify version-sensitive APIs via [references/stack-freshness.md](references/stack-freshness.md).
44
+ 8. **Write `.pixelcraft/plan.md` & initialize `.pixelcraft/acceptance.json`** using [references/plan-template.md](references/plan-template.md) and `node <pixelcraft-review>/scripts/check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`. Lock concrete numeric/device thresholds upfront alongside discovery mode/outcome, anti-goals, platform skill/reference routing, capability libraries, and the **Mandatory Completion Gate & Scan-Until-Clean Contract (Definition of Done)** binding the exact scanners, build/test commands, checklists, and `check-acceptance.mjs` verification that must pass before stopping.
45
+
46
+ Before modifying an existing surface, read the affected entry point, implementation, shared conventions/tokens, state or data flow, resolved dependencies and relevant tests or fixtures. Record inspected paths or symbols and what each establishes. Capture the current task outcome or failure where tools allow; otherwise record which baseline is `not-checked`. For a redesign or rebuild, map what must be preserved, what may change, and the regression check for each material contract. An implementation replacement is not authorization to remove existing behavior.
47
+
48
+ ## Greenfield workflow
49
+
50
+ 1. **Inspect supplied context and run adaptive discovery.** Review the brief, conversation, and artifacts. Unless the brief is fully specified or the user explicitly asks you to decide and build directly, run **Grill-Me / Deep Shaping** ([references/grill-me-protocol.md](references/grill-me-protocol.md)) one principal question per turn—covering **Business KPIs & 1–2 Primary CTAs**, Anti-Goals/Hate-List, **5-Second Hierarchy & Content/CMS Ownership**, Visual Ambition, Stack Craft Bar, and **Target Regulatory/Store Regime** + Critical States.
51
+ 2. **Intake technical & commercial constraints before candidates:** target platforms/input modalities, audience/locales (`IME`/RTL), team languages and operational experience, content/CMS authoring model, offline/network model, performance/hardware constraints, **regulatory & store regimes** (App Store, Google Play, Chrome `MV3`, EU `EAA` / `EN 301 549`, Steam Deck/Console `TRC`, Commercial Print `PDF/X-4`, Bulk Email `RFC 8058`), existing backend/protocol, maintenance horizon, budget/timeline, hard exclusions, and supplied design inputs ([references/design-input.md](references/design-input.md)).
52
+ 3. **Reject lazy defaults and generate candidates across languages.** Use [references/stack-selection.md](references/stack-selection.md). Reject Tkinter for greenfield Python desktop, unjustified Electron wrappers, Streamlit for multi-user/DAG BI, bare `print()` TUIs, WebView consumer mobile apps, `window.print()` PDFs, raw-Flexbox email, and DIY web widgets unless explicitly waived.
53
+ 4. **Build a weighted matrix & resolve sub-stack libraries.** Reject candidates that fail hard constraints regardless of total score. Complete the **Sub-Stack Capability → Purpose-Built Library Gate** so no fragile DIY editors, charts, tables, drawers, toasts, carousels, or search widgets slip into Build.
54
+ 5. **Verify and recommend one stack plus runner-up.** Apply [references/stack-freshness.md](references/stack-freshness.md) before finalizing versions and APIs. Record why the runner-up lost. Any web choice must be justified against native/TUI/server-rendered alternatives; TypeScript/React is never an unexamined default, nor artificially avoided when its ecosystem is the best fit.
55
+ 6. **Write `.pixelcraft/plan.md` & initialize `.pixelcraft/acceptance.json`** (`check-acceptance.mjs --init <platform> --out .pixelcraft/acceptance.json`) before visual direction begins—locking concrete numeric/device thresholds and the **Mandatory Completion Gate & Scan-Until-Clean Contract**—and keep the **Creative Direction → Plan Feedback Loop** open: if `pixelcraft-direction` wins approval for a concept needing Rive, WebGPU, Typst, Tauri, or a native runtime, update `.pixelcraft/plan.md` cleanly before Build.
56
+
57
+ ## Required plan contents
58
+
59
+ The plan must state: **business KPIs & 1–2 primary CTAs**; **5-second hierarchy goal**; **content/CMS ownership**; **target regulatory/store regime**; chosen stack and rejected lazy defaults; platform skill and framework reference by name; Sub-Stack Capability → Purpose-Built Library mappings; surfaces/screens; mode per surface; UX flows/state matrices to design; existing design-system authority; design-input classification/provenance/completeness and handoff decision; i18n/accessibility/legal constraints; risks/unknowns; **agreed numeric/device budgets + initialized `.pixelcraft/acceptance.json` + the Mandatory Completion Gate & Scan-Until-Clean Contract (exact scanner commands `slop-scan --fail-on p2` / `check-*`, compiler/linter/dependency-audit/test commands, rendered QA / `finish-gate.mjs`, mandatory checklists `floor.md` + platform `Pre-submit` + `polish.md`, and `check-acceptance.mjs .pixelcraft/acceptance.json` blocking completion until `0` `fail`/`pending` rows with `Rule #0.3` honored)**; evidence classification for material facts; and open questions. Record the adaptive discovery mode (`Grill-Me` / `Fast Confirm` / `Direct Execution`), anti-goals/hate-list, user-selected decisions, accepted recommendations, assumptions, and approval gate status.
60
+
61
+ For adaptable surfaces, fill out the device class matrix in the plan before building. Name supported sizes and inputs, what changes in navigation, density and task controls, what stays equivalent, and how each applicable class or transition will be checked. Include height and aspect ratio, not just width.
62
+
63
+ ## Iron Laws & Rationalization Table
64
+
65
+ - **IRON LAW 1:** Never ask the user facts readable from the repo, manifests, lockfiles, or supplied artifacts.
66
+ - **IRON LAW 2:** Never dump a multi-question questionnaire wall; walk unresolved branches **one principal question per turn** with **(Recommended)** options and trade-offs.
67
+ - **IRON LAW 3:** Never silently invent product scope, accept lazy defaults (Tkinter, unjustified Electron, raw Flexbox email, DIY modals/charts/editors), bypass design approval on undecided greenfield/redesign work, or write a plan without `.pixelcraft/acceptance.json` and a binding **Scan-Until-Clean Completion Gate**.
68
+
69
+ | Agent rationalization | Reality & required action |
70
+ |---|---|
71
+ | "The brief is short, so I'll just pick defaults and start coding fast." | Short greenfield briefs hide the highest-cost unknowns. Enter **Grill-Me / Deep Shaping** (one question at a time) unless the user explicitly told you to decide and build directly. |
72
+ | "I'll ask all 8 questions at once to save turns." | Question walls overwhelm users and ask downstream questions invalidated by upstream answers. Ask the single highest-leverage unresolved branch per turn. |
73
+ | "Tkinter / Streamlit / raw `<div>` modal / hand-coded SVG chart is quicker and avoids dependencies." | Lazy defaults and DIY substitutes fail accessibility, edge cases, and visual craft. Enforce the Lazy-Default Rejection and Sub-Stack Capability tables. |
74
+ | "Planning locked the stack, so I can't adopt the stronger creative concept." | Use the **Creative Direction → Plan Feedback Loop**: update `.pixelcraft/plan.md` cleanly when the approved direction warrants a better runtime or renderer. |
75
+ | "I remember the latest API for this library." | Training memory drifts. Verify current versions/APIs via docs/registry tools or mark `assumption` / `not-checked` explicitly. |
76
+ | "Verification details can wait until after I finish coding." | Unplanned verification gets skipped. Initialize `.pixelcraft/acceptance.json` and lock exact numeric thresholds, scan, build/test, and checklist exit gates into `.pixelcraft/plan.md` up front. |
77
+
78
+ ## Hard rules
79
+
80
+ - Do not select a stack before inventorying hard constraints.
81
+ - Do not rely on training-data memory for version-sensitive APIs, config syntax, or package versions; verify via available docs/registry tools or mark `assumption` / `not-checked`.
82
+ - Keep brownfield runtime and dependencies unless an upgrade is in scope. For new apps, commit a reproducible lockfile; never resolve floating `@latest` on every CI build.
83
+ - Do not overwrite an existing `.pixelcraft/plan.md` without preserving prior decisions and recording why they changed.
84
+ - Do not write implementation before `.pixelcraft/plan.md` and `.pixelcraft/acceptance.json` exist (with concrete numeric/device thresholds and the **Mandatory Completion Gate** populated) unless the user explicitly waives planning.
85
+
86
+ ## Pre-submit checklist
87
+
88
+ - [ ] Codebase-first inspection completed and cited (zero questions asked about repo-observable facts).
89
+ - [ ] Correct adaptive mode chosen (`Grill-Me / Deep Shaping`, `Fast Confirm`, or `Direct Execution`) with **business KPIs & 1–2 primary CTAs**, **5-second hierarchy goal**, **content/CMS ownership**, **regulatory/store regime**, and anti-goals recorded before visual styling.
90
+ - [ ] Stack selected against hard constraints with lazy defaults explicitly rejected (or waived by user) and version sources cited or labeled `not-checked`.
91
+ - [ ] Every complex UI capability in scope mapped in the **Sub-Stack Capability → Purpose-Built Library Gate** (no DIY modals, editors, charts, large tables, search, toasts, drawers, or carousels).
92
+ - [ ] `.pixelcraft/acceptance.json` initialized (`check-acceptance.mjs --init <platform>`), concrete numeric/device thresholds agreed, and **Mandatory Completion Gate & Scan-Until-Clean Contract** (exact `slop-scan --fail-on p2`, `check-*`, compiler/audit/test, rendered QA, checklists, and `check-acceptance.mjs` verification) documented in `.pixelcraft/plan.md`.
93
+ - [ ] Approval boundary clear before handing off to `pixelcraft-direction` / `pixelcraft-ux` (no premature implementation on undecided scope).
94
+
95
+ ## Reference routing
96
+
97
+ - Read [references/grill-me-protocol.md](references/grill-me-protocol.md) for the Socratic one-question-per-turn decision tree on greenfield, ambiguous, redesign, or brainstorm requests.
98
+ - Read [references/discovery-interview.md](references/discovery-interview.md) for adaptive discovery mode selection, Fast Confirm framing, decision memory, and approval boundaries.
99
+ - Read [references/repo-discovery.md](references/repo-discovery.md) for brownfield inventory order and ecosystem signal files.
100
+ - Read [references/design-input.md](references/design-input.md) when the task includes Figma, screenshots, mockups, prototypes, existing UI, or visual references.
101
+ - Read [references/stack-selection.md](references/stack-selection.md) for weighted stack selection, the Lazy-Default Rejection Table, the Sub-Stack Capability Library Gate, and the Direction → Plan feedback loop.
102
+ - Read [references/stack-freshness.md](references/stack-freshness.md) when choosing or upgrading versions, or setting up dependency maintenance for a generated app.
103
+ - Read [references/plan-template.md](references/plan-template.md) before writing `.pixelcraft/plan.md`.
@@ -0,0 +1,69 @@
1
+ # Design input intake
2
+
3
+ Use this reference whenever UI work begins from Figma, screenshots, mockups, prototypes, existing UI, brand boards, or supplied visual references. The planning question is not only “what does it look like?” but “what authority does this artifact have?”
4
+
5
+ ## 1. Inventory every source separately
6
+
7
+ Do not collapse all visuals into “the design.” Record each artifact independently:
8
+
9
+ | Source type | Default classification | Planning treatment |
10
+ |---|---|---|
11
+ | approved Figma frame/component/prototype | specification for the approved scope | preserve visual intent; decide whether handoff translation is required |
12
+ | unapproved/exploratory Figma | candidate or inspiration | do not implement literally until approval state is resolved |
13
+ | screenshot of desired result | specification only for visible/static aspects | missing states/behavior remain assumptions |
14
+ | screenshot of existing UI | evidence of current behavior | inventory before redesign; do not confuse with desired direction |
15
+ | sketch/mockup/image-model board | inspiration unless user says approved | extract constraints/motifs; divergence may still be required |
16
+ | brand guidelines/tokens/assets | constraint or authority | preserve within stated scope; verify version and usage rights |
17
+ | competitor/reference site/app | inspiration only unless explicitly approved as specification | analyze mechanisms; never copy protected/unique design |
18
+ | existing production component library | implementation authority | reuse before redesign |
19
+
20
+ The user's explicit statement outranks the defaults. “Implement this approved design” means specification; “like this” or “inspired by” means inspiration. Ask only when the difference materially changes whether divergence or handoff should run.
21
+
22
+ ## 2. Record provenance and version
23
+
24
+ For each artifact record what is knowable without ceremony:
25
+
26
+ - owner/author/source URL or file path;
27
+ - Figma file/page/frame/component/node ID and library version where applicable;
28
+ - screenshot/mockup file, capture date, device/browser scale, commit/version of the app shown;
29
+ - approval state and who approved it;
30
+ - target platform, breakpoint/orientation/density/input modality;
31
+ - theme/mode/locale/text direction represented;
32
+ - confidentiality/licensing/usage constraints;
33
+ - exact scope: whole surface, region, component, state, or style only.
34
+
35
+ Missing provenance is a planning risk, not permission to treat pixels as complete truth.
36
+
37
+ ## 3. Assess completeness
38
+
39
+ Use this matrix before deciding implementation readiness:
40
+
41
+ | Dimension | Questions |
42
+ |---|---|
43
+ | structure | Are layout, navigation, hierarchy, and component boundaries visible or specified? |
44
+ | breakpoints | Are narrow/wide/resize/orientation behaviors provided? Which are assumptions? |
45
+ | states | Are hover/focus/disabled/loading/empty/error/offline/permission/validation covered? |
46
+ | content | Is copy/data/media real, placeholder, missing, legally approved, and localized? |
47
+ | tokens | Are color/type/spacing/elevation/motion values semantic, documented, or only pixels? |
48
+ | interaction | Are flows, gestures, keyboard behavior, routing, mutation, undo/error recovery defined? |
49
+ | accessibility | Are contrast, focus, labels, target size, reduced motion, scaling/reflow specified or left to implementation? |
50
+ | assets | Are exports/licenses/source files available, or must assets be recreated/omitted? |
51
+ | architecture | Does the source reveal data ownership, existing component reuse, platform constraints, or only appearance? |
52
+
53
+ Mark each dimension `specified`, `partial`, `missing`, or `not applicable`. Do not implement destructive/legal/security behavior from inference.
54
+
55
+ ## 4. Record assumptions and contradiction policy
56
+
57
+ Every inferred item must be either confirmed or written as an explicit assumption with scope and consequence. An approved design decides visual intent within its approved scope, but it does not silently override the accessibility floor, platform or legal requirements, existing semantic tokens/components, data ownership, security/privacy constraints, or architecture. Resolve conflicts through existing components and platform idioms where possible. If fidelity truly requires breaking one of those constraints, record the conflict in the plan and escalate for an explicit user override rather than treating the newer artifact as higher authority. Preserve the losing rationale in the plan so later agents do not resurrect it.
58
+
59
+ ## 5. Decide whether handoff is needed
60
+
61
+ Use `pixelcraft-handoff` when all are true:
62
+
63
+ 1. the artifact is a specification for implementation, not merely inspiration;
64
+ 2. visual direction is approved or fixed enough that divergence would violate intent;
65
+ 3. translation requires semantic mapping into existing components/tokens/architecture or across a nontrivial stack.
66
+
67
+ Do not use handoff for open-ended redesign, early visual exploration, or inspiration-only references. Use partial handoff when only some regions are approved; undecided regions still go through direction/UX divergence.
68
+
69
+ Write the result into `.pixelcraft/plan.md`: artifact inventory, classification, provenance/version, represented breakpoints/modes, missing dimensions, assumptions, required approval questions, handoff decision, and visual-fidelity evidence needed.
@@ -0,0 +1,110 @@
1
+ # Project discovery and decision interview
2
+
3
+ Discovery is how `pixelcraft-plan` turns an under-specified brief into an actionable plan without guessing silently. Choose the lightest mode that actually resolves uncertainty: **Grill-Me / Deep Shaping** for open-ended or ambiguous scope, **Fast Confirm** for clear features with 1–2 open choices, and **Direct Execution** for narrow fixes or approved designs.
4
+
5
+ ## Choose the right mode
6
+
7
+ Planning is always required. **Do not jump straight to code on a greenfield product, vague brief, or undecided redesign**—silently filling major product, IA, visual, and stack blanks with model assumptions produces generic output that has to be rewritten.
8
+
9
+ | Situation | Mode | What to do |
10
+ |---|---|---|
11
+ | Greenfield product, vague or ambiguous brief, major redesign, or user asks to brainstorm / grill / compare options | **Grill-Me / Deep Shaping** | Inspect the repo/brief first, then run [grill-me-protocol.md](grill-me-protocol.md): walk unresolved branches one principal question per turn with **(Recommended)** options until actionable. |
12
+ | Clear feature or scoped surface with 1–2 undecided design, IA, or stack/library choices | **Fast Confirm** | Inspect code and artifacts, propose concrete options with a recommendation and trade-offs in one focused turn, and confirm before coding. |
13
+ | An existing repository is involved | **Brownfield first** | Always run the codebase-first inspection gate (code, design system, runtime, data contracts, docs) *before* deciding between Grill-Me, Fast Confirm, or Direct Execution. |
14
+ | Narrow bug fix, copy change, visual tweak, behavior-preserving refactor, or already-approved design spec | **Direct Execution** | Skip product discovery; write a compact scoped plan, use safe reversible defaults for minor details, and build directly. |
15
+
16
+ Actively enter **Grill-Me / Deep Shaping** whenever the brief leaves any of these materially undecided: primary user/job, anti-goals/taboos, core workflow/IA shape, visual ambition, platform/stack or sub-stack capability libraries, data/auth model, or acceptance criteria. An explicit request to brainstorm or shape an idea always triggers Grill-Me.
17
+
18
+ Reserve **Direct Execution** for genuinely complete briefs, approved designs, or narrow edits. If the user explicitly says "you decide and build directly," honor that override, record conservative defaults and risks in `.pixelcraft/plan.md`, and proceed.
19
+
20
+ ## Principles
21
+
22
+ 1. **Read before asking (Codebase-First Gate).** Inspect the request, conversation context, repository, existing plan/brief, design artifacts, manifests and lockfiles, API contracts, analytics or product docs, and relevant tests. Check current official documentation or registries for facts that can change. Never ask the user for something already readable in the environment.
23
+ 2. **Separate facts from decisions.** Facts are the agent's responsibility to find. User-owned preferences, anti-goals/hate-lists, priorities, budgets, business constraints, and approval decisions belong to the user. Label observations, research, assumptions, and unknowns separately.
24
+ 3. **Ask about outcomes and anti-goals before trivia.** Establish what users must accomplish and what competitor tropes or UX patterns the user rejects before debating component details. Do not make a non-technical user choose technologies without explaining the product consequence.
25
+ 4. **Recommend, do not dump options.** For every material choice, explain why it matters in one sentence, offer 2–4 concrete options, lead with **(Recommended)** and evidence-backed trade-offs, and allow free-form answers, "you decide", or "skip". Never fabricate a recommendation when evidence is insufficient.
26
+ 5. **One principal question per turn.** Follow [grill-me-protocol.md](grill-me-protocol.md): never dump a 10-question questionnaire wall. Wait for upstream answers before asking dependent downstream questions.
27
+ 6. **The user owns the decision.** A recommendation is not approval. Preserve explicit user decisions over model preference, and pause for design sign-off before coding on undecided greenfield or redesign scope.
28
+ 7. **Stop when the plan is actionable.** Resolve material branches, record remaining assumptions and risks, then move to `pixelcraft-direction` and the Design Approval `<HARD-GATE>`.
29
+
30
+ ## Build the decision map
31
+
32
+ Start with the outcome and work outward. Include only dimensions relevant to this project:
33
+
34
+ | Decision area | Questions the agent may need to resolve |
35
+ |---|---|
36
+ | Problem, KPIs & primary CTAs | What problem exists? Which measurable business/task KPI signals success, and which **1–2 primary CTAs** outrank secondary actions? |
37
+ | Users and context | Primary user or role, expertise, frequency, device, environment, language/IME scripts, accessibility needs, and network conditions |
38
+ | Scope | Core jobs, MVP boundary, must-have versus later, non-goals, roles/permissions, and cost of missing a capability |
39
+ | Experience & 5-second hierarchy | What must a user understand and see where to act within **5 seconds**? Main flows, navigation, visual ambition, states, recovery, and approved designs |
40
+ | Content & CMS ownership | Who writes, localizes, and maintains copy, pricing, legal text, and media post-launch (static source, Git Markdown/MDX, headless/integrated CMS, translation catalog)? |
41
+ | Platform & distribution regime | Web, mobile, desktop, data app, TUI, email, document, game, spatial, or constrained hardware; store/host gates (App Store, Google Play, `MV3`, Steam Deck/Console `TRC`, `PDF/X-4`, `RFC 8058`) |
42
+ | Data and integrations | Existing API/backend, ownership, persistence, import/export, authentication, permissions, realtime/offline behavior, third-party services |
43
+ | Technical approach | Existing stack constraints, candidate languages/frameworks, rendering model, deployment, testing, operations, maintainability, and team capability |
44
+ | Regulatory, quality & constraints | EU `EAA` / `EN 301 549`, `ADA Title II`, privacy/data residency, performance, security, licensing/IP ownership, budget, timeline, and maintenance horizon |
45
+ | Validation | Acceptance criteria, critical states, measurement source, tests, and evidence needed to call the work complete |
46
+
47
+ Do not ask every row as a checklist. A landing page with no backend does not need a database interview; a brownfield feature does not need a fresh framework comparison when the existing stack is authoritative.
48
+
49
+ ## Interview loop
50
+
51
+ 1. **Summarize what is already known.** Briefly replay the goal and evidence found. Mention important unknowns without pretending they are facts.
52
+ 2. **Find the highest-impact unresolved decision.** Map dependencies between decisions. Ask only a question whose answer is not already known and can change the plan.
53
+ 3. **Frame the choice.** Explain why the decision matters, then provide concrete choices in user language. For example, distinguish “show information and collect interest” from “support account-based workflows and saved data” before comparing web architecture.
54
+ 4. **Give a recommendation.** State the suggested choice and reason. Note important trade-offs and confidence. A simple “yes” may accept the recommendation; the user can choose another option or answer freely.
55
+ 5. **Wait and update the map.** Treat the user's answer as authoritative, update dependent decisions, and ask the next highest-impact question. Do not ask downstream questions whose premises are not yet settled.
56
+ 6. **Research technical branches.** When a choice depends on current framework support, compatibility, pricing, hosting, APIs, or version-specific behavior, verify against current primary sources and registries. Return a short comparison, not an unbounded technology catalogue.
57
+ 7. **Close the interview.** When all material branches are resolved or explicitly recorded as assumptions, summarize decisions, recommendation, trade-offs, non-goals, risks, and validation criteria. Do not continue asking low-value questions.
58
+
59
+ Use this response shape for each material choice:
60
+
61
+ > **Decision — [plain-language topic]**
62
+ >
63
+ > Why it matters: [one sentence tied to the user's outcome]
64
+ >
65
+ > A. **[Recommended option]** — [what it means and why it fits]
66
+ > B. [Alternative] — [main trade-off]
67
+ > C. [Alternative] — [main trade-off]
68
+ > D. Other / not sure — [free-form answer or request for comparison]
69
+ >
70
+ > Recommendation: [A], because [evidence and consequence]. Reply with a letter, correct the recommendation, or tell me to decide.
71
+
72
+ Do not force this exact formatting for a trivial question. Keep the prompt concise and conversational.
73
+
74
+ ## Technology and stack decisions
75
+
76
+ Treat stack choice as a consequence of product requirements, not the opening question.
77
+
78
+ - In brownfield work, keep the existing stack unless a separate runtime/platform is required or the user authorizes a migration. First inspect locked versions, shared components, backend contracts, deployment, team conventions, and neighboring tests.
79
+ - In greenfield work, establish platform, user jobs, content/data needs, interaction/rendering requirements, offline/network needs, team capability, distribution, hosting, accessibility/legal duties, performance, budget, and maintenance expectations before narrowing candidates.
80
+ - Compare a small credible shortlist (normally 2–4) against actual constraints. Use hard gates before weighted scoring. Explain developer-experience and operational trade-offs in terms the user can evaluate.
81
+ - Prefer the least complex sufficient architecture. A visually rich interface does not automatically need a 3D renderer; an interactive app does not automatically need a large SPA; a static/content experience may not need a backend.
82
+ - Verify current versions and APIs with official docs and registries before committing to a version-sensitive choice. If unavailable, state the version assumption and what remains unchecked.
83
+ - Record the winner, runner-up where meaningful, why alternatives lost, confidence, reversal conditions, and whether the user explicitly selected or accepted the recommendation.
84
+
85
+ ## Documents and decision memory
86
+
87
+ Use the existing Pixelcraft artifacts as the source of truth:
88
+
89
+ - `.pixelcraft/brief.md` records product outcome, audience, constraints, material, boundaries, and validation.
90
+ - `.pixelcraft/plan.md` records project mode, repository/system evidence, platform/stack, implementation routing, verification, risks, and discovery outcome.
91
+
92
+ Do not create parallel specification files when these artifacts are sufficient. Preserve prior decisions when updating a plan.
93
+
94
+ Create an ADR only when a decision is difficult to reverse, surprising without context, and based on a genuine trade-off. Create or update a glossary only when the project has recurring domain-specific or overloaded terms that will materially help future work; follow existing repository conventions and do not create one by default. Never write documents merely to imitate a process.
95
+
96
+ ## Completion and approval boundary
97
+
98
+ Discovery is complete when:
99
+
100
+ - the primary user outcome, task, and anti-goals/hate-list are clear enough to define success;
101
+ - project scope and non-goals are bounded;
102
+ - the platform, stack (rejecting lazy defaults), and Sub-Stack Capability libraries are selected, constrained by the repository, or explicitly deferred;
103
+ - important data, integration, privacy, security, accessibility, localization, and operational constraints are known or recorded as risks;
104
+ - major flows and critical states are understood well enough to plan;
105
+ - acceptance criteria and verification evidence are actionable; and
106
+ - each remaining material unknown has an owner, consequence, and next check.
107
+
108
+ Present the resulting brief/plan in a concise summary. **For undecided greenfield products, multi-screen features, or major redesigns, require explicit design sign-off** (combining the plan summary with `pixelcraft-direction`'s 2–3 contrasting directions + ASCII structural skeletons + stack/library choices) before writing implementation code. Preserve the **Direct Execution** path without extra ceremony for narrow bug fixes, copy tweaks, visual polish, behavior-preserving refactors, or implementations of an already-approved design.
109
+
110
+ If the user explicitly asks to skip questions or says "you decide and build directly," stop interviewing, record conservative reversible defaults and rejected lazy defaults in `.pixelcraft/plan.md`, surface only material risks, and proceed.
@@ -0,0 +1,63 @@
1
+ # Grill-Me Socratic Decision-Tree Protocol
2
+
3
+ Use this protocol inside `pixelcraft-plan` whenever the user enters **Grill-Me / Deep Shaping**: greenfield products, vague or under-specified briefs, major redesigns, or explicit requests to brainstorm, grill, or compare options. The goal is to resolve every high-leverage product, IA, visual-ambition, and stack decision *before* writing code—without dumping a questionnaire wall or asking facts already present in the codebase.
4
+
5
+ ## Step 1: Codebase-First Inspection Gate
6
+
7
+ Before asking the user **any** question:
8
+
9
+ 1. Inspect the workspace, git history, manifests, lockfiles, existing routes/screens, tokens/theme files, component primitives, docs, and supplied design artifacts.
10
+ 2. Cite the observed files and established constraints in a 3–5 line context replay at the top of your first turn.
11
+ 3. **Never ask the user facts readable from the repo** (installed framework, package manager, existing palette tokens, database schema, current routes, or test runner). Reserve user turns exclusively for intent, priorities, anti-goals, taste boundaries, and trade-off approvals.
12
+
13
+ If the repo is empty, state that explicitly ("Workspace is greenfield; no existing manifests or tokens found") and move directly to the first unresolved branch.
14
+
15
+ ## Step 2: Walk the Decision Tree — One Principal Question Per Turn
16
+
17
+ Walk only the **unresolved** branches below, in dependency order. Skip any branch already settled by the prompt, supplied artifacts, or repository evidence.
18
+
19
+ **Strict pacing rule:** ask **one principal question per turn**. Never dump a 5-to-10-question numbered list in a single message. Downstream branches wait until upstream branches are resolved because the answer to an earlier branch often collapses later branches.
20
+
21
+ | Order | Branch | What to resolve | Skip when |
22
+ |---|---|---|---|
23
+ | 1 | **Problem, KPIs & 1–2 Primary CTAs** | Who uses this, what business KPI or task outcome proves success, which **1–2 primary CTAs** dominate the flow, and what is strictly in/out of MVP scope? | Brief already states actor, measurable KPI/outcome, primary CTAs, and MVP boundary. |
24
+ | 2 | **Anti-Goals & Hate-List** | Which competitor tropes, visual clichés, or UX patterns does the user **hate** or explicitly refuse (e.g., cluttered SaaS cards, modal traps, generic dark-neon AI styling, bloated wizards)? | User already supplied explicit taboos or an approved locked design. |
25
+ | 3 | **Core Workflow, 5-Second Hierarchy & Content/CMS Ownership** | What must a user grasp and see where to act within **5 seconds**, what is the primary IA/workspace shape, and **who owns/updates copy & media** (static repo files, Git Markdown, headless/integrated CMS, localization pipeline)? | Existing app IA, content/CMS pipeline, or approved wireframes fix these. |
26
+ | 4 | **Visual World, Ambition Tier & Signature Moment** | Which ambition tier fits the stakes—**Pragmatic High-Craft**, **Editorial / Domain-Object Signature**, or **Bold Experimental**—and what real subject material or single signature moment anchors it? | Approved brand/design spec locks visual direction. |
27
+ | 5 | **Stack & Library Craft Bar** | Confirm target platform(s), runtime stack (rejecting lazy defaults), and purpose-built libraries for complex sub-stack capabilities (editors, charts, tables, drawers, search, maps, PDF) instead of DIY hand-rolls. | Brownfield stack and approved libraries already cover every capability. |
28
+ | 6 | **Regulatory/Store Regime, Critical States & Acceptance** | Confirm target **regulatory/distribution regime** (App Store, Google Play, Chrome `MV3`, EU `EAA` / `EN 301 549`, Steam Deck/Console `TRC`, Commercial Print `PDF/X-4`, Bulk Email `RFC 8058`), non-happy-path states, and acceptance proof. | Brief + repo configs already specify distribution regime, states, and acceptance checks. |
29
+
30
+ ## Step 3: Per-Decision Frame & Option Contract
31
+
32
+ For every unresolved branch you ask:
33
+
34
+ 1. **Why it matters (1 sentence):** tie the choice directly to a concrete product, UX, or architecture consequence.
35
+ 2. **2–4 concrete options, leading with `(Recommended)`:** label the strongest evidence-backed choice first with **(Recommended)**, and state the concrete trade-off for each alternative (never vague adjectives like "clean" or "modern").
36
+ 3. **Flexible exit on every turn:** explicitly allow a short letter/name reply, a free-form answer, **"you decide"**, or **"skip"** (which records a reversible assumption and moves to the next unresolved branch).
37
+
38
+ Compact turn shape:
39
+
40
+ ```markdown
41
+ **Observed context:** [1–2 lines citing repo/brief facts already established — omit after turn 1 unless new facts were inspected]
42
+
43
+ **Decision [N/6] — [Branch topic]**
44
+ Why it matters: [one concrete sentence tied to user outcome or architecture].
45
+
46
+ 1. **(Recommended) [Option A]** — [concrete shape + why it fits observed constraints; key trade-off].
47
+ 2. **[Option B]** — [concrete alternative + main trade-off].
48
+ 3. **[Option C]** — [concrete alternative + main trade-off].
49
+
50
+ Reply with a number, combine parts, give a custom answer, or say "you decide" / "skip".
51
+ ```
52
+
53
+ ## Step 4: Exit Condition & Handoff
54
+
55
+ Stop grilling immediately once all 6 branches are either **resolved by the user**, **constrained by observed repo/artifact facts**, or **recorded as explicit reversible assumptions** (typically 2–5 turns total—never drag out trivia).
56
+
57
+ Before writing any implementation code:
58
+
59
+ 1. Write or update `.pixelcraft/plan.md` (using `references/plan-template.md`), recording:
60
+ - mode (`Grill-Me / Deep Shaping`), observed repo files, resolved decisions, anti-goals/hate-list, chosen stack + rejected lazy defaults, and the **Sub-Stack Capability → Purpose-Built Library** table;
61
+ - every remaining assumption with its consequence and reversal cost.
62
+ 2. Hand off cleanly to `pixelcraft-direction` (creative brainstorming) to pitch 2–3 contrasting directions with ASCII structural skeletons and real-copy lead drafts, then pause at the **Design Approval `<HARD-GATE>`** before entering Build—unless the user explicitly says to decide and build directly.
63
+ 3. Keep the **Creative Direction → Plan Feedback Loop** open: if the user picks a direction in `pixelcraft-direction` that calls for a richer runtime or renderer (e.g., Rive, WebGPU, Typst, Tauri, or native desktop/mobile), update `.pixelcraft/plan.md` before coding rather than forcing the concept onto a mismatched stack.