ai-flow-dev 2.8.2 → 2.9.1

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.
@@ -0,0 +1,294 @@
1
+ # Pull Request Description Template
2
+
3
+ This template is used by `/flow-finish` to generate professional Pull Request descriptions.
4
+
5
+ ## Variables Available
6
+
7
+ - `{{TASK_TYPE}}` - Type: feature, fix, refactor, etc.
8
+ - `{{TASK_TITLE}}` - Descriptive title from work.md objective
9
+ - `{{BRANCH_NAME}}` - Current git branch
10
+ - `{{STORY_POINTS}}` - Total story points
11
+ - `{{DURATION}}` - Time spent (Xh Ymin)
12
+ - `{{IMPACT_AREA}}` - Detected area (Backend API, Frontend, Database, etc.)
13
+ - `{{CONTEXT}}` - Problem/need description (2-3 lines)
14
+ - `{{SOLUTION}}` - Technical approach (2-3 lines)
15
+ - `{{MAIN_CHANGES}}` - List of 5-7 significant changes
16
+ - `{{TESTS_PASSED}}` - Tests passed count
17
+ - `{{TESTS_TOTAL}}` - Total tests
18
+ - `{{TESTS_NEW}}` - New tests added
19
+ - `{{COVERAGE}}` - Code coverage %
20
+ - `{{TOTAL_COMMITS}}` - Number of commits
21
+ - `{{FILES_COUNT}}` - Files changed
22
+ - `{{LINES_ADDED}}` - Lines added
23
+ - `{{LINES_DELETED}}` - Lines deleted
24
+ - `{{HAS_BREAKING_CHANGES}}` - true/false
25
+ - `{{BREAKING_CHANGES_LIST}}` - List of breaking changes (if any)
26
+ - `{{HAS_MIGRATIONS}}` - true/false
27
+ - `{{MIGRATION_FILES}}` - Number of migration files
28
+ - `{{NEW_ENV_VARS}}` - List of new environment variables
29
+ - `{{HAS_NEW_DEPS}}` - true/false
30
+ - `{{INSTALL_CMD}}` - Command to install dependencies
31
+ - `{{NEW_DEPENDENCIES}}` - List of new dependencies
32
+ - `{{COMMIT_HASHES_SUMMARY}}` - Formatted commit links
33
+ - `{{PLATFORM}}` - Git platform (GitHub, GitLab, etc.)
34
+ - `{{TEST_STEPS}}` - How to test (generated from work.md)
35
+ - `{{SECURITY_IMPACT}}` - Security implications assessment (2026 standard)
36
+ - `{{PERFORMANCE_IMPACT}}` - Performance analysis (baseline vs after)
37
+ - `{{OBSERVABILITY}}` - Logging, metrics, and monitoring changes
38
+
39
+ ---
40
+
41
+ ## Template Structure
42
+
43
+ ```markdown
44
+ ## {{TASK_TYPE^}}: {{TASK_TITLE}}
45
+
46
+ > **Branch:** `{{BRANCH_NAME}}` • **Story Points:** {{STORY_POINTS}} SP • **Duration:** {{DURATION}}
47
+
48
+ ---
49
+
50
+ ## 🎯 Change Type
51
+
52
+ - [{{IS_FEATURE}}] ✨ Feature (new functionality)
53
+ - [{{IS_FIX}}] 🐛 Fix (bug fix)
54
+ - [{{IS_REFACTOR}}] ♻️ Refactor (no functional change)
55
+ - [{{IS_DOCS}}] 📝 Docs (documentation only)
56
+ - [{{IS_PERF}}] ⚡ Performance (improvement)
57
+ - [{{IS_TEST}}] 🧪 Test (add/improve tests)
58
+
59
+ ## 🎯 Impact Area
60
+
61
+ **{{IMPACT_AREA}}**
62
+
63
+ ## 💡 Context
64
+
65
+ {{CONTEXT}}
66
+
67
+ {{RELATED_ISSUES}}
68
+
69
+ ## ✅ Implemented Solution
70
+
71
+ {{SOLUTION}}
72
+
73
+ ## 🔧 Main Changes
74
+
75
+ {{MAIN_CHANGES}}
76
+
77
+ ## 🧪 How to Test
78
+
79
+ {{TEST_STEPS}}
80
+
81
+ {{SCREENSHOTS_SECTION}}
82
+
83
+ ## 🔒 Security Impact
84
+
85
+ {{SECURITY_IMPACT}}
86
+
87
+ ## ⚡ Performance Impact
88
+
89
+ {{PERFORMANCE_IMPACT}}
90
+
91
+ ## 🔍 Observability
92
+
93
+ {{OBSERVABILITY}}
94
+
95
+ ## 📊 Validation
96
+
97
+ | Aspect | Result |
98
+ | ----------- | ------------------------------------------------------------- |
99
+ | 🧪 Tests | {{TESTS_PASSED}}/{{TESTS_TOTAL}} passing (+{{TESTS_NEW}} new) |
100
+ | 📈 Coverage | {{COVERAGE}}% |
101
+ | 🔍 Lint | ✅ No errors |
102
+ | 📝 Docs | {{DOCS_STATUS}} |
103
+
104
+ ## 📈 Metrics
105
+
106
+ | Metric | Value |
107
+ | ------------------- | -------------------------------------------------------------------- |
108
+ | 💾 Commits | {{TOTAL_COMMITS}} ([view commits]({{COMMIT_HASHES_SUMMARY}})) |
109
+ | 📁 Files | {{FILES_COUNT}} modified (+{{LINES_ADDED}}/-{{LINES_DELETED}} lines) |
110
+ | ⚠️ Breaking Changes | {{BREAKING_CHANGES_STATUS}} |
111
+ | ⏱️ Duration | {{DURATION}} ({{STORY_POINTS}} SP) |
112
+
113
+ {{BREAKING_CHANGES_DETAILS}}
114
+
115
+ {{DEPLOYMENT_NOTES}}
116
+
117
+ ## 📦 Dependencies
118
+
119
+ {{DEPENDENCIES_SECTION}}
120
+
121
+ ## 🔗 References
122
+
123
+ - **Commits:** {{COMMIT_HASHES_SUMMARY}}
124
+ - **Platform:** {{PLATFORM}}
125
+ {{ISSUE_LINKS}}
126
+
127
+ ## ✅ Reviewer Checklist
128
+
129
+ - [ ] Code follows project standards
130
+ - [ ] Logic is clear and well documented
131
+ - [ ] Tests cover critical and edge cases
132
+ - [ ] No security or performance risks
133
+ - [ ] Documentation is up to date
134
+ - [ ] No undocumented breaking changes
135
+ - [ ] PR size is appropriate (not too large)
136
+
137
+ {{NEXT_STEPS}}
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Conditional Sections
143
+
144
+ ### Breaking Changes Details (only if HAS_BREAKING_CHANGES = true)
145
+
146
+ ```markdown
147
+ ## ⚠️ Breaking Changes
148
+
149
+ {{BREAKING_CHANGES_LIST}}
150
+
151
+ **Migration Guide:**
152
+ {{MIGRATION_GUIDE}}
153
+ ```
154
+
155
+ ### Deployment Notes (only if SHOW_DEPLOYMENT_NOTES = true)
156
+
157
+ ```markdown
158
+ ## 🚀 Deployment Notes
159
+
160
+ {{#if HAS_MIGRATIONS}}
161
+
162
+ ### 🗄️ Database Migrations
163
+
164
+ **Action Required:** Execute {{MIGRATION_FILES}} migration(s) before deploying.
165
+
166
+ \`\`\`bash
167
+
168
+ # Development
169
+
170
+ npm run migrate:dev
171
+
172
+ # Production
173
+
174
+ npm run migrate:prod
175
+ \`\`\`
176
+
177
+ **Rollback plan:** Keep backup before migration, use `migrate:rollback` if issues.
178
+ {{/if}}
179
+
180
+ {{#if NEW_ENV_VARS}}
181
+
182
+ ### 🔐 Environment Variables
183
+
184
+ Add these variables to your `.env` file:
185
+
186
+ \`\`\`bash
187
+ {{NEW_ENV_VARS}}
188
+ \`\`\`
189
+
190
+ **Production:** Update `.env` in hosting platform before deploy.
191
+ {{/if}}
192
+
193
+ {{#if HAS_NEW_DEPS}}
194
+
195
+ ### 📦 Dependencies
196
+
197
+ New dependencies added. Install before running:
198
+
199
+ \`\`\`bash
200
+ {{INSTALL_CMD}}
201
+ \`\`\`
202
+
203
+ **New packages:**
204
+ {{NEW_DEPENDENCIES}}
205
+ {{/if}}
206
+ ```
207
+
208
+ ### Screenshots Section (only if UI changes detected)
209
+
210
+ ```markdown
211
+ ## 📸 Screenshots
212
+
213
+ {{#if HAS_UI_CHANGES}}
214
+
215
+ ### Before
216
+
217
+ ![Before](./docs/screenshots/before.png)
218
+
219
+ ### After
220
+
221
+ ![After](./docs/screenshots/after.png)
222
+
223
+ 💡 **Tip:** Add screenshots showing:
224
+
225
+ - UI changes (before/after)
226
+ - New features in action
227
+ - Error states
228
+ - Mobile/responsive views (if applicable)
229
+ {{else}}
230
+ _No UI changes in this PR_
231
+ {{/if}}
232
+ ```
233
+
234
+ ### Dependencies Section
235
+
236
+ ```markdown
237
+ {{#if HAS_NEW_DEPS}}
238
+ {{NEW_DEPENDENCIES}}
239
+ {{else}}
240
+ No new dependencies added.
241
+ {{/if}}
242
+ ```
243
+
244
+ ### Issue Links Section
245
+
246
+ ```markdown
247
+ {{#if HAS_ISSUES}}
248
+
249
+ - **Closes:** #{{ISSUE_NUMBER}}
250
+ - **Related:** {{RELATED_ISSUES}}
251
+ {{else}}
252
+ _No linked issues_
253
+ {{/if}}
254
+ ```
255
+
256
+ ### Next Steps Section
257
+
258
+ ```markdown
259
+ ## 📋 Next Steps
260
+
261
+ {{#if HAS_MIGRATIONS}}
262
+
263
+ - [ ] Execute migrations in staging environment
264
+ - [ ] Verify migration rollback works
265
+ {{/if}}
266
+ {{#if HAS_NEW_DEPS}}
267
+ - [ ] Update production dependencies
268
+ {{/if}}
269
+ - [ ] Monitor logs after deployment for 24h
270
+ - [ ] Update Jira ticket status to "Ready for QA"
271
+ {{#if HAS_BREAKING_CHANGES}}
272
+ - [ ] Notify stakeholders about breaking changes
273
+ - [ ] Update API documentation
274
+ {{/if}}
275
+ ```
276
+
277
+ ---
278
+
279
+ ## Usage in AI Flow
280
+
281
+ This template is rendered by AI during `/flow-finish` execution with actual values extracted from:
282
+
283
+ - Work metadata (`work.md`, `status.json`)
284
+ - Git history (commits, diffs, stats)
285
+ - Test results (if `/flow-check` was executed)
286
+ - Deployment detection (migrations, env vars, dependencies)
287
+
288
+ The AI analyzes this structured context and generates professional descriptions optimized for:
289
+
290
+ - **GitHub** Pull Requests
291
+ - **GitLab** Merge Requests
292
+ - **Bitbucket** Pull Requests
293
+ - **Azure DevOps** Pull Requests
294
+ - **Jira** ticket descriptions