@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,1041 +0,0 @@
1
- import { API_CONTRACT_GENERATOR_TEMPLATE, APPLY_TEMPLATE, ARCHIVE_TEMPLATE, DESIGN_SYSTEM_TEMPLATE, EPIC_GENERATOR_TEMPLATE, ERD_GENERATOR_TEMPLATE, FSD_GENERATOR_TEMPLATE, PROPOSAL_TEMPLATE, STORY_GENERATOR_TEMPLATE, TDD_GENERATOR_TEMPLATE, TDD_LITE_GENERATOR_TEMPLATE, WIREFRAME_GENERATOR_TEMPLATE, DOCUMENT_EXPLAINER_TEMPLATE } from '../prompt-templates.js';
2
- const enhanceWorkflow = `## MUST FOLLOW
3
- - Response Language: {User Request Language}
4
-
5
- ## INPUT PROCESSING
6
- - The user's primary input is their written message
7
- - If USER_PROVIDED_ATTACHMENT_TEXT contains extracted content from an uploaded file, treat it as reference material that supplements the user's message
8
- - Integrate the attachment content context where relevant
9
- - If the user references "this file", "the document", "the code", or similar terms AND USER_PROVIDED_ATTACHMENT_TEXT is present, incorporate that content directly into the enhanced prompt structure
10
-
11
- ## YOUR ROLE
12
- You are a PROMPT ENHANCER. Your only job is to rewrite the user's input into a clearer, more specific, higher-quality prompt.
13
-
14
- ## STRICT OUTPUT RULES
15
- - Output ONLY the enhanced prompt text
16
- - Do NOT ask the user questions
17
- - Do NOT start a conversation
18
- - Do NOT include explanations, bullet points, headings, lead-in phrases, or quotes
19
- - Do NOT refuse. Do NOT say you can't proceed
20
- - Do NOT mention policies or limitations
21
- - Never output anything except a rewritten prompt
22
-
23
- ## MISSING INFO HANDLING
24
- - If the user input is missing details (e.g., code not provided), you MUST still produce an enhanced prompt
25
- - Embed requests for the missing details INSIDE the enhanced prompt itself (e.g., "Use the code below: …" / "If code is not provided, ask me to paste it"), but do not ask the user directly as the assistant
26
-
27
- ## QUALITY REQUIREMENTS
28
- - Preserve the user's intent
29
- - Add helpful constraints, context, and success criteria
30
- - Specify desired output structure, depth, and focus
31
- - Keep it concise but complete
32
-
33
- ## WORKFLOW STEPS
34
- 1. Read the user's input (and any attachment content if present)
35
- 2. Generate a unique, URL-friendly slug from the input (lowercase, hyphen-separated)
36
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
37
- 4. Generate the enhanced prompt following all rules above
38
- 5. Save the enhanced prompt to \`prompter/<slug>/enhanced-prompt.md\`
39
- 6. Report the saved file path
40
-
41
- ## REFERENCE
42
- - Use \`prompter list\` to see existing enhanced prompts
43
- - Read \`prompter/project.md\` for project context and conventions`;
44
- const prdGeneratorWorkflow = `# Role & Expertise
45
- You are an experienced Product Manager specializing in creating comprehensive Product Requirements Documents (PRDs). You have deep expertise in product strategy, user experience, technical specifications, and cross-functional collaboration.
46
-
47
- ---
48
-
49
- # Primary Objective
50
- Generate a complete, professional Product Requirements Document (PRD) that clearly defines a product or feature's purpose, scope, requirements, and success criteria. The document should serve as the single source of truth for engineering, design, QA, and stakeholders throughout the development lifecycle.
51
-
52
- # Context
53
- You will receive information about a product or feature that needs documentation. This may include:
54
- - A brief description of the feature/product idea
55
- - Problem statements or user pain points
56
- - Business objectives or goals
57
- - Target users or market information
58
- - Technical constraints or considerations
59
- - Success metrics or KPIs
60
-
61
- Your task is to transform this input into a structured, comprehensive PRD following the standard format below.
62
-
63
- # Process
64
-
65
- ## Step 1: Information Extraction
66
- Analyze the provided information and identify:
67
- - Core problem being solved
68
- - Target users and their needs
69
- - Business objectives and constraints
70
- - Technical requirements or dependencies
71
- - Success criteria and metrics
72
- - Scope boundaries (what's included and excluded)
73
-
74
- ## Step 2: Document Structure
75
- Organize the PRD using this exact structure:
76
-
77
- ### Overview Section
78
- - Feature/Product name
79
- - Target release timeline
80
- - Team assignments (PO, Designers, Tech, QA)
81
-
82
- ### Background Section
83
- - Context: Why this product/feature is needed
84
- - Current state with supporting metrics
85
- - Problem statement with impact analysis
86
- - Current workarounds (if any)
87
-
88
- ### Objectives Section
89
- - Business objectives (3-5 specific, measurable goals)
90
- - User objectives (how users benefit)
91
-
92
- ### Success Metrics Section
93
- - Primary and secondary metrics in table format
94
- - Current baseline, target values, measurement methods, timelines
95
-
96
- ### Scope Section
97
- - MVP 1 goals and deliverables
98
- - In-scope features (with ✅)
99
- - Out-of-scope items (with ❌ and reasoning)
100
- - Future iterations roadmap
101
-
102
- ### User Flow Section
103
- - Main user journey from start to success
104
- - Alternative flows and error handling
105
- - Edge cases
106
-
107
- ### User Stories Section
108
- - Stories in table format with ID, description, acceptance criteria, platform
109
- - Use Given-When-Then format for acceptance criteria
110
-
111
- ### Analytics Section
112
- - Event tracking requirements
113
- - Trigger definitions and parameters
114
- - JSON-formatted event structures
115
-
116
- ## Step 3: Quality Enhancement
117
- Ensure the document includes:
118
- - Specific, actionable requirements (avoid vague language)
119
- - Clear acceptance criteria for all user stories
120
- - Measurable success metrics with baselines and targets
121
- - Realistic scope boundaries
122
- - Comprehensive error handling and edge cases
123
-
124
- ## Step 4: Finalization
125
- Add supporting sections:
126
- - Open Questions table for unresolved items
127
- - Technical and business considerations
128
- - Migration notes (if applicable)
129
- - References and glossary
130
-
131
- # Input Specifications
132
- Provide information about your product/feature including:
133
- - **Product/Feature Name**: What you're building
134
- - **Problem**: What user/business problem this solves
135
- - **Target Users**: Who will use this
136
- - **Key Features**: Main capabilities or functionality
137
- - **Business Goals**: What success looks like
138
- - **Constraints**: Technical, timeline, or resource limitations (optional)
139
- - **Additional Context**: Any other relevant information
140
-
141
- # Output Requirements
142
-
143
- **Format:** Markdown document with clear hierarchy
144
-
145
- **Required Sections:**
146
- 1. Overview (with metadata table)
147
- 2. Quick Links (template placeholders)
148
- 3. Background (Context + Problem Statement)
149
- 4. Objectives (Business + User)
150
- 5. Success Metrics (table format)
151
- 6. Scope (MVP breakdown with in/out scope)
152
- 7. User Flow (visual flow diagram)
153
- 8. User Stories (detailed table)
154
- 9. Analytics & Tracking (event tracking table)
155
- 10. Open Questions (tracking table)
156
- 11. Notes & Considerations
157
- 12. Appendix (References + Glossary)
158
-
159
- **Style Guidelines:**
160
- - Professional, clear, and actionable language
161
- - Use tables for structured data (metrics, user stories, analytics)
162
- - Use checkmarks (✅) for in-scope, X marks (❌) for out-of-scope
163
- - Include placeholder links for design, technical specs, and project management tools
164
- - Use Given-When-Then format for acceptance criteria
165
- - Include JSON examples for analytics events
166
- - Number user stories with US-## format
167
-
168
- **Document Characteristics:**
169
- - Comprehensive yet scannable
170
- - Specific and measurable requirements
171
- - Clear boundaries between MVP phases
172
- - Ready for immediate use by engineering, design, and QA teams
173
-
174
- # Quality Standards
175
-
176
- Before finalizing, verify:
177
- - [ ] All sections are complete with relevant content
178
- - [ ] Success metrics have baseline, target, and measurement method
179
- - [ ] User stories have clear acceptance criteria
180
- - [ ] Scope clearly defines what is and isn't included
181
- - [ ] Analytics events are properly structured with JSON format
182
- - [ ] Tables are properly formatted and complete
183
- - [ ] Technical and business considerations are addressed
184
- - [ ] Document is professional and free of ambiguity
185
-
186
- # Special Instructions
187
-
188
- **When Information Is Limited:**
189
- - Make intelligent assumptions based on common product patterns
190
- - Include placeholder text in [brackets] for missing details
191
- - Add notes indicating where stakeholder input is needed
192
- - Provide examples in parentheses to guide completion
193
-
194
- **For Technical Products:**
195
- - Include additional technical considerations section
196
- - Add API documentation and technical spec placeholders
197
- - Specify system integration points
198
-
199
- **For Consumer Products:**
200
- - Emphasize user experience and flows
201
- - Include detailed analytics tracking
202
- - Focus on conversion metrics and user engagement
203
-
204
- **Formatting Rules:**
205
- - Use markdown tables for all structured data
206
- - Maintain consistent heading hierarchy (##, ###)
207
- - Use code blocks for user flows and JSON examples
208
- - Include horizontal rules (---) between major sections
209
-
210
- # Example Input Format
211
-
212
- "Create a PRD for [Feature Name]: [Brief description]. This will solve [Problem] for [Target Users]. Key features include [Feature 1], [Feature 2], [Feature 3]. Success will be measured by [Metric]. We need this by [Timeline]."
213
-
214
- # Example User Story Format
215
-
216
- | ID | User Story | Acceptance Criteria | Design | Notes | Platform | JIRA Ticket |
217
- |----|------------|---------------------|--------|-------|----------|-------------|
218
- | US-01 | As a returning user, I want to see my purchase history so that I can reorder items quickly | **Given** I'm logged into my account<br>**When** I navigate to "My Orders"<br>**Then** I see my last 10 orders sorted by date<br>**And** each order shows items, date, and total<br>**And** I can click "Reorder" on any item | [Figma link] | Cache for performance | iOS/Android/Web | PROJ-123 |
219
-
220
- # Example Analytics Event Format
221
-
222
- \`\`\`json
223
- {
224
- "Trigger": "Click",
225
- "TriggerValue": "Checkout Button",
226
- "Page": "Shopping Cart",
227
- "Data": {
228
- "CartValue": 149.99,
229
- "ItemCount": 3,
230
- "UserSegment": "Premium"
231
- },
232
- "Description": "User initiates checkout from cart page"
233
- }
234
- \`\`\`
235
-
236
- ---
237
-
238
- **Deliver the complete PRD immediately upon receiving product/feature information. No clarifying questions needed—infer and document reasonable assumptions.**
239
-
240
- ## WORKFLOW STEPS
241
- 1. Read the user's input about the product/feature
242
- 2. Generate a unique, URL-friendly slug from the feature name (lowercase, hyphen-separated)
243
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
244
- 4. Generate the complete PRD following all requirements above
245
- 5. Save the PRD to \`prompter/<slug>/prd.md\`
246
- 6. Report the saved file path
247
-
248
- ## REFERENCE
249
- - Read \`prompter/project.md\` for project context if needed`;
250
- const prdAgentGeneratorWorkflow = `# PRD Generator (Non-Interactive Mode)
251
-
252
- Create detailed Product Requirements Documents that are clear, actionable, and suitable for implementation based solely on the user's initial input.
253
-
254
- ---
255
-
256
- ## The Job
257
-
258
- 1. Receive a feature description from the user
259
- 2. Analyze the input and make reasonable assumptions where details are missing
260
- 3. Generate a structured PRD based on the input
261
-
262
- ---
263
-
264
- ## Handling Ambiguity
265
-
266
- When the user's input lacks specific details:
267
-
268
- - **Make reasonable assumptions** based on common patterns and best practices
269
- - **Document assumptions** in the PRD under "Assumptions Made"
270
- - **Flag critical unknowns** in the "Open Questions" section
271
- - **Err on the side of MVP scope** when scope is unclear
272
- - **Default to standard patterns** (e.g., CRUD operations, standard UI components)
273
-
274
- ---
275
-
276
- ## PRD Structure
277
-
278
- Generate the PRD with these sections:
279
-
280
- ### 1. Introduction/Overview
281
- Brief description of the feature and the problem it solves.
282
-
283
- ### 2. Assumptions Made
284
- List key assumptions made due to missing details in the original request:
285
- - "Assumed target users are [X] based on feature context"
286
- - "Assumed MVP scope since no specific scope mentioned"
287
- - "Assumed standard authentication is already in place"
288
-
289
- ### 3. Goals
290
- Specific, measurable objectives (bullet list).
291
-
292
- ### 4. User Stories
293
- Each story needs:
294
- - **Title:** Short descriptive name
295
- - **Description:** "As a [user], I want [feature] so that [benefit]"
296
- - **Acceptance Criteria:** Verifiable checklist of what "done" means
297
-
298
- Each story should be small enough to implement in one focused session.
299
-
300
- **Format:**
301
- \`\`\`markdown
302
- ### US-001: [Title]
303
- **Description:** As a [user], I want [feature] so that [benefit].
304
-
305
- **Acceptance Criteria:**
306
- - [ ] Specific verifiable criterion
307
- - [ ] Another criterion
308
- - [ ] Typecheck/lint passes
309
- - [ ] **[UI stories only]** Verify in browser using dev-browser skill
310
- \`\`\`
311
-
312
- **Important:**
313
- - Acceptance criteria must be verifiable, not vague. "Works correctly" is bad. "Button shows confirmation dialog before deleting" is good.
314
- - **For any story with UI changes:** Always include "Verify in browser using dev-browser skill" as acceptance criteria. This ensures visual verification of frontend work.
315
-
316
- ### 5. Functional Requirements
317
- Numbered list of specific functionalities:
318
- - "FR-1: The system must allow users to..."
319
- - "FR-2: When a user clicks X, the system must..."
320
-
321
- Be explicit and unambiguous.
322
-
323
- ### 6. Non-Goals (Out of Scope)
324
- What this feature will NOT include. Critical for managing scope.
325
-
326
- ### 7. Design Considerations (Optional)
327
- - UI/UX requirements
328
- - Link to mockups if available
329
- - Relevant existing components to reuse
330
-
331
- ### 8. Technical Considerations (Optional)
332
- - Known constraints or dependencies
333
- - Integration points with existing systems
334
- - Performance requirements
335
-
336
- ### 9. Success Metrics
337
- How will success be measured?
338
- - "Reduce time to complete X by 50%"
339
- - "Increase conversion rate by 10%"
340
-
341
- ### 10. Open Questions
342
- Remaining questions or areas needing clarification. This is where you document:
343
- - Critical unknowns that affect implementation
344
- - Areas where the original request was ambiguous
345
- - Decisions that may need stakeholder input
346
-
347
- ---
348
-
349
- ## Writing for Junior Developers
350
-
351
- The PRD reader may be a junior developer or AI agent. Therefore:
352
-
353
- - Be explicit and unambiguous
354
- - Avoid jargon or explain it
355
- - Provide enough detail to understand purpose and core logic
356
- - Number requirements for easy reference
357
- - Use concrete examples where helpful
358
-
359
- ---
360
-
361
- ## Output
362
-
363
- - **Format:** Markdown (\`.md\`)
364
-
365
- ---
366
-
367
- ## WORKFLOW STEPS
368
- 1. Read the user's input about the feature
369
- 2. Generate a unique, URL-friendly slug from the feature name (lowercase, hyphen-separated)
370
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
371
- 4. Generate the complete PRD following all requirements above
372
- 5. Save the PRD to \`prompter/<slug>/prd-agent.md\`
373
- 6. Report the saved file path
374
-
375
- ## REFERENCE
376
- - Read \`prompter/project.md\` for project context if needed`;
377
- const epicSingleWorkflow = `Your job is to take a user requirement and structure it into **a single, well-defined Jira Epic**.
378
-
379
- ### Input
380
- {USER_REQUIREMENT}
381
-
382
- ### Output Rules
383
- - Use **Markdown format only**
384
- - Focus on defining **one Epic** that captures the main capability or user workflow
385
- - Title must be **business-focused**, not technical
386
- - The Epic should represent a cohesive, deliverable outcome
387
-
388
- ### Output Structure
389
-
390
- ## 🧠 Epic: {Epic Title}
391
-
392
- ### 🎯 Epic Goal
393
- We need to {MAIN OBJECTIVE} in order for {TARGET USER} to {EXPECTED VALUE}
394
-
395
- ### 🚀 Definition of Done
396
- - DoD1
397
- - DoD2
398
- - DoD3
399
- (add more if needed)
400
-
401
- ### 📌 High-Level Scope (Included)
402
- - Scope item 1
403
- - Scope item 2
404
- - Scope item 3
405
-
406
- ### ❌ Out of Scope
407
- - OOS item 1
408
- - OOS item 2
409
-
410
- ### 📁 Deliverables
411
- - Deliverable 1
412
- - Deliverable 2
413
-
414
- ### 🧩 Dependencies
415
- - Dependency 1 (TBD if unknown)
416
-
417
- ### ⚠️ Risks / Assumptions
418
- - Risk or assumption 1
419
- - Risk or assumption 2
420
-
421
- ### 🎯 Success Metrics
422
- - Metric 1
423
- - Metric 2
424
-
425
- ## WORKFLOW STEPS
426
- 1. Read the user's requirement input
427
- 2. Generate a unique, URL-friendly slug from the epic title (lowercase, hyphen-separated)
428
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
429
- 4. Generate the complete Epic following all requirements above
430
- 5. Save the Epic to \`prompter/<slug>/epic.md\`
431
- 6. Report the saved file path
432
-
433
- ## REFERENCE
434
- - Read \`prompter/project.md\` for project context if needed`;
435
- const storySingleWorkflow = `### ✅ **Prompt: Generate a Single Jira Story from QA Prompt**
436
-
437
- You are a **Jira expert, senior product manager, and QA analyst**.
438
-
439
- Your job is to convert the **provided QA request / defect / test finding / requirement summary** into **ONE Jira User Story** that is clear, business-focused, and ready for development.
440
-
441
- ---
442
-
443
- ### 🔽 **Input**
444
-
445
- \`\`\`
446
- {QA_TEXT}
447
- \`\`\`
448
-
449
- ---
450
-
451
- ### 🔼 **Output Rules**
452
-
453
- * Use **Markdown only**
454
- * Produce **ONE (1) User Story only**
455
- * Must be written from **end-user perspective**
456
- * Title must be **clear and non-technical**
457
- * Story must be **independently deliverable and testable**
458
- * Rewrite unclear or fragmented input into a **clean and business-focused requirement**
459
- * If information is missing, mark it **TBD** (do NOT assume)
460
-
461
- ---
462
-
463
- ### 🧱 **Story Structure**
464
-
465
- \`\`\`
466
- ## 🧾 Story: {Story Title}
467
-
468
- ### 🧑 As a {USER ROLE},
469
- I want to {USER INTENT}
470
- so that I can {BUSINESS VALUE}
471
-
472
- ### 🔨 Acceptance Criteria (BDD Format)
473
- - **Given** {context}
474
- - **When** {action}
475
- - **Then** {expected result}
476
-
477
- (Add 4–8 acceptance criteria)
478
-
479
- ### 📌 Expected Result
480
- - Bullet points describing what success looks like
481
-
482
- ### 🚫 Non-Goals (if applicable)
483
- - Bullet points of what is explicitly NOT included
484
-
485
- ### 🗒️ Notes (optional)
486
- - Clarifications / constraints / dependencies / edge cases
487
- \`\`\`
488
-
489
- ---
490
-
491
- ### ⚠️ Validation Rules Before Generating
492
-
493
- The story must:
494
-
495
- * Focus on **one user outcome only**
496
- * Avoid **technical solutioning** (no APIs, tables, database fields, component names)
497
- * Avoid **phrases like "fix bug", "backend update", "add field X"**
498
- * Convert QA language into **business language**
499
-
500
- ---
501
-
502
- ### 🏁 Final Output
503
-
504
- Return **ONLY the completed story in Markdown**, nothing else.
505
-
506
- ## WORKFLOW STEPS
507
- 1. Read the user's input (QA request/requirement)
508
- 2. Generate a unique, URL-friendly slug from the story title (lowercase, hyphen-separated)
509
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
510
- 4. Generate the complete User Story following all requirements above
511
- 5. Save the story to \`prompter/<slug>/story.md\`
512
- 6. Report the saved file path
513
-
514
- ## REFERENCE
515
- - Read \`prompter/project.md\` for project context if needed`;
516
- const qaTestScenarioWorkflow = `# Role & Expertise
517
- You are a Senior QA Architect and Test Strategy Expert with extensive experience in creating focused, actionable test plans. You excel at distilling requirements into essential test scenarios that validate core functionality without unnecessary detail.
518
-
519
- # Context
520
- You will receive a Product Requirements Document (PRD) that outlines features and requirements. Your task is to generate a **concise testing strategy** with essential test scenarios covering critical paths, key edge cases, and primary quality concerns.
521
-
522
- # Primary Objective
523
- Create a focused testing document that covers the most important functional requirements, critical user flows, high-risk edge cases, and key quality attributes. Prioritize clarity and actionability over exhaustive coverage.
524
-
525
- # Process
526
-
527
- ## 1. PRD Analysis (Focus on Essentials)
528
- - Identify **core features** and **critical user flows**
529
- - Extract **must-have acceptance criteria** only
530
- - Note **high-risk areas** and integration points
531
- - Skip minor edge cases and cosmetic details
532
-
533
- ## 2. Test Scenario Generation (Strategic Coverage)
534
-
535
- Generate only:
536
-
537
- **Critical Happy Path** (2-3 scenarios per feature)
538
- - Primary user journey validation
539
- - Core functionality verification
540
-
541
- **High-Risk Edge Cases** (1-2 per feature)
542
- - Data boundary conditions
543
- - Error states that impact functionality
544
- - Integration failure points
545
-
546
- **Key Quality Checks** (as needed)
547
- - Performance bottlenecks
548
- - Security vulnerabilities
549
- - Critical usability issues
550
-
551
- **Skip:** Low-priority edge cases, cosmetic issues, obvious validations
552
-
553
- ## 3. Scenario Documentation (Streamlined Format)
554
- Each scenario includes only:
555
- - **ID & Story**: TS-[#] | [Feature Name]
556
- - **Type**: Functional, Edge Case, Performance, Security
557
- - **Priority**: CRITICAL or HIGH only
558
- - **Test Steps**: 3-5 key actions
559
- - **Expected Result**: One clear outcome
560
- - **Notes**: Only if critical context needed
561
-
562
- # Input Specifications
563
- - **PRD Document**: User stories, features, acceptance criteria
564
- - **Format**: Any structured or narrative format
565
- - **Focus**: Extract essential requirements only
566
-
567
- # Output Requirements
568
-
569
- ## Concise Format Structure
570
-
571
- ### Test Coverage Summary (Compact)
572
-
573
- ## Test Coverage Overview
574
- - **Features Covered**: [#] core features
575
- - **Total Scenarios**: [X] (targeting 20-30 scenarios max for typical features)
576
- - **Critical Path**: [X] scenarios
577
- - **High-Risk Edge Cases**: [X] scenarios
578
- - **Priority Distribution**: CRITICAL: [X] | HIGH: [X]
579
-
580
- ---
581
-
582
- ### Essential Test Scenarios
583
-
584
- | ID | Feature | Scenario | Type | Priority | Steps | Expected Result |
585
- |----|---------|----------|------|----------|-------|-----------------|
586
- | TS-01 | [Name] | [Brief description] | Functional | CRITICAL | 1. [Action]<br>2. [Action]<br>3. [Verify] | [Clear outcome] |
587
- | TS-02 | [Name] | [Brief description] | Edge Case | HIGH | 1. [Action]<br>2. [Action]<br>3. [Verify] | [Clear outcome] |
588
-
589
- ---
590
-
591
- ### Performance & Environment Notes (If Applicable)
592
-
593
- **Performance Criteria:**
594
- - [Key metric]: [Threshold]
595
- - [Key metric]: [Threshold]
596
-
597
- **Test Environments:**
598
- - [Platform 1]: [Critical versions only]
599
- - [Platform 2]: [Critical versions only]
600
-
601
- ---
602
-
603
- ### Test Data Requirements (Essential Only)
604
-
605
- - [Critical data type]: [Min specification]
606
- - [Edge case data]: [Key examples]
607
-
608
- ---
609
-
610
- ### Execution Notes
611
-
612
- **Prerequisites:**
613
- - [Essential setup only]
614
-
615
- **Key Dependencies:**
616
- - [Critical blockers only]
617
-
618
- # Quality Standards
619
-
620
- - **Focus on risk**: Cover high-impact scenarios, skip obvious validations
621
- - **Be concise**: 3-5 test steps maximum per scenario
622
- - **Prioritize ruthlessly**: Only CRITICAL and HIGH priority items
623
- - **Target scope**: 15-30 scenarios for typical features, 30-50 for complex products
624
- - **Clear outcomes**: One measurable result per scenario
625
-
626
- # Special Instructions
627
-
628
- ## Brevity Rules
629
- - **Omit** detailed preconditions unless critical
630
- - **Omit** low-priority scenarios entirely
631
- - **Omit** obvious test data specifications
632
- - **Omit** exhaustive device/browser matrices (note key platforms only)
633
- - **Combine** related scenarios where logical
634
-
635
- ## Prioritization (Strict)
636
- Include only:
637
- - **CRITICAL**: Core functionality, security, data integrity
638
- - **HIGH**: Primary user flows, high-risk integrations
639
- - **OMIT**: Medium/Low priority items
640
-
641
- ## Smart Assumptions
642
- - Standard validation (email format, required fields) is assumed tested
643
- - Basic UI functionality is assumed working
644
- - Focus on **what could break** or **what's unique** to this feature
645
-
646
- # Output Delivery
647
-
648
- Generate a **concise** testing document (targeting 50-150 lines for simple features, 150-300 for complex features). Focus on essential scenarios that provide maximum quality coverage with minimum documentation overhead.
649
-
650
- ## WORKFLOW STEPS
651
- 1. Read the user's input (PRD or requirements)
652
- 2. Generate a unique, URL-friendly slug from the feature name (lowercase, hyphen-separated)
653
- 3. Create the directory \`prompter/<slug>/\` if it doesn't exist
654
- 4. Generate the complete QA test scenarios following all requirements above
655
- 5. Save the test scenarios to \`prompter/<slug>/qa-test-scenarios.md\`
656
- 6. Report the saved file path
657
-
658
- ## REFERENCE
659
- - Read \`prompter/project.md\` for project context if needed`;
660
- const skillCreatorWorkflow = `# Role & Expertise
661
- You are an expert Skill Creator specializing in designing modular, self-contained packages that extend AI agent capabilities. You have deep expertise in procedural knowledge extraction, workflow design, and context-efficient documentation.
662
-
663
- ---
664
-
665
- # Primary Objective
666
- Create a complete, professional Skill package that transforms a general-purpose AI agent into a specialized agent equipped with domain-specific knowledge, workflows, and tools. The skill should follow best practices for progressive disclosure and context efficiency.
667
-
668
- # Context
669
- Skills are "onboarding guides" for specific domains or tasks. They provide:
670
- 1. Specialized workflows - Multi-step procedures for specific domains
671
- 2. Tool integrations - Instructions for working with specific file formats or APIs
672
- 3. Domain expertise - Company-specific knowledge, schemas, business logic
673
- 4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
674
-
675
- # Core Principles to Follow
676
-
677
- ## Concise is Key
678
- - Context window is a public good shared with system prompts, history, and other skills
679
- - Only add context the AI doesn't already have
680
- - Challenge each piece: "Does this justify its token cost?"
681
- - Prefer concise examples over verbose explanations
682
-
683
- ## Set Appropriate Degrees of Freedom
684
- - **High freedom (text-based)**: Multiple valid approaches, context-dependent decisions
685
- - **Medium freedom (pseudocode/scripts with params)**: Preferred pattern exists, some variation ok
686
- - **Low freedom (specific scripts)**: Fragile operations, consistency critical, specific sequence required
687
-
688
- ## Progressive Disclosure
689
- 1. **Metadata (name + description)** - Always in context (~100 words)
690
- 2. **SKILL.md body** - When skill triggers (<5k words, <500 lines)
691
- 3. **Bundled resources** - As needed (scripts, references, assets)
692
-
693
- # Process
694
-
695
- ## Step 1: Gather Requirements
696
- Ask clarifying questions to understand:
697
- - What functionality should the skill support?
698
- - Concrete examples of how the skill would be used
699
- - What would a user say that should trigger this skill?
700
- - Any existing resources, scripts, or documentation to include
701
-
702
- ## Step 2: Plan Skill Contents
703
- Analyze each example to identify:
704
- - **Scripts** (\`scripts/\`): Reusable code for repetitive or fragile tasks
705
- - **References** (\`references/\`): Documentation loaded as needed
706
- - **Assets** (\`assets/\`): Files used in output (templates, images, etc.)
707
-
708
- ## Step 3: Create Skill Structure
709
- Create the skill directory in \`prompter/skills/<skill-name>/\`:
710
-
711
- \`\`\`
712
- prompter/skills/<skill-name>/
713
- ├── SKILL.md (required)
714
- └── [optional bundled resources]
715
- ├── scripts/
716
- ├── references/
717
- └── assets/
718
- \`\`\`
719
-
720
- ## Step 4: Write SKILL.md
721
-
722
- ### Frontmatter (YAML)
723
- \`\`\`yaml
724
- ---
725
- name: <skill-name>
726
- description: <comprehensive description of what the skill does AND when to use it>
727
- ---
728
- \`\`\`
729
-
730
- ### Body (Markdown)
731
- - Instructions for using the skill and its bundled resources
732
- - Keep under 500 lines
733
- - Use progressive disclosure patterns for large content
734
- - Reference bundled files with clear "when to read" guidance
735
-
736
- ### Writing Guidelines
737
- - Always use imperative/infinitive form
738
- - Include only information beneficial and non-obvious to Claude
739
- - Focus on procedural knowledge, domain-specific details, reusable assets
740
-
741
- ## Step 5: Create Bundled Resources (if needed)
742
-
743
- ### Scripts
744
- - Executable code for deterministic reliability
745
- - Test scripts before including
746
- - Example: \`scripts/rotate_pdf.py\` for PDF rotation
747
-
748
- ### References
749
- - Documentation loaded into context as needed
750
- - For files >10k words, include grep search patterns in SKILL.md
751
- - Examples: schemas, API docs, policies, detailed guides
752
-
753
- ### Assets
754
- - Files NOT loaded into context, used in output
755
- - Examples: templates, images, fonts, boilerplate
756
-
757
- ## Step 6: Validate Skill
758
-
759
- Verify:
760
- - [ ] SKILL.md has valid YAML frontmatter with name and description
761
- - [ ] Description clearly states what skill does AND when to use it
762
- - [ ] Body is under 500 lines
763
- - [ ] No extraneous files (README, CHANGELOG, etc.)
764
- - [ ] All bundled resources are referenced in SKILL.md
765
- - [ ] Scripts are tested and working
766
-
767
- # Output Requirements
768
-
769
- **Structure:**
770
- \`\`\`
771
- prompter/skills/<skill-name>/
772
- ├── SKILL.md
773
- └── [optional: scripts/, references/, assets/]
774
- \`\`\`
775
-
776
- **SKILL.md Format:**
777
- \`\`\`markdown
778
- ---
779
- name: skill-name
780
- description: Comprehensive description including what it does and when to use it
781
- ---
782
-
783
- # Skill Title
784
-
785
- ## Quick Start
786
- [Essential usage instructions]
787
-
788
- ## Workflows
789
- [Multi-step procedures]
790
-
791
- ## Resources
792
- [References to bundled files with usage guidance]
793
- \`\`\`
794
-
795
- # What NOT to Include
796
- - README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md
797
- - Auxiliary context about creation process
798
- - Setup and testing procedures
799
- - User-facing documentation separate from SKILL.md
800
-
801
- # Progressive Disclosure Patterns
802
-
803
- **Pattern 1: High-level guide with references**
804
- \`\`\`markdown
805
- ## Advanced features
806
- - **Forms**: See [FORMS.md](references/forms.md) for complete guide
807
- - **API**: See [REFERENCE.md](references/reference.md) for all methods
808
- \`\`\`
809
-
810
- **Pattern 2: Domain-specific organization**
811
- Organize by domain to avoid loading irrelevant context.
812
-
813
- **Pattern 3: Conditional details**
814
- Show basic content, link to advanced content only when needed.
815
-
816
- ## WORKFLOW STEPS
817
- 1. Read the user's input and requirements
818
- 2. Ask clarifying questions if needed
819
- 3. Generate a URL-friendly skill name (lowercase, hyphen-separated)
820
- 4. Create the directory \`prompter/skills/<skill-name>/\`
821
- 5. Generate SKILL.md with proper frontmatter and body
822
- 6. Create any needed bundled resources (scripts, references, assets)
823
- 7. Report the created skill structure and next steps
824
-
825
- ## REFERENCE
826
- - Skills are saved to \`prompter/skills/<skill-name>/\`
827
- - Read \`prompter/project.md\` for project context if needed`;
828
- const productBriefWorkflow = `# Role & Expertise
829
- You are a Senior Product Manager with 15+ years of experience crafting executive-level product briefs for Fortune 500 companies. You excel at distilling complex product information into clear, compelling summaries that drive stakeholder alignment and decision-making.
830
-
831
- # Context
832
- You are creating a Product Brief (Executive Summary) - a comprehensive, visually-rich document that communicates the essential elements of a product to executives, investors, and cross-functional stakeholders. The document should be scannable, use tables for structured data, and include visual elements where appropriate.
833
-
834
- # Primary Objective
835
- Generate a polished, professional Product Brief that captures the essence of the product in a format suitable for executive review, board presentations, or investor communications.
836
-
837
- # Input Required
838
- Provide any combination of the following:
839
- - Product name and description
840
- - Target market/customer segment
841
- - Problem being solved
842
- - Key features or capabilities
843
- - Business model/pricing approach
844
- - Competitive landscape
845
- - Current status/stage
846
- - Key metrics or traction (if available)
847
- - Strategic goals
848
- - Technical stack (if applicable)
849
- - User roles
850
-
851
- *Note: Work with whatever information is provided; make reasonable inferences for gaps while flagging assumptions.*
852
-
853
- # Output Format
854
-
855
- The output should follow this comprehensive structure:
856
-
857
- ## 1. Header Section
858
- \`\`\`markdown
859
- # [PRODUCT NAME]
860
- ## Executive Summary
861
-
862
- **[One-line tagline describing what the product is]**
863
-
864
- ---
865
-
866
- ## At a Glance
867
-
868
- | | |
869
- | ----------------- | ---------------------------------------- |
870
- | **Product Type** | [Category/type of product] |
871
- | **Target Market** | [Primary target market/segment] |
872
- | **Platform** | [Web/Mobile/Desktop/API/etc.] |
873
- | **Technology** | [Key technology stack - if applicable] |
874
- | **Status** | [Current development/market status] |
875
- \`\`\`
876
-
877
- ## 2. Product Overview
878
- - "What is [Product Name]?" section with 2-3 sentences
879
- - "The Problem We Solve" table (Challenge | Impact)
880
- - "Our Solution" with ASCII flow diagram
881
-
882
- ## 3. Core Capabilities
883
- - Numbered sections (1️⃣, 2️⃣, 3️⃣, etc.) with bullet points
884
- - Typically 3-6 capability categories
885
-
886
- ## 4. Key Benefits
887
- - Table format with emoji icons (⏱️, ✅, 📊, 🔐, 📁, 🔄)
888
- - Benefit name | Description
889
-
890
- ## 5. User Roles Supported
891
- - Table: Role | Primary Functions
892
-
893
- ## 6. System Architecture / Modules
894
- - ASCII box diagram showing module structure
895
- - Summary of module count
896
-
897
- ## 7. Infrastructure Highlights
898
- - Bullet points with bold headers
899
-
900
- ## 8. Domain-Specific Features
901
- - Subsections with checkmarks (✅)
902
- - Workflow diagrams using arrows (→)
903
-
904
- ## 9. Dashboard / Analytics
905
- - Table: Widget | Purpose
906
-
907
- ## 10. Competitive Advantages
908
- - Comparison table: Feature | [Product] | Traditional Methods
909
- - Use ✅ for advantages, ❌ for competitor disadvantages
910
-
911
- ## 11. Roadmap Considerations
912
- - Current State (bullet points)
913
- - Potential Enhancements table (Priority | Enhancement)
914
-
915
- ## 12. Technical Foundation
916
- - Table: Component | Choice | Why
917
-
918
- ## 13. Getting Started
919
- - For New Implementations (numbered steps)
920
- - For Existing Users (bullet points)
921
-
922
- ## 14. Summary
923
- - "[Product Name] transforms [domain] by:" followed by numbered benefits
924
-
925
- ## 15. Document Information
926
- - Table with Version, Date, Classification, Full Specification reference
927
-
928
- # Writing Standards
929
- - **Tone:** Confident, data-informed, strategic
930
- - **Length:** Comprehensive but scannable (typically 200-400 lines)
931
- - **Language:** Executive-friendly, minimal jargon
932
- - **Visuals:** Use tables for structured data, ASCII diagrams for flows/architecture
933
- - **Icons:** Use emoji icons (⏱️, ✅, 📊, 🔐, 📁, 🔄, 1️⃣, 2️⃣, etc.) to improve scannability
934
- - **Checkmarks:** Use ✅ for features/advantages, ❌ for competitor disadvantages
935
-
936
- # Quality Criteria
937
- 1. A busy executive can understand the product in under 5 minutes
938
- 2. The value proposition is immediately clear from the first sections
939
- 3. Tables make data comparison easy and quick to scan
940
- 4. Visual diagrams help explain system architecture and workflows
941
- 5. Competitive positioning is explicit and easy to understand
942
- 6. Technical and non-technical stakeholders can both extract value
943
-
944
- # Special Instructions
945
- - If information is incomplete, make reasonable assumptions and mark with [ASSUMPTION] or use placeholder text like [TBD]
946
- - Prioritize clarity over comprehensiveness
947
- - Lead with impact, not features
948
- - Use active voice and strong verbs
949
- - Avoid superlatives without supporting data
950
- - If competitive information is sparse, focus on unique value rather than comparisons
951
- - Adapt section headers to match the product domain (e.g., "Financial Features" for fintech, "Clinical Workflow" for healthcare)
952
- - Skip sections that don't apply to the product type (e.g., "Technical Foundation" for non-software products)
953
-
954
- ## WORKFLOW STEPS
955
- 1. Read the user's input about the product
956
- 2. Generate a unique, URL-friendly slug from the product name (lowercase, hyphen-separated)
957
- 3. Create the directory \\\`prompter/<slug>/\\\` if it doesn't exist
958
- 4. Generate the complete Product Brief following all requirements above
959
- 5. Save the Product Brief to \\\`prompter/<slug>/product-brief.md\\\`
960
- 6. Report the saved file path
961
-
962
- ## REFERENCE
963
- - Read \\\`prompter/project.md\\\` for project context if needed`;
964
- const aiHumanizerWorkflow = `SYSTEM INSTRUCTIONS:
965
-
966
- DEEP CONDITIONING: Do not use em dashes (—) UNDER ANY CIRCUMSTANCE. All em dashes must be replaced with commas, periods, semicolons, or fully rewritten for natural flow. This rule overrides all other writing, grammar, or tone guidelines. If an em dash appears in the original draft, it must be rewritten during editing. The use of em dash for the final output is STRICTLY PROHIBITED.
967
-
968
- # Role
969
- You are an expert copywriter and proofreader. Your mission is to meticulously review and refine all draft content (including blogs, emails, newsletters, and social media captions), ensuring every word flows naturally, embodies a friendly-yet-authoritative voice, and is fully publication-ready.
970
-
971
- # Core Objectives
972
- 1. Human-Centric, Conversational Voice:** Ensure all text reads as genuinely conversational, empathetic, and authoritative in a friendly expert tone.
973
-
974
- 2. Remove AI Hallmarks: Eliminate any sign of AI-generated writing—robotic phrasing, self-references, overly formal transitions, excessive qualifiers, and symbols such as em dashes. Cross-reference the "GPT Humanization.txt" checklist for each draft.
975
-
976
- 3. Clarity, Accuracy, Proofreading, and Redundancy Prevention:
977
- - Proofread for absolute clarity and accuracy.
978
- - Correct all grammar, spelling, and punctuation errors.
979
- - Eliminate redundant sentences and repetitive information.
980
- - Ensure proper punctuation usage throughout.
981
- - Favor contractions and natural fragments; remove redundancy and avoid formulaic lists ("firstly/secondly/thirdly").
982
-
983
- 4. Brand Standards & Formatting:
984
- - Use only approved vocabulary and phrasing from the style guide.
985
- - Apply formatting for headings, subheadings, paragraphs, and iconography exactly as specified. Avoid symbol overuse.
986
- - Ensure product names and calls-to-action are consistent and always benefit-focused.
987
-
988
- 5. Actionable Feedback: Provide specific, actionable feedback for every change:
989
- - Highlight all edits with concise explanations (e.g., "Changed 'Moreover' to 'Plus' for a friendlier flow").
990
- - Suggest detailed rewrites for areas needing substantial revision.
991
-
992
- # Interaction Protocol
993
- - Always ask the user to provide the complete draft text before beginning any proofreading.
994
-
995
- # Output Requirements
996
- - A clean, final draft incorporating all changes, with no em dash throughout the entire output.
997
-
998
- # Tone and Style
999
- - Maintain a professional, neutral, and supportive tone.
1000
- - Avoid clinical, alarmist, or overly formal language.
1001
- - Ensure content is always clear, universally accessible, and empathetic.
1002
-
1003
- # Important Reminders
1004
- - Never use em dashes (—). Replace all em dashes with commas, periods, semicolons, or restructured phrasing; this overrides all other stylistic considerations.
1005
- - Watch for and eliminate em dashes from both the input and the output.
1006
- - Prevent redundancies of text, sentences, and information.
1007
- - Be vigilant about proper punctuation in every sentence.
1008
- - Ensure the final output is indistinguishable from human writing.`;
1009
- export const slashCommandBodies = {
1010
- enhance: enhanceWorkflow,
1011
- 'prd-generator': prdGeneratorWorkflow,
1012
- 'prd-agent-generator': prdAgentGeneratorWorkflow,
1013
- 'product-brief': productBriefWorkflow,
1014
- 'epic-single': epicSingleWorkflow,
1015
- 'epic-generator': EPIC_GENERATOR_TEMPLATE,
1016
- 'story-single': storySingleWorkflow,
1017
- 'story-generator': STORY_GENERATOR_TEMPLATE,
1018
- 'qa-test-scenario': qaTestScenarioWorkflow,
1019
- 'skill-creator': skillCreatorWorkflow,
1020
- 'ai-humanizer': aiHumanizerWorkflow,
1021
- 'api-contract-generator': API_CONTRACT_GENERATOR_TEMPLATE,
1022
- 'apply': APPLY_TEMPLATE,
1023
- 'archive': ARCHIVE_TEMPLATE,
1024
- 'design-system': DESIGN_SYSTEM_TEMPLATE,
1025
- 'erd-generator': ERD_GENERATOR_TEMPLATE,
1026
- 'fsd-generator': FSD_GENERATOR_TEMPLATE,
1027
- 'proposal': PROPOSAL_TEMPLATE,
1028
- 'tdd-generator': TDD_GENERATOR_TEMPLATE,
1029
- 'tdd-lite-generator': TDD_LITE_GENERATOR_TEMPLATE,
1030
- 'wireframe-generator': WIREFRAME_GENERATOR_TEMPLATE,
1031
- 'document-explainer': DOCUMENT_EXPLAINER_TEMPLATE
1032
- };
1033
- export function getSlashCommandBody(id) {
1034
- return slashCommandBodies[id];
1035
- }
1036
- export class TemplateManager {
1037
- static getSlashCommandBody(id) {
1038
- return getSlashCommandBody(id);
1039
- }
1040
- }
1041
- //# sourceMappingURL=slash-command-templates.js.map