@thanhnguyxn/pixelcraft 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/.agents/plugins/marketplace.json +20 -0
  2. package/.claude-plugin/marketplace.json +20 -0
  3. package/.claude-plugin/plugin.json +11 -0
  4. package/LICENSE +21 -0
  5. package/README.md +407 -2
  6. package/assets/README.md +28 -0
  7. package/assets/pixelcraft-logo-512.png +0 -0
  8. package/bin/pixelcraft.mjs +444 -0
  9. package/docs/ARCHITECTURE.md +102 -0
  10. package/docs/DESIGN-RATIONALE.md +143 -0
  11. package/evals/README.md +27 -0
  12. package/evals/fixtures/README.md +36 -0
  13. package/evals/fixtures/direction-prototype-complexity.json +29 -0
  14. package/evals/fixtures/finish-gate-anti-slop.json +30 -0
  15. package/evals/fixtures/forms-accessibility-negative.json +29 -0
  16. package/evals/fixtures/handoff-fidelity-tolerance.json +29 -0
  17. package/evals/fixtures/plan-brownfield-evidence.json +28 -0
  18. package/evals/fixtures/visual-qa-task-evidence.json +29 -0
  19. package/evals/fixtures/workflow-checkpoints.json +30 -0
  20. package/evals/pixelcraft-accessibility.md +57 -0
  21. package/evals/pixelcraft-brandkit.md +58 -0
  22. package/evals/pixelcraft-chat-ui.md +55 -0
  23. package/evals/pixelcraft-constrained.md +55 -0
  24. package/evals/pixelcraft-craft.md +60 -0
  25. package/evals/pixelcraft-data-apps.md +55 -0
  26. package/evals/pixelcraft-dataviz.md +59 -0
  27. package/evals/pixelcraft-desktop.md +55 -0
  28. package/evals/pixelcraft-direction.md +60 -0
  29. package/evals/pixelcraft-document.md +55 -0
  30. package/evals/pixelcraft-email.md +55 -0
  31. package/evals/pixelcraft-extensions.md +55 -0
  32. package/evals/pixelcraft-game-ui.md +59 -0
  33. package/evals/pixelcraft-handoff.md +57 -0
  34. package/evals/pixelcraft-media.md +55 -0
  35. package/evals/pixelcraft-mobile.md +59 -0
  36. package/evals/pixelcraft-patterns.md +57 -0
  37. package/evals/pixelcraft-plan.md +65 -0
  38. package/evals/pixelcraft-review.md +63 -0
  39. package/evals/pixelcraft-spatial.md +55 -0
  40. package/evals/pixelcraft-tokens.md +57 -0
  41. package/evals/pixelcraft-tui.md +55 -0
  42. package/evals/pixelcraft-ux.md +59 -0
  43. package/evals/pixelcraft-visual-qa.md +80 -0
  44. package/evals/pixelcraft-web.md +71 -0
  45. package/evals/pixelcraft.md +70 -0
  46. package/gemini-extension.json +5 -0
  47. package/install.ps1 +295 -0
  48. package/install.sh +437 -0
  49. package/package.json +63 -4
  50. package/plugin.json +24 -0
  51. package/scripts/build-adapters.mjs +290 -0
  52. package/scripts/build-release-archives.mjs +61 -0
  53. package/scripts/build-skill-zips.mjs +94 -0
  54. package/scripts/test-build-adapters.mjs +48 -0
  55. package/scripts/test-distribution.mjs +124 -0
  56. package/scripts/test-export-tokens.mjs +105 -0
  57. package/scripts/test-finish-gate.mjs +148 -0
  58. package/scripts/test-installers.mjs +67 -0
  59. package/scripts/test-release-archives.mjs +42 -0
  60. package/scripts/test-shoot.mjs +65 -0
  61. package/scripts/test-slop-scan.mjs +29 -0
  62. package/scripts/test-style-inventory.mjs +211 -0
  63. package/scripts/test-validate-skills.mjs +117 -0
  64. package/scripts/validate-skills.mjs +512 -0
  65. package/skills/pixelcraft/SKILL.md +135 -0
  66. package/skills/pixelcraft/references/design-brief.md +75 -0
  67. package/skills/pixelcraft/references/floor.md +73 -0
  68. package/skills/pixelcraft/references/report-template.md +35 -0
  69. package/skills/pixelcraft/references/stack-detection.md +155 -0
  70. package/skills/pixelcraft/references/surface-acceptance.md +40 -0
  71. package/skills/pixelcraft/references/workflow-checkpoints.md +29 -0
  72. package/skills/pixelcraft-accessibility/SKILL.md +33 -0
  73. package/skills/pixelcraft-accessibility/references/apg-patterns.md +51 -0
  74. package/skills/pixelcraft-accessibility/references/platforms.md +58 -0
  75. package/skills/pixelcraft-accessibility/references/verification.md +59 -0
  76. package/skills/pixelcraft-accessibility/references/wcag22-checks.md +66 -0
  77. package/skills/pixelcraft-brandkit/SKILL.md +115 -0
  78. package/skills/pixelcraft-brandkit/references/asset-pipeline.md +125 -0
  79. package/skills/pixelcraft-brandkit/references/brand-governance.md +80 -0
  80. package/skills/pixelcraft-brandkit/references/layouts.md +88 -0
  81. package/skills/pixelcraft-brandkit/references/logo-concepting.md +83 -0
  82. package/skills/pixelcraft-brandkit/references/logo-methods.md +98 -0
  83. package/skills/pixelcraft-brandkit/references/pixel-art-logos.md +82 -0
  84. package/skills/pixelcraft-brandkit/references/prompt-template.md +85 -0
  85. package/skills/pixelcraft-brandkit/references/qa-checklist.md +88 -0
  86. package/skills/pixelcraft-brandkit/references/visual-modes.md +123 -0
  87. package/skills/pixelcraft-chat-ui/SKILL.md +53 -0
  88. package/skills/pixelcraft-chat-ui/references/conversation-design.md +78 -0
  89. package/skills/pixelcraft-chat-ui/references/mobile-business-platforms.md +87 -0
  90. package/skills/pixelcraft-chat-ui/references/slack-discord.md +96 -0
  91. package/skills/pixelcraft-constrained/SKILL.md +51 -0
  92. package/skills/pixelcraft-constrained/references/specialized-hardware.md +66 -0
  93. package/skills/pixelcraft-constrained/references/tv-wearables.md +84 -0
  94. package/skills/pixelcraft-constrained/references/voice-ui.md +63 -0
  95. package/skills/pixelcraft-craft/SKILL.md +44 -0
  96. package/skills/pixelcraft-craft/references/color.md +69 -0
  97. package/skills/pixelcraft-craft/references/imagery-icons.md +37 -0
  98. package/skills/pixelcraft-craft/references/layout-quality.md +65 -0
  99. package/skills/pixelcraft-craft/references/layout.md +41 -0
  100. package/skills/pixelcraft-craft/references/motion.md +76 -0
  101. package/skills/pixelcraft-craft/references/typography.md +71 -0
  102. package/skills/pixelcraft-data-apps/SKILL.md +67 -0
  103. package/skills/pixelcraft-data-apps/references/dash.md +53 -0
  104. package/skills/pixelcraft-data-apps/references/evidence.md +75 -0
  105. package/skills/pixelcraft-data-apps/references/gradio.md +65 -0
  106. package/skills/pixelcraft-data-apps/references/julia-genie.md +54 -0
  107. package/skills/pixelcraft-data-apps/references/jupyter-widgets.md +53 -0
  108. package/skills/pixelcraft-data-apps/references/nicegui.md +63 -0
  109. package/skills/pixelcraft-data-apps/references/observable-framework.md +67 -0
  110. package/skills/pixelcraft-data-apps/references/panel.md +53 -0
  111. package/skills/pixelcraft-data-apps/references/r-shiny.md +54 -0
  112. package/skills/pixelcraft-data-apps/references/reflex.md +62 -0
  113. package/skills/pixelcraft-data-apps/references/shiny.md +53 -0
  114. package/skills/pixelcraft-data-apps/references/streamlit.md +65 -0
  115. package/skills/pixelcraft-dataviz/SKILL.md +63 -0
  116. package/skills/pixelcraft-dataviz/references/chart-choice.md +55 -0
  117. package/skills/pixelcraft-dataviz/references/color-accessibility.md +112 -0
  118. package/skills/pixelcraft-dataviz/references/encoding-tables-dashboards.md +97 -0
  119. package/skills/pixelcraft-dataviz/references/libraries.md +57 -0
  120. package/skills/pixelcraft-dataviz/references/realtime-graphs-maps-scale.md +99 -0
  121. package/skills/pixelcraft-desktop/SKILL.md +71 -0
  122. package/skills/pixelcraft-desktop/references/appkit.md +58 -0
  123. package/skills/pixelcraft-desktop/references/avalonia.md +59 -0
  124. package/skills/pixelcraft-desktop/references/cpp-gui.md +52 -0
  125. package/skills/pixelcraft-desktop/references/electron.md +54 -0
  126. package/skills/pixelcraft-desktop/references/go-gui.md +54 -0
  127. package/skills/pixelcraft-desktop/references/gtk.md +54 -0
  128. package/skills/pixelcraft-desktop/references/javafx-swing.md +52 -0
  129. package/skills/pixelcraft-desktop/references/qt-pyside-qml.md +61 -0
  130. package/skills/pixelcraft-desktop/references/rust-gui.md +65 -0
  131. package/skills/pixelcraft-desktop/references/tauri.md +54 -0
  132. package/skills/pixelcraft-desktop/references/uno-platform.md +52 -0
  133. package/skills/pixelcraft-desktop/references/winui-wpf.md +58 -0
  134. package/skills/pixelcraft-desktop/references/working-context.md +5 -0
  135. package/skills/pixelcraft-direction/SKILL.md +154 -0
  136. package/skills/pixelcraft-direction/references/composition-library.md +84 -0
  137. package/skills/pixelcraft-direction/references/direction-card.md +54 -0
  138. package/skills/pixelcraft-direction/references/direction-scoring.md +72 -0
  139. package/skills/pixelcraft-direction/references/movements.md +68 -0
  140. package/skills/pixelcraft-direction/references/repetition-history.md +75 -0
  141. package/skills/pixelcraft-direction/references/slop-fingerprints.md +58 -0
  142. package/skills/pixelcraft-direction/references/wildcards.md +47 -0
  143. package/skills/pixelcraft-document/SKILL.md +54 -0
  144. package/skills/pixelcraft-document/references/archetypes.md +83 -0
  145. package/skills/pixelcraft-document/references/pdf-tools.md +154 -0
  146. package/skills/pixelcraft-document/references/print-css.md +134 -0
  147. package/skills/pixelcraft-document/references/slides.md +102 -0
  148. package/skills/pixelcraft-email/SKILL.md +58 -0
  149. package/skills/pixelcraft-email/references/client-quirks.md +45 -0
  150. package/skills/pixelcraft-email/references/html-tables.md +53 -0
  151. package/skills/pixelcraft-email/references/mjml.md +52 -0
  152. package/skills/pixelcraft-email/references/react-email.md +53 -0
  153. package/skills/pixelcraft-extensions/SKILL.md +51 -0
  154. package/skills/pixelcraft-extensions/references/browser-extensions.md +31 -0
  155. package/skills/pixelcraft-extensions/references/figma-office.md +23 -0
  156. package/skills/pixelcraft-extensions/references/raycast.md +19 -0
  157. package/skills/pixelcraft-extensions/references/vscode-webviews.md +26 -0
  158. package/skills/pixelcraft-game-ui/SKILL.md +61 -0
  159. package/skills/pixelcraft-game-ui/references/bevy.md +52 -0
  160. package/skills/pixelcraft-game-ui/references/godot.md +57 -0
  161. package/skills/pixelcraft-game-ui/references/hud-principles.md +38 -0
  162. package/skills/pixelcraft-game-ui/references/love2d.md +51 -0
  163. package/skills/pixelcraft-game-ui/references/monogame.md +52 -0
  164. package/skills/pixelcraft-game-ui/references/unity-ui-toolkit.md +65 -0
  165. package/skills/pixelcraft-game-ui/references/unreal-umg.md +53 -0
  166. package/skills/pixelcraft-handoff/SKILL.md +49 -0
  167. package/skills/pixelcraft-handoff/references/design-translation.md +104 -0
  168. package/skills/pixelcraft-handoff/references/fidelity-tolerance.md +78 -0
  169. package/skills/pixelcraft-media/SKILL.md +52 -0
  170. package/skills/pixelcraft-media/references/banners-video.md +112 -0
  171. package/skills/pixelcraft-media/references/og-generation.md +107 -0
  172. package/skills/pixelcraft-media/references/social-cards.md +72 -0
  173. package/skills/pixelcraft-mobile/SKILL.md +69 -0
  174. package/skills/pixelcraft-mobile/references/dotnet-maui.md +63 -0
  175. package/skills/pixelcraft-mobile/references/flet.md +53 -0
  176. package/skills/pixelcraft-mobile/references/flutter.md +69 -0
  177. package/skills/pixelcraft-mobile/references/ionic-capacitor.md +65 -0
  178. package/skills/pixelcraft-mobile/references/jetpack-compose.md +61 -0
  179. package/skills/pixelcraft-mobile/references/kivy.md +59 -0
  180. package/skills/pixelcraft-mobile/references/kotlin-multiplatform.md +60 -0
  181. package/skills/pixelcraft-mobile/references/react-native-expo.md +71 -0
  182. package/skills/pixelcraft-mobile/references/swiftui.md +70 -0
  183. package/skills/pixelcraft-mobile/references/task-state-composition.md +5 -0
  184. package/skills/pixelcraft-mobile/references/uikit.md +58 -0
  185. package/skills/pixelcraft-patterns/SKILL.md +58 -0
  186. package/skills/pixelcraft-patterns/references/auth-onboarding.md +25 -0
  187. package/skills/pixelcraft-patterns/references/commerce.md +28 -0
  188. package/skills/pixelcraft-patterns/references/communication.md +26 -0
  189. package/skills/pixelcraft-patterns/references/creative-tools.md +29 -0
  190. package/skills/pixelcraft-patterns/references/dashboard-admin.md +31 -0
  191. package/skills/pixelcraft-patterns/references/marketing.md +32 -0
  192. package/skills/pixelcraft-patterns/references/pattern-selection.md +74 -0
  193. package/skills/pixelcraft-patterns/references/search-filtering.md +42 -0
  194. package/skills/pixelcraft-patterns/references/settings.md +23 -0
  195. package/skills/pixelcraft-patterns/references/tables-crud.md +43 -0
  196. package/skills/pixelcraft-plan/SKILL.md +67 -0
  197. package/skills/pixelcraft-plan/references/design-input.md +69 -0
  198. package/skills/pixelcraft-plan/references/plan-template.md +99 -0
  199. package/skills/pixelcraft-plan/references/repo-discovery.md +42 -0
  200. package/skills/pixelcraft-plan/references/stack-freshness.md +50 -0
  201. package/skills/pixelcraft-plan/references/stack-selection.md +42 -0
  202. package/skills/pixelcraft-review/SKILL.md +64 -0
  203. package/skills/pixelcraft-review/references/audit-report.md +50 -0
  204. package/skills/pixelcraft-review/references/critique-protocol.md +89 -0
  205. package/skills/pixelcraft-review/references/heuristics.md +18 -0
  206. package/skills/pixelcraft-review/references/personas.md +26 -0
  207. package/skills/pixelcraft-review/references/polish.md +38 -0
  208. package/skills/pixelcraft-review/scripts/fixtures/brand-critique-waivers.json +14 -0
  209. package/skills/pixelcraft-review/scripts/fixtures/brand-critique.css +18 -0
  210. package/skills/pixelcraft-review/scripts/fixtures/clean.html +43 -0
  211. package/skills/pixelcraft-review/scripts/fixtures/focus-after-block.css +4 -0
  212. package/skills/pixelcraft-review/scripts/fixtures/focus-at-rules.css +17 -0
  213. package/skills/pixelcraft-review/scripts/fixtures/focus-comments.css +10 -0
  214. package/skills/pixelcraft-review/scripts/fixtures/focus-html-quote-leak.html +12 -0
  215. package/skills/pixelcraft-review/scripts/fixtures/focus-invalid-replacements.css +27 -0
  216. package/skills/pixelcraft-review/scripts/fixtures/focus-nested-rules.css +19 -0
  217. package/skills/pixelcraft-review/scripts/fixtures/focus-not-visible-skip.css +8 -0
  218. package/skills/pixelcraft-review/scripts/fixtures/focus-outline-shorthands.css +11 -0
  219. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-and-border.css +15 -0
  220. package/skills/pixelcraft-review/scripts/fixtures/focus-unknown-last-wins.css +19 -0
  221. package/skills/pixelcraft-review/scripts/fixtures/focus-valid-replacements-extended.css +29 -0
  222. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-no-replacement.css +3 -0
  223. package/skills/pixelcraft-review/scripts/fixtures/focus-visible-valid-replacements.css +9 -0
  224. package/skills/pixelcraft-review/scripts/fixtures/slop.html +28 -0
  225. package/skills/pixelcraft-review/scripts/slop-scan.mjs +586 -0
  226. package/skills/pixelcraft-spatial/SKILL.md +52 -0
  227. package/skills/pixelcraft-spatial/references/comfort-accessibility.md +98 -0
  228. package/skills/pixelcraft-spatial/references/platforms.md +77 -0
  229. package/skills/pixelcraft-tokens/SKILL.md +56 -0
  230. package/skills/pixelcraft-tokens/assets/tokens.example.json +71 -0
  231. package/skills/pixelcraft-tokens/assets/tokens.modes.example.json +47 -0
  232. package/skills/pixelcraft-tokens/references/adoption.md +55 -0
  233. package/skills/pixelcraft-tokens/references/format.md +54 -0
  234. package/skills/pixelcraft-tokens/references/governance.md +80 -0
  235. package/skills/pixelcraft-tokens/references/state-tokens.md +62 -0
  236. package/skills/pixelcraft-tokens/references/theme-presets.md +94 -0
  237. package/skills/pixelcraft-tokens/scripts/export-tokens.mjs +285 -0
  238. package/skills/pixelcraft-tui/SKILL.md +60 -0
  239. package/skills/pixelcraft-tui/references/bubbletea-lipgloss.md +60 -0
  240. package/skills/pixelcraft-tui/references/ink.md +60 -0
  241. package/skills/pixelcraft-tui/references/ratatui.md +62 -0
  242. package/skills/pixelcraft-tui/references/rich.md +62 -0
  243. package/skills/pixelcraft-tui/references/textual.md +67 -0
  244. package/skills/pixelcraft-ux/SKILL.md +46 -0
  245. package/skills/pixelcraft-ux/references/cognitive-walkthrough.md +70 -0
  246. package/skills/pixelcraft-ux/references/feedback-performance.md +30 -0
  247. package/skills/pixelcraft-ux/references/flows-ia.md +44 -0
  248. package/skills/pixelcraft-ux/references/forms.md +97 -0
  249. package/skills/pixelcraft-ux/references/i18n.md +183 -0
  250. package/skills/pixelcraft-ux/references/laws.md +18 -0
  251. package/skills/pixelcraft-ux/references/locale-test-matrix.md +60 -0
  252. package/skills/pixelcraft-ux/references/state-matrix.md +39 -0
  253. package/skills/pixelcraft-ux/references/usability-testing.md +84 -0
  254. package/skills/pixelcraft-ux/references/ux-writing.md +43 -0
  255. package/skills/pixelcraft-visual-qa/SKILL.md +82 -0
  256. package/skills/pixelcraft-visual-qa/references/baseline-governance.md +70 -0
  257. package/skills/pixelcraft-visual-qa/references/capture-desktop-game.md +38 -0
  258. package/skills/pixelcraft-visual-qa/references/capture-email.md +34 -0
  259. package/skills/pixelcraft-visual-qa/references/capture-mobile.md +35 -0
  260. package/skills/pixelcraft-visual-qa/references/capture-terminal.md +31 -0
  261. package/skills/pixelcraft-visual-qa/references/critique-rubric.md +71 -0
  262. package/skills/pixelcraft-visual-qa/references/finish-gate.md +35 -0
  263. package/skills/pixelcraft-visual-qa/references/measured-craft.md +30 -0
  264. package/skills/pixelcraft-visual-qa/references/performance-budgets.md +65 -0
  265. package/skills/pixelcraft-visual-qa/references/task-verification.md +81 -0
  266. package/skills/pixelcraft-visual-qa/scripts/finish-gate.mjs +135 -0
  267. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-aria-modal.html +19 -0
  268. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-audit.html +34 -0
  269. package/skills/pixelcraft-visual-qa/scripts/fixtures/shoot-modal.html +17 -0
  270. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-deferred.js +1 -0
  271. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory-edge.html +52 -0
  272. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.html +80 -0
  273. package/skills/pixelcraft-visual-qa/scripts/fixtures/style-inventory.js +8 -0
  274. package/skills/pixelcraft-visual-qa/scripts/shoot.mjs +513 -0
  275. package/skills/pixelcraft-visual-qa/scripts/style-inventory.mjs +1154 -0
  276. package/skills/pixelcraft-web/SKILL.md +76 -0
  277. package/skills/pixelcraft-web/references/adaptive-layout.md +25 -0
  278. package/skills/pixelcraft-web/references/angular.md +61 -0
  279. package/skills/pixelcraft-web/references/astro.md +62 -0
  280. package/skills/pixelcraft-web/references/clojurescript.md +53 -0
  281. package/skills/pixelcraft-web/references/elm.md +53 -0
  282. package/skills/pixelcraft-web/references/fsharp-fable.md +53 -0
  283. package/skills/pixelcraft-web/references/html-css.md +88 -0
  284. package/skills/pixelcraft-web/references/htmx-alpine.md +53 -0
  285. package/skills/pixelcraft-web/references/java-web.md +52 -0
  286. package/skills/pixelcraft-web/references/kotlin-web.md +53 -0
  287. package/skills/pixelcraft-web/references/leptos-yew.md +54 -0
  288. package/skills/pixelcraft-web/references/lit-web-components.md +61 -0
  289. package/skills/pixelcraft-web/references/pwa.md +225 -0
  290. package/skills/pixelcraft-web/references/qwik.md +54 -0
  291. package/skills/pixelcraft-web/references/react-next.md +69 -0
  292. package/skills/pixelcraft-web/references/scala-laminar.md +53 -0
  293. package/skills/pixelcraft-web/references/server-rendered.md +71 -0
  294. package/skills/pixelcraft-web/references/solid.md +60 -0
  295. package/skills/pixelcraft-web/references/svelte.md +61 -0
  296. package/skills/pixelcraft-web/references/tailwind.md +73 -0
  297. package/skills/pixelcraft-web/references/vue-nuxt.md +62 -0
@@ -0,0 +1,47 @@
1
+ # Subject-derived wildcard generators
2
+
3
+ Use these generators when the movement catalog itself starts becoming a monoculture. A wildcard must still satisfy mode, floor, and platform constraints.
4
+
5
+ ## Constraint dice
6
+
7
+ Pick one item from three different columns, then justify each through the subject:
8
+
9
+ | Material/structure | Visual operation | Information behavior |
10
+ |---|---|---|
11
+ | ledger/index/archive | rotate one axis 2–8 degrees | reveal detail through measurement/annotation |
12
+ | instrument/control panel | crop aggressively | prioritize live state over persuasion |
13
+ | field notebook/map | repeat a module with controlled irregularity | layer primary/secondary/tertiary reading |
14
+ | packaging/label/system | translate physical print artifact digitally | use comparison rather than cards |
15
+ | stage/score/choreography | use strict horizontal/vertical rhythm | sequence information by time/state |
16
+ | organism/terrain/weather | let content determine aspect ratio | expose uncertainty/range explicitly |
17
+ | machine protocol/log | use tabular or monospaced precision | make state transitions visible |
18
+ | game/manual/signal system | use pictograms as a real system | teach through progressive disclosure |
19
+
20
+ ## Subject questions
21
+
22
+ Answer with concrete artifact evidence:
23
+
24
+ 1. What physical object, document, instrument, place, organism, or ritual already embodies the subject?
25
+ 2. What units, scales, symbols, constraints, or failure modes does the domain use?
26
+ 3. What would an expert notice that a generic observer misses?
27
+ 4. What material contrast is native to the domain (rough/precise, ephemeral/permanent, hot/cold, dense/sparse)?
28
+ 5. What is the wrong cultural stereotype for this subject? Exclude it explicitly.
29
+ 6. Which sense other than sight has a visual analog: rhythm, weight, texture, temperature, proximity, sequence?
30
+
31
+ ## Transformation operators
32
+
33
+ Apply one or two, never all:
34
+
35
+ - invert hierarchy: make metadata or mechanism the hero;
36
+ - change scale: macro texture, microscopic detail, architectural overview;
37
+ - change time: freeze a process, show provenance, expose a state machine;
38
+ - change perspective: cross-section, exploded view, plan view, operator view;
39
+ - change medium: blueprint, label, ledger, score, signal, field guide, control strip;
40
+ - impose a numerical constraint: two colors, one radius, one axis, 7-column grid, no rectangles;
41
+ - localize deeply: derive from the audience's visual vernacular rather than exported US/European SaaS taste.
42
+
43
+ ## Anti-monoculture rules
44
+
45
+ - If two consecutive directions share composition family, force the next wildcard to use a different axis of contrast.
46
+ - Never use a random aesthetic without a subject rationale.
47
+ - A wildcard is successful only if removing the subject would make the design explanation stop making sense.
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: pixelcraft-document
3
+ description: Designs and verifies paginated documents, print output, reports, invoices, CVs, and slide decks across web and document tooling. Use for print CSS, @page/paged media, page breaks, running headers/footers, physical units, bleed/prepress, PDF generation, Paged.js, WeasyPrint, React-PDF, Typst, LaTeX, document typography, invoices/reports/CVs, Slidev/reveal.js/Marp presentations, slide composition, projector legibility, and print/export verification.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft document
10
+
11
+ Documents are fixed-fragmentation interfaces. Screen scrolling assumptions do not apply: page size, margin boxes, breaks, running navigation, physical units, print color behavior, and final-file legibility are part of the design. Choose the renderer before writing print CSS because browser print, Paged.js, WeasyPrint, React-PDF, Typst, and LaTeX implement different subsets.
12
+
13
+ ## Surface craft
14
+
15
+ Build a reading sequence around repeated headers, explicit units and page boundaries, not screen-size sections. Keep related rows or notes together when pagination allows, and verify totals, source facts, selectable text and reading order in the final tagged/exported artifact. Check the actual zoom, grayscale or projector distance; do not flatten a useful document to slides-as-images.
16
+
17
+ ## References
18
+
19
+ - Read [references/print-css.md](references/print-css.md) for `@page`, named pages, counters, margin boxes, fragmentation, physical units, print color, bleed, and browser-support boundaries.
20
+ - Read [references/pdf-tools.md](references/pdf-tools.md) for Paged.js, WeasyPrint, React-PDF, Typst, and LaTeX selection plus exact integration constraints.
21
+ - Read [references/archetypes.md](references/archetypes.md) for invoice, report, and CV/résumé composition rules.
22
+ - Read [references/slides.md](references/slides.md) for Slidev, reveal.js, Marp, Keynote-style slide craft, safe areas, type scale, and export verification.
23
+
24
+ ## Required workflow
25
+
26
+ 1. **Define the artifact.** Identify final format (browser print, PDF file, print shop imposition, slide deck), page size/orientation, audience, reading distance, single/duplex use, locale, accessibility requirements, and distribution channel.
27
+ 2. **Choose the rendering pipeline.** HTML/CSS when content is hypertext-like; React-PDF when React data components must emit controlled PDFs; Typst/LaTeX when programmatic typographic control matters; slides tooling when presentation state/navigation matters.
28
+ 3. **Design the page system.** Cover/body/back matter, named pages, margins, columns, running headers/footers, numbering, captions, tables, figures, blank pages, and error/missing-data states.
29
+ 4. **Control fragmentation.** Specify where breaks may/must happen before styling decoration. Tables, headings, figures, signatures, totals, and footnotes need explicit behavior.
30
+ 5. **Use physical typography.** Set real type sizes/leading/measure in pt/mm; verify script/font fallback, embedding/licensing, hyphenation, widows/orphans, and color contrast on paper/projector.
31
+ 6. **Verify the final artifact.** Inspect the actual PDF/print preview/slides at 100% and final size. Screen HTML is not evidence of correct pagination.
32
+
33
+ ## Non-negotiable rules
34
+
35
+ | Concern | Rule |
36
+ |---|---|
37
+ | truthfulness | Totals, dates, references, legal text, names, and page numbers must be data-driven or explicitly marked draft/placeholder; never invent invoice/report content. |
38
+ | fragmentation | No orphan headings, split signature blocks, dangling table headers, clipped footnotes, or totals separated from the rows they summarize unless intentional and labeled. |
39
+ | physical correctness | Use mm/pt/in for print dimensions; CSS px are screen abstraction, not print measurements. |
40
+ | legibility | Body text must remain readable at final size; slides must be legible from the back of the room, not merely on the author's monitor. |
41
+ | accessibility | PDF/export needs document structure, meaningful reading order, text alternatives for images/charts, selectable text where possible, and sufficient contrast. |
42
+ | renderer awareness | Do not claim support for margin boxes, footnotes, bleed, grid, or font behavior without checking the chosen renderer. |
43
+ | anti-slop | Avoid decorative report templates, fake charts, stock-photo covers, dense wall-of-text slides, and generic blue corporate styling detached from content. |
44
+
45
+ ## Pre-submit checklist
46
+
47
+ - [ ] output medium, renderer, page size/orientation, locale, and duplex/bleed requirements are explicit;
48
+ - [ ] named pages/page numbering/running headers/footers behave correctly;
49
+ - [ ] break rules tested with short/long/missing data and repeated tables/figures;
50
+ - [ ] fonts are embedded/licensed and fallback behavior inspected;
51
+ - [ ] contrast/background behavior tested in print/PDF/projector output;
52
+ - [ ] actual generated artifact inspected at 100% and final size;
53
+ - [ ] accessibility/reading order/text extraction checked or labeled `not-checked`;
54
+ - [ ] document/slide content is truthful, necessary, and free of template filler.
@@ -0,0 +1,83 @@
1
+ # Document archetypes
2
+
3
+ Archetypes are structural contracts, not visual templates. Start with legal/business/reading requirements and real content. Visual identity must never obscure correctness.
4
+
5
+ ## Invoices, receipts, and billing documents
6
+
7
+ Required information depends on jurisdiction and business model. Verify legal/tax requirements instead of copying a template. Common data includes seller identity/contact, buyer identity, unique invoice number, issue date, due/payment date, currency, line items, quantity/unit price, discounts, subtotal, tax treatment, total, payment instructions, status, and credit/cancellation references.
8
+
9
+ Design rules:
10
+
11
+ | Concern | Rule |
12
+ |---|---|
13
+ | hierarchy | invoice number/status/total/due date must be findable immediately |
14
+ | line items | use a table with aligned quantities/prices/totals; repeat header across pages |
15
+ | totals | keep subtotal/tax/total block together and near the rows it summarizes; if it moves to a later page, repeat enough context |
16
+ | money | use explicit currency code/locale formatting; never round line items inconsistently with totals |
17
+ | status | draft/paid/void/overdue states need text and date, not color alone |
18
+ | payment | instructions must be actionable and truthful; expose missing/invalid payment data as a draft-blocking state |
19
+ | multilingual | tax labels, legal names, addresses, numerals, dates, and currency need locale-appropriate layout without truncating long translations |
20
+
21
+ Fragmentation checks: one-line invoice, many pages of line items, zero-rated/tax-exempt rows, discounts/credits, long addresses/legal notes, missing buyer fields, and last-page total placement.
22
+
23
+ Anti-slop: decorative oversized logo consuming the first third, fake “thank you” copy replacing payment clarity, blue gradient headers, and totals hidden in a floating card detached from line items.
24
+
25
+ ## Reports, whitepapers, and manuals
26
+
27
+ Structure follows reading purpose:
28
+
29
+ 1. cover/title with document scope/version/date;
30
+ 2. abstract or executive summary for decision-makers;
31
+ 3. table of contents when navigation cost justifies it;
32
+ 4. sections with consistent heading hierarchy;
33
+ 5. figures/tables numbered only when referenced or reusable;
34
+ 6. citations/sources/footnotes;
35
+ 7. appendices/supplemental detail;
36
+ 8. document control/version/contact where appropriate.
37
+
38
+ Design rules:
39
+
40
+ - use running headers/footers for document title/section/page only when they aid navigation;
41
+ - keep figure/table captions with their objects and references accurate;
42
+ - distinguish author opinion, measured result, citation, and generated/draft content;
43
+ - use margins for notes only if the renderer/page size supports them without shrinking body text;
44
+ - provide meaningful metadata/title/author/language;
45
+ - verify text extraction and reading order.
46
+
47
+ Long-table/long-code behavior is a first-order design decision. A code block or table that silently clips at the page edge is a defect. Use wrapping, smaller semantic fragments, landscape pages, or appendices deliberately.
48
+
49
+ Anti-slop: stock-photo cover pages before any content, decorative pull quotes repeated as filler, charts without source/axis context, fake executive summaries, and excessive brand color pages that waste ink.
50
+
51
+ ## CVs and résumés
52
+
53
+ Norms vary by country, industry, seniority, and submission channel. Do not impose one-page/photo/personal-detail rules universally.
54
+
55
+ Content rules:
56
+
57
+ - truthful names/titles/dates/claims; no invented metrics or credential inflation;
58
+ - concrete scope and outcomes over buzzword lists;
59
+ - machine-readable text for applicant-tracking systems;
60
+ - clear chronology and explanation of relevant gaps only when chosen by the user;
61
+ - contact links that are correct and appropriate;
62
+ - no skill “meters” or percentage bars unless the scale is meaningful (it usually is not);
63
+ - photo/age/marital status only when culturally/legal-context appropriate and user-requested.
64
+
65
+ Layout rules:
66
+
67
+ - scan order: name/target role/contact, experience, evidence, skills/education;
68
+ - avoid multi-column parsing ambiguity when ATS matters;
69
+ - preserve enough whitespace for annotation and print;
70
+ - use robust typography rather than decorative icons for every line;
71
+ - test PDF text extraction/copy order and one/two-page variants.
72
+
73
+ Anti-slop: black sidebar with portrait and dot ratings, generic adjectives (“detail-oriented team player”), QR codes without destination/context, and template sections left with placeholder text.
74
+
75
+ ## Shared document QA
76
+
77
+ - inspect first/middle/last page and longest realistic content;
78
+ - print or preview at 100%;
79
+ - validate totals/references/page numbers/cross-references;
80
+ - search/copy extracted text;
81
+ - verify fonts/glyph fallback for actual names/locales;
82
+ - test grayscale and backgrounds-disabled output;
83
+ - mark missing legal/accessibility review explicitly rather than implying compliance.
@@ -0,0 +1,154 @@
1
+ # PDF and document toolchains
2
+
3
+ Choose the toolchain for the source of truth and required control. Do not route every document through screenshots or browser print merely because HTML is familiar.
4
+
5
+ ## Selection matrix
6
+
7
+ | Tool | Input/model | Best for | Critical constraints |
8
+ |---|---|---|---|
9
+ | Paged.js | browser HTML/CSS paginated by JS | proofing/printing HTML publications with richer Paged Media behavior | client-side layout cost; browser/runtime integration; verify generated output and hooks |
10
+ | WeasyPrint | Python HTML/CSS → PDF | server-generated invoices/reports from HTML templates | does not execute JavaScript; CSS support is broad but not browser-identical; font/layout behavior differs |
11
+ | React-PDF (`@react-pdf/renderer`) | React component tree → PDF | app-generated controlled PDFs sharing data/components in JS | not DOM/CSS print; custom primitive layout model with a subset of styles; explicit font registration |
12
+ | Typst | markup + programmable typesetting | precise reports, templates, scientific/business documents | separate language/model; learn layout/counter system; browser CSS does not transfer directly |
13
+ | LaTeX | TeX source/macros/packages | scholarly/technical typesetting, complex references/math | steep toolchain/package differences; debugging fragmentation requires TeX knowledge |
14
+
15
+ ## Paged.js
16
+
17
+ Paged.js paginates HTML in the browser and polyfills parts of CSS Paged Media/Generated Content. Typical usage:
18
+
19
+ ```js
20
+ import { Previewer } from 'pagedjs';
21
+
22
+ const flow = await new Previewer().preview(
23
+ document.querySelector('#content'),
24
+ ['/print.css'],
25
+ document.querySelector('#preview'),
26
+ );
27
+ console.log(`Rendered ${flow.total} pages`);
28
+ ```
29
+
30
+ The polyfill build can also run in the page:
31
+
32
+ ```html
33
+ <script src="/vendor/paged.polyfill.js"></script>
34
+ ```
35
+
36
+ Serve a pinned local/project-controlled copy rather than depending on a mutable third-party CDN in production or document-generation pipelines.
37
+
38
+ Rules:
39
+
40
+ - wait for fonts/images/data before previewing or use the documented async configuration/hooks;
41
+ - account for rendering time on long documents;
42
+ - do not assume the DOM after chunking behaves like ordinary screen layout;
43
+ - use hooks for running headers/footers or custom page behavior only after reading the handler lifecycle;
44
+ - validate page counters, named pages, blank pages, margin boxes, and repeated table headers in actual output.
45
+
46
+ ## WeasyPrint
47
+
48
+ WeasyPrint turns HTML/CSS into PDF in Python:
49
+
50
+ ```python
51
+ from weasyprint import HTML
52
+
53
+ HTML('invoice.html', base_url='./static/').write_pdf('invoice.pdf')
54
+ ```
55
+
56
+ Important constraints:
57
+
58
+ - it does not execute JavaScript;
59
+ - screen/browser behavior is not identical—media queries, flex/grid support, fonts, bidirectional text, and advanced CSS need version-specific verification;
60
+ - `@font-face`/`font_config` matters; do not assume system fonts on deployment servers;
61
+ - use `base_url` deliberately for images/fonts/static assets rather than hidden filesystem assumptions;
62
+ - repeating table headers, margin boxes, counters, named pages, and footnotes can be powerful when supported by the pinned version—test against that version, not a generic feature list.
63
+
64
+ Generate deterministic fixtures and inspect text extraction/embedding. Do not shell out to a browser if server-generated output must be reproducible unless that cost/security model is explicit.
65
+
66
+ ## React-PDF
67
+
68
+ `@react-pdf/renderer` is not a DOM renderer. It uses primitives such as `Document`, `Page`, `View`, `Text`, `Image`, `Link`, and SVG-related components with a controlled style subset.
69
+
70
+ ```jsx
71
+ import { Document, Page, Text, View, Font } from '@react-pdf/renderer';
72
+
73
+ Font.register({
74
+ family: 'Inter',
75
+ src: '/fonts/Inter-Regular.ttf',
76
+ });
77
+
78
+ const doc = (
79
+ <Document title="Invoice" author="Example Ltd.">
80
+ <Page size="A4" wrap style={{ padding: 40 }}>
81
+ <Text render={({ pageNumber, totalPages }) => `${pageNumber} / ${totalPages}`} fixed />
82
+ <View>{/* content */}</View>
83
+ </Page>
84
+ </Document>
85
+ );
86
+ ```
87
+
88
+ Exact behavioral notes:
89
+
90
+ - `<Document>` must be the root and its children are `<Page>` elements;
91
+ - `Page` defaults to A4/portrait in current v4 docs but accepts explicit size/orientation;
92
+ - `wrap` controls page wrapping;
93
+ - `fixed` repeats an element on each page;
94
+ - `render` on `Text`/`View` receives pagination context; `totalPages` is available for text and is resolved through a multi-pass render;
95
+ - styles use JavaScript objects and a constrained layout engine, not the full browser cascade;
96
+ - register fonts explicitly, especially for archival/conformance output; built-in standard fonts have limited glyph coverage.
97
+
98
+ Do not copy browser CSS/grid assumptions. Use simple flex-like layout, measure text expansion, and test long content because wrapping/pagination is library-specific.
99
+
100
+ ## Typst
101
+
102
+ Typst is a programmable typesetting system with concise markup. Basic page setup:
103
+
104
+ ```typst
105
+ #set page(
106
+ width: 210mm,
107
+ height: 297mm,
108
+ margin: (top: 18mm, right: 16mm, bottom: 20mm, left: 16mm),
109
+ bleed: 3mm,
110
+ header: [Report],
111
+ footer: align(right)[#counter(page).display()],
112
+ )
113
+ #set text(font: "Source Serif 4", size: 10.5pt)
114
+ ```
115
+
116
+ Strengths and constraints:
117
+
118
+ - explicit page dimensions/margins/bleed/headers/footers;
119
+ - programmable counters, queries, templates, and layout reuse;
120
+ - strong math and bibliography ecosystem;
121
+ - not HTML/CSS—web components and browser assumptions do not transfer;
122
+ - font availability in the compile environment is part of the artifact contract;
123
+ - inspect generated PDF text extraction/bookmarks/links rather than assuming semantic correctness.
124
+
125
+ Use Typst when repeatability and typography matter more than reusing HTML.
126
+
127
+ ## LaTeX
128
+
129
+ Use LaTeX when the document already lives in a TeX ecosystem or needs its math/bibliography/macro depth. Relevant primitives:
130
+
131
+ ```tex
132
+ \usepackage[a4paper,margin=18mm]{geometry}
133
+ \usepackage{fancyhdr}
134
+ \pagestyle{fancy}
135
+ ```
136
+
137
+ Rules:
138
+
139
+ - choose engine deliberately (`pdflatex`, `xelatex`, `lualatex`) because font/Unicode behavior differs;
140
+ - floating placement is probabilistic unless constrained; inspect actual pages rather than forcing every float;
141
+ - use appropriate packages for tables, headers/footers, hyperlinks, accessibility-aware metadata, color, and microtype;
142
+ - compile repeatedly and treat auxiliary files/caches as part of reproducibility;
143
+ - PDF accessibility/tagging is specialized work, not automatic merely because text is selectable.
144
+
145
+ ## Toolchain verification matrix
146
+
147
+ | Check | Evidence required |
148
+ |---|---|
149
+ | pagination | inspect generated PDF/page images at first/middle/last pages |
150
+ | fonts | embedded/subset correctly; glyph coverage; license |
151
+ | links/bookmarks | clickable destinations and correct metadata where required |
152
+ | accessibility | reading order/tags/text extraction/alt text or explicit limitation |
153
+ | reproducibility | pinned dependencies/fonts/assets and deterministic build inputs |
154
+ | security | no untrusted remote assets/scripts in server rendering; sanitize HTML input |
@@ -0,0 +1,134 @@
1
+ # Print CSS and CSS Paged Media
2
+
3
+ Browser print engines implement only part of CSS Paged Media. Paged.js and WeasyPrint implement more. Validate every feature in the actual renderer before depending on it.
4
+
5
+ ## Core `@page` model
6
+
7
+ ```css
8
+ @page {
9
+ size: A4 portrait;
10
+ margin: 18mm 16mm 20mm 16mm;
11
+ }
12
+
13
+ @page cover {
14
+ margin: 0;
15
+ background: #102033;
16
+ }
17
+
18
+ .cover-page {
19
+ page: cover;
20
+ }
21
+ ```
22
+
23
+ Useful forms:
24
+
25
+ | Feature | Example | Notes |
26
+ |---|---|---|
27
+ | explicit dimensions | `size: 210mm 297mm;` | width then height |
28
+ | standard size/orientation | `size: letter landscape;` | support varies for automatic orientation inversion |
29
+ | page margins | `margin: 18mm 15mm;` | physical margin inside paper edge |
30
+ | named pages | `page: invoice;` + `@page invoice` | assign from an element; renderer support is not universal |
31
+ | pseudo pages | `@page :first`, `:left`, `:right`, `:blank` | support varies; important for duplex/book layouts |
32
+ | page counter | `counter(page)` | current page number where counters are supported |
33
+ | total counter | `counter(pages)` | total page count where supported |
34
+ | margin boxes | `@bottom-right { content: counter(page); }` | essential for running headers/footers, but not broadly supported by native browser print |
35
+
36
+ Margin boxes include `@top-left`, `@top-center`, `@top-right`, `@bottom-left`, `@bottom-center`, `@bottom-right`, and side margin boxes in the specification. Chromium/native print does not expose the full margin-box model; do not write production headers/footers assuming it. Use Paged.js/WeasyPrint/print-engine verification.
37
+
38
+ ## Fragmentation control
39
+
40
+ Use modern properties plus legacy aliases only when needed by the target renderer:
41
+
42
+ ```css
43
+ h2, h3 {
44
+ break-after: avoid;
45
+ break-inside: avoid;
46
+ }
47
+
48
+ figure, .signature-block, .total-row {
49
+ break-inside: avoid;
50
+ }
51
+
52
+ section.chapter {
53
+ break-before: page;
54
+ }
55
+
56
+ table {
57
+ break-inside: auto;
58
+ }
59
+ ```
60
+
61
+ | Property | Meaning | Design rule |
62
+ |---|---|---|
63
+ | `break-before: page` | force a break before the element | use for chapters/major sections, not every card |
64
+ | `break-after: avoid` | prevent a break immediately after | essential for headings before content |
65
+ | `break-inside: avoid` | keep a box together where possible | use for figures/signatures/totals, not entire long tables |
66
+ | `orphans` | minimum lines left at bottom | set deliberately; initial/support behavior varies |
67
+ | `widows` | minimum lines carried to next page | pair with orphans and inspect real text lengths |
68
+
69
+ Tables need separate rules: repeat `<thead>` where the renderer supports it, avoid breaking rows (`tr { break-inside: avoid; }`), and never apply `break-inside: avoid` to a table taller than one page.
70
+
71
+ ## Physical units and typography
72
+
73
+ Exact relationships in CSS print:
74
+
75
+ ```text
76
+ 1in = 25.4mm = 72pt = 96 CSS px
77
+ ```
78
+
79
+ Use `mm`, `cm`, `in`, and `pt` for print-critical dimensions. Use `px` only for hairline rules or screen-first components whose conversion is intentional. Body copy for ordinary print often starts around 9–11pt depending on typeface, measure, and audience; legal/compact tables may go smaller only when tested at 100%. Do not copy these numbers as a rule—verify x-height, paper, contrast, and reader needs.
80
+
81
+ Design a type system:
82
+
83
+ - measure: often 60–90 characters for prose, narrower for dense reference matter;
84
+ - leading: enough for script/ascenders/diacritics; CJK/Indic/Arabic text may need different metrics;
85
+ - hyphenation/line breaking: language-dependent and renderer-dependent;
86
+ - font embedding/license: verify embedding rights and glyph coverage;
87
+ - fallback: test Latin diacritics, CJK, RTL, Indic shaping, symbols, emoji, and numeric styles actually used.
88
+
89
+ ## Print color and backgrounds
90
+
91
+ Browsers may omit backgrounds by default to save ink. Chromium-family print supports the nonstandard-but-widely-used `-webkit-print-color-adjust: exact` / standard `print-color-adjust: exact`, but users and print settings can still alter output. Do not rely on background color alone for meaning.
92
+
93
+ Rules:
94
+
95
+ - foreground/background contrast must remain sufficient on white paper if backgrounds are dropped;
96
+ - avoid full-bleed dark backgrounds unless the artifact truly requires them; ink cost and printer margins matter;
97
+ - test grayscale because office printers often default to monochrome;
98
+ - use patterns/line styles as redundant differentiation in charts/tables;
99
+ - never use color-only red/green semantics.
100
+
101
+ ## Bleed, trim, and printer marks
102
+
103
+ Professional print artifacts use bleed so color/images extend beyond trim:
104
+
105
+ ```css
106
+ @page {
107
+ size: 210mm 297mm;
108
+ bleed: 3mm;
109
+ marks: crop cross;
110
+ }
111
+ ```
112
+
113
+ Support for `bleed` and `marks` is renderer-specific and generally absent from ordinary browser print. Typst supports page `bleed` directly and defines a PDF `TrimBox` when nonzero. For print-shop output, confirm required bleed (often 3mm/0.125in but not universal), color profile, imposition, crop/registration marks, DPI, and PDF/X expectations with the printer instead of guessing.
114
+
115
+ ## Browser print limitations
116
+
117
+ Native browser printing is suitable for simple documents, but historically lacks much of the advanced model:
118
+
119
+ - limited/no support for arbitrary margin boxes;
120
+ - inconsistent named-page and counter behavior;
121
+ - limited footnotes/running strings/leaders/bookmarks;
122
+ - page background/user print settings outside app control;
123
+ - no reliable crop marks/bleed.
124
+
125
+ Use the browser when the user controls print invocation and simple pagination is acceptable. Use Paged.js/WeasyPrint/Typst/LaTeX/React-PDF when exact pagination is a product requirement.
126
+
127
+ ## Verification protocol
128
+
129
+ 1. Print-preview or generate PDF with real content length distribution.
130
+ 2. Inspect every page at 100% zoom and physically printed scale when possible.
131
+ 3. Test first/middle/last page, blank pages, duplex left/right, repeated table headers, footnotes, figures, and totals.
132
+ 4. Text-select/search/extract output. Invisible vector text or rasterized type is an accessibility failure unless explicitly accepted.
133
+ 5. Compare light/dark/backgrounds-disabled/grayscale outputs.
134
+ 6. Label unavailable verification `not-checked`; do not infer correct pagination from browser layout.
@@ -0,0 +1,102 @@
1
+ # Slides and presentation surfaces
2
+
3
+ Slides are performance aids viewed at distance. They are not dense reports pasted onto a projector. One slide carries one primary idea; speaker notes and handouts carry detail.
4
+
5
+ ## Composition rules
6
+
7
+ | Concern | Practical rule |
8
+ |---|---|
9
+ | idea density | one claim/idea per slide; split sequences instead of shrinking everything |
10
+ | type scale | as a starting floor for projection, body text around 24–32pt/px-equivalent or larger, important content 36–60+, titles larger; validate at authored resolution and viewing distance rather than treating numbers as law |
11
+ | safe area | keep essential content inside roughly the central 90–95% of the frame; projector cropping, bezels, captions, and platform UI can obscure edges |
12
+ | contrast | high contrast for projection; avoid thin light-gray type and subtle gradients behind text |
13
+ | motion | transitions only when they explain sequence/object constancy; provide reduced/static export behavior |
14
+ | content ownership | every chart/image/code fragment must be legible and necessary; speaker notes are not a license to hide required detail |
15
+ | accessibility | preserve reading order, alt text/data equivalents for visuals, color-independent meaning, and keyboard navigation where interactive |
16
+
17
+ Common slide sizes:
18
+
19
+ | Surface | Typical frame | Notes |
20
+ |---|---|---|
21
+ | presentation/projector | 16:9, often authored 1920×1080 or 1280×720 | current default in most venues |
22
+ | older projector/template | 4:3 | confirm before reusing master layouts |
23
+ | vertical social video | 9:16, often 1080×1920 | platform UI overlays need separate safe-area review |
24
+ | square embed | 1:1 | simplify hierarchy; avoid dense wide tables |
25
+
26
+ ## Keynote-style craft
27
+
28
+ - Open with context or a visual question, not a logo-only title repeated throughout.
29
+ - Use scale contrast: large decisive statement/visual, restrained supporting text.
30
+ - Prefer image/diagram + spoken explanation over bullet paragraphs.
31
+ - Build complex diagrams in meaningful steps; never use animation as decoration alone.
32
+ - Put code on slides only when the exact line matters. Use large type, high contrast, and limited line length; link/provide full source elsewhere.
33
+ - End sections with orientation or decision, not a generic “Questions?” placeholder.
34
+ - Keep branding consistent but subordinate. Full-bleed color can be powerful when intentional; default corporate blue templates are slop.
35
+
36
+ ## Slidev
37
+
38
+ Slidev uses Markdown-driven slides with Vue ecosystem extensibility. Slides are separated by `---`; the first frontmatter block configures the deck, including fields such as `theme`, `title`, and export/presentation behavior depending on version. Per-slide frontmatter can choose layouts. Vue components and custom themes make it powerful but easy to overbuild.
39
+
40
+ Rules:
41
+
42
+ - keep Markdown content readable even if custom components fail;
43
+ - use presenter notes intentionally rather than hiding essential content in them;
44
+ - pin theme/dependencies and inspect exported PDF/PPTX/PNG behavior with the installed Slidev version;
45
+ - validate syntax highlighting size/contrast and line wrapping;
46
+ - test presenter mode/keyboard navigation if used live.
47
+
48
+ ## reveal.js
49
+
50
+ reveal.js initializes a scalable slide deck in the browser. Current documented sizing defaults include:
51
+
52
+ ```js
53
+ Reveal.initialize({
54
+ width: 960,
55
+ height: 700,
56
+ margin: 0.04,
57
+ minScale: 0.2,
58
+ maxScale: 2.0,
59
+ });
60
+ ```
61
+
62
+ For a 16:9 deck, set an explicit authoring frame such as `width: 1280, height: 720` and tune `margin`, `minScale`, and `maxScale` only after testing target displays. `center: false` prevents vertical recentering when fixed layout matters. `embedded: true` changes sizing for embedded decks and requires explicit layout responsibility.
63
+
64
+ Rules:
65
+
66
+ - test keyboard navigation, fragments, overflow scrolling, PDF export/print stylesheet, speaker view, and browser scaling;
67
+ - do not rely on automatic scaling to rescue overcrowded slides;
68
+ - fragments should reveal logic, not every bullet merely for rhythm;
69
+ - nested/vertical slides need clear navigation purpose.
70
+
71
+ ## Marp
72
+
73
+ Marp uses Markdown with directives in frontmatter, commonly:
74
+
75
+ ```markdown
76
+ ---
77
+ marp: true
78
+ theme: default
79
+ paginate: true
80
+ size: 16:9
81
+ ---
82
+ ```
83
+
84
+ Marp CLI can render/export supported formats depending on installation/version. Rules:
85
+
86
+ - choose or create a theme rather than accepting default typography by accident;
87
+ - use directives consistently (`paginate`, `header`, `footer`, `size`) and inspect actual output;
88
+ - keep Markdown semantic; do not inject fragile HTML/CSS for every slide;
89
+ - test image resolution, math/syntax highlighting, PDF export, and font availability in CI/export containers.
90
+
91
+ ## Export and live verification
92
+
93
+ - inspect slides at 100% authored frame and projected/scaled size;
94
+ - test first/middle/last slides, overflow, long titles, missing images/fonts, offline assets, presenter notes, and laser/pointer contrast;
95
+ - export PDF/PPTX/video using the real pipeline and inspect frame edges;
96
+ - verify embedded fonts/licenses where applicable;
97
+ - use a remote/clicker/keyboard path in live presentation rather than assuming mouse control;
98
+ - label accessibility and export verification honestly (`rendered` versus `not-checked`).
99
+
100
+ ## Anti-slop warnings
101
+
102
+ Reject bullet-only decks, gradient title templates with no content hierarchy, unreadable full-screen screenshots, decorative 3D transitions, six-column agenda fragments, tiny chart axes copied from dashboards, and logo watermarks consuming safe area. Distinctiveness should come from editorial clarity, image choice, scale, timing, and domain-specific visual evidence.
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: pixelcraft-email
3
+ description: Translates Pixelcraft direction, tokens, UX, and floor requirements into email that survives real clients. Use for HTML email, table-based email, MJML, React Email, transactional messages, newsletters, onboarding email, dark mode, image blocking, plaintext parity, accessibility, localization, responsive behavior, client quirks, and deliverability-conscious design.
4
+ license: MIT
5
+ metadata:
6
+ version: 0.1.0
7
+ ---
8
+
9
+ # Pixelcraft email
10
+
11
+ Use this skill when the rendering surface is an email client. Email is not the modern web: CSS support is fragmented, images may be blocked, dark mode may mutate colors, and forwarding/clipping/rendering are outside your control.
12
+
13
+ ## Surface craft
14
+
15
+ Make the subject and opening live text state who sent the message, why it matters and what to do next; use image-led moments only if the same path survives images off. Inspect a sent message in representative clients, with dark mode, narrow width and plain-text fallback. An attractive browser preview does not prove that email clients preserve contrast or links.
16
+
17
+ ## Detection signals
18
+
19
+ `.mjml`, React Email packages/templates, table-heavy HTML email, inline CSS tooling, ESP templates, plaintext templates, MIME generation, email screenshots/previews, localization catalogs.
20
+
21
+ ## Translate direction with constrained fidelity
22
+
23
+ 1. Preserve concept through hierarchy, typography fallback, spacing, real copy, restrained color, and signature structure—not fragile pixel precision.
24
+ 2. Map tokens manually into inline/table-compatible values or generator constants. CSS variables are unreliable across clients.
25
+ 3. Choose implementation: hand-written tables for maximum control, MJML for responsive abstraction, React Email for component workflow. Do not pretend they produce identical client support automatically.
26
+ 4. Design image-off and plaintext as first-class variants, not fallbacks written afterward.
27
+ 5. Use progressive enhancement: modern clients may receive polish; baseline must remain readable/actionable everywhere.
28
+
29
+ ## Platform-wide rules
30
+
31
+ - Primary message and call to action must work without images, custom fonts, background images, animation, JavaScript, forms, or exact viewport control.
32
+ - Use real text for essential copy; meaningful images require concise alt text. Decorative images use empty alt where supported.
33
+ - Maintain plaintext parity: content order, links, dates, cancellation/preferences/legal details, and meaning.
34
+ - Use dark-mode-aware color choices and transparent imagery carefully; test inversion/mutation rather than assuming control.
35
+ - Respect accessibility: semantic-ish heading order where clients permit, readable contrast, target spacing, descriptive links, no image-only content.
36
+ - Account for clipping, forwarding, threading, preview text/preheader, localization expansion, RTL, and plain-text clients.
37
+
38
+ ## Common email failures
39
+
40
+ - beautiful hero image containing all essential copy;
41
+ - CTA relying on background image/border-radius/CSS unsupported in Outlook;
42
+ - white/logotype disappearing in forced dark/light inversion;
43
+ - no plaintext or plaintext generated as raw HTML dump;
44
+ - dense multi-column desktop layout collapsing unpredictably;
45
+ - generic “View in browser” replacing actual resilient design;
46
+ - tracking/privacy/legal footer omitted or unreadable;
47
+ - testing only one modern webmail screenshot.
48
+
49
+ ## Verification options
50
+
51
+ Email can be inspected only by rendering across real clients or preview services. Local HTML render is necessary but insufficient. Validate plaintext, image-off behavior, dark mode, narrow/wide rendering, clipping, forwarding, and accessibility manually or through ESP/client testing tools. Label untested clients explicitly; never claim universal compatibility.
52
+
53
+ ## Framework routing
54
+
55
+ - Read [references/html-tables.md](references/html-tables.md) for hand-authored table-based HTML email.
56
+ - Read [references/mjml.md](references/mjml.md) for MJML.
57
+ - Read [references/react-email.md](references/react-email.md) for React Email.
58
+ - Read [references/client-quirks.md](references/client-quirks.md) whenever targeting Outlook, Gmail, Apple Mail, dark mode, image blocking, clipping, or plaintext behavior.