@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,204 +0,0 @@
1
- ---
2
- name: enhance-prompt
3
- description: Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.
4
- allowed-tools:
5
- - "Read"
6
- - "Write"
7
- ---
8
-
9
- # Enhance Prompt for Stitch
10
-
11
- You are a **Stitch Prompt Engineer**. Your job is to transform rough or vague UI generation ideas into polished, optimized prompts that produce better results from Stitch.
12
-
13
- ## Prerequisites
14
-
15
- Before enhancing prompts, consult the official Stitch documentation for the latest best practices:
16
-
17
- - **Stitch Effective Prompting Guide**: https://stitch.withgoogle.com/docs/learn/prompting/
18
-
19
- This guide contains up-to-date recommendations that may supersede or complement the patterns in this skill.
20
-
21
- ## When to Use This Skill
22
-
23
- Activate when a user wants to:
24
- - Polish a UI prompt before sending to Stitch
25
- - Improve a prompt that produced poor results
26
- - Add design system consistency to a simple idea
27
- - Structure a vague concept into an actionable prompt
28
-
29
- ## Enhancement Pipeline
30
-
31
- Follow these steps to enhance any prompt:
32
-
33
- ### Step 1: Assess the Input
34
-
35
- Evaluate what's missing from the user's prompt:
36
-
37
- | Element | Check for | If missing... |
38
- |---------|-----------|---------------|
39
- | **Platform** | "web", "mobile", "desktop" | Add based on context or ask |
40
- | **Page type** | "landing page", "dashboard", "form" | Infer from description |
41
- | **Structure** | Numbered sections/components | Create logical page structure |
42
- | **Visual style** | Adjectives, mood, vibe | Add appropriate descriptors |
43
- | **Colors** | Specific values or roles | Add design system or suggest |
44
- | **Components** | UI-specific terms | Translate to proper keywords |
45
-
46
- ### Step 2: Check for DESIGN.md
47
-
48
- Look for a `DESIGN.md` file in the current project:
49
-
50
- **If DESIGN.md exists:**
51
- 1. Read the file to extract the design system block
52
- 2. Include the color palette, typography, and component styles
53
- 3. Format as a "DESIGN SYSTEM (REQUIRED)" section in the output
54
-
55
- **If DESIGN.md does not exist:**
56
- 1. Add this note at the end of the enhanced prompt:
57
-
58
- ```
59
- ---
60
- 💡 **Tip:** For consistent designs across multiple screens, create a DESIGN.md
61
- file using the `design-md` skill. This ensures all generated pages share the
62
- same visual language.
63
- ```
64
-
65
- ### Step 3: Apply Enhancements
66
-
67
- Transform the input using these techniques:
68
-
69
- #### A. Add UI/UX Keywords
70
-
71
- Replace vague terms with specific component names:
72
-
73
- | Vague | Enhanced |
74
- |-------|----------|
75
- | "menu at the top" | "navigation bar with logo and menu items" |
76
- | "button" | "primary call-to-action button" |
77
- | "list of items" | "card grid layout" or "vertical list with thumbnails" |
78
- | "form" | "form with labeled input fields and submit button" |
79
- | "picture area" | "hero section with full-width image" |
80
-
81
- #### B. Amplify the Vibe
82
-
83
- Add descriptive adjectives to set the mood:
84
-
85
- | Basic | Enhanced |
86
- |-------|----------|
87
- | "modern" | "clean, minimal, with generous whitespace" |
88
- | "professional" | "sophisticated, trustworthy, with subtle shadows" |
89
- | "fun" | "vibrant, playful, with rounded corners and bold colors" |
90
- | "dark mode" | "dark theme with high-contrast accents on deep backgrounds" |
91
-
92
- #### C. Structure the Page
93
-
94
- Organize content into numbered sections:
95
-
96
- ```markdown
97
- **Page Structure:**
98
- 1. **Header:** Navigation with logo and menu items
99
- 2. **Hero Section:** Headline, subtext, and primary CTA
100
- 3. **Content Area:** [Describe the main content]
101
- 4. **Footer:** Links, social icons, copyright
102
- ```
103
-
104
- #### D. Format Colors Properly
105
-
106
- When colors are mentioned, format them as:
107
- ```
108
- Descriptive Name (#hexcode) for functional role
109
- ```
110
-
111
- Examples:
112
- - "Deep Ocean Blue (#1a365d) for primary buttons and links"
113
- - "Warm Cream (#faf5f0) for page background"
114
- - "Soft Gray (#6b7280) for secondary text"
115
-
116
- ### Step 4: Format the Output
117
-
118
- Structure the enhanced prompt in this order:
119
-
120
- ```markdown
121
- [One-line description of the page purpose and vibe]
122
-
123
- **DESIGN SYSTEM (REQUIRED):**
124
- - Platform: [Web/Mobile], [Desktop/Mobile]-first
125
- - Theme: [Light/Dark], [style descriptors]
126
- - Background: [Color description] (#hex)
127
- - Primary Accent: [Color description] (#hex) for [role]
128
- - Text Primary: [Color description] (#hex)
129
- - [Additional design tokens...]
130
-
131
- **Page Structure:**
132
- 1. **[Section]:** [Description]
133
- 2. **[Section]:** [Description]
134
- ...
135
- ```
136
-
137
- ## Output Options
138
-
139
- **Default:** Return the enhanced prompt as text for the user to copy.
140
-
141
- **Optional file output:** If the user requests, write to a file:
142
- - `next-prompt.md` — for use with the `stitch-loop` skill
143
- - Custom filename specified by user
144
-
145
- ## Examples
146
-
147
- ### Example 1: Vague Input → Structured Prompt
148
-
149
- **User input:**
150
- > "make me a login page"
151
-
152
- **Enhanced output:**
153
- ```markdown
154
- A clean, trustworthy login page with a centered form and subtle branding.
155
-
156
- **DESIGN SYSTEM (REQUIRED):**
157
- - Platform: Web, Desktop-first
158
- - Theme: Light, minimal, professional
159
- - Background: Clean White (#ffffff)
160
- - Surface: Soft Gray (#f9fafb) for form card
161
- - Primary Accent: Deep Blue (#2563eb) for submit button and links
162
- - Text Primary: Near Black (#111827) for headings
163
- - Text Secondary: Medium Gray (#6b7280) for labels
164
- - Buttons: Subtly rounded (8px), full-width on form
165
- - Cards: Gently rounded (12px), soft shadow for elevation
166
-
167
- **Page Structure:**
168
- 1. **Header:** Minimal logo, centered
169
- 2. **Login Card:** Centered form with email, password fields, "Forgot password?" link
170
- 3. **Submit Button:** Primary blue "Sign In" button
171
- 4. **Footer:** "Don't have an account? Sign up" link
172
-
173
- ---
174
- 💡 **Tip:** For consistent designs across multiple screens, create a DESIGN.md
175
- file using the `design-md` skill.
176
- ```
177
-
178
- ### Example 2: Feature Request → Targeted Edit
179
-
180
- **User input:**
181
- > "add a search bar"
182
-
183
- **Enhanced output:**
184
- ```markdown
185
- Add a search bar to the header navigation.
186
-
187
- **Specific changes:**
188
- - Location: Header, right side before user avatar
189
- - Style: Pill-shaped input with subtle gray background (#f3f4f6)
190
- - Icon: Magnifying glass icon on the left, inside the input
191
- - Placeholder: "Search..." in light gray (#9ca3af)
192
- - Behavior: Expands on focus with subtle shadow
193
- - Width: 240px default, 320px on focus
194
-
195
- **Context:** This is a targeted edit. Make only this change while preserving all existing elements.
196
- ```
197
-
198
- ## Tips for Best Results
199
-
200
- 1. **Be specific early** — Vague inputs need more enhancement
201
- 2. **Match the user's intent** — Don't over-design if they want simple
202
- 3. **Keep it structured** — Numbered sections help Stitch understand hierarchy
203
- 4. **Include the design system** — Consistency is key for multi-page projects
204
- 5. **One change at a time for edits** — Don't bundle unrelated changes
@@ -1,114 +0,0 @@
1
- # UI/UX Keywords Reference
2
-
3
- Progressive disclosure reference for common UI terminology and adjective palettes.
4
-
5
- ## Component Keywords
6
-
7
- ### Navigation
8
- - navigation bar, nav menu, header
9
- - breadcrumbs, tabs, sidebar
10
- - hamburger menu, dropdown menu
11
- - back button, close button
12
-
13
- ### Content Containers
14
- - hero section, hero banner
15
- - card, card grid, tile
16
- - modal, dialog, popup
17
- - accordion, collapsible section
18
- - carousel, slider
19
-
20
- ### Forms
21
- - input field, text input
22
- - dropdown, select menu
23
- - checkbox, radio button
24
- - toggle switch
25
- - date picker, time picker
26
- - search bar, search input
27
- - submit button, form actions
28
-
29
- ### Calls to Action
30
- - primary button, secondary button
31
- - ghost button, text link
32
- - floating action button (FAB)
33
- - icon button
34
-
35
- ### Feedback
36
- - toast notification, snackbar
37
- - alert banner, warning message
38
- - loading spinner, skeleton loader
39
- - progress bar, step indicator
40
-
41
- ### Layout
42
- - grid layout, flexbox
43
- - sidebar layout, split view
44
- - sticky header, fixed footer
45
- - full-width, contained width
46
- - centered content, max-width container
47
-
48
- ## Adjective Palettes
49
-
50
- ### Minimal / Clean
51
- - minimal, clean, uncluttered
52
- - generous whitespace, breathing room
53
- - subtle, understated, refined
54
- - simple, focused, distraction-free
55
-
56
- ### Professional / Corporate
57
- - sophisticated, polished, trustworthy
58
- - corporate, business-like, formal
59
- - subtle shadows, clean lines
60
- - structured, organized, hierarchical
61
-
62
- ### Playful / Fun
63
- - vibrant, colorful, energetic
64
- - rounded corners, soft edges
65
- - bold, expressive, dynamic
66
- - friendly, approachable, warm
67
-
68
- ### Premium / Luxury
69
- - elegant, luxurious, high-end
70
- - dramatic, bold contrasts
71
- - sleek, modern, cutting-edge
72
- - exclusive, boutique, curated
73
-
74
- ### Dark Mode
75
- - dark theme, night mode
76
- - high-contrast accents
77
- - soft glows, subtle highlights
78
- - deep backgrounds, muted surfaces
79
-
80
- ### Organic / Natural
81
- - earthy tones, natural colors
82
- - warm, inviting, cozy
83
- - textured, tactile, handcrafted
84
- - flowing, organic shapes
85
-
86
- ## Color Role Terminology
87
-
88
- ### Backgrounds
89
- - page background, canvas
90
- - surface color, card background
91
- - overlay, scrim
92
-
93
- ### Text
94
- - primary text, heading color
95
- - secondary text, body copy
96
- - muted text, placeholder
97
- - inverse text (on dark backgrounds)
98
-
99
- ### Accents
100
- - primary accent, brand color
101
- - secondary accent, highlight
102
- - success, error, warning colors
103
- - hover state, active state
104
-
105
- ## Shape Descriptions
106
-
107
- | Technical | Natural Language |
108
- |-----------|------------------|
109
- | `rounded-none` | sharp, squared-off edges |
110
- | `rounded-sm` | slightly softened corners |
111
- | `rounded-md` | gently rounded corners |
112
- | `rounded-lg` | generously rounded corners |
113
- | `rounded-xl` | very rounded, pillow-like |
114
- | `rounded-full` | pill-shaped, circular |
@@ -1,305 +0,0 @@
1
- ---
2
- name: feature-planner
3
- description: Plan feature development on existing projects. Interview users about what they want to build, analyze the codebase to understand tech stack, patterns, and affected areas, then produce a structured implementation plan with phased tasks. Optionally scaffolds a Prompter change proposal. Use when a user wants to add a feature, make a change, or plan development work on a project that already exists.
4
- ---
5
-
6
- # Feature Developer
7
-
8
- Interview the user about what they want to build, analyze the existing codebase, then produce a phased implementation plan with concrete tasks and file references.
9
-
10
- ## Quick Start
11
-
12
- 1. **DESCRIBE** -- Ask what the user wants to build and why
13
- 2. **ANALYZE** -- Scan the codebase: structure, tech stack, patterns, existing specs
14
- 3. **SCOPE** -- Present what's in/out of scope, identify affected files
15
- 4. **PLAN** -- Break down into phased implementation tasks
16
- 5. **REVIEW** -- Present the plan and iterate until approved
17
- 6. **PROPOSAL** -- Optionally create a Prompter change proposal
18
-
19
- ---
20
-
21
- ## Before You Begin (REQUIRED)
22
-
23
- Before starting the interview:
24
-
25
- 1. **Read `AGENTS.md`** at the project root (if it exists) to understand the tech stack, conventions, and architecture.
26
- 2. **Read `prompter/project.md`** (if it exists) to understand project conventions.
27
- 3. **Scan the project structure** using Glob to understand the directory layout and key files.
28
-
29
- Store what you learn -- you'll reference it when identifying affected files and patterns.
30
-
31
- ---
32
-
33
- ## Interactive Terminal Tool (REQUIRED)
34
-
35
- Use the `AskUserQuestion` tool for **every question** in the interview. This renders an interactive UI in the terminal.
36
-
37
- ### How to Use AskUserQuestion
38
-
39
- - **Single-choice questions**: Set `multiSelect: false`. Use for yes/no, pick-one decisions.
40
- - **Multi-choice questions**: Set `multiSelect: true`. Use for checklists.
41
- - **Free-text input**: When you need the user to describe something open-ended (like the feature itself), ask as a plain message and wait for their response. Only use `AskUserQuestion` for structured choices.
42
- - **Keep options concise**: Labels should be 1-5 words. Add detail in the `description` field.
43
-
44
- ---
45
-
46
- ## Core Rules
47
-
48
- - Use `AskUserQuestion` for every structured question -- never ask choice questions as plain text.
49
- - Ask one question or one small grouped set at a time. Never overwhelm.
50
- - After every answer, acknowledge what you understood before moving on.
51
- - Ground every suggestion in what you observed in the codebase -- don't guess patterns.
52
- - If unsure about something, look at the code before asking the user.
53
- - Keep the interview short -- 3 to 5 questions max before producing the plan.
54
-
55
- ---
56
-
57
- ## Step 1: Feature Description (REQUIRED)
58
-
59
- Open with:
60
-
61
- ```
62
- What feature or change do you want to build? Tell me:
63
-
64
- 1. What it does (the user-visible behavior or system change)
65
- 2. Why you need it (the problem it solves or value it adds)
66
- 3. Any constraints or preferences (e.g., "must use existing auth system", "keep it simple")
67
- ```
68
-
69
- Wait for the user's response. Summarize what you understood in 2-3 sentences.
70
-
71
- ---
72
-
73
- ## Step 2: Codebase Analysis (REQUIRED)
74
-
75
- After understanding the feature, **silently analyze the codebase**. Do NOT ask the user about the tech stack -- discover it yourself.
76
-
77
- ### What to Analyze
78
-
79
- 1. **Project structure** -- Use Glob to map the directory layout (e.g., `src/**`, `app/**`, `resources/**`)
80
- 2. **Tech stack** -- Identify framework, language, database, styling from config files:
81
- - `package.json`, `composer.json`, `Cargo.toml`, `go.mod`, `requirements.txt`
82
- - Framework configs: `next.config.*`, `vite.config.*`, `artisan`, `convex/`
83
- - Database: migrations folder, schema files, ORM config
84
- 3. **Existing patterns** -- Read 2-3 files similar to what you'll need to create/modify:
85
- - If adding an API endpoint, read an existing endpoint
86
- - If adding a UI component, read an existing component
87
- - If adding a model, read an existing model
88
- 4. **Related code** -- Use Grep to find code related to the feature (e.g., if adding notifications, search for existing notification code)
89
- 5. **Existing specs** -- Check `prompter/specs/` for relevant capability specs
90
-
91
- ### Present Findings
92
-
93
- After analysis, present a brief summary:
94
-
95
- ```
96
- Here's what I found in your codebase:
97
-
98
- **Stack**: [e.g., Laravel 12 + Filament + PostgreSQL + Docker]
99
- **Structure**: [e.g., Standard Laravel with domain-driven modules under app/Domains/]
100
- **Relevant patterns**:
101
- - [e.g., Controllers follow single-action pattern (app/Http/Controllers/)]
102
- - [e.g., All models use UUIDs as primary keys]
103
- - [e.g., Tests use Pest with factories]
104
-
105
- **Related existing code**:
106
- - [e.g., Similar notification system exists at app/Notifications/]
107
- - [e.g., No existing code for webhooks -- this is net new]
108
- ```
109
-
110
- Then ask using `AskUserQuestion`:
111
-
112
- ```json
113
- {
114
- "questions": [
115
- {
116
- "question": "Does this look right? Anything I missed about how your project works?",
117
- "header": "Codebase Analysis",
118
- "multiSelect": false,
119
- "options": [
120
- { "label": "Looks correct", "description": "Move on to scoping" },
121
- { "label": "Need to correct something", "description": "I'll clarify what's different" }
122
- ]
123
- }
124
- ]
125
- }
126
- ```
127
-
128
- If the user corrects something, update your understanding and move on.
129
-
130
- ---
131
-
132
- ## Step 3: Scope & Affected Areas
133
-
134
- Based on the feature description and codebase analysis, present the scope:
135
-
136
- ```
137
- Here's what I'd include for this feature:
138
-
139
- **In scope:**
140
- - [change 1]
141
- - [change 2]
142
- - [change 3]
143
-
144
- **Out of scope (can do later):**
145
- - [deferred item 1] -- [reason]
146
-
147
- **Files that will be affected:**
148
- - `path/to/file.ext` -- [what changes: new / modify / delete]
149
- - `path/to/file.ext` -- [what changes]
150
- ```
151
-
152
- Then ask:
153
-
154
- ```json
155
- {
156
- "questions": [
157
- {
158
- "question": "Does this scope match what you had in mind?",
159
- "header": "Feature Scope",
160
- "multiSelect": false,
161
- "options": [
162
- { "label": "Looks good", "description": "Proceed to implementation plan" },
163
- { "label": "Too much", "description": "I want to trim the scope" },
164
- { "label": "Missing something", "description": "I'll tell you what to add" }
165
- ]
166
- }
167
- ]
168
- }
169
- ```
170
-
171
- Iterate until the user confirms the scope.
172
-
173
- ---
174
-
175
- ## Step 4: Implementation Plan (REQUIRED)
176
-
177
- Produce the implementation plan using the template in `assets/implementation-plan-template.md`.
178
-
179
- ### Planning Rules
180
-
181
- - **Phase tasks logically**: database/schema first, then backend logic, then frontend, then tests.
182
- - **Reference specific files**: Every task should mention the file path where the work happens. Use existing file paths for modifications; propose paths that follow existing conventions for new files.
183
- - **Follow existing patterns**: If the project uses a specific pattern (e.g., repository pattern, single-action controllers), your plan must follow it.
184
- - **Be concrete**: "Create UserNotification model with `user_id`, `type`, `message`, `read_at` columns" is better than "Create notification model".
185
- - **Include test tasks**: Always include at least one testing phase.
186
- - **Keep it achievable**: Aim for a plan that can be completed in a single session. If the feature is large, suggest splitting it and plan only the first part.
187
-
188
- ### Present the Plan
189
-
190
- Output the filled-in implementation plan template, then ask:
191
-
192
- ```json
193
- {
194
- "questions": [
195
- {
196
- "question": "Does this implementation plan look correct?",
197
- "header": "Plan Review",
198
- "multiSelect": false,
199
- "options": [
200
- { "label": "Approved", "description": "Save the plan and optionally create a proposal" },
201
- { "label": "Needs changes", "description": "I'll tell you what to adjust" }
202
- ]
203
- }
204
- ]
205
- }
206
- ```
207
-
208
- Iterate if the user requests changes.
209
-
210
- ---
211
-
212
- ## Step 5: Save & Next Steps (REQUIRED)
213
-
214
- Once approved, save the plan based on what's available in the project.
215
-
216
- ### If Prompter is installed
217
-
218
- Check whether `prompter/core/proposal.md` exists using Glob.
219
-
220
- If it exists, ask:
221
-
222
- ```json
223
- {
224
- "questions": [
225
- {
226
- "question": "How would you like to proceed?",
227
- "header": "Next Steps",
228
- "multiSelect": false,
229
- "options": [
230
- { "label": "Create proposal", "description": "Scaffold a Prompter change proposal from this plan" },
231
- { "label": "Start building", "description": "Jump straight into implementation using this plan" },
232
- { "label": "Save plan only", "description": "Save the plan to a file for later" }
233
- ]
234
- }
235
- ]
236
- }
237
- ```
238
-
239
- **If "Create proposal"**: Read `prompter/core/proposal.md` and `prompter/AGENTS.md`, then follow their instructions to scaffold a full change proposal. Use the implementation plan as context to derive:
240
- - `change-id` (verb-led, kebab-case)
241
- - `proposal.md` (why, what changes, impact)
242
- - `tasks.md` (from the implementation phases)
243
- - `design.md` (only if needed per Prompter criteria)
244
- - Spec deltas under `specs/[capability]/spec.md`
245
-
246
- After scaffolding, run `prompter validate <change-id> --strict --no-interactive` and fix any issues.
247
-
248
- **If "Start building"**: Begin implementing the tasks from the plan sequentially. Read the plan as your checklist and complete each task in order.
249
-
250
- **If "Save plan only"**: Write the plan to `implementation-plan.md` in the project root.
251
-
252
- ### If Prompter is NOT installed
253
-
254
- Ask:
255
-
256
- ```json
257
- {
258
- "questions": [
259
- {
260
- "question": "What would you like to do next?",
261
- "header": "Next Steps",
262
- "multiSelect": false,
263
- "options": [
264
- { "label": "Start building", "description": "Begin implementing the tasks now" },
265
- { "label": "Save plan only", "description": "Save the plan to a file for later" }
266
- ]
267
- }
268
- ]
269
- }
270
- ```
271
-
272
- **If "Start building"**: Begin implementing tasks sequentially.
273
-
274
- **If "Save plan only"**: Write the plan to `implementation-plan.md` in the project root.
275
-
276
- ---
277
-
278
- ## Conversation Tips
279
-
280
- ### Handling Large Features
281
- - Suggest splitting into multiple increments.
282
- - Plan only the first increment in detail.
283
- - Note follow-up work in the "Out of scope" section.
284
- - Use: "This is a big feature. I'd suggest we tackle [core part] first and add [extras] after."
285
-
286
- ### Handling Vague Requests
287
- - Look at the codebase first to infer what the user might mean.
288
- - If still unclear after codebase analysis, ask ONE focused clarifying question.
289
- - Never ask more than 2 clarifying questions before producing a draft plan -- it's easier to iterate on a concrete plan than to keep asking questions.
290
-
291
- ### Handling Technical Users
292
- - Skip obvious explanations.
293
- - Focus on file paths, patterns, and concrete decisions.
294
- - Be direct about tradeoffs.
295
-
296
- ### Handling Unfamiliar Codebases
297
- - Spend more time in Step 2 (analysis).
298
- - Read more example files to understand patterns.
299
- - Be explicit about assumptions: "I'm assuming X based on what I see in Y -- correct me if wrong."
300
-
301
- ---
302
-
303
- ## Resources
304
-
305
- - **Implementation plan template**: [implementation-plan-template.md](assets/implementation-plan-template.md) -- Structured output format for the plan
@@ -1,85 +0,0 @@
1
- # Implementation Plan: [Feature Name]
2
-
3
- ## Feature Overview
4
- [1-2 sentence summary of what is being built and why]
5
-
6
- ---
7
-
8
- ## Scope
9
-
10
- ### In Scope
11
- - [ ] [Change 1]
12
- - [ ] [Change 2]
13
- - [ ] [Change 3]
14
-
15
- ### Out of Scope
16
- - [Deferred item 1] -- [reason]
17
- - [Deferred item 2] -- [reason]
18
-
19
- ---
20
-
21
- ## Codebase Analysis
22
-
23
- ### Tech Stack Detected
24
- | Layer | Technology |
25
- |-------|-----------|
26
- | Frontend | [e.g., Next.js, React] |
27
- | Backend | [e.g., Laravel, Express] |
28
- | Database | [e.g., PostgreSQL, MySQL] |
29
- | Other | [e.g., Redis, Docker] |
30
-
31
- ### Affected Files & Modules
32
- | File / Module | Change Type | Description |
33
- |---------------|-------------|-------------|
34
- | [path/to/file] | New / Modify / Delete | [What changes] |
35
-
36
- ### Existing Patterns to Follow
37
- - [Pattern 1 observed in codebase -- e.g., "Controllers use single-action pattern"]
38
- - [Pattern 2 -- e.g., "All API responses use ApiResource wrapper"]
39
- - [Pattern 3 -- e.g., "Tests use factories with specific naming convention"]
40
-
41
- ---
42
-
43
- ## Data Model Changes
44
- > Skip this section if no database changes are needed.
45
-
46
- ### New Tables / Collections
47
- - **[table_name]**: [key columns/fields]
48
-
49
- ### Modified Tables / Collections
50
- - **[table_name]**: Add [column] ([type]) -- [reason]
51
-
52
- ### New Relationships
53
- - [Entity A] has many [Entity B]
54
-
55
- ---
56
-
57
- ## Implementation Tasks
58
-
59
- ### Phase 1: [Foundation / Database / Setup]
60
- - [ ] 1.1 [Task description] -- `path/to/file`
61
- - [ ] 1.2 [Task description] -- `path/to/file`
62
-
63
- ### Phase 2: [Core Logic / Backend]
64
- - [ ] 2.1 [Task description] -- `path/to/file`
65
- - [ ] 2.2 [Task description] -- `path/to/file`
66
-
67
- ### Phase 3: [Frontend / UI]
68
- - [ ] 3.1 [Task description] -- `path/to/file`
69
- - [ ] 3.2 [Task description] -- `path/to/file`
70
-
71
- ### Phase 4: [Tests / Validation]
72
- - [ ] 4.1 [Task description] -- `path/to/file`
73
- - [ ] 4.2 [Task description] -- `path/to/file`
74
-
75
- ---
76
-
77
- ## Dependencies & Risks
78
- | Risk | Impact | Mitigation |
79
- |------|--------|------------|
80
- | [Risk 1] | [High/Med/Low] | [How to handle] |
81
-
82
- ---
83
-
84
- ## Notes
85
- - [Any additional context, edge cases, or decisions made during planning]