howone 0.1.20 → 0.1.23

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 (298) hide show
  1. package/package.json +1 -1
  2. package/templates/nextjs/lib/sdk.ts +3 -0
  3. package/templates/vite/.howone/skills/hallmark/LICENSE +21 -0
  4. package/templates/vite/.howone/skills/hallmark/README.md +147 -0
  5. package/templates/vite/.howone/skills/hallmark/ROADMAP.md +201 -0
  6. package/templates/vite/.howone/skills/hallmark/SKILL.md +551 -0
  7. package/templates/vite/.howone/skills/hallmark/docs/recipes.md +186 -0
  8. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-anya.jpg +0 -0
  9. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-bananastudio.jpg +0 -0
  10. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-hyperlane.jpg +0 -0
  11. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-najm.jpg +0 -0
  12. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-slow-pour.jpg +0 -0
  13. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-soroe.jpg +0 -0
  14. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-tally.jpg +0 -0
  15. package/templates/vite/.howone/skills/hallmark/docs/screenshots/hero-wayfare.jpg +0 -0
  16. package/templates/vite/.howone/skills/hallmark/docs/study-examples.md +176 -0
  17. package/templates/vite/.howone/skills/hallmark/docs/talk-slides.md +364 -0
  18. package/templates/vite/.howone/skills/hallmark/package.json +36 -0
  19. package/templates/vite/.howone/skills/hallmark/references/anti-patterns.md +412 -0
  20. package/templates/vite/.howone/skills/hallmark/references/assets.md +399 -0
  21. package/templates/vite/.howone/skills/hallmark/references/color.md +95 -0
  22. package/templates/vite/.howone/skills/hallmark/references/component-cookbook.md +256 -0
  23. package/templates/vite/.howone/skills/hallmark/references/components/c1-outlined-chip.md +12 -0
  24. package/templates/vite/.howone/skills/hallmark/references/components/c2-inline-form-as-cta.md +16 -0
  25. package/templates/vite/.howone/skills/hallmark/references/components/c3-typographic-link.md +8 -0
  26. package/templates/vite/.howone/skills/hallmark/references/components/c4-sticky-bottom-bar.md +16 -0
  27. package/templates/vite/.howone/skills/hallmark/references/components/f1-bento-grid.md +20 -0
  28. package/templates/vite/.howone/skills/hallmark/references/components/f2-sticky-scroll-stack.md +20 -0
  29. package/templates/vite/.howone/skills/hallmark/references/components/f3-tabular-spec-sheet.md +11 -0
  30. package/templates/vite/.howone/skills/hallmark/references/components/f4-step-sequence.md +11 -0
  31. package/templates/vite/.howone/skills/hallmark/references/components/f5-annotated-screenshot.md +11 -0
  32. package/templates/vite/.howone/skills/hallmark/references/components/f6-product-card-grid.md +41 -0
  33. package/templates/vite/.howone/skills/hallmark/references/components/ft1-mast-headed.md +13 -0
  34. package/templates/vite/.howone/skills/hallmark/references/components/ft2-inline-rule-single-line.md +10 -0
  35. package/templates/vite/.howone/skills/hallmark/references/components/ft3-index-style-category-list.md +12 -0
  36. package/templates/vite/.howone/skills/hallmark/references/components/ft4-dense-typographic.md +10 -0
  37. package/templates/vite/.howone/skills/hallmark/references/components/ft5-statement.md +21 -0
  38. package/templates/vite/.howone/skills/hallmark/references/components/ft6-letter-close.md +19 -0
  39. package/templates/vite/.howone/skills/hallmark/references/components/ft7-newsletter-first.md +27 -0
  40. package/templates/vite/.howone/skills/hallmark/references/components/ft8-marquee-scroll.md +25 -0
  41. package/templates/vite/.howone/skills/hallmark/references/components/h1-marquee.md +15 -0
  42. package/templates/vite/.howone/skills/hallmark/references/components/h2-split-diptych.md +15 -0
  43. package/templates/vite/.howone/skills/hallmark/references/components/h3-quote-led.md +11 -0
  44. package/templates/vite/.howone/skills/hallmark/references/components/h4-stat-led.md +14 -0
  45. package/templates/vite/.howone/skills/hallmark/references/components/h5-letter-hero.md +11 -0
  46. package/templates/vite/.howone/skills/hallmark/references/components/h6-photographic-fold.md +16 -0
  47. package/templates/vite/.howone/skills/hallmark/references/components/h7-demo-video-clipped-by-viewport-edge.md +27 -0
  48. package/templates/vite/.howone/skills/hallmark/references/components/h8-mockup-split-browser-framed.md +23 -0
  49. package/templates/vite/.howone/skills/hallmark/references/components/h9-custom-illustration-centerpiece.md +27 -0
  50. package/templates/vite/.howone/skills/hallmark/references/components/n1-wordmark-2-links.md +12 -0
  51. package/templates/vite/.howone/skills/hallmark/references/components/n10-floating-on-scroll-morph.md +19 -0
  52. package/templates/vite/.howone/skills/hallmark/references/components/n2-floating-chip.md +14 -0
  53. package/templates/vite/.howone/skills/hallmark/references/components/n3-side-rail.md +14 -0
  54. package/templates/vite/.howone/skills/hallmark/references/components/n4-hidden-behind-k.md +9 -0
  55. package/templates/vite/.howone/skills/hallmark/references/components/n5-floating-pill.md +28 -0
  56. package/templates/vite/.howone/skills/hallmark/references/components/n6-newspaper-masthead.md +24 -0
  57. package/templates/vite/.howone/skills/hallmark/references/components/n7-brutal-slab.md +22 -0
  58. package/templates/vite/.howone/skills/hallmark/references/components/n8-terminal-command.md +21 -0
  59. package/templates/vite/.howone/skills/hallmark/references/components/n9-edge-aligned-minimal.md +17 -0
  60. package/templates/vite/.howone/skills/hallmark/references/components/s1-left-margin-numbered.md +15 -0
  61. package/templates/vite/.howone/skills/hallmark/references/components/s2-hanging.md +13 -0
  62. package/templates/vite/.howone/skills/hallmark/references/components/s3-sticky-pinned.md +19 -0
  63. package/templates/vite/.howone/skills/hallmark/references/components/s4-inline-no-break.md +11 -0
  64. package/templates/vite/.howone/skills/hallmark/references/components/s5-bottom-anchored.md +13 -0
  65. package/templates/vite/.howone/skills/hallmark/references/components/t1-pull-quote-with-marginalia.md +12 -0
  66. package/templates/vite/.howone/skills/hallmark/references/components/t2-logo-wall-hairline.md +19 -0
  67. package/templates/vite/.howone/skills/hallmark/references/components/t3-single-huge-quote.md +11 -0
  68. package/templates/vite/.howone/skills/hallmark/references/components/t4-numbered-stat-strip.md +14 -0
  69. package/templates/vite/.howone/skills/hallmark/references/contract.md +24 -0
  70. package/templates/vite/.howone/skills/hallmark/references/copy.md +182 -0
  71. package/templates/vite/.howone/skills/hallmark/references/custom-craft.md +626 -0
  72. package/templates/vite/.howone/skills/hallmark/references/custom-theme.md +329 -0
  73. package/templates/vite/.howone/skills/hallmark/references/design-md.md +116 -0
  74. package/templates/vite/.howone/skills/hallmark/references/export-formats.md +328 -0
  75. package/templates/vite/.howone/skills/hallmark/references/floating-nav.md +89 -0
  76. package/templates/vite/.howone/skills/hallmark/references/genres/atmospheric.md +65 -0
  77. package/templates/vite/.howone/skills/hallmark/references/genres/editorial.md +70 -0
  78. package/templates/vite/.howone/skills/hallmark/references/genres/modern-minimal.md +67 -0
  79. package/templates/vite/.howone/skills/hallmark/references/genres/playful.md +65 -0
  80. package/templates/vite/.howone/skills/hallmark/references/hero-enrichment.md +474 -0
  81. package/templates/vite/.howone/skills/hallmark/references/imagery-kit.md +170 -0
  82. package/templates/vite/.howone/skills/hallmark/references/interaction-and-states.md +207 -0
  83. package/templates/vite/.howone/skills/hallmark/references/layout-and-space.md +111 -0
  84. package/templates/vite/.howone/skills/hallmark/references/macrostructures/01-bento-grid.md +35 -0
  85. package/templates/vite/.howone/skills/hallmark/references/macrostructures/02-long-document.md +34 -0
  86. package/templates/vite/.howone/skills/hallmark/references/macrostructures/03-marquee-hero.md +31 -0
  87. package/templates/vite/.howone/skills/hallmark/references/macrostructures/04-stat-led.md +32 -0
  88. package/templates/vite/.howone/skills/hallmark/references/macrostructures/05-workbench.md +32 -0
  89. package/templates/vite/.howone/skills/hallmark/references/macrostructures/06-conversational-faq.md +33 -0
  90. package/templates/vite/.howone/skills/hallmark/references/macrostructures/07-manifesto.md +32 -0
  91. package/templates/vite/.howone/skills/hallmark/references/macrostructures/08-photographic.md +34 -0
  92. package/templates/vite/.howone/skills/hallmark/references/macrostructures/09-quote-led.md +32 -0
  93. package/templates/vite/.howone/skills/hallmark/references/macrostructures/10-specimen.md +32 -0
  94. package/templates/vite/.howone/skills/hallmark/references/macrostructures/11-catalogue.md +23 -0
  95. package/templates/vite/.howone/skills/hallmark/references/macrostructures/12-letter.md +23 -0
  96. package/templates/vite/.howone/skills/hallmark/references/macrostructures/13-index-first.md +23 -0
  97. package/templates/vite/.howone/skills/hallmark/references/macrostructures/14-narrative-workflow.md +23 -0
  98. package/templates/vite/.howone/skills/hallmark/references/macrostructures/15-split-studio.md +23 -0
  99. package/templates/vite/.howone/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
  100. package/templates/vite/.howone/skills/hallmark/references/macrostructures/17-type-specimen.md +23 -0
  101. package/templates/vite/.howone/skills/hallmark/references/macrostructures/18-portfolio-grid.md +23 -0
  102. package/templates/vite/.howone/skills/hallmark/references/macrostructures/19-map-diagram.md +23 -0
  103. package/templates/vite/.howone/skills/hallmark/references/macrostructures/20-ecosystem-index.md +23 -0
  104. package/templates/vite/.howone/skills/hallmark/references/macrostructures/21-component-playground.md +23 -0
  105. package/templates/vite/.howone/skills/hallmark/references/macrostructures.md +89 -0
  106. package/templates/vite/.howone/skills/hallmark/references/microinteractions.md +260 -0
  107. package/templates/vite/.howone/skills/hallmark/references/motion.md +109 -0
  108. package/templates/vite/.howone/skills/hallmark/references/preview-examples.md +49 -0
  109. package/templates/vite/.howone/skills/hallmark/references/responsive.md +138 -0
  110. package/templates/vite/.howone/skills/hallmark/references/slop-test.md +205 -0
  111. package/templates/vite/.howone/skills/hallmark/references/structure.md +164 -0
  112. package/templates/vite/.howone/skills/hallmark/references/study.md +486 -0
  113. package/templates/vite/.howone/skills/hallmark/references/typography.md +243 -0
  114. package/templates/vite/.howone/skills/hallmark/references/verbs/audit.md +25 -0
  115. package/templates/vite/.howone/skills/hallmark/references/verbs/redesign.md +269 -0
  116. package/templates/vite/.howone/skills/hallmark/site/OG-hallmark.png +0 -0
  117. package/templates/vite/.howone/skills/hallmark/site/_tests/01-tide-podcast/brief.md +71 -0
  118. package/templates/vite/.howone/skills/hallmark/site/_tests/01-tide-podcast/index.html +64 -0
  119. package/templates/vite/.howone/skills/hallmark/site/_tests/01-tide-podcast/style.css +240 -0
  120. package/templates/vite/.howone/skills/hallmark/site/_tests/02-streampipe-cli/brief.md +65 -0
  121. package/templates/vite/.howone/skills/hallmark/site/_tests/02-streampipe-cli/index.html +105 -0
  122. package/templates/vite/.howone/skills/hallmark/site/_tests/02-streampipe-cli/style.css +250 -0
  123. package/templates/vite/.howone/skills/hallmark/site/_tests/03-maple-bakery/brief.md +64 -0
  124. package/templates/vite/.howone/skills/hallmark/site/_tests/03-maple-bakery/index.html +131 -0
  125. package/templates/vite/.howone/skills/hallmark/site/_tests/03-maple-bakery/style.css +240 -0
  126. package/templates/vite/.howone/skills/hallmark/site/_tests/04-meridian-manifesto/brief.md +67 -0
  127. package/templates/vite/.howone/skills/hallmark/site/_tests/04-meridian-manifesto/index.html +86 -0
  128. package/templates/vite/.howone/skills/hallmark/site/_tests/04-meridian-manifesto/style.css +262 -0
  129. package/templates/vite/.howone/skills/hallmark/site/_tests/05-tracejam-saas/brief.md +63 -0
  130. package/templates/vite/.howone/skills/hallmark/site/_tests/05-tracejam-saas/index.html +167 -0
  131. package/templates/vite/.howone/skills/hallmark/site/_tests/05-tracejam-saas/style.css +457 -0
  132. package/templates/vite/.howone/skills/hallmark/site/_tests/06-anya-portfolio/brief.md +65 -0
  133. package/templates/vite/.howone/skills/hallmark/site/_tests/06-anya-portfolio/index.html +159 -0
  134. package/templates/vite/.howone/skills/hallmark/site/_tests/06-anya-portfolio/style.css +288 -0
  135. package/templates/vite/.howone/skills/hallmark/site/_tests/07-foundry-compliance/brief.md +64 -0
  136. package/templates/vite/.howone/skills/hallmark/site/_tests/07-foundry-compliance/index.html +146 -0
  137. package/templates/vite/.howone/skills/hallmark/site/_tests/07-foundry-compliance/style.css +484 -0
  138. package/templates/vite/.howone/skills/hallmark/site/_tests/08-cohort-courses/brief.md +64 -0
  139. package/templates/vite/.howone/skills/hallmark/site/_tests/08-cohort-courses/index.html +116 -0
  140. package/templates/vite/.howone/skills/hallmark/site/_tests/08-cohort-courses/style.css +354 -0
  141. package/templates/vite/.howone/skills/hallmark/site/_tests/09-slow-pour/index.html +638 -0
  142. package/templates/vite/.howone/skills/hallmark/site/_tests/10-owl-hours/index.html +515 -0
  143. package/templates/vite/.howone/skills/hallmark/site/_tests/11-soroe-ceramics/index.html +515 -0
  144. package/templates/vite/.howone/skills/hallmark/site/_tests/12-loafer/index.html +608 -0
  145. package/templates/vite/.howone/skills/hallmark/site/_tests/13-alma/index.html +587 -0
  146. package/templates/vite/.howone/skills/hallmark/site/_tests/README.md +157 -0
  147. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/BananaStudio-loop.mp4 +0 -0
  148. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/BananaStudio-still.jpg +0 -0
  149. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Hyperlane-example.mp4 +0 -0
  150. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Hyperlane-still.jpg +0 -0
  151. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Najm-loop.mp4 +0 -0
  152. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Najm-still.jpg +0 -0
  153. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Podcast-loop.mp4 +0 -0
  154. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/SaaS-loop.mp4 +0 -0
  155. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/SaaS-still.jpg +0 -0
  156. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Soroe-loop.mp4 +0 -0
  157. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/Soroe-still.jpg +0 -0
  158. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/after-quiet-hour.png +0 -0
  159. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/anya-loop.mp4 +0 -0
  160. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/anya-still.jpg +0 -0
  161. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/audit-example.png +0 -0
  162. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/before-quiet-hour.png +0 -0
  163. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/example-redesign-uractivation.png +0 -0
  164. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/slow-pour-loop.mp4 +0 -0
  165. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/slow-pour-still.jpg +0 -0
  166. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/study-example.png +0 -0
  167. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/uractivation-after-loop.mp4 +0 -0
  168. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/wayfare-loop.mp4 +0 -0
  169. package/templates/vite/.howone/skills/hallmark/site/_tests/_thumbs/wayfare-still.jpg +0 -0
  170. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/01-coffeebox/index.html +77 -0
  171. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/01-coffeebox/style.css +238 -0
  172. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/02-loop/index.html +110 -0
  173. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/02-loop/style.css +326 -0
  174. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/03-mossroot/index.html +134 -0
  175. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/03-mossroot/style.css +262 -0
  176. package/templates/vite/.howone/skills/hallmark/site/_tests/custom/README.md +30 -0
  177. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/README.md +17 -0
  178. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/audit/audit-report.md +56 -0
  179. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/audit/input.html +160 -0
  180. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/audit/notes.md +29 -0
  181. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/redesign/input.html +63 -0
  182. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/redesign/notes.md +72 -0
  183. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/redesign/output.html +374 -0
  184. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/study/diagnosis.md +52 -0
  185. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/study/input-description.md +29 -0
  186. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/study/notes.md +61 -0
  187. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/study/output.css +193 -0
  188. package/templates/vite/.howone/skills/hallmark/site/_tests/verbs/study/output.html +66 -0
  189. package/templates/vite/.howone/skills/hallmark/site/css/base.css +194 -0
  190. package/templates/vite/.howone/skills/hallmark/site/css/components.css +4886 -0
  191. package/templates/vite/.howone/skills/hallmark/site/css/sections.css +2072 -0
  192. package/templates/vite/.howone/skills/hallmark/site/css/tokens.css +1129 -0
  193. package/templates/vite/.howone/skills/hallmark/site/examples/bananastudio/index.html +475 -0
  194. package/templates/vite/.howone/skills/hallmark/site/examples/bananastudio/styles.css +1584 -0
  195. package/templates/vite/.howone/skills/hallmark/site/examples/bananastudio/tokens.css +96 -0
  196. package/templates/vite/.howone/skills/hallmark/site/examples/hyperlane/index.html +344 -0
  197. package/templates/vite/.howone/skills/hallmark/site/examples/hyperlane/script.js +103 -0
  198. package/templates/vite/.howone/skills/hallmark/site/examples/hyperlane/styles.css +1103 -0
  199. package/templates/vite/.howone/skills/hallmark/site/examples/hyperlane/tokens.css +83 -0
  200. package/templates/vite/.howone/skills/hallmark/site/examples/najm/index.html +368 -0
  201. package/templates/vite/.howone/skills/hallmark/site/examples/najm/script.js +133 -0
  202. package/templates/vite/.howone/skills/hallmark/site/examples/najm/styles.css +1062 -0
  203. package/templates/vite/.howone/skills/hallmark/site/examples/najm/tokens.css +97 -0
  204. package/templates/vite/.howone/skills/hallmark/site/examples/tally/app.js +84 -0
  205. package/templates/vite/.howone/skills/hallmark/site/examples/tally/index.html +446 -0
  206. package/templates/vite/.howone/skills/hallmark/site/examples/tally/styles.css +1087 -0
  207. package/templates/vite/.howone/skills/hallmark/site/examples/tally/tokens.css +101 -0
  208. package/templates/vite/.howone/skills/hallmark/site/examples/wayfare/index.html +359 -0
  209. package/templates/vite/.howone/skills/hallmark/site/examples/wayfare/style.css +1168 -0
  210. package/templates/vite/.howone/skills/hallmark/site/examples/wayfare/tokens.css +81 -0
  211. package/templates/vite/.howone/skills/hallmark/site/favicon-dark.svg +5 -0
  212. package/templates/vite/.howone/skills/hallmark/site/favicon-light.svg +5 -0
  213. package/templates/vite/.howone/skills/hallmark/site/index.html +1043 -0
  214. package/templates/vite/.howone/skills/hallmark/site/js/main.js +1175 -0
  215. package/templates/vite/.howone/skills/hallmark/vercel.json +6 -0
  216. package/templates/vite/.howone/skills/howone-sdk/01-architect/01-app-generation.md +126 -0
  217. package/templates/vite/.howone/skills/howone-sdk/{references/08-manifest-codegen.md → 01-architect/02-manifest-codegen.md} +31 -19
  218. package/templates/vite/.howone/skills/howone-sdk/02-database/01-schema-design.md +147 -0
  219. package/templates/vite/.howone/skills/howone-sdk/02-database/02-schema-operations.md +96 -0
  220. package/templates/vite/.howone/skills/howone-sdk/02-database/03-data-access-patterns.md +172 -0
  221. package/templates/vite/.howone/skills/howone-sdk/{references → 03-sdk}/01-client-setup.md +3 -3
  222. package/templates/vite/.howone/skills/howone-sdk/{references/04-auth.md → 03-sdk/03-auth.md} +120 -3
  223. package/templates/vite/.howone/skills/howone-sdk/{references/06-react-integration.md → 03-sdk/04-react-integration.md} +2 -4
  224. package/templates/vite/.howone/skills/howone-sdk/{references/03-ai-actions.md → 03-sdk/07-ai-action-calls.md} +31 -34
  225. package/templates/vite/.howone/skills/howone-sdk/04-ai/.gitkeep +1 -0
  226. package/templates/vite/.howone/skills/howone-sdk/04-ai/01-ai-capability-architecture.md +142 -0
  227. package/templates/vite/.howone/skills/howone-sdk/04-ai/02-workflow-contract-rules.md +169 -0
  228. package/templates/vite/.howone/skills/howone-sdk/04-ai/03-ai-sdk-handoff.md +80 -0
  229. package/templates/vite/.howone/skills/howone-sdk/SKILL.md +118 -93
  230. package/templates/vite/.howone/skills/howone-sdk/agents/openai.yaml +3 -3
  231. package/templates/vite/.howone/skills/impeccable/SKILL.md +168 -0
  232. package/templates/vite/.howone/skills/impeccable/agents/impeccable-asset-producer.md +101 -0
  233. package/templates/vite/.howone/skills/impeccable/reference/adapt.md +190 -0
  234. package/templates/vite/.howone/skills/impeccable/reference/animate.md +175 -0
  235. package/templates/vite/.howone/skills/impeccable/reference/audit.md +133 -0
  236. package/templates/vite/.howone/skills/impeccable/reference/bolder.md +113 -0
  237. package/templates/vite/.howone/skills/impeccable/reference/brand.md +118 -0
  238. package/templates/vite/.howone/skills/impeccable/reference/clarify.md +174 -0
  239. package/templates/vite/.howone/skills/impeccable/reference/codex.md +105 -0
  240. package/templates/vite/.howone/skills/impeccable/reference/cognitive-load.md +106 -0
  241. package/templates/vite/.howone/skills/impeccable/reference/color-and-contrast.md +105 -0
  242. package/templates/vite/.howone/skills/impeccable/reference/colorize.md +154 -0
  243. package/templates/vite/.howone/skills/impeccable/reference/craft.md +123 -0
  244. package/templates/vite/.howone/skills/impeccable/reference/critique.md +273 -0
  245. package/templates/vite/.howone/skills/impeccable/reference/delight.md +302 -0
  246. package/templates/vite/.howone/skills/impeccable/reference/distill.md +111 -0
  247. package/templates/vite/.howone/skills/impeccable/reference/document.md +427 -0
  248. package/templates/vite/.howone/skills/impeccable/reference/extract.md +69 -0
  249. package/templates/vite/.howone/skills/impeccable/reference/harden.md +347 -0
  250. package/templates/vite/.howone/skills/impeccable/reference/heuristics-scoring.md +234 -0
  251. package/templates/vite/.howone/skills/impeccable/reference/interaction-design.md +195 -0
  252. package/templates/vite/.howone/skills/impeccable/reference/layout.md +141 -0
  253. package/templates/vite/.howone/skills/impeccable/reference/live.md +622 -0
  254. package/templates/vite/.howone/skills/impeccable/reference/motion-design.md +109 -0
  255. package/templates/vite/.howone/skills/impeccable/reference/onboard.md +234 -0
  256. package/templates/vite/.howone/skills/impeccable/reference/optimize.md +258 -0
  257. package/templates/vite/.howone/skills/impeccable/reference/overdrive.md +130 -0
  258. package/templates/vite/.howone/skills/impeccable/reference/personas.md +179 -0
  259. package/templates/vite/.howone/skills/impeccable/reference/polish.md +242 -0
  260. package/templates/vite/.howone/skills/impeccable/reference/product.md +62 -0
  261. package/templates/vite/.howone/skills/impeccable/reference/quieter.md +99 -0
  262. package/templates/vite/.howone/skills/impeccable/reference/responsive-design.md +114 -0
  263. package/templates/vite/.howone/skills/impeccable/reference/shape.md +165 -0
  264. package/templates/vite/.howone/skills/impeccable/reference/spatial-design.md +100 -0
  265. package/templates/vite/.howone/skills/impeccable/reference/teach.md +156 -0
  266. package/templates/vite/.howone/skills/impeccable/reference/typeset.md +124 -0
  267. package/templates/vite/.howone/skills/impeccable/reference/typography.md +159 -0
  268. package/templates/vite/.howone/skills/impeccable/reference/ux-writing.md +107 -0
  269. package/templates/vite/.howone/skills/impeccable/scripts/cleanup-deprecated.mjs +284 -0
  270. package/templates/vite/.howone/skills/impeccable/scripts/command-metadata.json +94 -0
  271. package/templates/vite/.howone/skills/impeccable/scripts/critique-storage.mjs +242 -0
  272. package/templates/vite/.howone/skills/impeccable/scripts/design-parser.mjs +820 -0
  273. package/templates/vite/.howone/skills/impeccable/scripts/detect-csp.mjs +198 -0
  274. package/templates/vite/.howone/skills/impeccable/scripts/detect.mjs +21 -0
  275. package/templates/vite/.howone/skills/impeccable/scripts/impeccable-paths.mjs +110 -0
  276. package/templates/vite/.howone/skills/impeccable/scripts/is-generated.mjs +69 -0
  277. package/templates/vite/.howone/skills/impeccable/scripts/live-accept.mjs +595 -0
  278. package/templates/vite/.howone/skills/impeccable/scripts/live-browser-session.js +123 -0
  279. package/templates/vite/.howone/skills/impeccable/scripts/live-browser.js +4860 -0
  280. package/templates/vite/.howone/skills/impeccable/scripts/live-complete.mjs +75 -0
  281. package/templates/vite/.howone/skills/impeccable/scripts/live-completion.mjs +18 -0
  282. package/templates/vite/.howone/skills/impeccable/scripts/live-inject.mjs +446 -0
  283. package/templates/vite/.howone/skills/impeccable/scripts/live-poll.mjs +200 -0
  284. package/templates/vite/.howone/skills/impeccable/scripts/live-resume.mjs +48 -0
  285. package/templates/vite/.howone/skills/impeccable/scripts/live-server.mjs +838 -0
  286. package/templates/vite/.howone/skills/impeccable/scripts/live-session-store.mjs +254 -0
  287. package/templates/vite/.howone/skills/impeccable/scripts/live-status.mjs +47 -0
  288. package/templates/vite/.howone/skills/impeccable/scripts/live-wrap.mjs +632 -0
  289. package/templates/vite/.howone/skills/impeccable/scripts/live.mjs +247 -0
  290. package/templates/vite/.howone/skills/impeccable/scripts/load-context.mjs +141 -0
  291. package/templates/vite/.howone/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
  292. package/templates/vite/.howone/skills/impeccable/scripts/pin.mjs +214 -0
  293. package/templates/vite/AGENTS.md +2 -12
  294. package/templates/vite/package.json +1 -1
  295. package/templates/vite/src/lib/sdk.ts +3 -0
  296. /package/templates/vite/.howone/skills/howone-sdk/{references → 03-sdk}/02-entity-operations.md +0 -0
  297. /package/templates/vite/.howone/skills/howone-sdk/{references → 03-sdk}/05-file-upload.md +0 -0
  298. /package/templates/vite/.howone/skills/howone-sdk/{references/07-raw-http.md → 03-sdk/06-raw-http.md} +0 -0
@@ -0,0 +1,486 @@
1
+ # Study — extracting design DNA from a screenshot or URL
2
+
3
+ This file is loaded when the `hallmark study` verb runs. It defines the protocol for reading a reference the user supplied — either a screenshot they attached or a URL to a live page — naming what makes it work, and producing a *diagnosis report* the user can accept or amend before any code is built.
4
+
5
+ **The promise.** `study` extracts the **DNA** of a design — its macrostructure, its component archetypes, its type-pairing, its colour anchor, its rhythm — and lets the user apply that DNA to their own content. It does not copy pixels. It does not output a façade of the source.
6
+
7
+ **The mental model.** A designer who likes a reference site does not photocopy it. They look at it long enough to say "ah — that's a Marquee Hero with a single column body, italic-editorial display paired with monospace labels, anchored on a desaturated forest green at maybe 3 % footprint, with hairline rules and one orchestrated entrance." Then they go build something *different* with the same skeleton. That sentence is what `study` outputs. The build is what `default` or `redesign` does after.
8
+
9
+ ---
10
+
11
+ ## Source mode — image or URL
12
+
13
+ `study` accepts **either** an image (a screenshot the user attached) **or** a URL to a live page. Same verb, same diagnosis output, different signal sources. Detection is automatic: if the user's input starts with `http://` or `https://` → URL mode; anything else (an attached image, a pasted capture) → image mode.
14
+
15
+ The two modes share the schema, the refusal heuristics, and the diagnosis-report shape. They differ on what each step of the protocol can know:
16
+
17
+ | Step | Image mode | URL mode |
18
+ | --- | --- | --- |
19
+ | 1 Surface | colour bands and footprint, estimated by eye | exact OKLCH / hex / rgb values pulled from CSS custom properties and `:root` declarations |
20
+ | 2 Type | *roles only* — "italic editorial serif" | roles **plus exact font names** when the page declares them via `@font-face`, Google Fonts `<link>`, `next/font`, or hard-coded `font-family` |
21
+ | 3 Structure | inferred from visible regions | inferred from real DOM (`<nav>`, `<section>`, `<main>`, `<footer>`, semantic tags) |
22
+ | 4 Motion | usually "not visible — assuming default reveals" | observable — read from `<script src>` tags (framer-motion, gsap, lottie-web, lenis, motion) and CSS `@keyframes` / `transition` declarations |
23
+ | 5 Rhythm | observable directly from the visual gestalt | **not observable** — HTML alone can't tell you density / asymmetry / pacing. Mark this as a known blind spot in the diagnosis. |
24
+
25
+ URL mode trades the rhythm pass for everything else getting more accurate. If rhythm is what the user wants extracted, they should attach a screenshot instead — or alongside the URL, but Hallmark still defaults to one source at a time (see the "One screenshot, one diagnosis" rule in § Limits).
26
+
27
+ ### URL mode — fetch pipeline
28
+
29
+ When the input is a URL:
30
+
31
+ 1. **URL refusal check.** Run the URL refuse list in § Refusal **before fetching anything**. Auto-refuse on a domain match. Marketplaces and template demos don't get a WebFetch call at all.
32
+ 2. **Fetch.** Use the WebFetch tool on the URL. Ask for the rendered HTML plus any linked stylesheets referenced via `<link rel="stylesheet">`. If WebFetch can only return one consolidated response, ask for "the full HTML source plus the contents of any `<style>` blocks and `:root` token declarations."
33
+ 3. **Junk-or-blocked check.** Decide if the fetch was useful using the heuristics in § Junk-or-blocked detection below. If the page is auth-walled, an empty SPA shell, or otherwise un-readable, fall back to asking the user for a screenshot. Do not silently degrade.
34
+ 4. **Extract.** Run the five-step protocol against the HTML / CSS payload. Every step except Rhythm produces concrete values; Rhythm is marked `unknown (URL mode)` in the schema and called out as a blind spot in the diagnosis.
35
+ 5. **Schema + diagnosis.** Fill the schema (URL-mode fields noted inline in § The structured fields). Emit the diagnosis using the URL-mode template variant in § The diagnosis report.
36
+
37
+ ### Junk-or-blocked detection
38
+
39
+ After WebFetch returns, decide if the payload is usable. Any one of these signals triggers the screenshot fallback:
40
+
41
+ | Signal | What it means |
42
+ | --- | --- |
43
+ | HTML contains `<input type="password">` or `<form action="/login">` *and* total visible text < 500 chars | Auth wall — the page didn't render past the login |
44
+ | `<body>` text content < 200 chars *and* the page has a `<div id="root">`, `<div id="__next">`, `<div id="app">`, or similar SPA mount node | Client-rendered SPA — WebFetch only saw the JS shell |
45
+ | HTTP status was non-2xx, or WebFetch returned an error | The URL didn't resolve / blocked the request |
46
+ | No `<link rel="stylesheet">`, no `<style>` blocks, no inline `style=` attributes | The page has no usable styling signal — typically a robots-blocked or CDN-blocked response |
47
+ | The fetched HTML is < 1 KB total | The origin returned a minimal stub, not the real page |
48
+
49
+ **Fallback message** (use this verbatim, swap the bracketed reason):
50
+
51
+ > *I tried to read this URL but [the page is behind a login / it's a client-rendered SPA and only the JS shell came back / the URL didn't respond / there's no styling signal in the response]. Could you paste a screenshot instead? `study` works equally well from images — URL mode just needs the page to render server-side.*
52
+
53
+ A half-blind diagnosis is worse than asking once. If type, colour, AND structure can't all be extracted, fall back.
54
+
55
+ ---
56
+
57
+ ## Refusal — when not to study
58
+
59
+ Run this check **before** extracting anything. If any of the following is true, refuse politely and offer an alternative.
60
+
61
+ | If the screenshot is… | Then… |
62
+ | --- | --- |
63
+ | A paid template marketplace listing (ThemeForest, Gumroad templates, Webflow templates, Framer templates, Notion templates) | Refuse. Suggest: "Tell me what you like about it and I'll build with `hallmark default` instead." |
64
+ | A live competitor's marketing page where the user's intent is replication | Refuse. Suggest: "I can extract the structural pattern but won't reproduce a competitor's surface. Would the pattern alone be useful?" |
65
+ | A famous designer's signature work (Pentagram project pages, Klim foundry specimens, Mathieu Triay's portfolio, etc.) being treated as a template | Soft-refuse. Acknowledge the source by name, extract DNA only, and refuse to copy distinctive choices that read as that designer's signature. |
66
+ | Copyrighted artwork, photography, or illustrations as the design's centerpiece | Refuse to reproduce the artwork. The DNA can still be extracted (the *fact* that the page uses one big image as its hero is structural; the specific image is not). |
67
+ | A user's own previous work | Proceed. |
68
+ | A public reference site the user is using for inspiration on their own brand | Proceed. State the source if known. |
69
+ | Anything ambiguous | **Ask once:** *"Is this your own work, a public reference, or someone else's live site? If it's a competitor or a marketplace template, I'll skip the build and just give you the diagnosis."* |
70
+
71
+ **Never** silently proceed when you suspect the screenshot is a marketplace listing or a competitor. The user must explicitly confirm. The cost of asking is low; the cost of building a knockoff is reputational.
72
+
73
+ ### URL refuse list (auto-refuse on domain match)
74
+
75
+ In URL mode, run this **before** WebFetch fires — don't even fetch the page. If the URL matches any pattern, refuse and offer the redirect.
76
+
77
+ | If the URL host / path is… | Then… |
78
+ | --- | --- |
79
+ | `themeforest.net/*`, `templatemonster.com/*`, `themely.com/*` (paid template marketplaces) | Refuse. *"This looks like a template marketplace listing. I won't study it. Tell me what about it you like and I'll build with `hallmark default` instead."* |
80
+ | `framer.com/templates/*`, `*.framer.website` (Framer marketplace + template demos), `webflow.com/templates/*` (Webflow templates) | Refuse same as above — these are the marketplace ecosystem by another name. |
81
+ | `gumroad.com/*` where the page is selling a UI kit or template (heuristic: `og:type=product` plus *template*, *UI kit*, *starter*, *bundle* in the title) | Refuse. |
82
+ | `dribbble.com/shots/*`, `behance.net/gallery/*` (designer presentation work) | Soft-refuse. *"These are individual designers' presentation pieces — I'll extract DNA only, not reproduce signature choices. If a specific designer's voice resonates, tell me what about it does."* |
83
+ | Any URL the user discloses as a direct competitor | Refuse the build. *"I'll extract the structural pattern but won't reproduce a competitor's surface. Would the pattern alone be useful?"* |
84
+ | Anything ambiguous (an unfamiliar agency page, a personal portfolio, an unknown SaaS) | **Ask once:** *"Is this your own site, a public reference you admire, or a competitor? If competitor or marketplace, I'll skip the build and give you the diagnosis only."* |
85
+
86
+ The image-mode refusal rules above still apply by analogy in URL mode — if the page reads as signature work from a known designer, soft-refuse the same way.
87
+
88
+ ---
89
+
90
+ ## The five-step protocol
91
+
92
+ Read the source in this order. Each step builds on the previous; do not skip ahead. In image mode, "read" means a vision pass on the attached capture. In URL mode, "read" means parsing the WebFetch'd HTML plus any inlined or linked CSS. Where the two modes differ, the step calls it out explicitly.
93
+
94
+ ### Step 1 — Surface
95
+
96
+ Before reading any text, look at the page's *colour temperament*.
97
+
98
+ - **Paper lightness band.** Is the background dark (L < 30 %), light (L > 85 %), or mid (between)?
99
+ - **Paper hue.** Does the background tilt warm (yellow/orange/red, hue 30–90), cool (blue/indigo, 220–290), neutral-warm (slight 60–80), neutral-cool (slight 240–270), or chromatic (clearly purple/green/etc.)?
100
+ - **Anchor accent hue.** What single colour appears as accent — links, marks, buttons, small flourishes? Estimate the hue band: warm-red (10–30), orange (40–60), yellow (80–110), green (130–160), teal (180–210), cyan-blue (210–240), indigo (260–290), magenta (300–340), neutral (no chromatic accent — just ink-on-paper).
101
+ - **Accent footprint.** Is the accent a small mark (≤ 5 % of viewport), a recurring underline (5–15 %), or a flood (large blocks, > 15 %)? This dictates how loud the page is.
102
+ - **Distinctive treatments.** Off-register text-shadow (riso), grain overlay, glassmorphism, dark-mode-with-lightness-elevation, paper texture? Note them.
103
+
104
+ **URL mode override.** Pull paper and accent values directly from the fetched CSS. Look for `:root` blocks, `--color-*` / `--bg-*` / `--accent-*` / `--brand-*` custom properties, and the `background-color` / `color` declared on `body`, `main`, and primary buttons / links. Record both the band (for the schema's `paper_band` / `accent_hue_band` fields) **and** the exact value (record it in the schema's `paper_value` / `accent_value` fields — these only exist in URL mode). If the page uses Tailwind, look at the `bg-*` / `text-*` utility classes on `<body>` and primary actions and map them back to the theme.
105
+
106
+ ### Step 2 — Type
107
+
108
+ Read the type *roles*. In image mode, you do not name typefaces — you'll be wrong about half the time. In URL mode, you **do** name typefaces — the page tells you.
109
+
110
+ Pick the role each face is playing:
111
+
112
+ - **Display role.** What is carrying the headline? Pick from: *italic editorial serif · roman editorial serif · heavy condensed sans · soft geometric sans · expressive variable sans · monospace · pixel · ornamental script*.
113
+ - **Body role.** What is carrying the prose? *roman serif · italic serif · neutral grotesque · soft geometric sans · monospace*.
114
+ - **Label role.** What is carrying eyebrows, captions, micro-labels? *small-caps serif · monospace · uppercase grotesque · italic body · none (no labels visible)*.
115
+ - **Pairing logic.** Same family with weight/italic split, or two different families? If two, what's the contrast — *editorial serif + grotesque body, mono labels* (the modern editorial agency look), or *condensed display + body sans + mono labels* (technical), etc.?
116
+ - **Display weight.** Light (≤ 300), regular (400–500), heavy (700+), extra-bold (800+).
117
+
118
+ **Image mode rule.** Do not write "this is Söhne" or "this is Inter". Write "this is a neutral grotesque body" and propose 1–2 candidates from the canon in the diagnosis.
119
+
120
+ **URL mode override.** Read the actual font declarations. The sources, in order of reliability:
121
+
122
+ 1. `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=…">` — names the Google Fonts loaded. Authoritative.
123
+ 2. `@font-face { font-family: "…"; src: url(…) }` in CSS — names self-hosted faces. Authoritative.
124
+ 3. `next/font` imports in the HTML's preloaded fonts (`<link rel="preload" as="font" href="/_next/static/media/…woff2">` with a `data-font-family` hint, or referenced in inlined `<style>`). Reliable.
125
+ 4. Hard-coded `font-family: "Geist", system-ui, sans-serif` declarations on `body`, `h1`, etc. Authoritative for what's *intended*, even if the font isn't actually loaded.
126
+
127
+ When URL mode names a face, still record the role (the role is what travels into the rebuilt page), and record the name as a side fact. The schema gets both: `display_role: "neutral grotesque"` AND `display_face: "Inter"`. The diagnosis report can then say *"the page loads Inter Tight for display and Inter for body — both neutral grotesques."*
128
+
129
+ ### Step 3 — Structure
130
+
131
+ Match the page to one of the twenty-one named macrostructures in [`macrostructures.md`](macrostructures.md). Pick the *closest*; if it's between two, name both and say which it leans toward.
132
+
133
+ For each section visible in the source, also pick an archetype from [`component-cookbook.md`](component-cookbook.md):
134
+
135
+ - **Hero** → H1–H6 (or F6 for product-led pages).
136
+ - **Pitch / first content block** → F1–F5 (or F6 for catalogue).
137
+ - **Testimonial / proof** (if visible) → T1–T4.
138
+ - **Footer** → Ft1–Ft4.
139
+
140
+ For each archetype, also pick **variation knobs** from the cookbook's variation-knob table. *"H2 Split Diptych · ratio=7/5 · right-side=proof column · divider=hairline."* The knobs are what distinguishes one Bento from another; capturing them is what makes the diagnosis useful.
141
+
142
+ **URL mode override.** Read the DOM directly. Count `<section>` / `<article>` / `<main>` blocks. Inspect the first one for hero-archetype tells (is there a single `<h1>` + `<p>` + `<a class="…btn…">` → H1 Marquee; is there a `grid-cols-2` wrapper around the hero → H2 Split; is there an `<img>` with `object-cover` filling the hero → H6 Photographic). Inspect the `<nav>` for its archetype (count links; check for a logo + 4–5 inline links + button-right → N1 Standard; floating `position: fixed` with rounded-full → N5 Floating pill). Inspect the `<footer>` for its archetype (4 column grid + social row → Ft3 Index; one big statement line → Ft5; minimal copyright row → Ft1). The DOM is concrete — use it.
143
+
144
+ ### Step 4 — Motion
145
+
146
+ **Image mode.** If the screenshot is static, skip this section but note: *"motion not visible in static capture — assuming default reveals."* If the screenshot is animated (a GIF, a recorded screen, or the user describes the motion in text), record the reveal / easing / microinteraction tells described below.
147
+
148
+ **URL mode override.** Motion is observable from the page's scripts and CSS. Read these signals:
149
+
150
+ - `<script src="…framer-motion…">`, `<script src="…gsap…">`, `<script src="…lottie-web…">`, `<script src="…lenis…">`, `<script src="…motion@…">` → record the motion library in use.
151
+ - CSS `@keyframes` blocks → name them (e.g. `fade-up`, `marquee`, `reveal`), and note which selectors apply them.
152
+ - CSS `transition: all …` declarations → flag as the *transition-all* anti-pattern.
153
+ - CSS `transform: scale(1.05)` on `:hover` → flag as the hover-scale anti-pattern.
154
+ - `<script>` blocks referencing `IntersectionObserver` with class toggles → record as scroll-triggered reveal.
155
+
156
+ Then categorise:
157
+
158
+ - **Reveal pattern.** None · fade-up stagger · horizontal sweep · type-unmask · number-tick · typewriter.
159
+ - **Easing voice.** Conservative (ease-out exponential) · physical (slight overshoot, drag-release) · none.
160
+ - **Microinteraction tells.** Bouncy hovers, transition-all, hover-scale on cards, gradient hover sweeps — flag any. These are anti-patterns to *not* carry forward.
161
+
162
+ ### Step 5 — Rhythm
163
+
164
+ The hardest one. Look at the *density and pacing*:
165
+
166
+ - **Section padding rhythm.** Equal across sections (templated) or varied (intentional)?
167
+ - **Heading-to-body ratio.** Short heading + long body (editorial) · long heading + short body (declarative) · roughly equal (technical / utilitarian)?
168
+ - **Negative space discipline.** Generous (luxury / atelier / specimen) · medium (modern editorial) · dense (newsprint / catalogue / index)?
169
+ - **Asymmetry.** Centred symmetric (formal, Apple-product-page energy) · left-biased (editorial) · right-biased (rare, atelier-like) · asymmetric grid spans (specimen, bento)?
170
+
171
+ **URL mode override.** Rhythm is the one step URL mode can't carry. HTML can tell you a section has `padding: 8rem 0` but not whether the *visual rhythm* of that 8rem reads generous or templated next to its neighbours — that's a gestalt judgement. Record what the CSS literally declares (padding values, gap values, grid-template-columns ratios) as raw facts, mark the four rhythm axes above as `unknown (URL mode)` in the schema, and call this out as a blind spot in the diagnosis: *"I read this from the page's HTML, not a screenshot — I can name the macrostructure, the type, the colour, and the motion, but I can't tell you whether the rhythm reads generous or templated. If that matters, send a screenshot too."*
172
+
173
+ ---
174
+
175
+ ## The structured fields
176
+
177
+ After the five-step pass, fill out this schema. The diagnosis report is built from it.
178
+
179
+ ```
180
+ {
181
+ "source_mode": "image | url",
182
+ "source_url": "<the URL if source_mode=url, else null>",
183
+ "source": "user-described | public-reference | unknown",
184
+ "refusal": "ok | refused (paid-template) | refused (competitor) | soft-refusal (signature work)",
185
+ "macrostructure": "<name from macrostructures.md>",
186
+ "macrostructure_alt":"<second-closest, if it leans>",
187
+ "hero": {
188
+ "archetype": "H1-Marquee | H2-Split | H3-Quote-Led | H4-Stat-Led | H5-Letter | H6-Photographic | F6-Product-grid",
189
+ "knobs": { "<knob A>": "<value>", "<knob B>": "<value>" }
190
+ },
191
+ "pitch": { "archetype": "...", "knobs": { ... } },
192
+ "nav": { "archetype": "N1 | N2 | … | N9", "knobs": { ... } },
193
+ "footer": { "archetype": "Ft1 | Ft2 | … | Ft8", "knobs": { ... } },
194
+ "display_role": "italic editorial serif | heavy condensed sans | ...",
195
+ "display_face": "<exact font name in URL mode, else null>",
196
+ "body_role": "neutral grotesque | italic serif | ...",
197
+ "body_face": "<exact font name in URL mode, else null>",
198
+ "label_role": "monospace | small-caps serif | uppercase grotesque | none",
199
+ "label_face": "<exact font name in URL mode, else null>",
200
+ "pairing_logic": "single family / two families / three families",
201
+ "paper_band": "dark <30 | mid 30-85 | light >85",
202
+ "paper_value": "<exact oklch/hex/rgb in URL mode, else null>",
203
+ "paper_hue": "warm | cool | neutral-warm | neutral-cool | chromatic-<hue>",
204
+ "accent_hue_band": "warm-red | orange | yellow | green | teal | cyan-blue | indigo | magenta | neutral",
205
+ "accent_value": "<exact oklch/hex/rgb in URL mode, else null>",
206
+ "accent_footprint": "small ≤5% | recurring 5-15% | flood >15%",
207
+ "density": "generous | medium | dense | unknown (URL mode)",
208
+ "asymmetry": "centred | left-biased | right-biased | asymmetric-grid | unknown (URL mode)",
209
+ "treatments": ["riso", "grain-overlay", "glassmorphism", "dark-elevation-lightness", "..."],
210
+ "reveal": "none | fade-up | sweep | type-unmask | number-tick | typewriter | (not-visible)",
211
+ "motion_library": "<framer-motion | gsap | lottie | lenis | motion | none — only set in URL mode>",
212
+ "anti_patterns": ["bouncy hover", "transition-all", "..."]
213
+ }
214
+ ```
215
+
216
+ Every field is required (no nulls except where the schema explicitly notes a mode-conditional field; if a field is genuinely unknowable, write `"unknown"`). The `*_face`, `*_value`, and `motion_library` fields are mode-conditional — they carry exact values in URL mode and `null` in image mode. `density` and `asymmetry` carry `unknown (URL mode)` when source_mode is `url`. The schema is the contract; the diagnosis report is the human-readable rendering of it.
217
+
218
+ ---
219
+
220
+ ## Theme mapping
221
+
222
+ After the schema is filled, map the source to one of Hallmark's named themes — but **only as a candidate**. The user may pick a different theme for their build.
223
+
224
+ | If the schema looks like… | Suggest theme |
225
+ | --- | --- |
226
+ | `display_role: italic editorial serif`, `body_role: neutral grotesque`, `paper_band: light`, `accent: green` | **Studio** |
227
+ | `display_role: roman editorial serif`, `paper_hue: warm`, `density: medium`, `treatments: hairline rules` | **Specimen** |
228
+ | `paper_band: dark`, `accent: indigo`, `display: condensed/heavy` | **Midnight** |
229
+ | `paper_band: dark`, `font: mono throughout`, `treatments: phosphor green or amber` | **Terminal** |
230
+ | `paper_hue: warm-pink`, `treatments: riso / grain / off-register`, `display: heavy lowercase` | **Riso** |
231
+ | `paper_band: light`, `display: heavy black sans`, `accent: red flood` | **Brutal** |
232
+ | `paper_band: dark`, `display: heavy uppercase`, `accent: red flood` | **Manifesto** |
233
+ | `paper_hue: cool`, `density: dense`, `body: 2-3 column justified` | **Newsprint** |
234
+ | `paper_hue: warm`, `density: generous`, `display: ornamental serif`, `dividers: fleuron` | **Salon** |
235
+ | `paper_hue: warm`, `density: medium`, `display: roman serif`, `body: italic serif` | **Linen** |
236
+ | `paper_band: light cool`, `font: mono labels`, `density: dense`, `tabular numbers` | **Almanac** |
237
+ | `display: italic display`, `accent: red`, `tabular numbers`, `motion: horizontal sweep` | **Sport** |
238
+ | `display: ornamental script`, `paper: cream`, `density: medium-generous` | **Garden** |
239
+ | Anything else | **Specimen** *(only if the brief is editorial)* — otherwise propose one of the eight that's closest by *paper hue + display role*, and note the mismatch. |
240
+
241
+ If two themes are equally close, pick whichever is more *categorically distant* from any previous Hallmark output for this user (read the existing CSS for a `/* Hallmark · macrostructure: ... */` stamp and avoid that theme's family).
242
+
243
+ ---
244
+
245
+ ## The diagnosis report
246
+
247
+ After the schema and the theme map, produce a one-page report in this shape. Keep it short — about ten sentences. The user reads this *before* approving any code.
248
+
249
+ ### Image-mode template
250
+
251
+ ```
252
+ You sent me a [macrostructure name].
253
+
254
+ The hero is an [archetype name] with [knob values]. The pitch below it is
255
+ an [archetype]. The footer is an [archetype].
256
+
257
+ The type pairing is [display role] with [body role][, labels in <label role>].
258
+ I won't try to identify exact typefaces from a screenshot — fonts to consider:
259
+ [1–2 candidates from the canon].
260
+
261
+ The surface is [paper band, hue]. The accent is [hue band] used at
262
+ [footprint]. Density reads as [density]; the page is [asymmetry].
263
+
264
+ Distinctive treatments I noticed: [list, or "none beyond the basics"].
265
+
266
+ Anti-patterns I'd skip: [list anything from anti-patterns.md visible in
267
+ the screenshot — bouncy hovers, transition-all, three-feature grid, etc.
268
+ If there are none, say so.]
269
+
270
+ If you say **build it**, I'll use the extracted DNA as the system — the
271
+ paper, accent, type roles, macrostructure, and nav/footer above become
272
+ the build's tokens. Catalog themes are suspended for that build. If
273
+ you'd rather pivot to a catalog cousin afterwards, the closest is
274
+ [theme name] — just say *"use [theme name] instead"*.
275
+
276
+ Want me to build with this DNA, or change one axis first?
277
+
278
+ Or — say `lock the DNA` (or `give me a design.md`) if you want a portable
279
+ `design.md` of this DNA that you can hand to another AI tool. Opt-in,
280
+ never auto.
281
+ ```
282
+
283
+ ### URL-mode template
284
+
285
+ ```
286
+ I read [URL].
287
+
288
+ The page is a [macrostructure name]. The hero is an [archetype name] with
289
+ [knob values]. Nav is [N-archetype]; footer is [Ft-archetype].
290
+
291
+ The page loads [display_face] for display and [body_face] for body[, with
292
+ <label_face> for labels]. Roles: [display role] + [body role][ + <label role>].
293
+
294
+ The paper is [exact value, e.g. oklch(96% 0.01 90)] — a [paper band, hue].
295
+ The accent is [exact value, e.g. #c0392b] — a [hue band] used at
296
+ [footprint estimated from how many places it appears in the CSS].
297
+
298
+ Motion: the page uses [motion_library or "no motion library"]; reveal pattern
299
+ is [reveal]. Anti-patterns I noticed in the CSS / scripts: [list, e.g.
300
+ transition-all on .card, hover-scale on buttons — or "none"].
301
+
302
+ Rhythm — density and asymmetry — I can't judge from the HTML alone. If
303
+ those matter, send a screenshot as well and I'll add a rhythm pass.
304
+
305
+ If you say **build it**, I'll use the extracted DNA as the system — the
306
+ paper, accent, type roles, macrostructure, and nav/footer above become
307
+ the build's tokens. Catalog themes are suspended for that build. If
308
+ you'd rather pivot to a catalog cousin afterwards, the closest is
309
+ [theme name] — just say *"use [theme name] instead"*.
310
+
311
+ Want me to build with this DNA, or change one axis first?
312
+
313
+ Or — say `lock the DNA` (or `give me a design.md`) if you want a portable
314
+ `design.md` of this DNA. URL-mode emission asks you to confirm the source
315
+ is yours or a public reference for your own brand before writing — that
316
+ extra friction is intentional.
317
+ ```
318
+
319
+ The "Want me to build" line is the **confirmation question** for code generation. The "lock the DNA" line is the **emission CTA** for portable design system output. Both are opt-in; wait for the user before doing either. See § Emitting a `design.md` from `study` below for the emission flow.
320
+
321
+ ---
322
+
323
+ ## Worked example
324
+
325
+ **Screenshot:** the user pastes a capture of a fictional "studio.example" page — a beige cream background, a single italic display headline reading *"A studio for the patient."* set in 7rem italic, with a single right-aligned column of three captioned project thumbnails on the right side of the fold, and a 4-column index footer at the bottom with monospace category labels and serif body links.
326
+
327
+ **Schema** (filled by the model after a vision pass):
328
+
329
+ ```
330
+ {
331
+ "source": "user-described",
332
+ "refusal": "ok",
333
+ "macrostructure": "Split Studio",
334
+ "macrostructure_alt": null,
335
+ "hero": {
336
+ "archetype": "H2-Split",
337
+ "knobs": { "ratio": "6/6", "right side": "proof column", "divider": "negative space" }
338
+ },
339
+ "pitch": null,
340
+ "footer": {
341
+ "archetype": "Ft3-Index columns",
342
+ "knobs": { "columns": "4", "heading style": "monospace", "bullet": "none" }
343
+ },
344
+ "display_role": "italic editorial serif",
345
+ "body_role": "neutral grotesque",
346
+ "label_role": "monospace",
347
+ "pairing_logic": "two families",
348
+ "paper_band": "light >85",
349
+ "paper_hue": "warm",
350
+ "accent_hue_band": "neutral",
351
+ "accent_footprint": "small ≤5%",
352
+ "density": "generous",
353
+ "asymmetry": "split-equal",
354
+ "treatments": [],
355
+ "reveal": "(not-visible)",
356
+ "anti_patterns": []
357
+ }
358
+ ```
359
+
360
+ **Diagnosis returned to user:**
361
+
362
+ > You sent me a Split Studio.
363
+ >
364
+ > The hero is an H2 Split Diptych at a 6/6 ratio — italic display on the left, a column of three captioned projects on the right, divided by negative space rather than a rule. The pitch slot is empty in your capture; I can fill it or leave it. The footer is an Ft3 four-column Index with monospace category headings and roman link rows.
365
+ >
366
+ > The type pairing is italic editorial serif with neutral grotesque body, monospace for labels. I won't guess the exact serif from a screenshot — fonts to consider: **Instrument Serif** (free, 2026's most-used italic display) or **Tobias** (paid). For body and labels: **Geist** + **Geist Mono**.
367
+ >
368
+ > The surface is warm cream, paper L roughly 95 %. The accent is neutral — no chromatic colour beyond ink-on-paper, which is why the page reads composed rather than excited. Density is generous; the page is asymmetric-balanced (split equal but content is right-weighted).
369
+ >
370
+ > Distinctive treatments: none beyond the basics — that's the point. Restraint is the design.
371
+ >
372
+ > Anti-patterns I'd skip: nothing from this screenshot stands out as carry-over risk. The reference is clean.
373
+ >
374
+ > If you say **build it**, I'll use this DNA as the system — warm cream paper, neutral ink-on-paper accent, italic editorial serif + neutral grotesque + monospace, Split Studio macrostructure, H2 hero + Ft3 footer. Catalog themes are suspended for the build. If you'd rather pivot to a catalog cousin after, the closest is **Studio** (Instrument Serif + Geist + small green accent) — just say *"use Studio instead"*.
375
+ >
376
+ > Want me to build with this DNA, or change one axis first?
377
+
378
+ **If the user says "build it":** the skill builds with the **studied DNA as the system, not a catalog theme**. Paper, accent, type roles, macrostructure, and archetypes from the diagnosis become the tokens directly. Catalog rotation is suspended for this build (see SKILL.md § 2.6 Condition 0). The stamp records `theme: studied-DNA` with the source URL or image tag plus the actual OKLCH/font values inline:
379
+
380
+ ```css
381
+ /* Hallmark · macrostructure: Split Studio · H2 hero knobs: ratio=6/6, right=proof, divider=negative-space
382
+ * Ft3 footer knobs: cols=4, heading=mono
383
+ * theme: studied-DNA (source: image) · paper oklch(95% 0.012 80) · accent neutral (ink-on-paper)
384
+ * display: italic editorial serif (Instrument Serif candidate) · body: neutral grotesque (Geist candidate) · label: mono (Geist Mono)
385
+ * studied: yes · DNA-source: user reference (described as own work)
386
+ */
387
+ ```
388
+
389
+ **If the user instead says "build it with Studio":** the DNA hands the macrostructure + archetypes to the build but the catalog theme **Studio** supplies the tokens (Instrument Serif + Geist + forest-green accent). This is the pivot path — explicit only.
390
+
391
+ **If the user says "change the macrostructure":** offer two alternatives from the same family — say, Bento Grid (modular feature-led) or Long Document (prose-led). Whichever the user picks becomes the new macrostructure; the rest of the DNA carries.
392
+
393
+ ---
394
+
395
+ ## Limits and disclaimers
396
+
397
+ State these to the user when returning the diagnosis. Do not bury them.
398
+
399
+ 1. **Fonts cannot be identified from screenshots reliably.** In image mode, Hallmark names *roles* and proposes 1–2 candidates from its canon — visual font ID is wrong half the time on custom or modified faces. In **URL mode** the rule flips: the page's `@font-face`, Google Fonts `<link>`, and `next/font` declarations name the typefaces authoritatively, and the diagnosis can name them. The role still travels into the rebuilt page (Hallmark may pick a different specific face from the canon for the user's content); the original name is recorded as a side fact.
400
+ 2. **Imagery is never copied.** The skill's build replaces the source's photography with structurally-equivalent placeholders. If the user wants real assets, they provide them.
401
+ 3. **Theme drift is allowed.** The user's content might point to a different theme than the source's surface implies. The DNA is the macrostructure + archetype tuple + colour-anchor band + type-pairing role. The dress (specific typeface, specific accent hex) can change — even when URL mode named the exact dress.
402
+ 4. **One source, one diagnosis.** Do not let the user paste five screenshots OR five URLs and ask for a "blend". Pick one as the primary reference; the others can inform individual axis choices but the DNA backbone comes from one source. Five blended references is how you produce template-soup.
403
+ 5. **URL mode has a known rhythm blind spot.** HTML alone can't tell you whether the visual rhythm reads generous or templated. Always call this out in URL-mode diagnoses, and offer the user the option to send a screenshot alongside if rhythm matters.
404
+ 6. **No surprise edits.** The diagnosis is for the user to accept. Do not write code in the same turn as the diagnosis. Wait for confirmation.
405
+
406
+ If any limit is being violated, say so plainly in the diagnosis report — *"I can't reliably identify this typeface; here are two candidates I'm guessing at"* — and let the user redirect.
407
+
408
+ ---
409
+
410
+ ## Emitting a `design.md` from `study`
411
+
412
+ After the diagnosis, the user has a third option alongside "build with this DNA" and "stop here": **emit a portable `design.md`** that captures the DNA as a system other AI tools (Cursor, v0, Bolt, future Hallmark runs) can read directly. This is the same `design.md` format produced by the default verb's "lock the system" flow — but seeded from the studied DNA rather than from a build the user iterated on.
413
+
414
+ ### Trigger phrases
415
+
416
+ Fire ONLY when the user says one of these *after* a diagnosis:
417
+
418
+ - *"lock the DNA"* / *"lock this DNA"*
419
+ - *"give me a design.md"* / *"write a design.md"* / *"export this as a design.md"*
420
+ - *"make this portable"* / *"make the DNA portable"*
421
+
422
+ If the user just confirms the diagnosis without naming emission, **do not emit**. The CTA in the diagnosis surfaces the option; the trigger phrase confirms intent.
423
+
424
+ ### The emission-refusal layer (tighter than diagnosis refusal)
425
+
426
+ Diagnosis refusal asks: *"can I read this without crossing the line into cloning a competitor or copying a paid template?"* The answer is usually yes — reading is cheap and educational.
427
+
428
+ Emission refusal asks: *"can I package this DNA as a portable system the user (or any AI tool the user hands the file to) will then use as their own design language?"* That's meaningfully more extractive than a diagnosis. The user already has the diagnosis; the file is a separate, durable artifact that travels.
429
+
430
+ The two refusal layers do not match. A reference can clear the diagnosis bar and still fail the emission bar.
431
+
432
+ **Image mode — emission is allowed by default.** The user owns the screenshot they attached. They can be trusted to have rights to extract from it (their own work, a personal moodboard, a public reference they have permission to learn from). Emit without asking.
433
+
434
+ **URL mode — emission requires explicit attestation.** Before writing the file, ask one short question and wait for the answer:
435
+
436
+ > *Before I write the file — `design.md` emission packages this DNA as a portable spec other AI tools can use, which is more extractive than a diagnosis. Is this URL:*
437
+ >
438
+ > *(a) your own site*
439
+ > *(b) a public reference for your own brand (you have permission to learn from it)*
440
+ > *(c) something else (a competitor, a designer you admire, a stranger's site you stumbled on)*
441
+ >
442
+ > *Reply (a), (b), or (c).*
443
+
444
+ Then dispatch on the answer:
445
+
446
+ | Answer | Action |
447
+ | --- | --- |
448
+ | (a) "my own site" | Emit. Note in the file's `## Provenance` block: *"Extracted from `<URL>` — user-owned source, <date>."* |
449
+ | (b) "public reference for own brand" | Emit, but include a `## Provenance` block: *"Extracted from `<URL>` as a public reference for the user's brand on <date>. The DNA is structural; specific tokens may need to be regenerated to match the user's brand identity rather than the source's."* |
450
+ | (c) "something else" | **Refuse.** *"I won't emit a `design.md` from a third-party site I'm not authorised to extract from. The diagnosis is yours — that's a learning tool. The portable spec needs a source you can attest authorship of, or a public reference for your own brand. If you want a design.md anyway, take a screenshot of your own moodboard or your own existing site, and I'll study that instead."* |
451
+
452
+ If the user has already disclosed source attribution earlier in the conversation (e.g., during the initial "is this your own work / public reference / competitor" check, they answered "my own site"), do not re-ask — carry that attestation forward. The ask is only needed when status is unknown.
453
+
454
+ The image-mode refusal table at the top of this file still applies in both modes. A source that already failed the diagnosis refusal (paid template, declared competitor, soft-refused signature work) is auto-refused at emission — do not re-ask.
455
+
456
+ ### What gets written
457
+
458
+ Use the format defined in [`design-md.md`](design-md.md) § Format, with these `study`-mode adjustments:
459
+
460
+ 1. **Source mode informs token values.** URL mode populates the `## Tokens` block with exact OKLCH / hex values from the source's CSS, and the `## System` block with the exact fonts named in `@font-face` / Google Fonts / `next/font`. Image mode populates the same blocks with the schema's bands rendered into best-guess OKLCH (centre of band) and 1–2 candidate font names from the canon — flag these as estimated.
461
+ 2. **Add a `## Provenance` block.** Inserted between `## System` and `## Tokens`. Carries: the source mode, the URL (URL mode only) or "image (user-attached)" (image mode), the date of extraction, the attestation answer if any, and a one-line note about confidence:
462
+ - URL mode: *"Tokens are exact (extracted from source CSS). Fonts are exact (extracted from source font declarations). Rhythm is unknown — HTML alone can't judge density."*
463
+ - Image mode: *"Tokens are estimated from source-image colour bands. Fonts are role-based with named candidates from the Hallmark canon. Rhythm is from a vision pass on the source."*
464
+ 3. **Add a `## Notes` block** at the end with the anti-patterns the diagnosis flagged as "do NOT carry over." Future Hallmark runs reading the file should see these as part of the system's identity.
465
+ 4. **The stamp at the top of the file** carries `studied: yes` and `DNA-source: <mode>` plus the URL or "image" tag, mirroring the macrostructure stamp pattern.
466
+
467
+ ### After the file is written
468
+
469
+ Same post-emission behaviour as the default verb's lock-the-system flow (per [`design-md.md`](design-md.md) § After the file is written):
470
+
471
+ - Subsequent Hallmark runs read `design.md` first; diversification inverts to consistency.
472
+ - If the user genuinely needs a different system for a future page, amend `design.md` with a `## Variants` section.
473
+ - One-line confirmation back to the user: *"design.md written. The system is now locked to the extracted DNA. Future runs will defer to it."*
474
+
475
+ ---
476
+
477
+ ## When `study` should hand off
478
+
479
+ `study` is the diagnosis verb. It is not for fresh builds and not for refining existing pages. After the diagnosis, the user has three options — and `study` itself stops after any one of them:
480
+
481
+ - If the user says *"now build me the same kind of page for my brand"*: hand off to the **default** verb with the schema filled in as inferred design-context, and build per the standard flow — but with the studied DNA stamped.
482
+ - If the user says *"now refactor my existing site to match this DNA"*: hand off to **`hallmark redesign`** with the schema attached. Redesign preserves the user's content; study supplied the new shape.
483
+ - If the user says *"lock the DNA"* / *"give me a design.md"*: emit the file per § Emitting a `design.md` from `study` above. The emitted file becomes the new system; subsequent runs defer to it.
484
+ - If the user only wanted the diagnosis and is satisfied: stop. The diagnosis report is a complete deliverable on its own.
485
+
486
+ Do not chain verbs or emit files without the user's explicit go-ahead. The diagnosis is the contract; the build and the file are separate decisions.