@dedesfr/prompter 0.5.1 → 0.6.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 (32) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cli/index.js +1 -1
  3. package/dist/commands/init.d.ts +1 -0
  4. package/dist/commands/init.d.ts.map +1 -1
  5. package/dist/commands/init.js +55 -21
  6. package/dist/commands/init.js.map +1 -1
  7. package/dist/core/configurators/slash/base.d.ts +2 -2
  8. package/dist/core/configurators/slash/base.d.ts.map +1 -1
  9. package/dist/core/configurators/slash/base.js +10 -4
  10. package/dist/core/configurators/slash/base.js.map +1 -1
  11. package/dist/core/configurators/slash/github-copilot.d.ts +1 -1
  12. package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
  13. package/dist/core/configurators/slash/github-copilot.js +2 -2
  14. package/dist/core/configurators/slash/github-copilot.js.map +1 -1
  15. package/dist/core/prompt-templates.d.ts +10 -0
  16. package/dist/core/prompt-templates.d.ts.map +1 -0
  17. package/dist/core/prompt-templates.js +1298 -0
  18. package/dist/core/prompt-templates.js.map +1 -0
  19. package/package.json +1 -1
  20. package/src/cli/index.ts +1 -1
  21. package/src/commands/init.ts +66 -22
  22. package/src/core/configurators/slash/base.ts +11 -4
  23. package/src/core/configurators/slash/github-copilot.ts +2 -2
  24. package/src/core/prompt-templates.ts +1306 -0
  25. package/.github/prompts/ai-humanizer.prompt.md +0 -50
  26. package/.github/prompts/epic-single.prompt.md +0 -64
  27. package/.github/prompts/prd-generator.prompt.md +0 -212
  28. package/.github/prompts/product-brief.prompt.md +0 -142
  29. package/.github/prompts/prompter-enhance.prompt.md +0 -48
  30. package/.github/prompts/qa-test-scenario.prompt.md +0 -150
  31. package/.github/prompts/skill-creator.prompt.md +0 -174
  32. package/.github/prompts/story-single.prompt.md +0 -87
@@ -1,174 +0,0 @@
1
- ---
2
- description: Create a modular skill package that extends AI agent capabilities
3
- ---
4
- $ARGUMENTS
5
- <!-- prompter-managed-start -->
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
174
- <!-- prompter-managed-end -->
@@ -1,87 +0,0 @@
1
- ---
2
- description: Generate a single Jira User Story from requirements
3
- ---
4
- $ARGUMENTS
5
- <!-- prompter-managed-start -->
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
87
- <!-- prompter-managed-end -->