@dedesfr/prompter 0.8.23 → 1.0.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 (247) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +105 -77
  3. package/dist/cli/index.js +25 -1
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/commands/init.d.ts +1 -7
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/init.js +60 -299
  8. package/dist/commands/init.js.map +1 -1
  9. package/dist/commands/login.d.ts +4 -0
  10. package/dist/commands/login.d.ts.map +1 -0
  11. package/dist/commands/login.js +56 -0
  12. package/dist/commands/login.js.map +1 -0
  13. package/dist/commands/logout.d.ts +4 -0
  14. package/dist/commands/logout.d.ts.map +1 -0
  15. package/dist/commands/logout.js +14 -0
  16. package/dist/commands/logout.js.map +1 -0
  17. package/dist/commands/update.d.ts.map +1 -1
  18. package/dist/commands/update.js +31 -41
  19. package/dist/commands/update.js.map +1 -1
  20. package/dist/commands/whoami.d.ts +4 -0
  21. package/dist/commands/whoami.d.ts.map +1 -0
  22. package/dist/commands/whoami.js +42 -0
  23. package/dist/commands/whoami.js.map +1 -0
  24. package/dist/core/auth-store.d.ts +10 -0
  25. package/dist/core/auth-store.d.ts.map +1 -0
  26. package/dist/core/auth-store.js +39 -0
  27. package/dist/core/auth-store.js.map +1 -0
  28. package/dist/core/configurators/slash/antigravity.d.ts +2 -5
  29. package/dist/core/configurators/slash/antigravity.d.ts.map +1 -1
  30. package/dist/core/configurators/slash/antigravity.js +2 -57
  31. package/dist/core/configurators/slash/antigravity.js.map +1 -1
  32. package/dist/core/configurators/slash/base.d.ts +6 -18
  33. package/dist/core/configurators/slash/base.d.ts.map +1 -1
  34. package/dist/core/configurators/slash/base.js +8 -77
  35. package/dist/core/configurators/slash/base.js.map +1 -1
  36. package/dist/core/configurators/slash/claude.d.ts +2 -5
  37. package/dist/core/configurators/slash/claude.d.ts.map +1 -1
  38. package/dist/core/configurators/slash/claude.js +2 -57
  39. package/dist/core/configurators/slash/claude.js.map +1 -1
  40. package/dist/core/configurators/slash/codex.d.ts +2 -5
  41. package/dist/core/configurators/slash/codex.d.ts.map +1 -1
  42. package/dist/core/configurators/slash/codex.js +2 -57
  43. package/dist/core/configurators/slash/codex.js.map +1 -1
  44. package/dist/core/configurators/slash/droid.d.ts +2 -5
  45. package/dist/core/configurators/slash/droid.d.ts.map +1 -1
  46. package/dist/core/configurators/slash/droid.js +2 -32
  47. package/dist/core/configurators/slash/droid.js.map +1 -1
  48. package/dist/core/configurators/slash/forge.d.ts +2 -5
  49. package/dist/core/configurators/slash/forge.d.ts.map +1 -1
  50. package/dist/core/configurators/slash/forge.js +2 -32
  51. package/dist/core/configurators/slash/forge.js.map +1 -1
  52. package/dist/core/configurators/slash/github-copilot.d.ts +2 -7
  53. package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
  54. package/dist/core/configurators/slash/github-copilot.js +2 -96
  55. package/dist/core/configurators/slash/github-copilot.js.map +1 -1
  56. package/dist/core/configurators/slash/index.d.ts +1 -1
  57. package/dist/core/configurators/slash/index.d.ts.map +1 -1
  58. package/dist/core/configurators/slash/index.js +1 -1
  59. package/dist/core/configurators/slash/index.js.map +1 -1
  60. package/dist/core/configurators/slash/kilocode.d.ts +2 -5
  61. package/dist/core/configurators/slash/kilocode.d.ts.map +1 -1
  62. package/dist/core/configurators/slash/kilocode.js +2 -57
  63. package/dist/core/configurators/slash/kilocode.js.map +1 -1
  64. package/dist/core/configurators/slash/opencode.d.ts +2 -5
  65. package/dist/core/configurators/slash/opencode.d.ts.map +1 -1
  66. package/dist/core/configurators/slash/opencode.js +2 -57
  67. package/dist/core/configurators/slash/opencode.js.map +1 -1
  68. package/dist/core/configurators/slash/registry.d.ts +4 -4
  69. package/dist/core/configurators/slash/registry.d.ts.map +1 -1
  70. package/dist/core/configurators/slash/registry.js.map +1 -1
  71. package/dist/core/registry.d.ts +18 -0
  72. package/dist/core/registry.d.ts.map +1 -0
  73. package/dist/core/registry.js +94 -0
  74. package/dist/core/registry.js.map +1 -0
  75. package/dist/core/templates/index.d.ts +0 -1
  76. package/dist/core/templates/index.d.ts.map +1 -1
  77. package/dist/core/templates/index.js +0 -1
  78. package/dist/core/templates/index.js.map +1 -1
  79. package/package.json +7 -1
  80. package/AGENTS.md +0 -123
  81. package/CLAUDE.md +0 -17
  82. package/build.js +0 -20
  83. package/convex-setup.md +0 -403
  84. package/dist/core/templates/slash-command-templates.d.ts +0 -7
  85. package/dist/core/templates/slash-command-templates.d.ts.map +0 -1
  86. package/dist/core/templates/slash-command-templates.js +0 -1041
  87. package/dist/core/templates/slash-command-templates.js.map +0 -1
  88. package/prompt/ai-humanizer.md +0 -45
  89. package/prompt/api-contract-generator.md +0 -234
  90. package/prompt/apply.md +0 -17
  91. package/prompt/archive.md +0 -21
  92. package/prompt/design-system.md +0 -210
  93. package/prompt/document-explainer.md +0 -149
  94. package/prompt/epic-generator.md +0 -198
  95. package/prompt/epic-single.md +0 -47
  96. package/prompt/erd-generator.md +0 -130
  97. package/prompt/fsd-generator.md +0 -157
  98. package/prompt/prd-agent-generator.md +0 -147
  99. package/prompt/prd-generator.md +0 -195
  100. package/prompt/product-brief.md +0 -289
  101. package/prompt/proposal.md +0 -22
  102. package/prompt/qa-test-scenario.md +0 -133
  103. package/prompt/skill-creator.md +0 -350
  104. package/prompt/story-generator.md +0 -278
  105. package/prompt/story-single.md +0 -70
  106. package/prompt/tdd-generator.md +0 -294
  107. package/prompt/tdd-lite-generator.md +0 -224
  108. package/prompt/wireframe-generator.md +0 -219
  109. package/skills/ai-context-generator/SKILL.md +0 -54
  110. package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
  111. package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
  112. package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
  113. package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
  114. package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
  115. package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
  116. package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
  117. package/skills/cerebro/SKILL.md +0 -187
  118. package/skills/cerebro/references/agents.md +0 -213
  119. package/skills/code-review/SKILL.md +0 -373
  120. package/skills/code-review/assets/report-template-agent.md +0 -212
  121. package/skills/code-review/assets/report-template-compact.md +0 -81
  122. package/skills/code-review/assets/report-template-full.md +0 -264
  123. package/skills/code-review/assets/report-template-human.md +0 -168
  124. package/skills/code-review/references/universal-patterns.md +0 -495
  125. package/skills/design-md/README.md +0 -34
  126. package/skills/design-md/SKILL.md +0 -172
  127. package/skills/design-md/examples/DESIGN.md +0 -154
  128. package/skills/design-system-generator/SKILL.md +0 -324
  129. package/skills/design-system-generator/assets/design-system-template.md +0 -348
  130. package/skills/design-system-generator/references/extraction-patterns.md +0 -321
  131. package/skills/doc-builder/SKILL.md +0 -115
  132. package/skills/doc-builder/references/ui-patterns.md +0 -394
  133. package/skills/document-translator/SKILL.md +0 -58
  134. package/skills/enhance-prompt/README.md +0 -34
  135. package/skills/enhance-prompt/SKILL.md +0 -204
  136. package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
  137. package/skills/feature-planner/SKILL.md +0 -305
  138. package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
  139. package/skills/frontend-design/LICENSE.txt +0 -177
  140. package/skills/frontend-design/SKILL.md +0 -42
  141. package/skills/gamma-builder/SKILL.md +0 -134
  142. package/skills/laravel-code-review/SKILL.md +0 -383
  143. package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
  144. package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
  145. package/skills/laravel-code-review/assets/report-template-full.md +0 -253
  146. package/skills/laravel-code-review/assets/report-template-human.md +0 -159
  147. package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
  148. package/skills/laravel-code-review/references/php84-features.md +0 -442
  149. package/skills/mcp-builder/LICENSE.txt +0 -202
  150. package/skills/mcp-builder/SKILL.md +0 -236
  151. package/skills/mcp-builder/reference/evaluation.md +0 -602
  152. package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
  153. package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
  154. package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
  155. package/skills/mcp-builder/scripts/connections.py +0 -151
  156. package/skills/mcp-builder/scripts/evaluation.py +0 -373
  157. package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
  158. package/skills/mcp-builder/scripts/requirements.txt +0 -2
  159. package/skills/meeting-notes/SKILL.md +0 -159
  160. package/skills/meeting-notes/evals/evals.json +0 -23
  161. package/skills/project-orchestrator/SKILL.md +0 -487
  162. package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
  163. package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
  164. package/skills/prompter-specs/SKILL.md +0 -115
  165. package/skills/prompter-workflow/SKILL.md +0 -166
  166. package/skills/prompter-workflow/evals/evals.json +0 -89
  167. package/skills/sph-generator/SKILL.md +0 -488
  168. package/skills/ui-ux-pro/SKILL.md +0 -199
  169. package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
  170. package/skills/ui-ux-pro/references/component-patterns.md +0 -255
  171. package/skills/ui-ux-pro/references/design-principles.md +0 -167
  172. package/src/cli/index.ts +0 -223
  173. package/src/commands/archive.ts +0 -302
  174. package/src/commands/change.ts +0 -292
  175. package/src/commands/config.ts +0 -233
  176. package/src/commands/guide.ts +0 -50
  177. package/src/commands/init.ts +0 -899
  178. package/src/commands/list.ts +0 -194
  179. package/src/commands/show.ts +0 -138
  180. package/src/commands/spec.ts +0 -251
  181. package/src/commands/update.ts +0 -156
  182. package/src/commands/upgrade.ts +0 -30
  183. package/src/commands/validate.ts +0 -326
  184. package/src/core/artifact-graph/graph.ts +0 -167
  185. package/src/core/artifact-graph/index.ts +0 -44
  186. package/src/core/artifact-graph/instruction-loader.ts +0 -302
  187. package/src/core/artifact-graph/resolver.ts +0 -226
  188. package/src/core/artifact-graph/schema.ts +0 -124
  189. package/src/core/artifact-graph/state.ts +0 -64
  190. package/src/core/artifact-graph/types.ts +0 -65
  191. package/src/core/completions/command-registry.ts +0 -382
  192. package/src/core/completions/completion-provider.ts +0 -128
  193. package/src/core/completions/generators/bash-generator.ts +0 -191
  194. package/src/core/completions/generators/fish-generator.ts +0 -188
  195. package/src/core/completions/generators/powershell-generator.ts +0 -223
  196. package/src/core/completions/generators/zsh-generator.ts +0 -281
  197. package/src/core/completions/templates/bash-templates.ts +0 -24
  198. package/src/core/completions/templates/fish-templates.ts +0 -40
  199. package/src/core/completions/templates/powershell-templates.ts +0 -25
  200. package/src/core/completions/templates/zsh-templates.ts +0 -36
  201. package/src/core/completions/types.ts +0 -90
  202. package/src/core/config-schema.ts +0 -230
  203. package/src/core/config.ts +0 -181
  204. package/src/core/configurators/slash/antigravity.ts +0 -70
  205. package/src/core/configurators/slash/base.ts +0 -203
  206. package/src/core/configurators/slash/claude.ts +0 -70
  207. package/src/core/configurators/slash/codex.ts +0 -70
  208. package/src/core/configurators/slash/droid.ts +0 -44
  209. package/src/core/configurators/slash/forge.ts +0 -44
  210. package/src/core/configurators/slash/github-copilot.ts +0 -114
  211. package/src/core/configurators/slash/index.ts +0 -10
  212. package/src/core/configurators/slash/kilocode.ts +0 -70
  213. package/src/core/configurators/slash/opencode.ts +0 -70
  214. package/src/core/configurators/slash/registry.ts +0 -51
  215. package/src/core/converters/json-converter.ts +0 -62
  216. package/src/core/global-config.ts +0 -136
  217. package/src/core/parsers/change-parser.ts +0 -234
  218. package/src/core/parsers/markdown-parser.ts +0 -237
  219. package/src/core/parsers/requirement-blocks.ts +0 -234
  220. package/src/core/prompt-templates.ts +0 -3504
  221. package/src/core/schemas/base.schema.ts +0 -20
  222. package/src/core/schemas/change.schema.ts +0 -42
  223. package/src/core/schemas/index.ts +0 -20
  224. package/src/core/schemas/spec.schema.ts +0 -17
  225. package/src/core/skill-discovery.ts +0 -68
  226. package/src/core/specs-apply.ts +0 -483
  227. package/src/core/styles/palette.ts +0 -8
  228. package/src/core/templates/agents-template.ts +0 -459
  229. package/src/core/templates/claude-template.ts +0 -2
  230. package/src/core/templates/index.ts +0 -4
  231. package/src/core/templates/project-template.ts +0 -32
  232. package/src/core/templates/slash-command-templates.ts +0 -1068
  233. package/src/core/validation/constants.ts +0 -48
  234. package/src/core/validation/types.ts +0 -19
  235. package/src/core/validation/validator.ts +0 -449
  236. package/src/core/view.ts +0 -219
  237. package/src/index.ts +0 -1
  238. package/src/utils/change-metadata.ts +0 -171
  239. package/src/utils/change-utils.ts +0 -131
  240. package/src/utils/file-system.ts +0 -252
  241. package/src/utils/index.ts +0 -12
  242. package/src/utils/interactive.ts +0 -29
  243. package/src/utils/item-discovery.ts +0 -66
  244. package/src/utils/match.ts +0 -26
  245. package/src/utils/shell-detection.ts +0 -62
  246. package/src/utils/task-progress.ts +0 -43
  247. package/tsconfig.json +0 -28
@@ -1,154 +0,0 @@
1
- # Design System: Furniture Collections List
2
- **Project ID:** 13534454087919359824
3
-
4
- ## 1. Visual Theme & Atmosphere
5
-
6
- The Furniture Collections List embodies a **sophisticated, minimalist sanctuary** that marries the pristine simplicity of Scandinavian design with the refined visual language of luxury editorial presentation. The interface feels **spacious and tranquil**, prioritizing breathing room and visual clarity above all else. The design philosophy is gallery-like and photography-first, allowing each furniture piece to command attention as an individual art object.
7
-
8
- The overall mood is **airy yet grounded**, creating an aspirational aesthetic that remains approachable and welcoming. The interface feels **utilitarian in its restraint** but elegant in its execution, with every element serving a clear purpose while maintaining visual sophistication. The atmosphere evokes the serene ambiance of a high-end furniture showroom where customers can browse thoughtfully without visual overwhelm.
9
-
10
- **Key Characteristics:**
11
- - Expansive whitespace creating generous breathing room between elements
12
- - Clean, architectural grid system with structured content blocks
13
- - Photography-first presentation with minimal UI interference
14
- - Whisper-soft visual hierarchy that guides without shouting
15
- - Refined, understated interactive elements
16
- - Professional yet inviting editorial tone
17
-
18
- ## 2. Color Palette & Roles
19
-
20
- ### Primary Foundation
21
- - **Warm Barely-There Cream** (#FCFAFA) – Primary background color. Creates an almost imperceptible warmth that feels more inviting than pure white, serving as the serene canvas for the entire experience.
22
- - **Crisp Very Light Gray** (#F5F5F5) – Secondary surface color used for card backgrounds and content areas. Provides subtle visual separation while maintaining the airy, ethereal quality.
23
-
24
- ### Accent & Interactive
25
- - **Deep Muted Teal-Navy** (#294056) – The sole vibrant accent in the palette. Used exclusively for primary call-to-action buttons (e.g., "Shop Now", "View all products"), active navigation links, selected filter states, and subtle interaction highlights. This sophisticated anchor color creates visual focus points without disrupting the serene neutral foundation.
26
-
27
- ### Typography & Text Hierarchy
28
- - **Charcoal Near-Black** (#2C2C2C) – Primary text color for headlines and product names. Provides strong readable contrast while being softer and more refined than pure black.
29
- - **Soft Warm Gray** (#6B6B6B) – Secondary text used for body copy, product descriptions, and supporting metadata. Creates clear typographic hierarchy without harsh contrast.
30
- - **Ultra-Soft Silver Gray** (#E0E0E0) – Tertiary color for borders, dividers, and subtle structural elements. Creates separation so gentle it's almost imperceptible.
31
-
32
- ### Functional States (Reserved for system feedback)
33
- - **Success Moss** (#10B981) – Stock availability, confirmation states, positive indicators
34
- - **Alert Terracotta** (#EF4444) – Low stock warnings, error states, critical alerts
35
- - **Informational Slate** (#64748B) – Neutral system messages, informational callouts
36
-
37
- ## 3. Typography Rules
38
-
39
- **Primary Font Family:** Manrope
40
- **Character:** Modern, geometric sans-serif with gentle humanist warmth. Slightly rounded letterforms that feel contemporary yet approachable.
41
-
42
- ### Hierarchy & Weights
43
- - **Display Headlines (H1):** Semi-bold weight (600), generous letter-spacing (0.02em for elegance), 2.75-3.5rem size. Used sparingly for hero sections and major page titles.
44
- - **Section Headers (H2):** Semi-bold weight (600), subtle letter-spacing (0.01em), 2-2.5rem size. Establishes clear content zones and featured collections.
45
- - **Subsection Headers (H3):** Medium weight (500), normal letter-spacing, 1.5-1.75rem size. Product names and category labels.
46
- - **Body Text:** Regular weight (400), relaxed line-height (1.7), 1rem size. Descriptions and supporting content prioritize comfortable readability.
47
- - **Small Text/Meta:** Regular weight (400), slightly tighter line-height (1.5), 0.875rem size. Prices, availability, and metadata remain legible but visually recessive.
48
- - **CTA Buttons:** Medium weight (500), subtle letter-spacing (0.01em), 1rem size. Balanced presence without visual aggression.
49
-
50
- ### Spacing Principles
51
- - Headers use slightly expanded letter-spacing for refined elegance
52
- - Body text maintains generous line-height (1.7) for effortless reading
53
- - Consistent vertical rhythm with 2-3rem between related text blocks
54
- - Large margins (4-6rem) between major sections to reinforce spaciousness
55
-
56
- ## 4. Component Stylings
57
-
58
- ### Buttons
59
- - **Shape:** Subtly rounded corners (8px/0.5rem radius) – approachable and modern without appearing playful or childish
60
- - **Primary CTA:** Deep Muted Teal-Navy (#294056) background with pure white text, comfortable padding (0.875rem vertical, 2rem horizontal)
61
- - **Hover State:** Subtle darkening to deeper navy, smooth 250ms ease-in-out transition
62
- - **Focus State:** Soft outer glow in the primary color for keyboard navigation accessibility
63
- - **Secondary CTA (if needed):** Outlined style with Deep Muted Teal-Navy border, transparent background, hover fills with whisper-soft teal tint
64
-
65
- ### Cards & Product Containers
66
- - **Corner Style:** Gently rounded corners (12px/0.75rem radius) creating soft, refined edges
67
- - **Background:** Alternates between Warm Barely-There Cream and Crisp Very Light Gray based on layering needs
68
- - **Shadow Strategy:** Flat by default. On hover, whisper-soft diffused shadow appears (`0 2px 8px rgba(0,0,0,0.06)`) creating subtle depth
69
- - **Border:** Optional hairline border (1px) in Ultra-Soft Silver Gray for delicate definition when shadows aren't present
70
- - **Internal Padding:** Generous 2-2.5rem creating comfortable breathing room for content
71
- - **Image Treatment:** Full-bleed at the top of cards, square or 4:3 ratio, seamless edge-to-edge presentation
72
-
73
- ### Navigation
74
- - **Style:** Clean horizontal layout with generous spacing (2-3rem) between menu items
75
- - **Typography:** Medium weight (500), subtle uppercase, expanded letter-spacing (0.06em) for refined sophistication
76
- - **Default State:** Charcoal Near-Black text
77
- - **Active/Hover State:** Smooth 200ms color transition to Deep Muted Teal-Navy
78
- - **Active Indicator:** Thin underline (2px) in Deep Muted Teal-Navy appearing below current section
79
- - **Mobile:** Converts to elegant hamburger menu with sliding drawer
80
-
81
- ### Inputs & Forms
82
- - **Stroke Style:** Refined 1px border in Soft Warm Gray
83
- - **Background:** Warm Barely-There Cream with transition to Crisp Very Light Gray on focus
84
- - **Corner Style:** Matching button roundness (8px/0.5rem) for visual consistency
85
- - **Focus State:** Border color shifts to Deep Muted Teal-Navy with subtle outer glow
86
- - **Padding:** Comfortable 0.875rem vertical, 1.25rem horizontal for touch-friendly targets
87
- - **Placeholder Text:** Ultra-Soft Silver Gray, elegant and unobtrusive
88
-
89
- ### Product Cards (Specific Pattern)
90
- - **Image Area:** Square (1:1) or landscape (4:3) ratio filling card width completely
91
- - **Content Stack:** Product name (H3), brief descriptor, material/finish, price
92
- - **Price Display:** Emphasized with semi-bold weight (600) in Charcoal Near-Black
93
- - **Hover Behavior:** Gentle lift effect (translateY -4px) combined with enhanced shadow
94
- - **Spacing:** Consistent 1.5rem internal padding below image
95
-
96
- ## 5. Layout Principles
97
-
98
- ### Grid & Structure
99
- - **Max Content Width:** 1440px for optimal readability and visual balance on large displays
100
- - **Grid System:** Responsive 12-column grid with fluid gutters (24px mobile, 32px desktop)
101
- - **Product Grid:** 4 columns on large desktop, 3 on desktop, 2 on tablet, 1 on mobile
102
- - **Breakpoints:**
103
- - Mobile: <768px
104
- - Tablet: 768-1024px
105
- - Desktop: 1024-1440px
106
- - Large Desktop: >1440px
107
-
108
- ### Whitespace Strategy (Critical to the Design)
109
- - **Base Unit:** 8px for micro-spacing, 16px for component spacing
110
- - **Vertical Rhythm:** Consistent 2rem (32px) base unit between related elements
111
- - **Section Margins:** Generous 5-8rem (80-128px) between major sections creating dramatic breathing room
112
- - **Edge Padding:** 1.5rem (24px) mobile, 3rem (48px) tablet/desktop for comfortable framing
113
- - **Hero Sections:** Extra-generous top/bottom padding (8-12rem) for impactful presentation
114
-
115
- ### Alignment & Visual Balance
116
- - **Text Alignment:** Left-aligned for body and navigation (optimal readability), centered for hero headlines and featured content
117
- - **Image to Text Ratio:** Heavily weighted toward imagery (70-30 split) reinforcing photography-first philosophy
118
- - **Asymmetric Balance:** Large hero images offset by compact, refined text blocks
119
- - **Visual Weight Distribution:** Strategic use of whitespace to draw eyes to hero products and primary CTAs
120
- - **Reading Flow:** Clear top-to-bottom, left-to-right pattern with intentional focal points
121
-
122
- ### Responsive Behavior & Touch
123
- - **Mobile-First Foundation:** Core experience designed and perfected for smallest screens first
124
- - **Progressive Enhancement:** Additional columns, imagery, and details added gracefully at larger breakpoints
125
- - **Touch Targets:** Minimum 44x44px for all interactive elements (WCAG AAA compliant)
126
- - **Image Optimization:** Responsive images with appropriate resolutions for each breakpoint, lazy-loading for performance
127
- - **Collapsing Strategy:** Navigation collapses to hamburger, grid reduces columns, padding scales proportionally
128
-
129
- ## 6. Design System Notes for Stitch Generation
130
-
131
- When creating new screens for this project using Stitch, reference these specific instructions:
132
-
133
- ### Language to Use
134
- - **Atmosphere:** "Sophisticated minimalist sanctuary with gallery-like spaciousness"
135
- - **Button Shapes:** "Subtly rounded corners" (not "rounded-md" or "8px")
136
- - **Shadows:** "Whisper-soft diffused shadows on hover" (not "shadow-sm")
137
- - **Spacing:** "Generous breathing room" and "expansive whitespace"
138
-
139
- ### Color References
140
- Always use the descriptive names with hex codes:
141
- - Primary CTA: "Deep Muted Teal-Navy (#294056)"
142
- - Backgrounds: "Warm Barely-There Cream (#FCFAFA)" or "Crisp Very Light Gray (#F5F5F5)"
143
- - Text: "Charcoal Near-Black (#2C2C2C)" or "Soft Warm Gray (#6B6B6B)"
144
-
145
- ### Component Prompts
146
- - "Create a product card with gently rounded corners, full-bleed square product image, and whisper-soft shadow on hover"
147
- - "Design a primary call-to-action button in Deep Muted Teal-Navy (#294056) with subtle rounded corners and comfortable padding"
148
- - "Add a navigation bar with generous spacing between items, using medium-weight Manrope with subtle uppercase and expanded letter-spacing"
149
-
150
- ### Incremental Iteration
151
- When refining existing screens:
152
- 1. Focus on ONE component at a time (e.g., "Update the product grid cards")
153
- 2. Be specific about what to change (e.g., "Increase the internal padding of product cards from 1.5rem to 2rem")
154
- 3. Reference this design system language consistently
@@ -1,324 +0,0 @@
1
- ---
2
- name: design-system-generator
3
- description: Generate a structured design system document from HTML pages, React components, or screenshots. Extracts colors, typography, spacing, shadows, borders, breakpoints, and component patterns into a reusable design system specification. Use when creating a design system from existing UI, auditing design consistency, or bootstrapping a new project's design tokens from reference material.
4
- ---
5
-
6
- # Design System Generator
7
-
8
- Analyze UI input (HTML, React, screenshots, or live URLs) and produce a comprehensive design system document with extracted design tokens and component patterns.
9
-
10
- ## Quick Start
11
-
12
- 1. **DETERMINE INPUT TYPE** — Ask user for source material (files, URLs, or screenshots)
13
- 2. **COLLECT INPUT** — Read files, scrape URLs, or analyze screenshots
14
- 3. **EXTRACT TOKENS** — Pull colors, typography, spacing, shadows, borders, radii, breakpoints
15
- 4. **IDENTIFY COMPONENTS** — Catalog reusable UI components and their variants
16
- 5. **GENERATE DOCUMENT** — Output design system using the template in `assets/design-system-template.md`
17
- 6. **SAVE OUTPUT** — Write to user-specified path or default `prompter/design-system.md`
18
-
19
- ---
20
-
21
- ## Step 0: Determine Input Type (REQUIRED)
22
-
23
- Present the following options:
24
-
25
- ```
26
- What source material should I analyze?
27
-
28
- 1. **HTML file(s)** — Static HTML pages with inline/linked CSS
29
- 2. **React component(s)** — JSX/TSX files with CSS/Tailwind/styled-components
30
- 3. **Live URL** — Scrape a live webpage for design tokens
31
- 4. **Screenshot(s)** — Analyze visual design from images
32
- 5. **CSS/SCSS file(s)** — Extract tokens directly from stylesheets
33
- 6. **Tailwind config** — Parse tailwind.config.js/ts for design tokens
34
- 7. **Mixed** — Combination of the above
35
-
36
- Please select (1-7) or describe your input:
37
- ```
38
-
39
- Wait for user response before proceeding.
40
-
41
- ---
42
-
43
- ## Step 1: Collect & Parse Input
44
-
45
- ### For HTML Files
46
- 1. Read the HTML file(s) with `read_file`
47
- 2. Extract all `<style>` blocks and inline `style` attributes
48
- 3. Identify linked stylesheets via `<link rel="stylesheet">` and read those files
49
- 4. Note all CSS custom properties (`--var-name`) declarations
50
-
51
- ### For React Components
52
- 1. Read JSX/TSX file(s)
53
- 2. Detect styling approach:
54
- - **CSS Modules** → read associated `.module.css` files
55
- - **Tailwind CSS** → read `tailwind.config.js/ts`, catalog utility classes used
56
- - **Styled-components/Emotion** → extract template literals
57
- - **Inline styles** → extract style objects
58
- - **CSS-in-JS (other)** → extract theme objects
59
- 3. Identify component props that affect visual appearance (variant, size, color)
60
-
61
- ### For Live URLs
62
- 1. Use the scrape tool with `formats: ["html"]` to fetch the page
63
- 2. Also request `formats: ["branding"]` if available for automated brand extraction
64
- 3. Parse the returned HTML as if it were an HTML file input
65
-
66
- ### For Screenshots
67
- 1. Analyze the image for visual design elements
68
- 2. Extract approximate color values using visual analysis
69
- 3. Identify typography patterns (relative sizes, weights)
70
- 4. Note spacing patterns and layout structure
71
- 5. Catalog visible UI components
72
-
73
- ### For CSS/SCSS Files
74
- 1. Read the stylesheet(s) directly
75
- 2. Parse CSS custom properties, SCSS variables, mixins
76
- 3. Extract all token-relevant declarations
77
-
78
- ### For Tailwind Config
79
- 1. Read `tailwind.config.js` or `tailwind.config.ts`
80
- 2. Extract `theme.extend` and base `theme` values
81
- 3. Map Tailwind tokens to design system categories
82
-
83
- ---
84
-
85
- ## Step 2: Extract Design Tokens
86
-
87
- For detailed extraction patterns per CSS property, see [extraction-patterns.md](references/extraction-patterns.md).
88
-
89
- Extract tokens in this order of priority:
90
-
91
- ### 2.1 Colors
92
- - Background colors, text colors, border colors
93
- - Group into semantic categories: `primary`, `secondary`, `accent`, `neutral`, `success`, `warning`, `error`, `info`
94
- - Identify color scales (50–950 shades) when present
95
- - Extract opacity/alpha variants
96
- - Note dark mode / alternate theme colors if detected
97
-
98
- ### 2.2 Typography
99
- - Font families (heading, body, mono)
100
- - Font sizes (map to scale: xs, sm, base, lg, xl, 2xl, etc.)
101
- - Font weights used
102
- - Line heights
103
- - Letter spacing
104
- - Text transform patterns
105
-
106
- ### 2.3 Spacing
107
- - Padding and margin values used
108
- - Gap values in flex/grid layouts
109
- - Map to a consistent scale (0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24...)
110
- - Identify base unit (commonly 4px or 8px)
111
-
112
- ### 2.4 Layout & Breakpoints
113
- - Container max-widths
114
- - Media query breakpoints (sm, md, lg, xl, 2xl)
115
- - Grid column counts and gutter widths
116
-
117
- ### 2.5 Borders & Radii
118
- - Border widths
119
- - Border styles
120
- - Border radius values (none, sm, md, lg, full)
121
-
122
- ### 2.6 Shadows
123
- - Box shadow definitions
124
- - Map to elevation scale (sm, md, lg, xl)
125
- - Note any colored or inset shadows
126
-
127
- ### 2.7 Transitions & Animation
128
- - Transition durations
129
- - Easing functions
130
- - Named animations/keyframes
131
-
132
- ### 2.8 Z-Index Scale
133
- - All z-index values used
134
- - Assign semantic names (dropdown, modal, tooltip, etc.)
135
-
136
- ---
137
-
138
- ## Step 3: Identify Components
139
-
140
- Catalog reusable UI patterns found in the input:
141
-
142
- For each component, document:
143
- - **Name** — PascalCase identifier
144
- - **Variants** — visual or behavioral variations (e.g., `primary`, `outline`, `ghost`)
145
- - **Sizes** — available size options (sm, md, lg)
146
- - **States** — hover, focus, active, disabled appearances
147
- - **Tokens used** — which design tokens the component references
148
-
149
- Common components to look for:
150
- - Button, Input, Select, Checkbox, Radio, Toggle
151
- - Card, Badge, Tag, Avatar, Alert
152
- - Modal, Dropdown, Tooltip, Popover
153
- - Table, List, Tabs, Accordion
154
- - Navigation (Navbar, Sidebar, Breadcrumb)
155
- - Form layouts, Grid systems
156
-
157
- ---
158
-
159
- ## Step 4: Generate Design System Document
160
-
161
- 1. Read the template: `assets/design-system-template.md`
162
- 2. Fill in all extracted tokens and component documentation
163
- 3. Apply these rules:
164
- - **Deduplicate** — Merge identical or near-identical values
165
- - **Normalize** — Convert all color values to hex (with HSL in comments)
166
- - **Scale** — Organize values into logical scales where possible
167
- - **Name** — Apply semantic names to raw values
168
- - **Omit empty sections** — Remove sections with no extracted tokens
169
-
170
- ### Output Formats
171
-
172
- Offer the user a choice of output format:
173
-
174
- ```
175
- Which output format would you like?
176
-
177
- 1. **Markdown** (default) — Structured document for documentation
178
- 2. **CSS Variables** — Ready-to-use :root custom properties
179
- 3. **Tailwind Config** — tailwind.config.js theme object
180
- 4. **JSON Tokens** — Design token JSON (W3C format compatible)
181
- 5. **All** — Generate all formats
182
-
183
- Please select (1-5) or press Enter for Markdown:
184
- ```
185
-
186
- ### Markdown Output
187
- - Use the template from `assets/design-system-template.md`
188
- - Include color swatches using inline HTML: `<span style="background:COLOR;width:24px;height:24px;display:inline-block;border-radius:4px;vertical-align:middle"></span>`
189
- - Save to user-specified path or `prompter/design-system.md`
190
-
191
- ### CSS Variables Output
192
- - Generate a `:root` block with all tokens as custom properties
193
- - Use `--ds-` prefix for namespacing
194
- - Group by category with comments
195
- - Save to `design-tokens.css`
196
-
197
- ### Tailwind Config Output
198
- - Generate a `theme.extend` object with all tokens mapped
199
- - Save to `design-tokens.tailwind.js`
200
-
201
- ### JSON Tokens Output
202
- - Follow W3C Design Tokens format where applicable
203
- - Nest by category → token name → `{ value, type, description }`
204
- - Save to `design-tokens.json`
205
-
206
- ---
207
-
208
- ## Step 5: Save & Report
209
-
210
- After generating the document:
211
-
212
- 1. Save to the specified output path (default: `prompter/design-system.md`)
213
- 2. Update `AGENTS.md` files (see Step 6 below)
214
- 3. Print a summary:
215
-
216
- ```
217
- ✅ Design System Generated
218
-
219
- 📄 Output: <file-path>
220
- 🎨 Colors: <count> tokens extracted
221
- 🔤 Typography: <count> tokens extracted
222
- 📐 Spacing: <count> tokens extracted
223
- 🧩 Components: <count> identified
224
- 📊 Source: <input-type description>
225
-
226
- Next steps:
227
- - Review and adjust token names for your conventions
228
- - Add component usage examples as needed
229
- - Import tokens into your project's theme configuration
230
- ```
231
-
232
- ---
233
-
234
- ## Step 6: Update AGENTS.md Files (REQUIRED)
235
-
236
- After saving the design system document, update both AGENTS.md files in the project so AI assistants know the design system exists and where to find it.
237
-
238
- ### 6.1 Update root `AGENTS.md`
239
-
240
- Check if `AGENTS.md` exists in the project root. If it does:
241
-
242
- 1. Look for an existing "Design System" section — if found, update it; if not, add it.
243
- 2. Also update the `prompter/` directory tree if one is shown (add `design-system.md` to it).
244
-
245
- Add or update this block (place it near the Prompter Workflow or Output Location section):
246
-
247
- ```markdown
248
- ## Design System
249
-
250
- A project-level design system is generated and maintained at `prompter/design-system.md`.
251
-
252
- - Generated by the `design-system-generator` skill (`prompter/skills/design-system-generator/`)
253
- - Contains design tokens: colors, typography, spacing, borders, shadows, breakpoints, and components
254
- - Consult this file when building UI components or making styling decisions to ensure consistency
255
- - Regenerate it by invoking the `design-system-generator` skill with updated source material
256
- ```
257
-
258
- If the root `AGENTS.md` has a directory tree like:
259
-
260
- ```
261
- prompter/
262
- ├── project.md
263
- └── ...
264
- ```
265
-
266
- Add `design-system.md` to it:
267
-
268
- ```
269
- prompter/
270
- ├── project.md # Project context (edit this!)
271
- ├── design-system.md # Generated design system (see Design System section)
272
- └── ...
273
- ```
274
-
275
- ### 6.2 Update `prompter/AGENTS.md`
276
-
277
- Check if `prompter/AGENTS.md` exists. If it does:
278
-
279
- 1. In the **Directory Structure** section, add `design-system.md` to the `prompter/` tree if not already present:
280
-
281
- ```
282
- prompter/
283
- ├── project.md # Project conventions
284
- ├── design-system.md # Generated design system (colors, typography, spacing, components)
285
- ├── specs/
286
- ...
287
- ```
288
-
289
- 2. In the **Before Any Task** > **Context Checklist**, add this entry if not already present:
290
-
291
- ```markdown
292
- - [ ] Read `prompter/design-system.md` for UI/styling decisions (if task involves frontend)
293
- ```
294
-
295
- 3. After the checklist, add or update a **Design System** block if not already present:
296
-
297
- ```markdown
298
- **Design System:**
299
-
300
- The project design system lives at `prompter/design-system.md`. It is generated by the `design-system-generator` skill and contains design tokens (colors, typography, spacing, borders, shadows, breakpoints) and component patterns.
301
-
302
- - Consult it before building or modifying UI components to stay consistent with established tokens
303
- - Regenerate it with the `design-system-generator` skill when the visual design changes significantly
304
- ```
305
-
306
- ### 6.3 Skip gracefully if files don't exist
307
-
308
- If either AGENTS.md file does not exist in the target project, skip that file silently — do not create it.
309
-
310
- ---
311
-
312
- ## Edge Cases
313
-
314
- - **Insufficient input**: If very little design information is extractable, note gaps and suggest what the user should provide additionally
315
- - **Conflicting values**: When similar but not identical values exist (e.g., `#333` and `#2d2d2d`), consolidate and note the original values
316
- - **No components found**: If input is pure CSS variables or a config file, skip the Components section
317
- - **Screenshot-only input**: Mark all extracted values as "approximate" and recommend verification
318
-
319
- ---
320
-
321
- ## Resources
322
-
323
- - **Template**: [design-system-template.md](assets/design-system-template.md) — Output document template
324
- - **Extraction patterns**: [extraction-patterns.md](references/extraction-patterns.md) — CSS property-to-token mapping rules and regex patterns