@vfarcic/dot-ai 0.118.0 → 0.119.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vfarcic/dot-ai",
3
- "version": "0.118.0",
3
+ "version": "0.119.0",
4
4
  "description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
5
5
  "mcpName": "io.github.vfarcic/dot-ai",
6
6
  "main": "dist/index.js",
@@ -53,10 +53,191 @@ Complete the PRD implementation workflow including branch management, pull reque
53
53
  - [ ] **Push to remote**: `git push -u origin feature/prd-[issue-id]-[feature-name]`
54
54
 
55
55
  ### 3. Pull Request Creation
56
- - [ ] **Create PR**: Use `gh pr create` with comprehensive description
57
- - [ ] **Link to PRD**: Reference the original issue and PRD file
58
- - [ ] **Review checklist**: Include testing, documentation, and quality confirmations
59
- - [ ] **Request reviews**: Assign appropriate team members for code review
56
+
57
+ **IMPORTANT: Always check for and use PR template if available**
58
+
59
+ #### 3.1. PR Template Detection and Parsing
60
+ - [ ] **Check for PR template** in common locations:
61
+ - `.github/PULL_REQUEST_TEMPLATE.md`
62
+ - `.github/pull_request_template.md`
63
+ - `.github/PULL_REQUEST_TEMPLATE/` (directory with multiple templates)
64
+ - `docs/pull_request_template.md`
65
+
66
+ - [ ] **Read and parse template comprehensively**: If found, analyze the template to extract:
67
+ - **Structural elements**: Required sections, checklists, format requirements
68
+ - **Content requirements**: What information needs to be provided in each section
69
+ - **Process instructions**: Any workflow enhancements or prerequisites specified in the template
70
+ - **Validation requirements**: Any checks, sign-offs, or verifications mentioned
71
+
72
+ - [ ] **Extract actionable instructions from template**:
73
+ - **Commit requirements**: Look for DCO sign-off, commit message format, commit signing requirements
74
+ - **Pre-submission actions**: Build commands, test commands, linting, format checks
75
+ - **Documentation requirements**: Which docs must be updated, links that must be added
76
+ - **Review requirements**: Required reviewers, approval processes, special considerations
77
+
78
+ **Examples of template instructions to identify and execute:**
79
+ - "All commits must include a `Signed-off-by` line" → Validate commits have DCO sign-off, amend if missing
80
+ - "Run `npm test` before submitting" → Execute test command
81
+ - "PR title follows Conventional Commits format" → Validate title format
82
+ - "Update CHANGELOG.md" → Check if changelog was updated
83
+ - Any bash commands shown in code blocks → Consider if they should be executed
84
+
85
+ #### 3.2. Analyze Changes for PR Content
86
+ - [ ] **Review git diff**: Analyze `git diff main...HEAD` to understand scope of changes
87
+ - [ ] **Review commit history**: Use `git log main..HEAD` to understand implementation progression
88
+ - [ ] **Identify change types**: Determine if changes include:
89
+ - New features, bug fixes, refactoring, documentation, tests, configuration, dependencies
90
+ - Breaking changes or backward-compatible changes
91
+ - Performance improvements or security fixes
92
+ - [ ] **Check modified files**: Identify which areas of codebase were affected
93
+ - Source code files
94
+ - Test files
95
+ - Documentation files
96
+ - Configuration files
97
+
98
+ #### 3.3. Auto-Fill PR Information
99
+ Automatically populate what can be deduced from analysis:
100
+
101
+ - [ ] **PR Title**:
102
+ - Follow template title format if specified (e.g., Conventional Commits: `feat(scope): description`)
103
+ - Extract from PRD title/description and commit messages
104
+ - Include issue reference if required by template
105
+
106
+ - [ ] **Description sections**:
107
+ - **What/Why**: Extract from PRD objectives and implementation details
108
+ - **Related issues**: Automatically link using `Closes #[issue-id]` or `Fixes #[issue-id]`
109
+ - **Type of change**: Check appropriate boxes based on file analysis
110
+
111
+ - [ ] **Testing checklist**:
112
+ - Mark "Tests added/updated" if test files were modified
113
+ - Note: Tests run in CI/CD automatically
114
+
115
+ - [ ] **Documentation checklist**:
116
+ - Mark items based on which docs were updated (README, API docs, code comments)
117
+ - Check if CONTRIBUTING.md guidelines followed
118
+
119
+ - [ ] **Security checklist**:
120
+ - Scan commits for potential secrets or credentials
121
+ - Flag if authentication/authorization code changed
122
+ - Note any dependency updates
123
+
124
+ #### 3.4. Prompt User for Information That Cannot Be Deduced
125
+ **IMPORTANT: Don't just ask - analyze and propose answers, then let user confirm or correct**
126
+
127
+ For each item, use available context to propose an answer, then present it to the user for confirmation:
128
+
129
+ - [ ] **Manual testing results**:
130
+ - **Analyze PRD testing strategy section** to understand what testing was planned
131
+ - **Check git commits** for testing-related messages
132
+ - **Propose testing approach** based on change type (e.g., "Documentation reviewed for accuracy and clarity, cross-references validated")
133
+ - Present proposal and ask: "Is this accurate, or would you like to modify?"
134
+
135
+ - [ ] **Breaking changes**:
136
+ - **Scan commits and PRD** for breaking change indicators
137
+ - If detected, **propose migration guidance** based on PRD content
138
+ - If not detected, **confirm**: "No breaking changes detected. Correct?"
139
+
140
+ - [ ] **Performance implications**:
141
+ - **Analyze change type**: Documentation/config changes typically have no performance impact
142
+ - **Propose answer** based on analysis (e.g., "No performance impact - documentation only")
143
+ - Ask: "Correct, or are there performance considerations?"
144
+
145
+ - [ ] **Security considerations**:
146
+ - **Check if security-sensitive files** were modified (auth, credentials, API keys)
147
+ - **Scan commits** for security-related keywords
148
+ - **Propose security status** (e.g., "No security implications - documentation changes only")
149
+ - Ask: "Accurate, or are there security considerations to document?"
150
+
151
+ - [ ] **Reviewer focus areas**:
152
+ - **Analyze PRD objectives** and **git changes** to identify key areas
153
+ - **Propose specific focus areas** (e.g., "Verify documentation accuracy, check cross-reference links, confirm workflow examples match implementation")
154
+ - Present list and ask: "Are these the right focus areas, or should I adjust?"
155
+
156
+ - [ ] **Follow-up work**:
157
+ - **Check PRD for "Future Enhancements" or "Out of Scope" sections**
158
+ - **Analyze other PRDs** in `prds/` directory for related work
159
+ - **Propose follow-up items** if any (e.g., "Future enhancements listed in PRD: template validation, AI-powered descriptions")
160
+ - Ask: "Should I list these, or is there other follow-up work?"
161
+
162
+ - [ ] **Additional context**:
163
+ - **Review PRD for special considerations**
164
+ - **Check if this is a dogfooding/testing PR**
165
+ - **Propose any relevant context** (e.g., "This PR itself tests the enhanced workflow it documents")
166
+ - Ask: "Anything else reviewers should know?"
167
+
168
+ **Presentation Format:**
169
+ Present all proposed answers together in a summary format:
170
+ ```markdown
171
+ 📋 **Proposed PR Information** (based on analysis)
172
+
173
+ **Manual Testing:** [proposed answer]
174
+ **Breaking Changes:** [proposed answer]
175
+ **Performance Impact:** [proposed answer]
176
+ **Security Considerations:** [proposed answer]
177
+ **Reviewer Focus:** [proposed list]
178
+ **Follow-up Work:** [proposed items or "None"]
179
+ **Additional Context:** [proposed context or "None"]
180
+
181
+ Please review and respond:
182
+ - Type "yes" or "confirm" to accept all
183
+ - Specify corrections for any items that need changes
184
+ ```
185
+
186
+ #### 3.5. Execute Template Requirements
187
+ **IMPORTANT: Before creating the PR, identify and execute any actionable requirements from the template**
188
+
189
+ - [ ] **Analyze template for actionable instructions**:
190
+ - Scan template content for imperative statements, requirements, or commands
191
+ - Look for patterns like "must", "should", "run", "execute", "ensure", "verify"
192
+ - Identify bash commands in code blocks that appear to be prerequisites
193
+ - Extract any validation requirements mentioned in checklists
194
+
195
+ - [ ] **Categorize identified requirements**:
196
+ - **Commit-level actions**: Sign-offs, formatting, validation
197
+ - **Pre-submission commands**: Tests, builds, lints, format checks
198
+ - **Validation checks**: File existence, format compliance, content requirements
199
+ - **Documentation actions**: Required updates, links to add
200
+
201
+ - [ ] **Propose and execute requirements**:
202
+ - Present identified requirements to user: "Template specifies these actions: [list]"
203
+ - For each requirement, determine if it can be automated
204
+ - Propose execution: "Should I execute these now?"
205
+ - Execute confirmed actions and report results
206
+ - Handle failures gracefully and ask user how to proceed
207
+
208
+ - [ ] **Summary before PR creation**:
209
+ ```markdown
210
+ ✅ Template Requirements Status:
211
+ [List each requirement with status: executed/validated/skipped/failed]
212
+
213
+ Ready to create PR? (yes/no)
214
+ ```
215
+
216
+ #### 3.6. Create Pull Request
217
+ - [ ] **Construct PR body**: Combine auto-filled and user-provided information following template structure
218
+ - [ ] **Create PR**: Use `gh pr create --title "[title]" --body "[constructed-body]"` or `gh pr create --title "[title]" --body-file [temp-file]`
219
+ - [ ] **Verify PR created**: Confirm PR was created successfully and template was populated correctly
220
+ - [ ] **Request reviews**: Assign appropriate team members for code review if specified
221
+
222
+ #### 3.7. Fallback for Projects Without Templates
223
+ If no PR template is found, create a sensible default structure:
224
+
225
+ ```markdown
226
+ ## Description
227
+ [What this PR does and why]
228
+
229
+ ## Related Issues
230
+ Closes #[issue-id]
231
+
232
+ ## Changes Made
233
+ - [List key changes]
234
+
235
+ ## Testing
236
+ - [Testing approach and results]
237
+
238
+ ## Documentation
239
+ - [Documentation updates made]
240
+ ```
60
241
 
61
242
  ### 4. Review and Merge Process
62
243
  - [ ] **Check ongoing processes**: Use `gh pr checks [pr-number]` to check for any ongoing CI/CD, security analysis, or automated reviews (CodeRabbit, CodeQL, etc.)