@dedesfr/prompter 0.8.22 โ 0.9.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 +68 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +1 -7
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +32 -294
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +17 -40
- package/dist/commands/update.js.map +1 -1
- package/dist/core/configurators/slash/antigravity.d.ts +2 -5
- package/dist/core/configurators/slash/antigravity.d.ts.map +1 -1
- package/dist/core/configurators/slash/antigravity.js +2 -57
- package/dist/core/configurators/slash/antigravity.js.map +1 -1
- package/dist/core/configurators/slash/base.d.ts +6 -18
- package/dist/core/configurators/slash/base.d.ts.map +1 -1
- package/dist/core/configurators/slash/base.js +8 -77
- package/dist/core/configurators/slash/base.js.map +1 -1
- package/dist/core/configurators/slash/claude.d.ts +2 -5
- package/dist/core/configurators/slash/claude.d.ts.map +1 -1
- package/dist/core/configurators/slash/claude.js +2 -57
- package/dist/core/configurators/slash/claude.js.map +1 -1
- package/dist/core/configurators/slash/codex.d.ts +2 -5
- package/dist/core/configurators/slash/codex.d.ts.map +1 -1
- package/dist/core/configurators/slash/codex.js +2 -57
- package/dist/core/configurators/slash/codex.js.map +1 -1
- package/dist/core/configurators/slash/droid.d.ts +2 -5
- package/dist/core/configurators/slash/droid.d.ts.map +1 -1
- package/dist/core/configurators/slash/droid.js +2 -32
- package/dist/core/configurators/slash/droid.js.map +1 -1
- package/dist/core/configurators/slash/forge.d.ts +2 -5
- package/dist/core/configurators/slash/forge.d.ts.map +1 -1
- package/dist/core/configurators/slash/forge.js +2 -32
- package/dist/core/configurators/slash/forge.js.map +1 -1
- package/dist/core/configurators/slash/github-copilot.d.ts +2 -7
- package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
- package/dist/core/configurators/slash/github-copilot.js +2 -96
- package/dist/core/configurators/slash/github-copilot.js.map +1 -1
- package/dist/core/configurators/slash/index.d.ts +1 -1
- package/dist/core/configurators/slash/index.d.ts.map +1 -1
- package/dist/core/configurators/slash/index.js +1 -1
- package/dist/core/configurators/slash/index.js.map +1 -1
- package/dist/core/configurators/slash/kilocode.d.ts +2 -5
- package/dist/core/configurators/slash/kilocode.d.ts.map +1 -1
- package/dist/core/configurators/slash/kilocode.js +2 -57
- package/dist/core/configurators/slash/kilocode.js.map +1 -1
- package/dist/core/configurators/slash/opencode.d.ts +2 -5
- package/dist/core/configurators/slash/opencode.d.ts.map +1 -1
- package/dist/core/configurators/slash/opencode.js +2 -57
- package/dist/core/configurators/slash/opencode.js.map +1 -1
- package/dist/core/configurators/slash/registry.d.ts +4 -4
- package/dist/core/configurators/slash/registry.d.ts.map +1 -1
- package/dist/core/configurators/slash/registry.js.map +1 -1
- package/dist/core/templates/index.d.ts +0 -1
- package/dist/core/templates/index.d.ts.map +1 -1
- package/dist/core/templates/index.js +0 -1
- package/dist/core/templates/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/ai-humanizer/SKILL.md +50 -0
- package/skills/api-contract-generator/SKILL.md +243 -0
- package/skills/apply/SKILL.md +23 -0
- package/skills/archive/SKILL.md +27 -0
- package/skills/design-system/SKILL.md +216 -0
- package/skills/document-explainer/SKILL.md +155 -0
- package/skills/enhance/SKILL.md +47 -0
- package/skills/epic-generator/SKILL.md +204 -0
- package/skills/epic-single/SKILL.md +63 -0
- package/skills/erd-generator/SKILL.md +138 -0
- package/skills/fsd-generator/SKILL.md +163 -0
- package/skills/prd-agent-generator/SKILL.md +132 -0
- package/skills/prd-generator/SKILL.md +211 -0
- package/skills/product-brief/SKILL.md +141 -0
- package/skills/project-orchestrator/SKILL.md +15 -6
- package/skills/project-orchestrator/assets/caddy-vps-setup.md +180 -0
- package/skills/proposal/SKILL.md +28 -0
- package/skills/qa-test-scenario/SKILL.md +149 -0
- package/skills/skill-creator/SKILL.md +173 -0
- package/skills/story-generator/SKILL.md +285 -0
- package/skills/story-single/SKILL.md +86 -0
- package/skills/tdd-generator/SKILL.md +300 -0
- package/skills/tdd-lite-generator/SKILL.md +230 -0
- package/skills/wireframe-generator/SKILL.md +227 -0
- package/src/cli/index.ts +1 -1
- package/src/commands/init.ts +32 -334
- package/src/commands/update.ts +20 -47
- package/src/core/configurators/slash/antigravity.ts +2 -62
- package/src/core/configurators/slash/base.ts +11 -105
- package/src/core/configurators/slash/claude.ts +2 -62
- package/src/core/configurators/slash/codex.ts +2 -62
- package/src/core/configurators/slash/droid.ts +2 -36
- package/src/core/configurators/slash/forge.ts +2 -36
- package/src/core/configurators/slash/github-copilot.ts +2 -106
- package/src/core/configurators/slash/index.ts +1 -1
- package/src/core/configurators/slash/kilocode.ts +2 -62
- package/src/core/configurators/slash/opencode.ts +2 -62
- package/src/core/configurators/slash/registry.ts +5 -5
- package/src/core/templates/index.ts +0 -1
- package/dist/core/templates/slash-command-templates.d.ts +0 -7
- package/dist/core/templates/slash-command-templates.d.ts.map +0 -1
- package/dist/core/templates/slash-command-templates.js +0 -1041
- package/dist/core/templates/slash-command-templates.js.map +0 -1
- package/src/core/templates/slash-command-templates.ts +0 -1068
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-creator
|
|
3
|
+
description: Create a modular skill package that extends AI agent capabilities
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Role & Expertise
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Primary Objective
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
# Context
|
|
15
|
+
Skills are "onboarding guides" for specific domains or tasks. They provide:
|
|
16
|
+
1. Specialized workflows - Multi-step procedures for specific domains
|
|
17
|
+
2. Tool integrations - Instructions for working with specific file formats or APIs
|
|
18
|
+
3. Domain expertise - Company-specific knowledge, schemas, business logic
|
|
19
|
+
4. Bundled resources - Scripts, references, and assets for complex and repetitive tasks
|
|
20
|
+
|
|
21
|
+
# Core Principles to Follow
|
|
22
|
+
|
|
23
|
+
## Concise is Key
|
|
24
|
+
- Context window is a public good shared with system prompts, history, and other skills
|
|
25
|
+
- Only add context the AI doesn't already have
|
|
26
|
+
- Challenge each piece: "Does this justify its token cost?"
|
|
27
|
+
- Prefer concise examples over verbose explanations
|
|
28
|
+
|
|
29
|
+
## Set Appropriate Degrees of Freedom
|
|
30
|
+
- **High freedom (text-based)**: Multiple valid approaches, context-dependent decisions
|
|
31
|
+
- **Medium freedom (pseudocode/scripts with params)**: Preferred pattern exists, some variation ok
|
|
32
|
+
- **Low freedom (specific scripts)**: Fragile operations, consistency critical, specific sequence required
|
|
33
|
+
|
|
34
|
+
## Progressive Disclosure
|
|
35
|
+
1. **Metadata (name + description)** - Always in context (~100 words)
|
|
36
|
+
2. **SKILL.md body** - When skill triggers (<5k words, <500 lines)
|
|
37
|
+
3. **Bundled resources** - As needed (scripts, references, assets)
|
|
38
|
+
|
|
39
|
+
# Process
|
|
40
|
+
|
|
41
|
+
## Step 1: Gather Requirements
|
|
42
|
+
Ask clarifying questions to understand:
|
|
43
|
+
- What functionality should the skill support?
|
|
44
|
+
- Concrete examples of how the skill would be used
|
|
45
|
+
- What would a user say that should trigger this skill?
|
|
46
|
+
- Any existing resources, scripts, or documentation to include
|
|
47
|
+
|
|
48
|
+
## Step 2: Plan Skill Contents
|
|
49
|
+
Analyze each example to identify:
|
|
50
|
+
- **Scripts** (`scripts/`): Reusable code for repetitive or fragile tasks
|
|
51
|
+
- **References** (`references/`): Documentation loaded as needed
|
|
52
|
+
- **Assets** (`assets/`): Files used in output (templates, images, etc.)
|
|
53
|
+
|
|
54
|
+
## Step 3: Create Skill Structure
|
|
55
|
+
Create the skill directory in `prompter/skills/<skill-name>/`:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
prompter/skills/<skill-name>/
|
|
59
|
+
โโโ SKILL.md (required)
|
|
60
|
+
โโโ [optional bundled resources]
|
|
61
|
+
โโโ scripts/
|
|
62
|
+
โโโ references/
|
|
63
|
+
โโโ assets/
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Step 4: Write SKILL.md
|
|
67
|
+
|
|
68
|
+
### Frontmatter (YAML)
|
|
69
|
+
```yaml
|
|
70
|
+
---
|
|
71
|
+
name: <skill-name>
|
|
72
|
+
description: <comprehensive description of what the skill does AND when to use it>
|
|
73
|
+
---
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Body (Markdown)
|
|
77
|
+
- Instructions for using the skill and its bundled resources
|
|
78
|
+
- Keep under 500 lines
|
|
79
|
+
- Use progressive disclosure patterns for large content
|
|
80
|
+
- Reference bundled files with clear "when to read" guidance
|
|
81
|
+
|
|
82
|
+
### Writing Guidelines
|
|
83
|
+
- Always use imperative/infinitive form
|
|
84
|
+
- Include only information beneficial and non-obvious to Claude
|
|
85
|
+
- Focus on procedural knowledge, domain-specific details, reusable assets
|
|
86
|
+
|
|
87
|
+
## Step 5: Create Bundled Resources (if needed)
|
|
88
|
+
|
|
89
|
+
### Scripts
|
|
90
|
+
- Executable code for deterministic reliability
|
|
91
|
+
- Test scripts before including
|
|
92
|
+
- Example: `scripts/rotate_pdf.py` for PDF rotation
|
|
93
|
+
|
|
94
|
+
### References
|
|
95
|
+
- Documentation loaded into context as needed
|
|
96
|
+
- For files >10k words, include grep search patterns in SKILL.md
|
|
97
|
+
- Examples: schemas, API docs, policies, detailed guides
|
|
98
|
+
|
|
99
|
+
### Assets
|
|
100
|
+
- Files NOT loaded into context, used in output
|
|
101
|
+
- Examples: templates, images, fonts, boilerplate
|
|
102
|
+
|
|
103
|
+
## Step 6: Validate Skill
|
|
104
|
+
|
|
105
|
+
Verify:
|
|
106
|
+
- [ ] SKILL.md has valid YAML frontmatter with name and description
|
|
107
|
+
- [ ] Description clearly states what skill does AND when to use it
|
|
108
|
+
- [ ] Body is under 500 lines
|
|
109
|
+
- [ ] No extraneous files (README, CHANGELOG, etc.)
|
|
110
|
+
- [ ] All bundled resources are referenced in SKILL.md
|
|
111
|
+
- [ ] Scripts are tested and working
|
|
112
|
+
|
|
113
|
+
# Output Requirements
|
|
114
|
+
|
|
115
|
+
**Structure:**
|
|
116
|
+
```
|
|
117
|
+
prompter/skills/<skill-name>/
|
|
118
|
+
โโโ SKILL.md
|
|
119
|
+
โโโ [optional: scripts/, references/, assets/]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
**SKILL.md Format:**
|
|
123
|
+
```markdown
|
|
124
|
+
---
|
|
125
|
+
name: skill-name
|
|
126
|
+
description: Comprehensive description including what it does and when to use it
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
# Skill Title
|
|
130
|
+
|
|
131
|
+
## Quick Start
|
|
132
|
+
[Essential usage instructions]
|
|
133
|
+
|
|
134
|
+
## Workflows
|
|
135
|
+
[Multi-step procedures]
|
|
136
|
+
|
|
137
|
+
## Resources
|
|
138
|
+
[References to bundled files with usage guidance]
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
# What NOT to Include
|
|
142
|
+
- README.md, INSTALLATION_GUIDE.md, QUICK_REFERENCE.md, CHANGELOG.md
|
|
143
|
+
- Auxiliary context about creation process
|
|
144
|
+
- Setup and testing procedures
|
|
145
|
+
- User-facing documentation separate from SKILL.md
|
|
146
|
+
|
|
147
|
+
# Progressive Disclosure Patterns
|
|
148
|
+
|
|
149
|
+
**Pattern 1: High-level guide with references**
|
|
150
|
+
```markdown
|
|
151
|
+
## Advanced features
|
|
152
|
+
- **Forms**: See [FORMS.md](references/forms.md) for complete guide
|
|
153
|
+
- **API**: See [REFERENCE.md](references/reference.md) for all methods
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Pattern 2: Domain-specific organization**
|
|
157
|
+
Organize by domain to avoid loading irrelevant context.
|
|
158
|
+
|
|
159
|
+
**Pattern 3: Conditional details**
|
|
160
|
+
Show basic content, link to advanced content only when needed.
|
|
161
|
+
|
|
162
|
+
## WORKFLOW STEPS
|
|
163
|
+
1. Read the user's input and requirements
|
|
164
|
+
2. Ask clarifying questions if needed
|
|
165
|
+
3. Generate a URL-friendly skill name (lowercase, hyphen-separated)
|
|
166
|
+
4. Create the directory `prompter/skills/<skill-name>/`
|
|
167
|
+
5. Generate SKILL.md with proper frontmatter and body
|
|
168
|
+
6. Create any needed bundled resources (scripts, references, assets)
|
|
169
|
+
7. Report the created skill structure and next steps
|
|
170
|
+
|
|
171
|
+
## REFERENCE
|
|
172
|
+
- Skills are saved to `prompter/skills/<skill-name>/`
|
|
173
|
+
- Read `prompter/project.md` for project context if needed
|
|
@@ -0,0 +1,285 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|