@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,105 @@
1
+ # Pixelcraft architecture
2
+
3
+ Pixelcraft is a pack of portable Agent Skills (`skills/<name>/SKILL.md`) that makes coding agents
4
+ produce distinctive UI and rigorous UX on **any** frontend stack. Read `docs/DESIGN-RATIONALE.md`
5
+ before changing the reasoning behind major rules.
6
+
7
+ ## Product thesis
8
+
9
+ 1. **Divergence before commitment** — LLM UIs converge because single-shot "best design" prompting
10
+ collapses to the mode. Pixelcraft forces a distribution of 3–5 far-apart directions,
11
+ scores them against the brief, commits to one, and records history so the next build differs.
12
+ 2. **A hard floor that never dictates appearance** — truthfulness, accessibility, state coverage,
13
+ localization, responsiveness, performance and verifiability are mandatory; heroes, cards,
14
+ palettes, fonts and layout shapes are not.
15
+ 3. **Design once, translate per stack** — core skills speak design language (roles, scales, units,
16
+ rules). Platform skills translate them into idioms of web, mobile, data apps, desktop, TUI, email
17
+ and game UI. Never assume React/Tailwind.
18
+ 4. **Honest verification** — every claim names its evidence: rendered, static inspection,
19
+ model judgment, not checked, or waived.
20
+
21
+ ## Authority order
22
+
23
+ explicit user brief → existing project design system/tokens → platform conventions + legal +
24
+ accessibility floor → Pixelcraft guidance → model taste.
25
+
26
+ ## Skills
27
+
28
+ The architecture has five layers: **Plan** (`pixelcraft-plan`), **Core** (orchestration, direction, craft, tokens, UX), **Surfaces** (platform/framework skills), **Patterns** (surface-independent product patterns), and **Quality** (review, accessibility, visual QA). Layers compose; no layer substitutes for the mandatory floor.
29
+
30
+ | Skill | Role |
31
+ |---|---|
32
+ | `pixelcraft` | Orchestrator: detect stack + surface mode, enforce anti-laziness iron laws, run the loop, route to other skills, final report contract |
33
+ | `pixelcraft-plan` | Step 0: brownfield repo discovery, greenfield intake, Grill-Me Socratic interview (one question at a time with recommendations), lazy-default rejection & sub-stack library craft gate, `.pixelcraft/plan.md` |
34
+ | `pixelcraft-direction` | Divergence & creative brainstorming engine: brief/material extraction, 3-tier ambition pitch, ASCII wireframe + real-copy draft, pre-code Design Approval gate, movements, motion identity, slop fingerprints, history |
35
+ | `pixelcraft-craft` | Visual craft: typography, color (OKLCH, contrast), layout/composition, motion language, imagery, iconography |
36
+ | `pixelcraft-tokens` | DTCG 2025.10 tokens (`$root`, `$deprecated`, Resolver), Style Dictionary/Terrazzo/Figma MCP, theming/modes, zero-dep export to 19 targets (CSS/Tailwind/SCSS/TS/Swift/Kotlin/Android XML/Dart/Python/Qt/Textual/XAML/Rust/Go Lip Gloss/Godot/Unity USS/Slint/GTK4/Typst) |
37
+ | `pixelcraft-ux` | UX before and during build: JTBD, IA/flow divergence, full state coverage (incl. AI/streaming), forms, feedback, navigation, cognitive load, i18n, UX writing |
38
+ | `pixelcraft-patterns` | Patterns layer: dashboards/admin, commerce, SaaS billing/paywalls, multi-tenant/RBAC/audit logs, notifications/inbox, scheduling/Kanban, history/diff/undo, AI-in-app & offline sync, creative tools, communication, auth/onboarding, marketing, scrollytelling, settings, search/filtering, tables/CRUD, sub-stack library escalation |
39
+ | `pixelcraft-dataviz` | Patterns layer for evidence communication: chart choice, encoding, color/accessibility, tables/dashboards, streaming, node graphs, maps/PMTiles/Turf, BI plugins (Grafana/Superset), rendering scale, cross-language libraries |
40
+ | `pixelcraft-accessibility` | WCAG 2.2 floor + platform translations (incl. AccessKit), native HTML APG replacements, reduced-motion, canvas/graphics alternatives, media controls, and verification split |
41
+ | `pixelcraft-review` | Adversarial audit / critique / polish: heuristic + DIY-slop scoring with evidence + confidence, persona walkthroughs, multi-language slop scan script (`--fail-on`) |
42
+ | `pixelcraft-visual-qa` | Quality-layer render/screenshot/video/trace/critique/fix loop, surface-typed `finish-gate.mjs`, and cross-platform zero-dep CLIs (`check-contrast`, `check-email`, `check-tui`, `check-pdf`) |
43
+ | `pixelcraft-extensions` | Host-constrained extension/plugin surfaces: MV3 browser UI (WXT/Plasmo/Safari), content-script Shadow DOM, VS Code webviews/Chat/MCP, Raycast, Figma plugins/widgets, Office, JetBrains, Obsidian, Shopify/Forge |
44
+ | `pixelcraft-web` | HTML/CSS/JS & non-JS web frameworks (incl. Filament, Symfony UX, WordPress Gutenberg, ViewComponent/Phlex, MudBlazor/FluentUI Blazor, Gomponents, Jaspr), styling/component/interaction-search primitives (`cmdk`/`vaul`/`sonner`/`embla`/Pagefind/Orama), editors, grids, sync, GSAP/Motion/Theatre.js/Spline/Three.js/WebGPU, and browser media players |
45
+ | `pixelcraft-mobile` | SwiftUI (incl. TCA), UIKit, Jetpack Compose, Flutter, React Native/Expo, LynxJS, KMP, NativeScript/Skip, HarmonyOS ArkUI/ArkTS, Elixir LiveView Native, Taro/uni-app, Ionic/Capacitor, .NET MAUI, Flet, Kivy |
46
+ | `pixelcraft-data-apps` | Streamlit, Gradio, marimo/Solara/Mesop/Taipy (Polars/Narwhals), Chainlit/FastHTML/Preswald/internal tools, Reflex, NiceGUI, Dash, Panel, Shiny, Jupyter/AnyWidget, R Shiny, Julia Genie, Observable Framework, Evidence |
47
+ | `pixelcraft-desktop` | Tauri v2, Electron/Electrobun, Qt 6/PySide6/PyQt6/QML (anti-Tkinter guard), WinUI 3/WPF, AppKit/SwiftUI macOS, GTK4/libadwaita, Avalonia, Rust GUIs (GPUI/Slint/Dioxus/Iced/`libcosmic`/Vizia/egui), JavaFX/Swing, C++/Zig GUI (incl. JUCE audio/GTKmm/Nuklear), Go GUI (Wails v3/Fyne/Gio), Uno |
48
+ | `pixelcraft-tui` | Textual, Rich, Ink, Bubble Tea v2/Lip Gloss v2, Ratatui, Terminal.Gui v2, Spectre.Console, prompt_toolkit, OpenTUI, FTXUI, CLI prompts, and modern terminal protocols |
49
+ | `pixelcraft-email` | HTML tables, MJML, React Email, Maizzle, Vue Email: Classic & New Outlook, Gmail 102 KB limits, dark mode, image blocking, BIMI, plaintext parity |
50
+ | `pixelcraft-document` | Print/paged-media surface: print CSS, Typst/LaTeX/WeasyPrint/Paged.js/Playwright PDF/Gotenberg/React-PDF/`pdf-lib`/Quarto, PDF.js/PptxGenJS, invoices/reports/CVs, slide decks, PDF/UA verification |
51
+ | `pixelcraft-media` | External media surface: social cards/OG generation (Satori/Takumi/Resvg/Sharp/Playwright), SVG banners, platform safe zones, thumbnail legibility, Remotion/Motion Canvas/Revideo/FFmpeg export |
52
+ | `pixelcraft-chat-ui` | Conversational surfaces across two tracks: host-constrained messaging/mini apps (Slack/Discord/Telegram/Zalo/WhatsApp/Teams/LINE/WeChat) and app-owned AI/agentic workspaces (Vercel AI SDK, assistant-ui, CopilotKit, AG-UI, MCP Apps, OpenAI Apps SDK, A2UI, LangGraph) |
53
+ | `pixelcraft-constrained` | Hardware/input-constrained surfaces: TV (tvOS/Compose for TV/Roku/Fire TV)/wearables (watchOS/Wear OS)/e-ink/kiosk/POS/ISA-101 HMI/embedded (LVGL/Slint MCU/`embedded-graphics`)/automotive (CarPlay/AAOS)/voice (SSML & Realtime Voice AI) |
54
+ | `pixelcraft-handoff` | Design-to-code bridge: Figma MCP/Code Connect/Variables, Penpot, approved-design translation, existing-component reuse, motion handoff, missing states and measured fidelity |
55
+ | `pixelcraft-spatial` | XR/spatial surface: visionOS 2/26, Android XR, Meta Horizon OS/Spatial SDK, WebXR (`@react-three/xr` v6/Wonderland/Needle), Unity XRI, Unreal OpenXR — embodied input, depth/ergonomics, comfort, privacy, accessibility |
56
+ | `pixelcraft-game-ui` | Unity UI Toolkit & uGUI, Godot (GDScript/C#), Unreal UMG/CommonUI/MVVM, LÖVE2D, Bevy, MonoGame, Ebitengine, Macroquad, Flame, Pygame/Arcade, HTML5/middleware game UI (Phaser/PixiJS/NoesisGUI/RmlUi/Dear ImGui/Raylib/SDL3) |
57
+ | `pixelcraft-brandkit` | Brand-kit / identity-board image generation, logo methods, governance, small-size icon pipelines, and token handoff |
58
+
59
+ ### Creative engineering ownership
60
+
61
+ Creative engineering extends existing skills rather than creating a parallel catalog. `pixelcraft-craft` owns motion design intent; `pixelcraft-web` owns browser runtimes and implementation (GSAP/Motion/Lenis/Theatre.js/Spline, 3D engines including Three.js/R3F/Babylon/PlayCanvas/Threlte/TresJS/`<model-viewer>`, Canvas/PixiJS/WebGL/WebGPU/TSL, interaction/search primitives, and browser audio/video players); `pixelcraft-patterns` owns narrative/scrollytelling and pattern-to-library escalation; `pixelcraft-direction` owns creative brainstorming, pre-code design sign-off, and evidence-based reference analysis; `pixelcraft-accessibility` owns motion/canvas/media alternatives; `pixelcraft-visual-qa` owns timeline, device, contrast, TUI, email, and PDF evidence; `pixelcraft-handoff` owns motion specifications. `pixelcraft-spatial` stays focused on embodied XR/VR/AR rather than ordinary browser 3D; `pixelcraft-media` stays focused on external image/social/video asset generation rather than embedded browser players.
62
+
63
+ Each skill is self-contained (installable alone). Skills refer to each other **by name**
64
+ ("use the `pixelcraft-ux` skill"), never by relative path across skill folders.
65
+ Platform skills keep one reference file per framework (`references/<framework>.md`) so they scale to
66
+ many stacks via progressive disclosure.
67
+
68
+ ## The Pixelcraft loop (owned by `pixelcraft`)
69
+
70
+ 0. **Plan** – `pixelcraft-plan`: brownfield repo map, optional Grill-Me one-question-at-a-time discovery, lazy-default rejection & sub-stack library craft gate in `.pixelcraft/plan.md`.
71
+ 1. **Frame** – stack + surface detection, mode (Persuade / Operate / Read / Experience / Play /
72
+ Communicate), audience, job-to-be-done, real material inventory, existing design system.
73
+ 2. **Diverge** – `pixelcraft-direction`: 3–5 directions across IA, visual posture, and craft ambition with ASCII wireframes and real-copy drafts; pre-code Design Approval gate; check history.
74
+ 3. **Specify** – direction card + tokens (`pixelcraft-tokens`) + UX plan (flows + state matrix,
75
+ `pixelcraft-ux`).
76
+ 4. **Build** – via the platform skill; floor rules and zero-stub discipline applied by default, not repaired later.
77
+ 5. **Verify** – `pixelcraft-review` plus `pixelcraft-visual-qa`: adversarial defect-hunt, multi-language slop scan, WCAG+APCA contrast & surface checks (`check-email`/`check-tui`/`check-pdf`), rendered screenshots/captures, finish gate.
78
+ 6. **Report** – what was verified and how, open risks, decisions.
79
+
80
+ ## Conventions for SKILL.md
81
+
82
+ - Frontmatter: `name` (= folder name, lowercase-hyphen, ≤64 chars) and `description`
83
+ (third person, what + when + trigger words, ≤1024 chars). Optional `license`, `metadata`.
84
+ No host-specific fields.
85
+ - Body ≤ 500 lines (target ≤ 300). Depth in `references/*.md`, one level deep, each linked from
86
+ SKILL.md with a one-line "read when…".
87
+ - Imperative, concrete, checkable rules. Do not restate what models already know.
88
+ Prefer tables, checklists, do/don't pairs with code in the target idiom.
89
+ - Scripts: Node ≥ 18, zero dependencies, `.mjs`, runnable as `node scripts/x.mjs --help`.
90
+
91
+ ## Repository layout
92
+
93
+ ```
94
+ skills/<skill>/SKILL.md, references/, scripts/, assets/
95
+ bin/pixelcraft.mjs # zero-dependency CLI (add, list, doctor, remove, init-router, check, wizard)
96
+ install.sh, install.ps1 # Node-free shell and PowerShell installers
97
+ scripts/ # validator, adapter builder, offline eval runner, and contract tests
98
+ evals/ # 26 behavioural eval guides + 72 multi-language JSON fixtures (26/26 skills)
99
+ website/ # multi-stack showcase site and 6-exhibit gallery capture scripts
100
+ assets/ # brand artwork and icons
101
+ docs/ARCHITECTURE.md, docs/DESIGN-RATIONALE.md, docs/INSTALL.md
102
+ plugin.json, gemini-extension.json
103
+ .claude-plugin/, .agents/plugins/
104
+ .github/workflows/ # CI validation, website deploy, and tag-release workflows
105
+ ```
@@ -0,0 +1,191 @@
1
+ # Pixelcraft design rationale
2
+
3
+ This document explains why Pixelcraft's rules exist. It is written for contributors before they change behavior. It is deliberately prose rather than a citation registry: the goal is to preserve the reasoning and trade-offs in Pixelcraft's own words, not to outsource judgment to a bibliography.
4
+
5
+ Public standards and platform guidelines such as WCAG 2.2, WAI-ARIA, Apple Human Interface Guidelines, Material Design, DTCG, Unicode CLDR, W3C internationalization guidance, and host documentation remain authoritative in their own domains. This document explains how Pixelcraft uses them; it does not replace them.
6
+
7
+ ## Planning-first
8
+
9
+ **Rule:** inspect the existing repository or explicitly choose a greenfield stack before visual direction or implementation.
10
+
11
+ **Why:** UI decisions are constrained by architecture, ownership, data flow, distribution, verification tools, localization, and existing design authority. Without planning, agents confuse greenfield freedom with brownfield obligation and rediscover the same facts repeatedly.
12
+
13
+ **Trade-off:** planning adds a step before visible output. Pixelcraft accepts that cost because premature visual novelty is usually more expensive to undo than a concise plan is to write.
14
+
15
+ The design brief and evidence classification exist because agents otherwise mix user facts, repository observations, visual-source inference, research, assumptions, and unknowns into one confident narrative. Keeping those classes separate makes escalation and waiver decisions auditable without requiring a heavyweight requirements process.
16
+
17
+ ## Discovery without compulsory questionnaires
18
+
19
+ **Rule:** distinguish planning from discovery. Always gather enough evidence to plan safely, but interview the user only when they ask for help shaping the idea or when an unresolved decision could materially change product scope, outcome, platform, architecture, data, or major constraints.
20
+
21
+ **Why:** agents can discover repository facts, current APIs, dependencies, and existing conventions themselves. The user should not have to repeat those facts or choose technology without understanding its consequences. At the same time, a vague product idea cannot be made precise by silently filling every gap with model assumptions.
22
+
23
+ **Trade-off:** too little questioning hides important product decisions; too much questioning turns simple work into bureaucracy and makes users do the agent's research. Pixelcraft therefore uses an adaptive interview: ask about the highest-impact unknown, present a small set of credible options with a recommendation and trade-offs, respect user ownership of priorities, and stop when the plan is actionable. Complete briefs and scoped fixes use a direct path. Durable decisions are recorded in existing plan/brief artifacts; ADRs and glossaries are created only when their specific value justifies them.
24
+
25
+ ## Authority order
26
+
27
+ **Rule:** the explicit user brief outranks project conventions; project conventions outrank platform defaults; platform and legal constraints outrank Pixelcraft guidance; model taste is last.
28
+
29
+ **Why:** taste is the easiest thing for a model to supply and the least reliable source of authority. Existing products encode decisions, constraints, and user expectations that are invisible in a prompt.
30
+
31
+ **Trade-off:** Pixelcraft may preserve a choice it would not have invented. That is intentional. The system flags material conflicts instead of silently replacing user or project decisions. An approved design fixes visual intent, but never silently overrides accessibility, legal/platform duties, architecture, security, or existing semantic constraints.
32
+
33
+ ## Divergence and anti-slop
34
+
35
+ **Rule:** when visual direction is undecided, generate several genuinely different directions, score them, choose one, and record why alternatives lost. Do not rediverge an approved design.
36
+
37
+ **Why:** single-shot generation tends toward statistically safe layouts, palettes, copy, and components. Repetition across outputs is the root of recognizable AI slop. Deliberate divergence forces contact with subject matter, audience, material, and constraints before convergence on implementation detail.
38
+
39
+ **Trade-off:** divergence costs tokens and can produce unusable candidates. Pixelcraft treats that as exploration cost, but bounds it: divergence is skipped where the user has already decided the direction and applies only to undecided scope.
40
+
41
+ The scoring rubric, prototypicality guardrail, visual-complexity budget, and repetition-history schema exist to keep divergence disciplined. Anti-slop does not mean maximal novelty: operational interfaces benefit from familiar structure, while repetition history prevents unrelated outputs from converging on the same fashionable fingerprint.
42
+
43
+ ## Typography, color, layout, and motion craft
44
+
45
+ **Rule:** craft decisions must be semantic, systematic, platform-aware, and testable. Type needs role/measure/hierarchy; color needs roles, ramps, contrast behavior, and mode logic; layout needs structure rather than decorative rearrangement; motion needs purpose, duration budget, rendering cost awareness, and reduced-motion fallback.
46
+
47
+ **Why:** superficial variation is easy to imitate and quickly becomes another template. Durable distinctiveness comes from coherent relationships among content, spacing, rhythm, material, interaction, and platform behavior.
48
+
49
+ **Trade-off:** systematic craft is less spontaneous than styling by instinct. It can also feel restrictive for expressive work. Pixelcraft still allows deliberate exceptions, but expects them to be named and verified rather than accidental.
50
+
51
+ Layout-quality inspection translates otherwise vague spacing critique into observable focal path, grouping, contour clutter, density, alignment, balance, and resize behavior. This keeps craft feedback repairable and reduces low-confidence iteration by taste.
52
+
53
+ ## UX states, forms, and flows
54
+
55
+ **Rule:** design the job, flow, navigation, feedback, validation, recovery, and complete state matrix before polishing pixels.
56
+
57
+ **Why:** interfaces fail most often at the boundaries: empty data, loading, errors, permissions, long text, offline behavior, interruptions, destructive actions, concurrency, and malformed input. A visually faithful static screen can still be operationally broken.
58
+
59
+ **Trade-off:** state coverage increases implementation scope. Pixelcraft prefers explicit assumptions and prioritized matrices over pretending one happy-path frame represents the whole product.
60
+
61
+ Cognitive walkthroughs and lightweight usability-test escalation exist because inspection and real-user behavior answer different questions. Forms receive unusually detailed rules because validation timing, input preservation, tolerant parsing, assistive input, error summaries, and focus movement determine whether recovery is possible; generic “show clear errors” advice is insufficient.
62
+
63
+ ## Accessibility floor
64
+
65
+ **Rule:** accessibility is mandatory unless the user explicitly waives a scoped item. WCAG 2.2 is treated as a floor, not a finish line.
66
+
67
+ **Why:** semantic structure, keyboard interaction, names/labels, focus visibility, contrast, target size, text scaling, reduced motion, error identity, and non-color meaning determine whether people can use the interface at all. They are not optional polish.
68
+
69
+ **Trade-off:** some visual concepts require adaptation or rejection. Pixelcraft accepts that constraint because inaccessible fidelity is not fidelity to a usable product.
70
+
71
+ Composite-widget contracts exist because adding an ARIA role does not create keyboard behavior, focus restoration, state exposure, or a usable screen-reader experience. Explicit WCAG 2.2 addition matrices and repeatable manual scripts prevent a passing scan or vague manual inspection from being mistaken for task completion.
72
+
73
+ ## Internationalization
74
+
75
+ **Rule:** plan for text expansion and contraction, script shaping, font fallback, directionality, locale formatting, plural and grammatical variation, input composition, culturally appropriate copy, and emoji behavior from the start.
76
+
77
+ **Why:** English-shaped layouts hide fragility. Dense CJK text, long compounded words, RTL mirroring, stacked diacritics, line-breaking rules, and localized formats expose assumptions that cannot be fixed by translating strings at the end.
78
+
79
+ **Trade-off:** early i18n constraints reduce layout freedom and increase test matrices. The benefit is that the design survives real language rather than treating localization as a destructive afterthought.
80
+
81
+ Message-authoring and pseudolocalization rules exist because concatenated grammar cannot be repaired by translation memory or a wider column. Pseudolocalization is used as a controlled diagnostic for hard-coded strings, clipping, directionality, and placeholder corruption while explicitly remaining unable to validate translation quality or cultural appropriateness.
82
+
83
+ ## Platform idioms
84
+
85
+ **Rule:** translate principles into the actual stack rather than copying web assumptions into mobile, desktop, data apps, TUI, email, documents, games, spatial UI, or constrained hardware.
86
+
87
+ **Why:** each platform has its own layout model, input modality, navigation contract, accessibility machinery, performance envelope, packaging limits, and user expectations. Literal visual copying often destroys usability even when it preserves pixels.
88
+
89
+ **Trade-off:** idiomatic translation means a design will not be byte-identical across platforms. Pixelcraft values behavioral fidelity and user success over false uniformity.
90
+
91
+ The shared surface acceptance matrix exists because platform references otherwise vary in depth. It gives every surface the same ownership questions—layout, navigation, input, restoration, accessibility exposure, localization, performance, safe geometry, capture, and privacy—while leaving the implementation idiom to the platform skill.
92
+
93
+ ## Design tokens
94
+
95
+ **Rule:** use semantic tokens with explicit modes, aliases, and export targets rather than scattering leaf hex or measurement values through components.
96
+
97
+ **Why:** tokens preserve intent across themes, density, platforms, and rebrands. DTCG-style structure gives implementations a shared contract, while semantic naming prevents two visually identical values with different meanings from collapsing into one accidental constant.
98
+
99
+ **Trade-off:** token architecture requires maintenance and can feel heavy for a tiny prototype. Pixelcraft scales depth to the project but does not treat hard-coded drift as a neutral choice in durable systems.
100
+
101
+ Governance, state matrices, and adoption guidance exist because a token file is only the start of a design system. Renames, deprecations, semantic redefinitions, consumer migration, state combinations, rollback, and documentation determine whether teams can trust the system. Pixelcraft treats those as lightweight lifecycle rules rather than enterprise bureaucracy.
102
+
103
+ ## Visual QA and verification
104
+
105
+ **Rule:** claims must carry evidence labels, and **Golden Evidence Rule (`Rule #0.3`)** forbids counting `static` or `model-judgment` as `pass` / accepted for visual appearance, measured performance budgets, or interactive/assistive accessibility requirements—those claims require `rendered` evidence, or must be recorded honestly as `not-checked` (with concrete environment reason) or `waived` (with explicit user authorization, scope, and consequence).
106
+
107
+ **Why:** agents overestimate visual quality when they inspect only source code or judge screenshots heuristically without runtime measurements. Rendering and instrumentation expose clipping, contrast failure, font fallback, motion jank, overflow, state mismatch, rasterization differences, and broken assistive interaction that static source inspection systematically misses.
108
+
109
+ **Trade-off:** verification is environment-dependent and sometimes impossible inside a headless sandbox. Pixelcraft requires honest `not-checked` (`PENDING_RENDERED_ENV`) or user-signed `waived` labels instead of fabricated certainty or downgraded static passes.
110
+
111
+ Task-driven QA, critic calibration, fidelity tolerance, and screenshot-baseline governance exist because visual verification is itself fallible. A screenshot can look convincing while the task fails; model critique can hallucinate or degrade through iteration; pixel diffs can hide hard state failures; baselines can become meaningless when updated merely to pass. These rules preserve evidence provenance and stop conditions.
112
+
113
+ ## Evaluations
114
+
115
+ **Rule:** behavior-changing guidance should be represented by evaluation prompts, expected behaviors, and failure signals.
116
+
117
+ **Why:** prose that sounds good can still fail to alter agent behavior. Evals expose missing triggers, generic output, ignored constraints, false verification claims, and regressions caused by later edits.
118
+
119
+ **Trade-off:** evals require maintenance and cannot prove taste. They are regression instruments, not a substitute for human review or rendered evidence.
120
+
121
+ Structured fixture metadata exists to make negative controls explicit. A passing build, flattering screenshot, scanner zero, low pixel difference, or familiar framework choice should not be accepted as proof of the desired behavior. The validator checks fixture structure only; behavioral judgment still belongs to evaluators.
122
+
123
+ ## Distribution and installer safety
124
+
125
+ **Rule:** canonical skills remain self-contained; generated adapters are reproducible artifacts; installers default to project scope, avoid privilege escalation, refuse symlink traversal, preserve existing files unless forced, and support dry runs.
126
+
127
+ **Why:** a skill pack edits the user's workspace. Trust depends on predictable scope, reversible inspection, no hidden overwrite behavior, and clear separation between canonical content and generated integration fragments.
128
+
129
+ **Trade-off:** supporting fewer verified targets is less flashy than claiming universal compatibility. Pixelcraft chooses explicit support boundaries over unsafe guesses about agent-specific paths.
130
+
131
+ ## Brand and logo craft
132
+
133
+ **Rule:** identity work starts with strategy, metaphor inventory, many small concepts, silhouette reduction, appropriate reproduction, and small-size evidence. Pixel-art identities additionally require integer-grid discipline, curated palettes, deliberate dithering, and explicit small-size reductions.
134
+
135
+ **Why:** a logo identifies rather than explaining everything. Detail that looks impressive at hero size often disappears at 16 or 32 px, while mascot and pixel-art systems fail when geometry, palette, or personality is inconsistent.
136
+
137
+ **Trade-off:** reduction can remove clever detail. Pixelcraft prefers recognition, reproducibility, and contextual appropriateness over decorative complexity.
138
+
139
+ Brand governance exists because generated imagery is not yet a usable identity system. Ownership/versioning, provenance and licensing boundaries, clearspace, minimum sizes, incorrect-use rules, contrast pairs, and small-size artifacts prevent a strong concept from fragmenting into inconsistent exports. Legal clearance remains outside the agent's authority and must be escalated rather than implied.
140
+
141
+ ## Live interface measurement
142
+
143
+ **Rule:** visual direction and critique must be grounded in rendered measurements as well as principles. Typography, palette, geometry, motion, cursor behavior, payload, and basic semantics should be inventoried when a browser runtime is available.
144
+
145
+ **Why:** live inspection of strongly art-directed interfaces showed a consistent separation between transferable mechanisms and harmful surface excess. Restrained type/palette inventories, controlled scale contrast, object-led composition, editorial indexing, intentional overlap, and motion used for spatial continuity can be measured. The same evidence also exposed heavy payloads, scroll manipulation, missing reduced-motion behavior, custom cursors, canvas-hidden semantics, and accessibility defects that visual acclaim can mask.
146
+
147
+ **Trade-off:** measurements can be misread as targets or false proof. Pixelcraft therefore treats corpus ranges as calibration, labels heuristic extraction limits, and requires human inspection plus task verification. The goal is not imitation by number; it is preventing taste adjectives and celebrated surfaces from overriding evidence.
148
+
149
+ ## Creative engineering without skill sprawl
150
+
151
+ **Rule:** extend the existing skill that owns the design or platform concern before creating a new skill. Split only when a capability has an independent trigger, workflow, verification contract, and installation value that cannot stay coherent as a reference of an existing skill.
152
+
153
+ **Why:** motion, 3D, shaders, scrollytelling, and interactive media share browser/runtime constraints with existing craft, web, patterns, accessibility, and visual QA work. Parallel skills would duplicate routing and fragment source-of-truth.
154
+
155
+ **Trade-off:** reference files can become deep. Progressive disclosure keeps top-level skills concise while adding detailed implementation guidance without expanding the install catalog. A future standalone skill requires evidence of independent usage and an evaluation showing that the split improves behavior.
156
+
157
+ ## Anti-laziness enforcement, Grill-Me discovery, and pre-code sign-off
158
+
159
+ **Rule:** pair polite principles with adversarial Iron Laws, rationalization tables, concrete pre-submit checklists, one-question-at-a-time Grill-Me discovery for unresolved scope, and a pre-code Design Approval gate before implementing greenfield or undecided redesign work.
160
+
161
+ **Why:** under turn pressure, models systematically rationalize skipping planning, guessing vague requirements, leaving `// TODO` or empty click handlers, reusing one screenshot across breakpoints, and self-approving conventional templates. Explicit refusal tables and structural ASCII wireframes close those shortcuts without turning narrow bug fixes or approved handoffs into bureaucracy.
162
+
163
+ **Trade-off:** asking one targeted question per turn and confirming a direction card adds conversational turns on open briefs. Pixelcraft accepts that cost on greenfield and redesign work while preserving a direct execution path for narrowly scoped edits and approved specifications.
164
+
165
+ ## Stack and sub-stack library craft
166
+
167
+ **Rule:** reject path-of-least-resistance platform defaults (such as Tkinter for greenfield Python desktop, unjustified heavy WebViews, bare `print()` TUIs, `window.print()` PDFs, or Flexbox HTML emails) and resolve complex UI capabilities (rich text, code editors, large grids, maps, search, command palettes, drawers, toasts, carousels, drag-and-drop) to native platform primitives or vetted purpose-built libraries rather than fragile DIY substitutes.
168
+
169
+ **Why:** choosing a macro framework alone does not stop agents from hand-rolling broken `contenteditable` editors, static-pixel charts, or keyboard-trapping custom overlays. Escalating sub-stack capabilities during planning prevents structural defects that visual polish cannot repair.
170
+
171
+ **Trade-off:** purpose-built libraries add dependency evaluation and version verification work. Pixelcraft still prefers native HTML/OS primitives whenever they cover the interaction cleanly, escalating to specialized libraries only where native semantics fall short.
172
+
173
+ ## Invisible craft, composition safety, and release-grade delivery
174
+
175
+ **Rule:** pair macro aesthetic direction with frequency-calibrated interaction physics, optical geometry, dark-surface luminance elevation, input-method and script-shaping safety, and reproducible commercial release gates across every target stack.
176
+
177
+ **Why:** the distance between a convincing static mockup and a studio-grade product lives in sub-second, sub-pixel, and operational execution. High-frequency menus or command palettes that animate like ceremonial reveals feel sluggish by the twentieth repetition; asymmetric glyphs centered by bounding box appear off-axis; dark surfaces built by mechanical inversion or black drop shadows collapse into muddy halation; compact icon controls without expanded invisible hit-slop or diagonal submenu corridors punish ordinary pointer and touch travel; proportional numerals jitter live counters, timers, and financial columns. At the text-entry boundary, treating `Enter` as submit during active input-method (`IME`) composition corrupts Vietnamese Telex/VNI, Japanese Kana-to-Kanji, Korean Hangul, and Chinese Pinyin input, while unnormalized combining marks (`NFD` vs `NFC`) or incomplete font subsets produce mid-word fallback glyphs across Latin diacritics, CJK, and RTL scripts. Finally, an interface is not release-ready if a clean clone takes hours to boot, strict language-appropriate static analyzers or dependency vulnerability audits fail, staging shares production data, secrets leak into client artifacts, store or regulatory regimes (`EAA`, App Store, Google Play, `MV3`, `PDF/X-4`, `RFC 8058`) go unaddressed, or commercial font/media licenses, defect-warranty triage handoff, and root account credentials stay locked to the implementer.
178
+
179
+ **Trade-off:** micro-physical calibration, composition-aware input guards, and commercial handoff verification require discipline that a single happy-path screenshot never rewards. Pixelcraft accepts that cost because durable quality is judged on the hundredth daily interaction, across every writing system, and at the moment a client or engineering team takes legal and operational ownership of the build.
180
+
181
+ ## Completion gate, acceptance manifest, and scan-until-clean
182
+
183
+ **Rule:** bind a mandatory Definition-of-Done completion contract inside `.pixelcraft/plan.md` plus a structured `.pixelcraft/acceptance.json` manifest (`check-acceptance.mjs --init <platform>`) during planning, and enforce a hard `Phase 5 → Phase 6` exit gate requiring the agent to walk every applicable checklist (`floor.md`, the active platform skill's `Pre-submit checklist`, and `polish.md`) and run a `scan → fix → rescan` loop until all deterministic scanners (`slop-scan.mjs --fail-on p2`, `check-contrast.mjs`, `check-email.mjs`, `check-tui.mjs`, `check-pdf.mjs`), active-language compiler/linter/test suites, and `check-acceptance.mjs .pixelcraft/acceptance.json` pass with zero `fail` or `pending` rows under a 3-tier Studio verdict (`FAIL`, `PASS_STUDIO_10K_20K`, `EXCEEDS_STUDIO`) before stopping.
184
+
185
+ **Why:** defining checklists and static scanners is useless if an agent writes `.pixelcraft/plan.md` without measurable target thresholds, runs zero or one perfunctory pass after coding, marks visual/performance/accessibility rows as passed from static source reading (`Rule #0.3` violation), and stops while fixable `P0–P2` defects, compiler errors, or `pending` acceptance rows remain. Separating deterministic and measurable acceptance defects from subjective visual oscillation solves both failure modes: deterministic scan, build, state, floor, and acceptance-manifest failures must be fixed and re-verified until clean (`0` `fail`/`pending`), whereas rendered layout/pixel critique remains bounded at three documented `finish-gate.mjs` rounds so agents never loop endlessly by taste or overwrite baselines to fake a pass.
186
+
187
+ **Trade-off:** mandatory checklist execution, acceptance-manifest tracking, and rescan loops cost extra verification turns at the end of implementation. Pixelcraft accepts that cost because shipping after a single unverified pass defeats every upstream planning and craft rule.
188
+
189
+ ## Changing these rules
190
+
191
+ Do not weaken a rule merely because a task is inconvenient. Change the rule when the underlying trade-off changed, when evidence shows the rule produces worse outcomes, or when a platform/standard changed. Record the reason in the commit and update affected skills, evals, and verification tooling together.
@@ -0,0 +1,221 @@
1
+ # Installing Pixelcraft
2
+
3
+ Pixelcraft uses one canonical `skills/` tree across every supported coding-agent host, plugin manifest, archive, and installer. No duplicate copies of skill bodies are maintained.
4
+
5
+ For the fast path, see the [Quick Start](../README.md#quick-start) in the root README. This guide documents every installer flag, all 20 host targets, offline release archives, per-skill uploads, and maintainer release packaging.
6
+
7
+ ## Guided and direct Node.js installer
8
+
9
+ Clone the repository once, then run the bundled zero-dependency installer from the project that should receive the skills:
10
+
11
+ ```bash
12
+ git clone https://github.com/ThanhNguyxnOrg/Pixelcraft.git "$HOME/Pixelcraft"
13
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs"
14
+ ```
15
+
16
+ The interactive wizard asks for one or more agents, all skills or a numbered subset, project or user-level scope, and whether to display optional Context7 documentation MCP setup guidance. It uses Node.js built-ins only (`>=18` floor; current Node.js LTS recommended).
17
+
18
+ ### CLI commands and flags
19
+
20
+ ```bash
21
+ # Install all 26 skills for one agent in the current project
22
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" add all --agent claude
23
+
24
+ # Install a subset for multiple agents (comma-separated or repeated --agent)
25
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" add pixelcraft-web pixelcraft-review --agent claude,cursor
26
+
27
+ # User-level installation
28
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" add all --agent claude --global
29
+
30
+ # Preview changes without writing files, or overwrite explicitly requested skills
31
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" add all --agent all --dry-run
32
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" add all --agent claude --force
33
+
34
+ # List skills, verify installed skills, remove skills, generate router block, or run checks
35
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" list
36
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" doctor
37
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" remove pixelcraft-game-ui --agent claude
38
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" init-router --dir . --write AGENTS.md
39
+ node "$HOME/Pixelcraft/bin/pixelcraft.mjs" check src --fail-on p0
40
+ ```
41
+
42
+ **Safety guarantees:**
43
+
44
+ - Requesting any subset automatically adds `pixelcraft` (orchestrator) and `pixelcraft-plan` (step-zero skill) when missing and prints a note.
45
+ - `--force` applies only to explicitly requested skills; auto-added core skills are never silently overwritten.
46
+ - Existing skill directories are skipped unless `--force` is passed so local edits are preserved.
47
+ - Symlinked target directories are refused rather than followed outside the project.
48
+
49
+ ### Bundled agent targets
50
+
51
+ Canonical `--agent` names: `claude`, `codex`, `agents`, `devin`, `cursor`, `gemini`, `copilot`, `windsurf`, `opencode`, `kiro`, `cline`, `roo`, `droid`, `antigravity`, and `all`.
52
+
53
+ Aliases: `amp`, `zed`, and `goose` route to the shared `agents` directory; `claude-code`, `gemini-cli`, `github-copilot`, `open-code`, `roo-code`, and `factory` map to their canonical targets. `--agent all` deduplicates shared `.agents/skills` destinations.
54
+
55
+ | Agent | Project path | User path | What Pixelcraft installs |
56
+ |---|---|---|---|
57
+ | Claude Code | `.claude/skills` | `~/.claude/skills` | Native skills + `.claude/commands` adapter files |
58
+ | Codex / generic agents / Devin | `.agents/skills` | `~/.agents/skills` | Native skills only |
59
+ | Cursor | `.cursor/skills` | `~/.cursor/skills` | Native skills + `.cursor/rules/pixelcraft.mdc` |
60
+ | Gemini CLI | `.gemini/skills` | `~/.gemini/skills` | Native skills only |
61
+ | GitHub Copilot | `.github/skills` | `~/.copilot/skills` | Native skills + instruction/prompt adapter files |
62
+ | OpenCode | `.opencode/skills` | `~/.config/opencode/skills` | Native skills only |
63
+ | Windsurf | `.windsurf` | `~/.codeium/windsurf` | Native skills under `skills/` + rules/memory and workflow routers |
64
+ | Kiro | `.kiro/skills` | `~/.kiro/skills` | Native skills + steering adapter |
65
+ | Cline | `.cline/skills` | `~/.cline/skills` | Native skills |
66
+ | Roo Code | `.roo/skills` | `~/.roo/skills` | Native skills |
67
+ | Factory Droid | `.factory/skills` | `~/.factory/skills` | Native skills |
68
+ | Google Antigravity | `.agents/skills` | `~/.gemini/config/skills` | Native skills; project path works with both app and CLI |
69
+
70
+ ### Optional version-freshness docs lookup (`--docs-mcp`)
71
+
72
+ For version-sensitive API work, Pixelcraft instructs the agent to check resolved dependency versions against official docs and package registries. [Context7](https://github.com/upstash/context7#readme) can assist when a host supports MCP. Pass `--docs-mcp` (Node or Bash) or `-DocsMcp` (PowerShell) to print setup guidance, including with `--dry-run`. This never installs tools, modifies MCP configuration, or requests API keys. Never send secrets or proprietary code in lookup queries.
73
+
74
+ ## Vercel `skills` CLI
75
+
76
+ Requires Node.js 22.20+:
77
+
78
+ ```bash
79
+ # Interactive cross-agent install
80
+ npx skills add ThanhNguyxnOrg/Pixelcraft
81
+
82
+ # Non-interactive subset install
83
+ npx skills add ThanhNguyxnOrg/Pixelcraft --skill pixelcraft --skill pixelcraft-plan --skill pixelcraft-web -a claude-code
84
+
85
+ # List available skills (telemetry-free smoke check)
86
+ DISABLE_TELEMETRY=1 npx skills add ThanhNguyxnOrg/Pixelcraft --list
87
+ ```
88
+
89
+ Pass `-g` for user-level installation. The external `skills` CLI manages its own agent detection and [skills.sh](https://www.skills.sh/docs/faq) listing telemetry.
90
+
91
+ ## Claude Code plugin marketplace
92
+
93
+ Both the marketplace and plugin are named `pixelcraft` in [`.claude-plugin/marketplace.json`](../.claude-plugin/marketplace.json):
94
+
95
+ ```text
96
+ /plugin marketplace add ThanhNguyxnOrg/Pixelcraft
97
+ /plugin install pixelcraft@pixelcraft
98
+ ```
99
+
100
+ Equivalent shell commands:
101
+
102
+ ```bash
103
+ claude plugin marketplace add ThanhNguyxnOrg/Pixelcraft
104
+ claude plugin install pixelcraft@pixelcraft
105
+ ```
106
+
107
+ In Claude Desktop/Cowork, enter `ThanhNguyxnOrg/Pixelcraft` under **Plugins → Add marketplace**. Claude Code CLI marketplace validation and install were verified locally (`static` / local CLI); Desktop/Cowork sync is `not-checked`.
108
+
109
+ ## Claude web/Desktop and ChatGPT sessions
110
+
111
+ - **Claude web/Desktop per-skill ZIP upload:** Clone this repository and run `npm run build:skill-zips` (zero dependencies). In **Customize → Skills → + → Upload a skill**, select an archive such as `skill-zips/pixelcraft.zip`, then upload `pixelcraft-plan` and the skills for your target stack. Requires an [eligible Claude plan with code execution enabled](https://support.claude.com/en/articles/12512180-use-skills-in-claude). Each ZIP contains exactly one skill folder; do not upload the full release archive as a single skill. Use `npm run build:skill-zips -- --out <directory>` to write to a custom empty directory.
112
+ - **ChatGPT Agent Plugins:** Pixelcraft is a skills-only [OpenAI Agent Plugin](https://developers.openai.com/plugins/build/plugins) (not a legacy ChatGPT plugin or server-backed Apps SDK integration). In the ChatGPT desktop app, open this repository as a project and select Pixelcraft from the project marketplace. For managed workspaces, an eligible admin can [import and sync the GitHub marketplace](https://developers.openai.com/codex/enterprise/plugin-management) using `ThanhNguyxnOrg/Pixelcraft` with **Path** left empty.
113
+ - **ChatGPT personal skills:** Where enabled, use **Plugins → Skills → Create → Upload from your computer** or **Create with editor**. The [ChatGPT help page](https://help.openai.com/en/articles/20001066-skills-in-chatgpt) does not specify the exact accepted archive layout; Pixelcraft's per-skill ZIPs follow Claude's documented layout, and ChatGPT ZIP upload acceptance is `not-checked`.
114
+
115
+ ## Native host installation paths
116
+
117
+ "Not checked" means the host path is documented and manifest-validated (`static`), but was not exercised inside its client UI. No entry below implies listing in a vendor's curated catalog until submitted and approved.
118
+
119
+ | Host | Installation | Verification status |
120
+ |---|---|---|
121
+ | [Claude Code](https://code.claude.com/docs/en/plugins/marketplace-reference) | `/plugin marketplace add ThanhNguyxnOrg/Pixelcraft` then `/plugin install pixelcraft@pixelcraft`; loads `.claude-plugin/plugin.json` and discovers `skills/`. | CLI install checked. |
122
+ | [Claude Desktop / Cowork / web](https://support.claude.com/en/articles/12512198-how-to-create-custom-skills) | Marketplace or per-skill ZIP upload above. | ZIP contents checked; client sync `not-checked`. |
123
+ | [Google Antigravity](https://antigravity.google/docs/plugins/) | `agy plugin install https://github.com/ThanhNguyxnOrg/Pixelcraft` (reads `.antigravity-plugin/plugin.json` with logo & starter prompts), or `pixelcraft add all --agent antigravity` into `.agents/skills`. | Manifest schema checked (`static`); client install `not-checked`. |
124
+ | [Cursor](https://cursor.com/docs/reference/plugins) | Bundled Cursor installer (`--agent cursor`), Cursor marketplace import via `.cursor-plugin/marketplace.json`, or copy `.cursor-plugin/plugin.json` + `skills/` into `~/.cursor/plugins/local/pixelcraft/`. | Manifest schema & installer checked (`static`); IDE plugin loading `not-checked`. |
125
+ | [Codex CLI and App](https://developers.openai.com/plugins/build/plugins#package-and-distribute-plugins) | CLI: `codex plugin marketplace add ThanhNguyxnOrg/Pixelcraft`, then `codex plugin add pixelcraft@pixelcraft` (reads `.codex-plugin/plugin.json` & `.agents/plugins/marketplace.json`). IDE: `pixelcraft add all --agent codex`. | Local CLI plugin & manifest checked; IDE `not-checked`. |
126
+ | [ChatGPT](https://learn.chatgpt.com/docs/plugins) | Portable `plugin.json` + `.codex-plugin/plugin.json` + `.agents/plugins/marketplace.json`, or Skills editor. | Manifest checked (`static`); client/workspace `not-checked`. |
127
+ | [GitHub Copilot CLI & VS Code](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-finding-installing) | CLI: `copilot plugin marketplace add ThanhNguyxnOrg/Pixelcraft` then `copilot plugin install pixelcraft@pixelcraft` (reads `.github/plugin/marketplace.json` & Agent Plugins 1.0 `plugin.json`). VS Code: `pixelcraft add all --agent copilot`. | Local catalog & installer placement checked; IDE discovery `not-checked`. |
128
+ | [Gemini CLI](https://geminicli.com/docs/extensions/reference/) | `gemini extensions install https://github.com/ThanhNguyxnOrg/Pixelcraft` and restart (loads `gemini-extension.json` + `GEMINI.md` context bootstrap). | Local extension install checked. |
129
+ | [Devin CLI](https://docs.devin.ai/) | `devin plugins install ThanhNguyxnOrg/Pixelcraft` (reads `.devin-plugin/plugin.json`), or `pixelcraft add all --agent devin`. | Manifest & installer checked (`static`); Devin CLI client `not-checked`. |
130
+ | [Qwen Code](https://github.com/QwenLM/qwen-code) | `qwen extensions install ThanhNguyxnOrg/Pixelcraft` (consumes `.claude-plugin/marketplace.json`). | Manifest checked (`static`); client `not-checked`. |
131
+ | [OpenCode](https://opencode.ai/docs/skills/) | Bundled installer `--agent opencode`, or add checkout's `skills/` path to OpenCode `skills` config. | Local CLI discovered 26 skills. |
132
+ | [Pi](https://docs.pi.dev/latest/packages) | `pi install npm:@thanhnguyxn/pixelcraft` or `pi install git:github.com/ThanhNguyxnOrg/Pixelcraft`. | Local package install checked. |
133
+ | [Factory Droid](https://docs.factory.com/harness/plugins) | `droid plugin marketplace add ThanhNguyxnOrg/Pixelcraft` then `droid plugin install pixelcraft@Pixelcraft`, or `--agent droid` into `.factory/skills`. | Local marketplace plugin install checked. |
134
+ | [Windsurf Cascade](https://docs.windsurf.com/windsurf/cascade/skills) | Bundled installer `--agent windsurf` or copy into the client's skills directory. | Installer placement checked; client discovery `not-checked`. |
135
+ | [Kiro](https://kiro.dev/docs/skills/) | `pixelcraft add all --agent kiro` into `.kiro/skills` (or `--global`). Native Agent Skills, not a Kiro Power. | Installer placement checked; client discovery `not-checked`. |
136
+ | [Amp](https://ampcode.com/docs/customize/skills) | `amp skill add https://github.com/ThanhNguyxnOrg/Pixelcraft` or `--agent amp` into `.agents/skills`. | Client discovery `not-checked`. |
137
+ | [Cline](https://docs.cline.bot/customization/skills) | `pixelcraft add all --agent cline` into `.cline/skills`. | Installer placement checked; client discovery `not-checked`. |
138
+ | [Roo Code](https://roocodeinc.github.io/Roo-Code/features/skills/) | `pixelcraft add all --agent roo` into `.roo/skills`. | Installer placement checked; client discovery `not-checked`. |
139
+ | [Zed](https://zed.dev/docs/ai/skills) | `pixelcraft add all --agent zed` into `.agents/skills`; inspect via Skills in Zed Settings Editor. | Installer placement checked; client discovery `not-checked`. |
140
+ | [Goose](https://github.com/block/goose/blob/main/documentation/docs/guides/context-engineering/using-skills.md) | `pixelcraft add all --agent goose` into `.agents/skills`, then `goose skills list`. | Local CLI discovered 26 skills. |
141
+ | [skills.sh](https://www.skills.sh/docs/cli) | `npx skills add ThanhNguyxnOrg/Pixelcraft`; no npm package required. | Local pack discovery checked. |
142
+
143
+ ## Shell installers without Node.js
144
+
145
+ ### Linux / macOS (`install.sh`)
146
+
147
+ ```bash
148
+ curl -fsSL https://raw.githubusercontent.com/ThanhNguyxnOrg/Pixelcraft/main/install.sh | bash -s -- --agent claude --skills all
149
+ ```
150
+
151
+ Supported flags:
152
+
153
+ ```text
154
+ --agent claude,cursor target agent(s); default agents
155
+ --skills all comma-separated skills or all; default all
156
+ --global user-level scope; project scope is the default
157
+ --force replace explicitly requested existing skills
158
+ --dry-run print copies without writing files
159
+ --docs-mcp print optional Context7 documentation MCP setup guidance
160
+ --ref <tag|sha> branch, tag, or commit archive; default main
161
+ --repo owner/name override GitHub repository source
162
+ --archive path.tar.gz use a local tarball instead of downloading
163
+ ```
164
+
165
+ Requires only `curl` or `wget` plus `tar`. Never runs `sudo`, refuses symlinked target folders, skips existing folders unless `--force` is passed for explicitly requested skills, and writes the same lightweight router adapters as the Node installer.
166
+
167
+ ### Windows (`install.ps1`)
168
+
169
+ Default project-level installation into `.agents/skills`:
170
+
171
+ ```powershell
172
+ irm https://raw.githubusercontent.com/ThanhNguyxnOrg/Pixelcraft/main/install.ps1 | iex
173
+ ```
174
+
175
+ Pass parameters via script block invocation:
176
+
177
+ ```powershell
178
+ iex "& { $(irm https://raw.githubusercontent.com/ThanhNguyxnOrg/Pixelcraft/main/install.ps1) } -Agent claude -Skill pixelcraft-web"
179
+ ```
180
+
181
+ Parameters mirror `install.sh`: `-Agent`, `-Skill`, `-Global`, `-Force`, `-DryRun`, `-DocsMcp`, `-Ref`, `-Repo`, and `-Archive` (expects a local `.zip`). Never elevates privileges, refuses reparse-point targets, and preserves existing folders unless `-Force` is passed for explicitly selected skills.
182
+
183
+ ## Offline release archives and manual git copy
184
+
185
+ ### GitHub Release archive
186
+
187
+ Download `pixelcraft-skills.zip` or `pixelcraft-skills.tar.gz` from [Releases](https://github.com/ThanhNguyxnOrg/Pixelcraft/releases):
188
+
189
+ ```bash
190
+ gh release download <tag> --repo ThanhNguyxnOrg/Pixelcraft --pattern pixelcraft-skills.zip
191
+ ```
192
+
193
+ Each archive contains canonical `skills/` and generated `adapters/<agent>/` project-root fragments.
194
+
195
+ ### Manual `git clone` and copy
196
+
197
+ ```bash
198
+ git clone --depth 1 https://github.com/ThanhNguyxnOrg/Pixelcraft.git
199
+ mkdir -p .agents/skills
200
+ cp -R Pixelcraft/skills/pixelcraft-web .agents/skills/
201
+ ```
202
+
203
+ Do not construct cross-skill relative links after copying; every skill folder is self-contained.
204
+
205
+ ## npm package and maintainer release flow
206
+
207
+ Install the published CLI globally from npm (zero runtime dependencies, Node.js `>=18`):
208
+
209
+ ```bash
210
+ npm i -g @thanhnguyxn/pixelcraft
211
+ pixelcraft add all --agent cursor
212
+ ```
213
+
214
+ Pi users can install directly from npm as well:
215
+
216
+ ```bash
217
+ pi install npm:@thanhnguyxn/pixelcraft
218
+ ```
219
+
220
+ **Maintainers:** Run `npm run test:distribution`, `npm run sync:docs:check`, and `npm run test:release-archives` to inspect packaging without publishing. The [organization Release Controller](https://github.com/ThanhNguyxnOrg/.github/blob/main/docs/agent-automation.md#release-safety) opens a release PR with synchronized version bumps across all manifests (`release-policy.json` in `ThanhNguyxnOrg/.github`) and changelog updates; merging it approves tag creation, GitHub Release archive publishing, and npm provenance publishing (requires an `NPM_TOKEN` authorized for `@thanhnguyxn/pixelcraft`).
221
+
@@ -0,0 +1,37 @@
1
+ # Pixelcraft evaluation corpus
2
+
3
+ This directory contains behavioral evaluations for all 26 Pixelcraft skills. Each skill has one markdown guide named `evals/<skill-name>.md` containing 2–6 prompt cases, paired with machine-readable JSON fixtures under `evals/fixtures/` (72 fixtures covering all 26 skills, including non-JS/TS ecosystems and Grill-Me/Brainstorming gates). Each case records the prompt, expected behaviors, failure signals, and comparison criteria for a with-skill versus without-skill run.
4
+
5
+ ## Automated offline contract & fixture checks
6
+
7
+ Run the deterministic offline evaluation runner before opening a PR:
8
+
9
+ ```sh
10
+ npm run eval:offline
11
+ ```
12
+
13
+ `scripts/run-evals.mjs` verifies that every JSON fixture in `evals/fixtures/` resolves valid skills and reference files on disk, checks router expectations against real stack detection rules, and confirms zero orphaned or malformed cases.
14
+
15
+ ## How to run a live model evaluation
16
+
17
+ 1. Choose one case and create two matched runs in the same repository/fixture: one baseline run without the skill available and one treatment run with the skill available.
18
+ 2. Use the same model, temperature, tools, repository state, time budget, and user prompt. Do not give the treatment run extra manual hints.
19
+ 3. Inspect the final artifact and process transcript. Score each expected behavior as pass, partial, fail, or not applicable.
20
+ 4. Inspect failure signals independently; a polished final screenshot does not cancel privacy, truthfulness, accessibility, or state-model failures.
21
+ 5. Compare dimensions using the case table. Prefer concrete evidence: file diffs, command output, rendered screenshots, interaction recordings, validator results, and labeled uncertainty.
22
+ 6. Record model/version/date/fixture/result in the evaluation notes. Live behavioral prompts complement—not replace—deterministic script tests.
23
+
24
+ For finish-gate and anti-slop changes, compare a landing page, a dashboard, a non-JS surface (such as TUI, SwiftUI, or Typst), and a brownfield design with justified brand choices. Keep task success, brief fidelity, missed confirmed failures, and false positives separate; record repair rounds, elapsed time, and tool cost. Spot-check rendered outcomes and include cases the reviewer has not optimized the rules against.
25
+
26
+ ## Interpretation
27
+
28
+ For scoped-work or freshness experiments use the same model, task, lockfile, and fixture for both runs. Record repeated file reads, duplicate tool calls, input/output tokens when exposed, tool time, repair rounds, and confirmed task outcomes. Do not reward reduced cost if it comes from skipping applicable verification. Keep agent-backed evaluation opt-in.
29
+
30
+ - The baseline can still pass; the goal is measuring whether the skill improves routing, specificity, verification, and constraint fidelity.
31
+ - Do not score keyword presence alone. A response that names a skill but ignores its constraints is a failure.
32
+ - A response that uses the skill's behavior without literally naming it can still satisfy the behavioral criterion.
33
+ - Treat exact documented limits as time-sensitive. Recheck official sources when updating a case.
34
+
35
+ ## Validator contract
36
+
37
+ `npm run validate` requires every skill folder in `skills/` to have a matching `evals/<skill-name>.md` file containing at least one `## Case` heading. It also validates the structure of machine-readable JSON fixtures under `evals/fixtures/`: unique filename-matched IDs, existing skill references, context snapshots, expected routing, forbidden behaviors, rubric dimensions, negative controls, and baselines. The validator enforces presence and structure; `npm run eval:offline` checks routing consistency; human or model evaluators judge semantic quality.