ai-flow-dev 2.8.2 → 2.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.
@@ -0,0 +1,298 @@
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
+ ## 🎯 Tipo de Cambio
51
+
52
+ - [{{IS_FEATURE}}] ✨ Feature (nueva funcionalidad)
53
+ - [{{IS_FIX}}] 🐛 Fix (corrección de bug)
54
+ - [{{IS_REFACTOR}}] ♻️ Refactor (sin cambio funcional)
55
+ - [{{IS_DOCS}}] 📝 Docs (solo documentación)
56
+ - [{{IS_PERF}}] ⚡ Performance (mejora de rendimiento)
57
+ - [{{IS_TEST}}] 🧪 Test (agregar/mejorar tests)
58
+
59
+ ## 🎯 Área de Impacto
60
+
61
+ **{{IMPACT_AREA}}**
62
+
63
+ ## 💡 Contexto
64
+
65
+ {{CONTEXT}}
66
+
67
+ {{RELATED_ISSUES}}
68
+
69
+ ## ✅ Solución Implementada
70
+
71
+ {{SOLUTION}}
72
+
73
+ ## 🔧 Cambios Principales
74
+
75
+ {{MAIN_CHANGES}}
76
+
77
+ ## 🧪 Cómo Probar
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
+ ## �📊 Validación
96
+
97
+ | Aspecto | Resultado |
98
+ | ----------- | ---------------------------------------------------------------- |
99
+ | 🧪 Tests | {{TESTS_PASSED}}/{{TESTS_TOTAL}} passing (+{{TESTS_NEW}} nuevos) |
100
+ | 📈 Coverage | {{COVERAGE}}% |
101
+ | 🔍 Lint | ✅ Sin errores |
102
+ | 📝 Docs | {{DOCS_STATUS}} |
103
+
104
+ ## 📈 Métricas
105
+
106
+ | Métrica | Valor |
107
+ | ------------------- | ------------------------------------------------------------------------ |
108
+ | 💾 Commits | {{TOTAL_COMMITS}} ([ver commits]({{COMMIT_HASHES_SUMMARY}})) |
109
+ | 📁 Archivos | {{FILES_COUNT}} modificados (+{{LINES_ADDED}}/-{{LINES_DELETED}} líneas) |
110
+ | ⚠️ Breaking Changes | {{BREAKING_CHANGES_STATUS}} |
111
+ | ⏱️ Duración | {{DURATION}} ({{STORY_POINTS}} SP) |
112
+
113
+ {{BREAKING_CHANGES_DETAILS}}
114
+
115
+ {{DEPLOYMENT_NOTES}}
116
+
117
+ ## 📦 Dependencias
118
+
119
+ {{DEPENDENCIES_SECTION}}
120
+
121
+ ## 🔗 Referencias
122
+
123
+ - **Commits:** {{COMMIT_HASHES_SUMMARY}}
124
+ - **Platform:** {{PLATFORM}}
125
+ {{ISSUE_LINKS}}
126
+
127
+ ## ✅ Reviewer Checklist
128
+
129
+ - [ ] El código sigue los estándares del proyecto
130
+ - [ ] La lógica es clara y está bien documentada
131
+ - [ ] Los tests cubren casos críticos y edge cases
132
+ - [ ] No hay riesgos de seguridad o performance
133
+ - [ ] La documentación está actualizada
134
+ - [ ] Los cambios no introducen breaking changes no documentados
135
+ - [ ] El PR es del tamaño adecuado (no demasiado grande)
136
+
137
+ {{NEXT_STEPS}}
138
+
139
+ ---
140
+
141
+ **Generated by AI Flow** • [Learn more](https://github.com/victorvelazquez/ai-flow)
142
+ ```
143
+
144
+ ---
145
+
146
+ ## Conditional Sections
147
+
148
+ ### Breaking Changes Details (only if HAS_BREAKING_CHANGES = true)
149
+
150
+ ```markdown
151
+ ## ⚠️ Breaking Changes
152
+
153
+ {{BREAKING_CHANGES_LIST}}
154
+
155
+ **Migration Guide:**
156
+ {{MIGRATION_GUIDE}}
157
+ ```
158
+
159
+ ### Deployment Notes (only if SHOW_DEPLOYMENT_NOTES = true)
160
+
161
+ ```markdown
162
+ ## 🚀 Deployment Notes
163
+
164
+ {{#if HAS_MIGRATIONS}}
165
+
166
+ ### 🗄️ Database Migrations
167
+
168
+ **Action Required:** Execute {{MIGRATION_FILES}} migration(s) before deploying.
169
+
170
+ \`\`\`bash
171
+
172
+ # Development
173
+
174
+ npm run migrate:dev
175
+
176
+ # Production
177
+
178
+ npm run migrate:prod
179
+ \`\`\`
180
+
181
+ **Rollback plan:** Keep backup before migration, use `migrate:rollback` if issues.
182
+ {{/if}}
183
+
184
+ {{#if NEW_ENV_VARS}}
185
+
186
+ ### 🔐 Environment Variables
187
+
188
+ Add these variables to your `.env` file:
189
+
190
+ \`\`\`bash
191
+ {{NEW_ENV_VARS}}
192
+ \`\`\`
193
+
194
+ **Production:** Update `.env` in hosting platform before deploy.
195
+ {{/if}}
196
+
197
+ {{#if HAS_NEW_DEPS}}
198
+
199
+ ### 📦 Dependencies
200
+
201
+ New dependencies added. Install before running:
202
+
203
+ \`\`\`bash
204
+ {{INSTALL_CMD}}
205
+ \`\`\`
206
+
207
+ **New packages:**
208
+ {{NEW_DEPENDENCIES}}
209
+ {{/if}}
210
+ ```
211
+
212
+ ### Screenshots Section (only if UI changes detected)
213
+
214
+ ```markdown
215
+ ## 📸 Screenshots
216
+
217
+ {{#if HAS_UI_CHANGES}}
218
+
219
+ ### Before
220
+
221
+ ![Before](./docs/screenshots/before.png)
222
+
223
+ ### After
224
+
225
+ ![After](./docs/screenshots/after.png)
226
+
227
+ 💡 **Tip:** Add screenshots showing:
228
+
229
+ - UI changes (before/after)
230
+ - New features in action
231
+ - Error states
232
+ - Mobile/responsive views (if applicable)
233
+ {{else}}
234
+ _No UI changes in this PR_
235
+ {{/if}}
236
+ ```
237
+
238
+ ### Dependencies Section
239
+
240
+ ```markdown
241
+ {{#if HAS_NEW_DEPS}}
242
+ {{NEW_DEPENDENCIES}}
243
+ {{else}}
244
+ No new dependencies added.
245
+ {{/if}}
246
+ ```
247
+
248
+ ### Issue Links Section
249
+
250
+ ```markdown
251
+ {{#if HAS_ISSUES}}
252
+
253
+ - **Closes:** #{{ISSUE_NUMBER}}
254
+ - **Related:** {{RELATED_ISSUES}}
255
+ {{else}}
256
+ _No linked issues_
257
+ {{/if}}
258
+ ```
259
+
260
+ ### Next Steps Section
261
+
262
+ ```markdown
263
+ ## 📋 Next Steps
264
+
265
+ {{#if HAS_MIGRATIONS}}
266
+
267
+ - [ ] Execute migrations in staging environment
268
+ - [ ] Verify migration rollback works
269
+ {{/if}}
270
+ {{#if HAS_NEW_DEPS}}
271
+ - [ ] Update production dependencies
272
+ {{/if}}
273
+ - [ ] Monitor logs after deployment for 24h
274
+ - [ ] Update Jira ticket status to "Ready for QA"
275
+ {{#if HAS_BREAKING_CHANGES}}
276
+ - [ ] Notify stakeholders about breaking changes
277
+ - [ ] Update API documentation
278
+ {{/if}}
279
+ ```
280
+
281
+ ---
282
+
283
+ ## Usage in AI Flow
284
+
285
+ This template is rendered by AI during `/flow-finish` execution with actual values extracted from:
286
+
287
+ - Work metadata (`work.md`, `status.json`)
288
+ - Git history (commits, diffs, stats)
289
+ - Test results (if `/flow-check` was executed)
290
+ - Deployment detection (migrations, env vars, dependencies)
291
+
292
+ The AI analyzes this structured context and generates professional descriptions optimized for:
293
+
294
+ - **GitHub** Pull Requests
295
+ - **GitLab** Merge Requests
296
+ - **Bitbucket** Pull Requests
297
+ - **Azure DevOps** Pull Requests
298
+ - **Jira** ticket descriptions