@dedesfr/prompter 0.9.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +105 -77
- package/dist/cli/index.js +25 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -9
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts +4 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +56 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/logout.d.ts +4 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +14 -0
- package/dist/commands/logout.js.map +1 -0
- package/dist/commands/update.d.ts +0 -2
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -48
- package/dist/commands/update.js.map +1 -1
- package/dist/commands/whoami.d.ts +4 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +42 -0
- package/dist/commands/whoami.js.map +1 -0
- package/dist/core/auth-store.d.ts +10 -0
- package/dist/core/auth-store.d.ts.map +1 -0
- package/dist/core/auth-store.js +39 -0
- package/dist/core/auth-store.js.map +1 -0
- package/dist/core/config.d.ts +0 -7
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/config.js +0 -128
- package/dist/core/config.js.map +1 -1
- package/dist/core/registry.d.ts +18 -0
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/core/registry.js +94 -0
- package/dist/core/registry.js.map +1 -0
- package/package.json +7 -1
- package/AGENTS.md +0 -123
- package/CLAUDE.md +0 -17
- package/build.js +0 -20
- package/convex-setup.md +0 -403
- package/dist/core/prompt-templates.d.ts +0 -23
- package/dist/core/prompt-templates.d.ts.map +0 -1
- package/dist/core/prompt-templates.js +0 -3485
- package/dist/core/prompt-templates.js.map +0 -1
- package/prompt/ai-humanizer.md +0 -45
- package/prompt/api-contract-generator.md +0 -234
- package/prompt/apply.md +0 -17
- package/prompt/archive.md +0 -21
- package/prompt/design-system.md +0 -210
- package/prompt/document-explainer.md +0 -149
- package/prompt/epic-generator.md +0 -198
- package/prompt/epic-single.md +0 -47
- package/prompt/erd-generator.md +0 -130
- package/prompt/fsd-generator.md +0 -157
- package/prompt/prd-agent-generator.md +0 -147
- package/prompt/prd-generator.md +0 -195
- package/prompt/product-brief.md +0 -289
- package/prompt/proposal.md +0 -22
- package/prompt/qa-test-scenario.md +0 -133
- package/prompt/skill-creator.md +0 -350
- package/prompt/story-generator.md +0 -278
- package/prompt/story-single.md +0 -70
- package/prompt/tdd-generator.md +0 -294
- package/prompt/tdd-lite-generator.md +0 -224
- package/prompt/wireframe-generator.md +0 -219
- package/skills/ai-context-generator/SKILL.md +0 -54
- package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
- package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
- package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
- package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
- package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
- package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
- package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
- package/skills/ai-humanizer/SKILL.md +0 -50
- package/skills/api-contract-generator/SKILL.md +0 -243
- package/skills/apply/SKILL.md +0 -23
- package/skills/archive/SKILL.md +0 -27
- package/skills/cerebro/SKILL.md +0 -187
- package/skills/cerebro/references/agents.md +0 -213
- package/skills/code-review/SKILL.md +0 -373
- package/skills/code-review/assets/report-template-agent.md +0 -212
- package/skills/code-review/assets/report-template-compact.md +0 -81
- package/skills/code-review/assets/report-template-full.md +0 -264
- package/skills/code-review/assets/report-template-human.md +0 -168
- package/skills/code-review/references/universal-patterns.md +0 -495
- package/skills/design-md/README.md +0 -34
- package/skills/design-md/SKILL.md +0 -172
- package/skills/design-md/examples/DESIGN.md +0 -154
- package/skills/design-system/SKILL.md +0 -216
- package/skills/design-system-generator/SKILL.md +0 -324
- package/skills/design-system-generator/assets/design-system-template.md +0 -348
- package/skills/design-system-generator/references/extraction-patterns.md +0 -321
- package/skills/doc-builder/SKILL.md +0 -115
- package/skills/doc-builder/references/ui-patterns.md +0 -394
- package/skills/document-explainer/SKILL.md +0 -155
- package/skills/document-translator/SKILL.md +0 -58
- package/skills/enhance/SKILL.md +0 -47
- package/skills/enhance-prompt/README.md +0 -34
- package/skills/enhance-prompt/SKILL.md +0 -204
- package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
- package/skills/epic-generator/SKILL.md +0 -204
- package/skills/epic-single/SKILL.md +0 -63
- package/skills/erd-generator/SKILL.md +0 -138
- package/skills/feature-planner/SKILL.md +0 -305
- package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
- package/skills/frontend-design/LICENSE.txt +0 -177
- package/skills/frontend-design/SKILL.md +0 -42
- package/skills/fsd-generator/SKILL.md +0 -163
- package/skills/gamma-builder/SKILL.md +0 -134
- package/skills/laravel-code-review/SKILL.md +0 -383
- package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
- package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
- package/skills/laravel-code-review/assets/report-template-full.md +0 -253
- package/skills/laravel-code-review/assets/report-template-human.md +0 -159
- package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
- package/skills/laravel-code-review/references/php84-features.md +0 -442
- package/skills/mcp-builder/LICENSE.txt +0 -202
- package/skills/mcp-builder/SKILL.md +0 -236
- package/skills/mcp-builder/reference/evaluation.md +0 -602
- package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
- package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
- package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
- package/skills/mcp-builder/scripts/connections.py +0 -151
- package/skills/mcp-builder/scripts/evaluation.py +0 -373
- package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
- package/skills/mcp-builder/scripts/requirements.txt +0 -2
- package/skills/meeting-notes/SKILL.md +0 -159
- package/skills/meeting-notes/evals/evals.json +0 -23
- package/skills/prd-agent-generator/SKILL.md +0 -132
- package/skills/prd-generator/SKILL.md +0 -211
- package/skills/product-brief/SKILL.md +0 -141
- package/skills/project-orchestrator/SKILL.md +0 -487
- package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
- package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
- package/skills/prompter-specs/SKILL.md +0 -115
- package/skills/prompter-workflow/SKILL.md +0 -166
- package/skills/prompter-workflow/evals/evals.json +0 -89
- package/skills/proposal/SKILL.md +0 -28
- package/skills/qa-test-scenario/SKILL.md +0 -149
- package/skills/skill-creator/SKILL.md +0 -173
- package/skills/sph-generator/SKILL.md +0 -488
- package/skills/story-generator/SKILL.md +0 -285
- package/skills/story-single/SKILL.md +0 -86
- package/skills/tdd-generator/SKILL.md +0 -300
- package/skills/tdd-lite-generator/SKILL.md +0 -230
- package/skills/ui-ux-pro/SKILL.md +0 -199
- package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
- package/skills/ui-ux-pro/references/component-patterns.md +0 -255
- package/skills/ui-ux-pro/references/design-principles.md +0 -167
- package/skills/wireframe-generator/SKILL.md +0 -227
- package/src/cli/index.ts +0 -223
- package/src/commands/archive.ts +0 -302
- package/src/commands/change.ts +0 -292
- package/src/commands/config.ts +0 -233
- package/src/commands/guide.ts +0 -50
- package/src/commands/init.ts +0 -597
- package/src/commands/list.ts +0 -194
- package/src/commands/show.ts +0 -138
- package/src/commands/spec.ts +0 -251
- package/src/commands/update.ts +0 -129
- package/src/commands/upgrade.ts +0 -30
- package/src/commands/validate.ts +0 -326
- package/src/core/artifact-graph/graph.ts +0 -167
- package/src/core/artifact-graph/index.ts +0 -44
- package/src/core/artifact-graph/instruction-loader.ts +0 -302
- package/src/core/artifact-graph/resolver.ts +0 -226
- package/src/core/artifact-graph/schema.ts +0 -124
- package/src/core/artifact-graph/state.ts +0 -64
- package/src/core/artifact-graph/types.ts +0 -65
- package/src/core/completions/command-registry.ts +0 -382
- package/src/core/completions/completion-provider.ts +0 -128
- package/src/core/completions/generators/bash-generator.ts +0 -191
- package/src/core/completions/generators/fish-generator.ts +0 -188
- package/src/core/completions/generators/powershell-generator.ts +0 -223
- package/src/core/completions/generators/zsh-generator.ts +0 -281
- package/src/core/completions/templates/bash-templates.ts +0 -24
- package/src/core/completions/templates/fish-templates.ts +0 -40
- package/src/core/completions/templates/powershell-templates.ts +0 -25
- package/src/core/completions/templates/zsh-templates.ts +0 -36
- package/src/core/completions/types.ts +0 -90
- package/src/core/config-schema.ts +0 -230
- package/src/core/config.ts +0 -181
- package/src/core/configurators/slash/antigravity.ts +0 -10
- package/src/core/configurators/slash/base.ts +0 -109
- package/src/core/configurators/slash/claude.ts +0 -10
- package/src/core/configurators/slash/codex.ts +0 -10
- package/src/core/configurators/slash/droid.ts +0 -10
- package/src/core/configurators/slash/forge.ts +0 -10
- package/src/core/configurators/slash/github-copilot.ts +0 -10
- package/src/core/configurators/slash/index.ts +0 -10
- package/src/core/configurators/slash/kilocode.ts +0 -10
- package/src/core/configurators/slash/opencode.ts +0 -10
- package/src/core/configurators/slash/registry.ts +0 -51
- package/src/core/converters/json-converter.ts +0 -62
- package/src/core/global-config.ts +0 -136
- package/src/core/parsers/change-parser.ts +0 -234
- package/src/core/parsers/markdown-parser.ts +0 -237
- package/src/core/parsers/requirement-blocks.ts +0 -234
- package/src/core/prompt-templates.ts +0 -3504
- package/src/core/schemas/base.schema.ts +0 -20
- package/src/core/schemas/change.schema.ts +0 -42
- package/src/core/schemas/index.ts +0 -20
- package/src/core/schemas/spec.schema.ts +0 -17
- package/src/core/skill-discovery.ts +0 -68
- package/src/core/specs-apply.ts +0 -483
- package/src/core/styles/palette.ts +0 -8
- package/src/core/templates/agents-template.ts +0 -459
- package/src/core/templates/claude-template.ts +0 -2
- package/src/core/templates/index.ts +0 -3
- package/src/core/templates/project-template.ts +0 -32
- package/src/core/validation/constants.ts +0 -48
- package/src/core/validation/types.ts +0 -19
- package/src/core/validation/validator.ts +0 -449
- package/src/core/view.ts +0 -219
- package/src/index.ts +0 -1
- package/src/utils/change-metadata.ts +0 -171
- package/src/utils/change-utils.ts +0 -131
- package/src/utils/file-system.ts +0 -252
- package/src/utils/index.ts +0 -12
- package/src/utils/interactive.ts +0 -29
- package/src/utils/item-discovery.ts +0 -66
- package/src/utils/match.ts +0 -26
- package/src/utils/shell-detection.ts +0 -62
- package/src/utils/task-progress.ts +0 -43
- package/tsconfig.json +0 -28
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: story-generator
|
|
3
|
-
description: Generate comprehensive user stories from EPICs and FSD
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Story Generation Prompt
|
|
7
|
-
|
|
8
|
-
# Role & Expertise
|
|
9
|
-
You are a Senior Business Analyst and Agile Product Owner with 10+ years of experience translating functional specifications into well-structured user stories. You excel at decomposing Epics into actionable, sprint-ready stories with comprehensive acceptance criteria.
|
|
10
|
-
|
|
11
|
-
# Context
|
|
12
|
-
You will receive two primary inputs:
|
|
13
|
-
1. **Epics** (Primary Resource) - High-level feature descriptions defining the scope
|
|
14
|
-
2. **FSD (Functional Specification Document)** (Secondary Resource) - Detailed functional requirements, business rules, and technical specifications
|
|
15
|
-
|
|
16
|
-
Your task is to synthesize these inputs into complete, development-ready user stories.
|
|
17
|
-
|
|
18
|
-
# Primary Objective
|
|
19
|
-
Generate comprehensive user stories from provided Epics, enriched with details from the FSD, following industry-standard Agile practices.
|
|
20
|
-
|
|
21
|
-
# Process
|
|
22
|
-
1. **Epic Analysis**
|
|
23
|
-
- Identify the core business value and user need
|
|
24
|
-
- Determine story boundaries and natural decomposition points
|
|
25
|
-
- Map dependencies between potential stories
|
|
26
|
-
|
|
27
|
-
2. **FSD Integration**
|
|
28
|
-
- Extract relevant functional requirements for each story
|
|
29
|
-
- Identify business rules that impact acceptance criteria
|
|
30
|
-
- Note technical constraints and integration points
|
|
31
|
-
- Pull UI/UX specifications where applicable
|
|
32
|
-
|
|
33
|
-
3. **Role Classification**
|
|
34
|
-
- Classify each story by implementation role:
|
|
35
|
-
- **Frontend**: UI/UX changes, client-side logic, visual components
|
|
36
|
-
- **Backend**: Server-side logic, APIs, database operations, integrations
|
|
37
|
-
- **Others**: DevOps, documentation, cross-cutting concerns, or unclear classification
|
|
38
|
-
- If uncertain, default to "Others"
|
|
39
|
-
|
|
40
|
-
4. **Story Construction**
|
|
41
|
-
- Write clear user story statements
|
|
42
|
-
- Define comprehensive acceptance criteria
|
|
43
|
-
- Add technical notes and dependencies
|
|
44
|
-
- Estimate relative complexity
|
|
45
|
-
|
|
46
|
-
5. **Quality Verification**
|
|
47
|
-
- Ensure stories follow INVEST principles
|
|
48
|
-
- Verify traceability back to Epic and FSD
|
|
49
|
-
- Confirm acceptance criteria are testable
|
|
50
|
-
|
|
51
|
-
# Input Specifications
|
|
52
|
-
**Epic Format Expected:**
|
|
53
|
-
- Epic ID/Name
|
|
54
|
-
- Description/Goal
|
|
55
|
-
- Business Value
|
|
56
|
-
- Scope boundaries (in/out)
|
|
57
|
-
|
|
58
|
-
**FSD Format Expected:**
|
|
59
|
-
- Functional requirements
|
|
60
|
-
- Business rules
|
|
61
|
-
- User flows/workflows
|
|
62
|
-
- Data requirements
|
|
63
|
-
- Integration specifications
|
|
64
|
-
- UI/UX requirements (if available)
|
|
65
|
-
|
|
66
|
-
# Output Requirements
|
|
67
|
-
|
|
68
|
-
## Directory Structure
|
|
69
|
-
Create a `stories/` folder organized by Epic and Role:
|
|
70
|
-
```
|
|
71
|
-
stories/
|
|
72
|
-
├── EPIC-001-[kebab-case-title]/
|
|
73
|
-
│ ├── README.md # Epic summary and story index
|
|
74
|
-
│ ├── Frontend/
|
|
75
|
-
│ │ ├── STORY-001-[kebab-case-title].md
|
|
76
|
-
│ │ ├── STORY-002-[kebab-case-title].md
|
|
77
|
-
│ │ └── ...
|
|
78
|
-
│ ├── Backend/
|
|
79
|
-
│ │ ├── STORY-003-[kebab-case-title].md
|
|
80
|
-
│ │ ├── STORY-004-[kebab-case-title].md
|
|
81
|
-
│ │ └── ...
|
|
82
|
-
│ └── Others/
|
|
83
|
-
│ ├── STORY-005-[kebab-case-title].md
|
|
84
|
-
│ └── ...
|
|
85
|
-
├── EPIC-002-[kebab-case-title]/
|
|
86
|
-
│ ├── README.md
|
|
87
|
-
│ ├── Frontend/
|
|
88
|
-
│ ├── Backend/
|
|
89
|
-
│ └── Others/
|
|
90
|
-
└── ...
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## File: `stories/EPIC-[XXX]-[title]/README.md`
|
|
94
|
-
|
|
95
|
-
### Epic Summary
|
|
96
|
-
**Epic ID:** EPIC-[XXX]
|
|
97
|
-
**Epic Title:** [Epic Name]
|
|
98
|
-
**Epic Description:** [Brief description from Epic]
|
|
99
|
-
|
|
100
|
-
### Story Index by Role
|
|
101
|
-
|
|
102
|
-
#### Frontend Stories
|
|
103
|
-
| Story ID | Title | Priority | Story Points | Status | File |
|
|
104
|
-
|----------|-------|----------|--------------|--------|------|
|
|
105
|
-
| STORY-001 | [Title] | Must Have | 5 | Not Started | [Link] |
|
|
106
|
-
| STORY-002 | [Title] | Should Have | 3 | Not Started | [Link] |
|
|
107
|
-
|
|
108
|
-
#### Backend Stories
|
|
109
|
-
| Story ID | Title | Priority | Story Points | Status | File |
|
|
110
|
-
|----------|-------|----------|--------------|--------|------|
|
|
111
|
-
| STORY-003 | [Title] | Must Have | 8 | Not Started | [Link] |
|
|
112
|
-
| STORY-004 | [Title] | Should Have | 5 | Not Started | [Link] |
|
|
113
|
-
|
|
114
|
-
#### Others
|
|
115
|
-
| Story ID | Title | Priority | Story Points | Status | File |
|
|
116
|
-
|----------|-------|----------|--------------|--------|------|
|
|
117
|
-
| STORY-005 | [Title] | Should Have | 2 | Not Started | [Link] |
|
|
118
|
-
|
|
119
|
-
### Story Dependency Map
|
|
120
|
-
```
|
|
121
|
-
STORY-001 ──► STORY-003
|
|
122
|
-
STORY-002 ──► STORY-003
|
|
123
|
-
STORY-003 ──► STORY-005
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Total Estimates
|
|
127
|
-
- **Total Story Points:** [Sum]
|
|
128
|
-
- **Frontend:** [Points]
|
|
129
|
-
- **Backend:** [Points]
|
|
130
|
-
- **Others:** [Points]
|
|
131
|
-
- **By Priority:**
|
|
132
|
-
- **Must Have:** [Points]
|
|
133
|
-
- **Should Have:** [Points]
|
|
134
|
-
- **Could Have:** [Points]
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Individual Story Files
|
|
139
|
-
|
|
140
|
-
**File naming convention:** `[Role]/STORY-[XXX]-[kebab-case-title].md`
|
|
141
|
-
Examples:
|
|
142
|
-
- `Frontend/STORY-001-user-login-email.md`
|
|
143
|
-
- `Backend/STORY-003-authentication-api.md`
|
|
144
|
-
- `Others/STORY-005-deployment-pipeline.md`
|
|
145
|
-
|
|
146
|
-
### Template for Each Story File
|
|
147
|
-
|
|
148
|
-
```markdown
|
|
149
|
-
# STORY-[XXX]: [Concise Story Title]
|
|
150
|
-
|
|
151
|
-
**Epic:** [EPIC-XXX - Epic Name]
|
|
152
|
-
**Role:** [Frontend / Backend / Others]
|
|
153
|
-
**Story Points:** [Fibonacci estimate: 1, 2, 3, 5, 8, 13]
|
|
154
|
-
**Priority:** [Must Have / Should Have / Could Have / Won't Have]
|
|
155
|
-
|
|
156
|
-
---
|
|
157
|
-
|
|
158
|
-
## User Story
|
|
159
|
-
As a [specific user role],
|
|
160
|
-
I want to [action/capability],
|
|
161
|
-
So that [business value/outcome].
|
|
162
|
-
|
|
163
|
-
## Description
|
|
164
|
-
[2-3 sentences providing additional context, referencing FSD sections where applicable]
|
|
165
|
-
|
|
166
|
-
## Acceptance Criteria
|
|
167
|
-
```gherkin
|
|
168
|
-
GIVEN [precondition/context]
|
|
169
|
-
WHEN [action/trigger]
|
|
170
|
-
THEN [expected outcome]
|
|
171
|
-
|
|
172
|
-
GIVEN [precondition/context]
|
|
173
|
-
WHEN [alternative action]
|
|
174
|
-
THEN [expected outcome]
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
## Business Rules
|
|
178
|
-
- **BR-1:** [Rule from FSD]
|
|
179
|
-
- **BR-2:** [Rule from FSD]
|
|
180
|
-
|
|
181
|
-
## Technical Notes
|
|
182
|
-
- [Integration requirements]
|
|
183
|
-
- [Data considerations]
|
|
184
|
-
- [API/System dependencies]
|
|
185
|
-
|
|
186
|
-
## Traceability
|
|
187
|
-
- **FSD Reference:** [Section/Requirement IDs traced from FSD]
|
|
188
|
-
- **Epic:** [EPIC-XXX]
|
|
189
|
-
|
|
190
|
-
## Dependencies
|
|
191
|
-
- **Depends On:** [STORY-XXX, STORY-XXX] or None
|
|
192
|
-
- **Blocks:** [STORY-XXX] or None
|
|
193
|
-
- **External Dependencies:** [Systems, APIs, etc.]
|
|
194
|
-
|
|
195
|
-
## Definition of Done
|
|
196
|
-
- [ ] Code implemented and peer-reviewed
|
|
197
|
-
- [ ] Unit tests written and passing
|
|
198
|
-
- [ ] Integration tests passing
|
|
199
|
-
- [ ] Documentation updated
|
|
200
|
-
- [ ] Acceptance criteria verified
|
|
201
|
-
- [ ] Code merged to main branch
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
# Quality Standards
|
|
207
|
-
- **INVEST Compliant:** Each story must be Independent, Negotiable, Valuable, Estimable, Small, Testable
|
|
208
|
-
- **Acceptance Criteria:** Minimum 3 criteria per story, written in Gherkin format (Given/When/Then)
|
|
209
|
-
- **Traceability:** Every story must reference source Epic and relevant FSD sections
|
|
210
|
-
- **Granularity:** Stories should be completable within a single sprint (typically 1-8 story points)
|
|
211
|
-
- **Completeness:** Include edge cases and error scenarios in acceptance criteria
|
|
212
|
-
|
|
213
|
-
# Special Instructions
|
|
214
|
-
1. **Decomposition Rules:**
|
|
215
|
-
- If an Epic contains multiple user roles, create separate stories per role
|
|
216
|
-
- If workflows have distinct phases, split into sequential stories
|
|
217
|
-
- CRUD operations should be separate stories unless trivially simple
|
|
218
|
-
|
|
219
|
-
2. **Acceptance Criteria Guidelines:**
|
|
220
|
-
- Include happy path scenarios
|
|
221
|
-
- Include at least one error/edge case scenario
|
|
222
|
-
- Include validation rules from FSD
|
|
223
|
-
- Make criteria specific and measurable
|
|
224
|
-
|
|
225
|
-
3. **When FSD Details Are Missing:**
|
|
226
|
-
- Flag with "[CLARIFICATION NEEDED]" tag
|
|
227
|
-
- Provide reasonable assumption with "[ASSUMPTION]" tag
|
|
228
|
-
- Continue with story generation
|
|
229
|
-
|
|
230
|
-
4. **Output Organization:**
|
|
231
|
-
- Group stories by Epic, then by Role (Frontend/Backend/Others)
|
|
232
|
-
- Classify each story by primary implementation role
|
|
233
|
-
- Order stories by logical implementation sequence within each role
|
|
234
|
-
- Highlight cross-Epic and cross-role dependencies
|
|
235
|
-
|
|
236
|
-
# Example Output
|
|
237
|
-
|
|
238
|
-
## Epic: User Authentication
|
|
239
|
-
|
|
240
|
-
### Story 1: User Login with Email
|
|
241
|
-
|
|
242
|
-
**User Story:**
|
|
243
|
-
As a registered user,
|
|
244
|
-
I want to log in using my email and password,
|
|
245
|
-
So that I can access my personalized dashboard securely.
|
|
246
|
-
|
|
247
|
-
**Description:**
|
|
248
|
-
Enable standard email/password authentication as specified in FSD Section 3.2. The system must validate credentials against the user database and establish a secure session upon successful authentication.
|
|
249
|
-
|
|
250
|
-
**Acceptance Criteria:**
|
|
251
|
-
```gherkin
|
|
252
|
-
GIVEN I am on the login page
|
|
253
|
-
WHEN I enter valid email and password and click "Login"
|
|
254
|
-
THEN I am redirected to my dashboard and see a welcome message
|
|
255
|
-
|
|
256
|
-
GIVEN I am on the login page
|
|
257
|
-
WHEN I enter invalid credentials and click "Login"
|
|
258
|
-
THEN I see an error message "Invalid email or password" and remain on login page
|
|
259
|
-
|
|
260
|
-
GIVEN I have failed login 5 times
|
|
261
|
-
WHEN I attempt to login again
|
|
262
|
-
THEN my account is temporarily locked for 15 minutes per BR-AUTH-03
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
**Business Rules:**
|
|
266
|
-
- BR-AUTH-01: Passwords must be minimum 8 characters
|
|
267
|
-
- BR-AUTH-03: Account lockout after 5 failed attempts
|
|
268
|
-
|
|
269
|
-
**Technical Notes:**
|
|
270
|
-
- Integrate with OAuth 2.0 service (per FSD 3.2.4)
|
|
271
|
-
- Session timeout: 30 minutes of inactivity
|
|
272
|
-
- Password hashing: bcrypt with salt
|
|
273
|
-
|
|
274
|
-
**FSD Reference:** Section 3.2, Requirements FR-AUTH-001 through FR-AUTH-008
|
|
275
|
-
|
|
276
|
-
**Dependencies:** None (foundational story)
|
|
277
|
-
|
|
278
|
-
**Story Points:** 5
|
|
279
|
-
|
|
280
|
-
**Priority:** Must Have
|
|
281
|
-
|
|
282
|
-
---
|
|
283
|
-
|
|
284
|
-
Now process the provided Epic(s) and FSD to generate comprehensive user stories.
|
|
285
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: story-single
|
|
3
|
-
description: Generate a single Jira User Story from requirements
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
### ✅ **Prompt: Generate a Single Jira Story from QA Prompt**
|
|
7
|
-
|
|
8
|
-
You are a **Jira expert, senior product manager, and QA analyst**.
|
|
9
|
-
|
|
10
|
-
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.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
### 🔽 **Input**
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
{QA_TEXT}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
### 🔼 **Output Rules**
|
|
23
|
-
|
|
24
|
-
* Use **Markdown only**
|
|
25
|
-
* Produce **ONE (1) User Story only**
|
|
26
|
-
* Must be written from **end-user perspective**
|
|
27
|
-
* Title must be **clear and non-technical**
|
|
28
|
-
* Story must be **independently deliverable and testable**
|
|
29
|
-
* Rewrite unclear or fragmented input into a **clean and business-focused requirement**
|
|
30
|
-
* If information is missing, mark it **TBD** (do NOT assume)
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
### 🧱 **Story Structure**
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
## 🧾 Story: {Story Title}
|
|
38
|
-
|
|
39
|
-
### 🧑 As a {USER ROLE},
|
|
40
|
-
I want to {USER INTENT}
|
|
41
|
-
so that I can {BUSINESS VALUE}
|
|
42
|
-
|
|
43
|
-
### 🔨 Acceptance Criteria (BDD Format)
|
|
44
|
-
- **Given** {context}
|
|
45
|
-
- **When** {action}
|
|
46
|
-
- **Then** {expected result}
|
|
47
|
-
|
|
48
|
-
(Add 4–8 acceptance criteria)
|
|
49
|
-
|
|
50
|
-
### 📌 Expected Result
|
|
51
|
-
- Bullet points describing what success looks like
|
|
52
|
-
|
|
53
|
-
### 🚫 Non-Goals (if applicable)
|
|
54
|
-
- Bullet points of what is explicitly NOT included
|
|
55
|
-
|
|
56
|
-
### 🗒️ Notes (optional)
|
|
57
|
-
- Clarifications / constraints / dependencies / edge cases
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### ⚠️ Validation Rules Before Generating
|
|
63
|
-
|
|
64
|
-
The story must:
|
|
65
|
-
|
|
66
|
-
* Focus on **one user outcome only**
|
|
67
|
-
* Avoid **technical solutioning** (no APIs, tables, database fields, component names)
|
|
68
|
-
* Avoid **phrases like "fix bug", "backend update", "add field X"**
|
|
69
|
-
* Convert QA language into **business language**
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
### 🏁 Final Output
|
|
74
|
-
|
|
75
|
-
Return **ONLY the completed story in Markdown**, nothing else.
|
|
76
|
-
|
|
77
|
-
## WORKFLOW STEPS
|
|
78
|
-
1. Read the user's input (QA request/requirement)
|
|
79
|
-
2. Generate a unique, URL-friendly slug from the story title (lowercase, hyphen-separated)
|
|
80
|
-
3. Create the directory `prompter/<slug>/` if it doesn't exist
|
|
81
|
-
4. Generate the complete User Story following all requirements above
|
|
82
|
-
5. Save the story to `prompter/<slug>/story.md`
|
|
83
|
-
6. Report the saved file path
|
|
84
|
-
|
|
85
|
-
## REFERENCE
|
|
86
|
-
- Read `prompter/project.md` for project context if needed
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: tdd-generator
|
|
3
|
-
description: Generate comprehensive Technical Design Document
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Technical Design Document (TDD) Generator Prompt
|
|
7
|
-
|
|
8
|
-
# Role & Expertise
|
|
9
|
-
You are a Senior Solutions Architect with 15+ years of experience in enterprise software design, system architecture, and technical documentation. You specialize in translating business requirements into comprehensive technical specifications that development teams can implement directly.
|
|
10
|
-
|
|
11
|
-
# Context
|
|
12
|
-
You will receive a Functional Specification Document (FSD) as the primary input, along with supporting artifacts including Entity Relationship Diagrams (ERD), API Contracts, and UI/UX Wireframes. Your task is to synthesize these inputs into a complete Technical Design Document that bridges the gap between business requirements and implementation.
|
|
13
|
-
|
|
14
|
-
# Primary Objective
|
|
15
|
-
Generate a comprehensive Technical Design Document (TDD) that provides development teams with all technical specifications, architectural decisions, component designs, and implementation guidance needed to build the system described in the FSD.
|
|
16
|
-
|
|
17
|
-
# Input Artifacts
|
|
18
|
-
1. **Functional Specification Document (FSD)** - Primary reference for business requirements, user stories, and functional flows
|
|
19
|
-
2. **Entity Relationship Diagram (ERD)** - Database schema, relationships, and data model
|
|
20
|
-
3. **API Contract** - Endpoint specifications, request/response schemas, authentication requirements
|
|
21
|
-
4. **UI/UX Wireframes** - Interface designs, user flows, and interaction patterns
|
|
22
|
-
|
|
23
|
-
# Processing Approach
|
|
24
|
-
|
|
25
|
-
## Phase 1: Analysis & Extraction
|
|
26
|
-
1. Parse the FSD to identify:
|
|
27
|
-
- Core functional requirements
|
|
28
|
-
- Business rules and constraints
|
|
29
|
-
- User roles and permissions
|
|
30
|
-
- Integration points
|
|
31
|
-
- Non-functional requirements (performance, security, scalability)
|
|
32
|
-
|
|
33
|
-
2. Analyze the ERD to understand:
|
|
34
|
-
- Entity definitions and attributes
|
|
35
|
-
- Relationship cardinalities
|
|
36
|
-
- Data integrity constraints
|
|
37
|
-
- Indexing requirements
|
|
38
|
-
|
|
39
|
-
3. Review API Contract for:
|
|
40
|
-
- Endpoint inventory
|
|
41
|
-
- Data transformation requirements
|
|
42
|
-
- Authentication/authorization flows
|
|
43
|
-
- Error handling patterns
|
|
44
|
-
|
|
45
|
-
4. Examine Wireframes to determine:
|
|
46
|
-
- Component hierarchy
|
|
47
|
-
- State management needs
|
|
48
|
-
- Client-side validation rules
|
|
49
|
-
- User interaction patterns
|
|
50
|
-
|
|
51
|
-
## Phase 2: Architecture Design
|
|
52
|
-
1. Define system architecture pattern (microservices, monolith, serverless, etc.)
|
|
53
|
-
2. Identify component boundaries and responsibilities
|
|
54
|
-
3. Design data flow and integration patterns
|
|
55
|
-
4. Establish security architecture
|
|
56
|
-
5. Plan scalability and performance strategies
|
|
57
|
-
|
|
58
|
-
## Phase 3: Document Generation
|
|
59
|
-
Synthesize all analysis into structured TDD sections
|
|
60
|
-
|
|
61
|
-
# Output Format
|
|
62
|
-
|
|
63
|
-
Generate the TDD with the following exact structure:
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
# Technical Design Document
|
|
68
|
-
**Project:** [Extracted from FSD]
|
|
69
|
-
**Version:** 1.0
|
|
70
|
-
**Date:** [Current Date]
|
|
71
|
-
**Author:** [Solutions Architect]
|
|
72
|
-
**Status:** Draft
|
|
73
|
-
|
|
74
|
-
---
|
|
75
|
-
|
|
76
|
-
## 1. Executive Summary
|
|
77
|
-
- Brief overview of the system (2-3 paragraphs)
|
|
78
|
-
- Key technical decisions summary
|
|
79
|
-
- Technology stack overview
|
|
80
|
-
|
|
81
|
-
## 2. System Architecture
|
|
82
|
-
|
|
83
|
-
### 2.1 Architecture Overview
|
|
84
|
-
- High-level architecture diagram description
|
|
85
|
-
- Architecture pattern justification
|
|
86
|
-
- Key architectural principles applied
|
|
87
|
-
|
|
88
|
-
### 2.2 Component Architecture
|
|
89
|
-
| Component | Responsibility | Technology | Dependencies |
|
|
90
|
-
|-----------|---------------|------------|--------------|
|
|
91
|
-
| [Name] | [Description] | [Tech] | [Dependencies] |
|
|
92
|
-
|
|
93
|
-
### 2.3 Deployment Architecture
|
|
94
|
-
- Environment specifications (Dev, Staging, Production)
|
|
95
|
-
- Infrastructure requirements
|
|
96
|
-
- Containerization/orchestration approach
|
|
97
|
-
|
|
98
|
-
## 3. Data Architecture
|
|
99
|
-
|
|
100
|
-
### 3.1 Data Model
|
|
101
|
-
- Entity descriptions with business context
|
|
102
|
-
- Attribute specifications table:
|
|
103
|
-
|
|
104
|
-
| Entity | Attribute | Type | Constraints | Description |
|
|
105
|
-
|--------|-----------|------|-------------|-------------|
|
|
106
|
-
| [Entity] | [Attr] | [Type] | [Constraints] | [Desc] |
|
|
107
|
-
|
|
108
|
-
### 3.2 Database Design
|
|
109
|
-
- Database technology selection and justification
|
|
110
|
-
- Schema design decisions
|
|
111
|
-
- Indexing strategy
|
|
112
|
-
- Partitioning/sharding approach (if applicable)
|
|
113
|
-
|
|
114
|
-
### 3.3 Data Flow
|
|
115
|
-
- Data lifecycle management
|
|
116
|
-
- ETL/data pipeline requirements
|
|
117
|
-
- Caching strategy
|
|
118
|
-
|
|
119
|
-
## 4. API Design
|
|
120
|
-
|
|
121
|
-
### 4.1 API Architecture
|
|
122
|
-
- API style (REST, GraphQL, gRPC)
|
|
123
|
-
- Versioning strategy
|
|
124
|
-
- Rate limiting approach
|
|
125
|
-
|
|
126
|
-
### 4.2 Endpoint Specifications
|
|
127
|
-
For each endpoint:
|
|
128
|
-
|
|
129
|
-
**[HTTP Method] [Endpoint Path]**
|
|
130
|
-
- **Purpose:** [Description]
|
|
131
|
-
- **Authentication:** [Required/Optional, Type]
|
|
132
|
-
- **Request:**
|
|
133
|
-
```json
|
|
134
|
-
[Request schema]
|
|
135
|
-
```
|
|
136
|
-
- **Response:**
|
|
137
|
-
```json
|
|
138
|
-
[Response schema]
|
|
139
|
-
```
|
|
140
|
-
- **Error Codes:** [List with descriptions]
|
|
141
|
-
- **Business Rules:** [Validation and processing rules]
|
|
142
|
-
|
|
143
|
-
### 4.3 Authentication & Authorization
|
|
144
|
-
- Authentication mechanism
|
|
145
|
-
- Token management
|
|
146
|
-
- Permission model mapping
|
|
147
|
-
|
|
148
|
-
## 5. Component Design
|
|
149
|
-
|
|
150
|
-
### 5.1 Backend Services
|
|
151
|
-
For each service/module:
|
|
152
|
-
|
|
153
|
-
**[Service Name]**
|
|
154
|
-
- **Responsibility:** [Description]
|
|
155
|
-
- **Interfaces:** [Input/Output]
|
|
156
|
-
- **Dependencies:** [Internal/External]
|
|
157
|
-
- **Key Classes/Functions:**
|
|
158
|
-
- [Class/Function]: [Purpose]
|
|
159
|
-
- **Design Patterns Applied:** [Patterns]
|
|
160
|
-
|
|
161
|
-
### 5.2 Frontend Architecture
|
|
162
|
-
- Framework and state management approach
|
|
163
|
-
- Component hierarchy
|
|
164
|
-
- Routing structure
|
|
165
|
-
- Key components mapping to wireframes
|
|
166
|
-
|
|
167
|
-
| Wireframe Screen | Component(s) | State Requirements | API Calls |
|
|
168
|
-
|------------------|--------------|-------------------|-----------|
|
|
169
|
-
| [Screen] | [Components] | [State] | [APIs] |
|
|
170
|
-
|
|
171
|
-
### 5.3 Integration Layer
|
|
172
|
-
- External system integrations
|
|
173
|
-
- Message queue design (if applicable)
|
|
174
|
-
- Event-driven components
|
|
175
|
-
|
|
176
|
-
## 6. Security Design
|
|
177
|
-
|
|
178
|
-
### 6.1 Security Architecture
|
|
179
|
-
- Security layers overview
|
|
180
|
-
- Threat model summary
|
|
181
|
-
|
|
182
|
-
### 6.2 Security Controls
|
|
183
|
-
| Control Area | Implementation | Standard/Compliance |
|
|
184
|
-
|--------------|----------------|---------------------|
|
|
185
|
-
| [Area] | [How] | [Standard] |
|
|
186
|
-
|
|
187
|
-
### 6.3 Data Protection
|
|
188
|
-
- Encryption at rest
|
|
189
|
-
- Encryption in transit
|
|
190
|
-
- PII handling
|
|
191
|
-
- Data masking requirements
|
|
192
|
-
|
|
193
|
-
## 7. Performance & Scalability
|
|
194
|
-
|
|
195
|
-
### 7.1 Performance Requirements
|
|
196
|
-
| Metric | Target | Measurement Method |
|
|
197
|
-
|--------|--------|-------------------|
|
|
198
|
-
| [Metric] | [Value] | [How] |
|
|
199
|
-
|
|
200
|
-
### 7.2 Scalability Design
|
|
201
|
-
- Horizontal scaling approach
|
|
202
|
-
- Load balancing strategy
|
|
203
|
-
- Database scaling plan
|
|
204
|
-
|
|
205
|
-
### 7.3 Caching Strategy
|
|
206
|
-
- Cache layers
|
|
207
|
-
- Cache invalidation approach
|
|
208
|
-
- Cache key design
|
|
209
|
-
|
|
210
|
-
## 8. Error Handling & Logging
|
|
211
|
-
|
|
212
|
-
### 8.1 Error Handling Strategy
|
|
213
|
-
- Error classification
|
|
214
|
-
- Error response format
|
|
215
|
-
- Retry mechanisms
|
|
216
|
-
|
|
217
|
-
### 8.2 Logging & Monitoring
|
|
218
|
-
- Log levels and standards
|
|
219
|
-
- Structured logging format
|
|
220
|
-
- Monitoring and alerting requirements
|
|
221
|
-
|
|
222
|
-
## 9. Development Guidelines
|
|
223
|
-
|
|
224
|
-
### 9.1 Coding Standards
|
|
225
|
-
- Language-specific guidelines
|
|
226
|
-
- Code review requirements
|
|
227
|
-
- Documentation standards
|
|
228
|
-
|
|
229
|
-
### 9.2 Testing Strategy
|
|
230
|
-
| Test Type | Scope | Coverage Target | Tools |
|
|
231
|
-
|-----------|-------|-----------------|-------|
|
|
232
|
-
| [Type] | [Scope] | [%] | [Tools] |
|
|
233
|
-
|
|
234
|
-
### 9.3 CI/CD Pipeline
|
|
235
|
-
- Build process
|
|
236
|
-
- Deployment stages
|
|
237
|
-
- Quality gates
|
|
238
|
-
|
|
239
|
-
## 10. Technical Risks & Mitigations
|
|
240
|
-
|
|
241
|
-
| Risk | Impact | Probability | Mitigation |
|
|
242
|
-
|------|--------|-------------|------------|
|
|
243
|
-
| [Risk] | High/Med/Low | High/Med/Low | [Strategy] |
|
|
244
|
-
|
|
245
|
-
## 11. Dependencies & Assumptions
|
|
246
|
-
|
|
247
|
-
### 11.1 Technical Dependencies
|
|
248
|
-
- Third-party services
|
|
249
|
-
- Libraries and frameworks
|
|
250
|
-
- Infrastructure requirements
|
|
251
|
-
|
|
252
|
-
### 11.2 Assumptions
|
|
253
|
-
- [List of technical assumptions made]
|
|
254
|
-
|
|
255
|
-
## 12. Appendices
|
|
256
|
-
|
|
257
|
-
### Appendix A: Technology Stack
|
|
258
|
-
| Layer | Technology | Version | Justification |
|
|
259
|
-
|-------|------------|---------|---------------|
|
|
260
|
-
| [Layer] | [Tech] | [Ver] | [Why] |
|
|
261
|
-
|
|
262
|
-
### Appendix B: Glossary
|
|
263
|
-
| Term | Definition |
|
|
264
|
-
|------|------------|
|
|
265
|
-
| [Term] | [Definition] |
|
|
266
|
-
|
|
267
|
-
### Appendix C: Reference Documents
|
|
268
|
-
- FSD Document Reference
|
|
269
|
-
- ERD Diagram Reference
|
|
270
|
-
- API Contract Reference
|
|
271
|
-
- Wireframe Reference
|
|
272
|
-
|
|
273
|
-
---
|
|
274
|
-
|
|
275
|
-
# Quality Standards
|
|
276
|
-
|
|
277
|
-
1. **Traceability:** Every technical decision must trace back to a functional requirement in the FSD
|
|
278
|
-
2. **Completeness:** All entities from ERD must be addressed; all API endpoints must be detailed
|
|
279
|
-
3. **Consistency:** Naming conventions and patterns must be uniform throughout
|
|
280
|
-
4. **Implementability:** Specifications must be detailed enough for developers to implement without ambiguity
|
|
281
|
-
5. **Maintainability:** Design must consider future extensibility and modification
|
|
282
|
-
|
|
283
|
-
# Special Instructions
|
|
284
|
-
|
|
285
|
-
1. **Gap Identification:** If input artifacts have inconsistencies or gaps, document them in a "Clarification Required" section
|
|
286
|
-
2. **Technology Inference:** If technology stack isn't specified, recommend appropriate technologies with justification
|
|
287
|
-
3. **Cross-Reference:** Maintain explicit references between TDD sections and source artifacts (e.g., "Per FSD Section 3.2...", "As defined in ERD Entity: User...")
|
|
288
|
-
4. **Diagrams:** Where visual representation would aid understanding, describe diagrams in detail using text-based formats (ASCII, Mermaid notation)
|
|
289
|
-
5. **Assumptions:** Clearly state all technical assumptions when source documents are ambiguous
|
|
290
|
-
|
|
291
|
-
# Verification Checklist
|
|
292
|
-
Before finalizing, verify:
|
|
293
|
-
- [ ] All FSD functional requirements have corresponding technical specifications
|
|
294
|
-
- [ ] All ERD entities are reflected in the data architecture
|
|
295
|
-
- [ ] All API endpoints are fully specified with request/response schemas
|
|
296
|
-
- [ ] All wireframe screens have frontend component mappings
|
|
297
|
-
- [ ] Security considerations address authentication, authorization, and data protection
|
|
298
|
-
- [ ] Non-functional requirements (performance, scalability) are addressed
|
|
299
|
-
- [ ] Technical risks are identified with mitigation strategies
|
|
300
|
-
|