siesa-agents 2.1.43 → 2.1.44
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/bmad/bmm/workflows/5-documentation/README.md +234 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/data/audience-types.csv +5 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/data/diagram-types.csv +6 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/data/section-structure.csv +10 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-01-init.md +313 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-01b-continue.md +268 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-02-seleccion-epicas.md +212 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-03-analisis-fuentes.md +308 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-04-elicitacion.md +332 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-05-generacion-espanol.md +608 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-06-traduccion-ingles.md +607 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-07-validacion-guardado.md +549 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/templates/user-guide-template-en.md +50 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/templates/user-guide-template-es.md +50 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/workflow-plan-create-user-guide.md +949 -0
- package/bmad/bmm/workflows/5-documentation/create-user-guide/workflow.md +61 -0
- package/claude/commands/bmad/bmm/workflows/create-user-guide.md +5 -0
- package/gemini/commands/bmad-workflow-bmm-create-user-guide.toml +4 -0
- package/package.json +1 -1
package/bmad/bmm/workflows/5-documentation/create-user-guide/steps/step-07-validacion-guardado.md
ADDED
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-07-validacion-guardado'
|
|
3
|
+
description: 'Validate bilingual user guides and save with language selector index'
|
|
4
|
+
|
|
5
|
+
# Path Definitions
|
|
6
|
+
workflow_path: '{project-root}/_bmad/bmm/workflows/5-documentation/create-user-guide'
|
|
7
|
+
|
|
8
|
+
# File References
|
|
9
|
+
thisStepFile: '{workflow_path}/steps/step-07-validacion-guardado.md'
|
|
10
|
+
workflowFile: '{workflow_path}/workflow.md'
|
|
11
|
+
outputFileSpanish: '{output_folder}/documentation-artifacts/user-guide/es/{audience}-guide.md'
|
|
12
|
+
outputFileEnglish: '{output_folder}/documentation-artifacts/user-guide/en/{audience}-guide.md'
|
|
13
|
+
indexFile: '{output_folder}/documentation-artifacts/user-guide/index.md'
|
|
14
|
+
|
|
15
|
+
# Loop reference (for corrections)
|
|
16
|
+
correctionTargetStep: '{workflow_path}/steps/step-05-generacion-espanol.md'
|
|
17
|
+
|
|
18
|
+
# Task References
|
|
19
|
+
advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
|
|
20
|
+
partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
|
|
21
|
+
|
|
22
|
+
# Config
|
|
23
|
+
bmmConfig: '{project-root}/_bmad/bmm/config.yaml'
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Step 7: Validación y Guardado
|
|
27
|
+
|
|
28
|
+
## STEP GOAL:
|
|
29
|
+
|
|
30
|
+
Ejecutar validación comprehensiva (self-check) de ambas guías de usuario (español e inglés), verificar cumplimiento de criterios de éxito, presentar resultados al usuario y permitir correcciones si es necesario. Si todo está correcto, guardar ambas versiones y crear/actualizar el archivo index.md con selector de idioma.
|
|
31
|
+
|
|
32
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
33
|
+
|
|
34
|
+
### Universal Rules:
|
|
35
|
+
|
|
36
|
+
- 🛑 NEVER generate content without user input
|
|
37
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
38
|
+
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
|
|
39
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
40
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
41
|
+
|
|
42
|
+
### Role Reinforcement:
|
|
43
|
+
|
|
44
|
+
- ✅ You are a quality assurance specialist and technical writer
|
|
45
|
+
- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
|
|
46
|
+
- ✅ We engage in collaborative dialogue, not command-response
|
|
47
|
+
- ✅ You bring quality validation expertise, user brings approval authority
|
|
48
|
+
- ✅ Maintain collaborative professional tone throughout
|
|
49
|
+
|
|
50
|
+
### Step-Specific Rules:
|
|
51
|
+
|
|
52
|
+
- 🎯 Focus ONLY on validation and finalization (PRESCRIPTIVE)
|
|
53
|
+
- 🚫 FORBIDDEN to skip validation checks
|
|
54
|
+
- 💬 Present clear validation results
|
|
55
|
+
- 🔄 Support loop back to step-05 if corrections needed
|
|
56
|
+
|
|
57
|
+
## EXECUTION PROTOCOLS:
|
|
58
|
+
|
|
59
|
+
- 🎯 Execute all validation checks systematically
|
|
60
|
+
- 💾 Only save/finalize with user approval
|
|
61
|
+
- 📖 Set `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` when workflow complete
|
|
62
|
+
- 🔄 LOOP to step-05 if issues found and user requests fixes
|
|
63
|
+
|
|
64
|
+
## CONTEXT BOUNDARIES:
|
|
65
|
+
|
|
66
|
+
- Both complete guides (Spanish and English)
|
|
67
|
+
- All frontmatter metrics
|
|
68
|
+
- This is final quality gate before delivery
|
|
69
|
+
- User has final approval authority
|
|
70
|
+
|
|
71
|
+
## TOP 5 NON-NEGOTIABLE CRITERIA:
|
|
72
|
+
|
|
73
|
+
1. **📄 Bilingual Output Completo:** Both versions exist with identical structure
|
|
74
|
+
2. **🔗 Source Citations Obligatorias:** Every feature has citation
|
|
75
|
+
3. **📊 Diagramas Mermaid Completos:** Every feature/workflow has diagram
|
|
76
|
+
4. **📸 Screenshot Placeholders Presentes:** Correct format + Screenshot Index
|
|
77
|
+
5. **✅ Self-Check Pasado:** Completeness >= 90%, no TODOs
|
|
78
|
+
|
|
79
|
+
## EXECUTION SEQUENCE (PRESCRIPTIVE):
|
|
80
|
+
|
|
81
|
+
### 1. Announce Validation Start
|
|
82
|
+
|
|
83
|
+
"🔍 **Iniciando Validación Final**
|
|
84
|
+
|
|
85
|
+
Voy a ejecutar una verificación comprehensiva de ambas guías de usuario (español e inglés) para asegurar que cumplen todos los criterios de calidad.
|
|
86
|
+
|
|
87
|
+
**Criterios a Validar:**
|
|
88
|
+
1. Output bilingüe completo
|
|
89
|
+
2. Source citations obligatorias
|
|
90
|
+
3. Diagramas Mermaid completos
|
|
91
|
+
4. Screenshot placeholders presentes
|
|
92
|
+
5. Self-check de completitud
|
|
93
|
+
|
|
94
|
+
Este proceso tomará un momento..."
|
|
95
|
+
|
|
96
|
+
### 2. VALIDATION CHECK 1: Bilingual Output Completo
|
|
97
|
+
|
|
98
|
+
**Check 1.1: File Existence**
|
|
99
|
+
- Spanish file exists at `{outputFileSpanish}`: {YES/NO}
|
|
100
|
+
- English file exists at `{outputFileEnglish}`: {YES/NO}
|
|
101
|
+
|
|
102
|
+
**Check 1.2: File Non-Empty**
|
|
103
|
+
- Spanish file size: {bytes}
|
|
104
|
+
- English file size: {bytes}
|
|
105
|
+
- Both > 10KB: {YES/NO}
|
|
106
|
+
|
|
107
|
+
**Check 1.3: Identical Structure**
|
|
108
|
+
|
|
109
|
+
Read both files and count:
|
|
110
|
+
|
|
111
|
+
| Element | Spanish | English | Match |
|
|
112
|
+
|---------|---------|---------|-------|
|
|
113
|
+
| H1 headers | {count} | {count} | {✓/✗} |
|
|
114
|
+
| H2 headers | {count} | {count} | {✓/✗} |
|
|
115
|
+
| H3 headers | {count} | {count} | {✓/✗} |
|
|
116
|
+
| H4 headers | {count} | {count} | {✓/✗} |
|
|
117
|
+
| Total sections | {count} | {count} | {✓/✗} |
|
|
118
|
+
|
|
119
|
+
**Result:** {PASS/FAIL}
|
|
120
|
+
|
|
121
|
+
### 3. VALIDATION CHECK 2: Source Citations Obligatorias
|
|
122
|
+
|
|
123
|
+
**Check 2.1: Citation Presence**
|
|
124
|
+
|
|
125
|
+
Scan Spanish document for `[Source: Epic ` pattern:
|
|
126
|
+
- Total source citations found: {count}
|
|
127
|
+
- From frontmatter.features_documented: {count}
|
|
128
|
+
- Citation ratio: {citations / features}
|
|
129
|
+
|
|
130
|
+
**Required:** Ratio >= 1.0 (at least one citation per feature)
|
|
131
|
+
|
|
132
|
+
**Check 2.2: Citation Format Validation**
|
|
133
|
+
|
|
134
|
+
For each citation:
|
|
135
|
+
- Matches pattern `[Source: Epic \d+ Story \d+]`: {valid_count}/{total_count}
|
|
136
|
+
- All epic numbers reference selected epics: {YES/NO}
|
|
137
|
+
|
|
138
|
+
**Check 2.3: No Invented Features**
|
|
139
|
+
|
|
140
|
+
- All features documented appear in analyzed epics: {YES/NO}
|
|
141
|
+
- No features without source: {YES/NO}
|
|
142
|
+
|
|
143
|
+
**Result:** {PASS/FAIL}
|
|
144
|
+
|
|
145
|
+
### 4. VALIDATION CHECK 3: Diagramas Mermaid Completos
|
|
146
|
+
|
|
147
|
+
**Check 3.1: Diagram Count**
|
|
148
|
+
|
|
149
|
+
Scan both documents for ```mermaid blocks:
|
|
150
|
+
- Spanish diagrams: {count}
|
|
151
|
+
- English diagrams: {count}
|
|
152
|
+
- Counts match: {YES/NO}
|
|
153
|
+
|
|
154
|
+
**Check 3.2: Minimum Diagram Coverage**
|
|
155
|
+
|
|
156
|
+
From frontmatter:
|
|
157
|
+
- features_documented: {count}
|
|
158
|
+
- workflows_documented: {count}
|
|
159
|
+
- Expected minimum diagrams: {features + workflows}
|
|
160
|
+
- Actual diagrams: {count}
|
|
161
|
+
- Coverage: {actual >= expected}
|
|
162
|
+
|
|
163
|
+
**Check 3.3: Diagram Localization**
|
|
164
|
+
|
|
165
|
+
Sample 5 random diagrams from each:
|
|
166
|
+
- Spanish diagrams use Spanish labels: {YES/NO}
|
|
167
|
+
- English diagrams use English labels: {YES/NO}
|
|
168
|
+
|
|
169
|
+
**Result:** {PASS/FAIL}
|
|
170
|
+
|
|
171
|
+
### 5. VALIDATION CHECK 4: Screenshot Placeholders
|
|
172
|
+
|
|
173
|
+
**Check 4.1: Screenshot Format**
|
|
174
|
+
|
|
175
|
+
Scan both documents for `[Screenshot: ` pattern:
|
|
176
|
+
- Spanish screenshots: {count}
|
|
177
|
+
- English screenshots: {count}
|
|
178
|
+
- Counts match: {YES/NO}
|
|
179
|
+
|
|
180
|
+
**Check 4.2: ID Format Validation**
|
|
181
|
+
|
|
182
|
+
For each screenshot placeholder:
|
|
183
|
+
- ID in UPPER_SNAKE_CASE: {valid_count}/{total_count}
|
|
184
|
+
- ID has valid prefix (FEATURE_/WORKFLOW_/UI_/ERROR_): {valid_count}/{total_count}
|
|
185
|
+
- All IDs are unique: {YES/NO}
|
|
186
|
+
|
|
187
|
+
**Check 4.3: Screenshot Index Validation**
|
|
188
|
+
|
|
189
|
+
- Screenshot Index section exists in Spanish: {YES/NO}
|
|
190
|
+
- Screenshot Index section exists in English: {YES/NO}
|
|
191
|
+
- All placeholder IDs appear in index: {YES/NO}
|
|
192
|
+
- Index table format correct: {YES/NO}
|
|
193
|
+
|
|
194
|
+
**Result:** {PASS/FAIL}
|
|
195
|
+
|
|
196
|
+
### 6. VALIDATION CHECK 5: Self-Check Completitud
|
|
197
|
+
|
|
198
|
+
**Check 5.1: Epic Coverage**
|
|
199
|
+
|
|
200
|
+
From frontmatter.epics_selected: [1, 3, 5]
|
|
201
|
+
|
|
202
|
+
- All selected epics referenced in content: {YES/NO}
|
|
203
|
+
- Epic 1: {referenced count} times
|
|
204
|
+
- Epic 3: {referenced count} times
|
|
205
|
+
- Epic 5: {referenced count} times
|
|
206
|
+
|
|
207
|
+
**Check 5.2: No Incomplete Markers**
|
|
208
|
+
|
|
209
|
+
Scan both documents for:
|
|
210
|
+
- TODO markers: {count found} (should be 0)
|
|
211
|
+
- FIXME markers: {count found} (should be 0)
|
|
212
|
+
- [TBD] markers: {count found} (should be 0)
|
|
213
|
+
- Empty sections (## Header with no content): {count found}
|
|
214
|
+
|
|
215
|
+
**Check 5.3: Completeness Score Calculation**
|
|
216
|
+
|
|
217
|
+
Calculate score based on:
|
|
218
|
+
- All required sections present: {25 points if yes}
|
|
219
|
+
- All features have diagrams: {25 points if yes}
|
|
220
|
+
- All features have citations: {20 points if yes}
|
|
221
|
+
- Screenshot index complete: {15 points if yes}
|
|
222
|
+
- No incomplete markers: {15 points if yes}
|
|
223
|
+
|
|
224
|
+
**Completeness Score:** {total}/100
|
|
225
|
+
|
|
226
|
+
**Required:** Score >= 90
|
|
227
|
+
|
|
228
|
+
**Result:** {PASS/FAIL}
|
|
229
|
+
|
|
230
|
+
### 7. Compile Validation Report
|
|
231
|
+
|
|
232
|
+
**📊 VALIDATION REPORT**
|
|
233
|
+
|
|
234
|
+
```
|
|
235
|
+
=== USER GUIDE VALIDATION RESULTS ===
|
|
236
|
+
|
|
237
|
+
Project: {project_name}
|
|
238
|
+
Audience: {target_audience}
|
|
239
|
+
Date: {current_date}
|
|
240
|
+
|
|
241
|
+
CRITERIA 1: Bilingual Output Completo
|
|
242
|
+
├─ File Existence: {PASS/FAIL}
|
|
243
|
+
├─ File Size: {PASS/FAIL}
|
|
244
|
+
└─ Identical Structure: {PASS/FAIL}
|
|
245
|
+
└─ Headers match: H1({es_count}={en_count}) H2({es_count}={en_count}) H3({es_count}={en_count})
|
|
246
|
+
Status: {✓ PASS / ✗ FAIL}
|
|
247
|
+
|
|
248
|
+
CRITERIA 2: Source Citations Obligatorias
|
|
249
|
+
├─ Citation Count: {count} citations for {features_count} features
|
|
250
|
+
├─ Citation Ratio: {ratio} (required: >= 1.0)
|
|
251
|
+
├─ Format Valid: {valid_count}/{total_count}
|
|
252
|
+
└─ Epic References Valid: {YES/NO}
|
|
253
|
+
Status: {✓ PASS / ✗ FAIL}
|
|
254
|
+
|
|
255
|
+
CRITERIA 3: Diagramas Mermaid Completos
|
|
256
|
+
├─ Diagram Count: {es_count} (Spanish) = {en_count} (English)
|
|
257
|
+
├─ Minimum Coverage: {actual} >= {expected} required
|
|
258
|
+
├─ Localization: Spanish labels in ES, English labels in EN
|
|
259
|
+
Status: {✓ PASS / ✗ FAIL}
|
|
260
|
+
|
|
261
|
+
CRITERIA 4: Screenshot Placeholders
|
|
262
|
+
├─ Placeholder Count: {es_count} (Spanish) = {en_count} (English)
|
|
263
|
+
├─ ID Format: {valid_count}/{total_count} valid (UPPER_SNAKE_CASE)
|
|
264
|
+
├─ Screenshot Index: {EXISTS/MISSING}
|
|
265
|
+
└─ Index Completeness: {matched}/{total} IDs
|
|
266
|
+
Status: {✓ PASS / ✗ FAIL}
|
|
267
|
+
|
|
268
|
+
CRITERIA 5: Self-Check Completitud
|
|
269
|
+
├─ Epic Coverage: {covered_count}/{selected_count} epics documented
|
|
270
|
+
├─ Incomplete Markers: {count} found (should be 0)
|
|
271
|
+
├─ Completeness Score: {score}/100 (required: >= 90)
|
|
272
|
+
Status: {✓ PASS / ✗ FAIL}
|
|
273
|
+
|
|
274
|
+
=== OVERALL RESULT ===
|
|
275
|
+
|
|
276
|
+
Criteria Passed: {passed_count}/5
|
|
277
|
+
Overall Status: {✅ APPROVED / ⚠️ NEEDS ATTENTION / ❌ FAILED}
|
|
278
|
+
|
|
279
|
+
{if issues found:}
|
|
280
|
+
=== ISSUES FOUND ===
|
|
281
|
+
|
|
282
|
+
{list all validation failures with specific details}
|
|
283
|
+
|
|
284
|
+
1. {Issue description}
|
|
285
|
+
Location: {where}
|
|
286
|
+
Required: {what's needed}
|
|
287
|
+
|
|
288
|
+
2. {Issue description}
|
|
289
|
+
...
|
|
290
|
+
{endif}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### 8. Present Validation Results to User
|
|
294
|
+
|
|
295
|
+
Display in Spanish (using `{communication_language}`):
|
|
296
|
+
|
|
297
|
+
"🔍 **Validación Completada**
|
|
298
|
+
|
|
299
|
+
{if all checks passed:}
|
|
300
|
+
|
|
301
|
+
✅ **¡Excelente! Todas las validaciones pasaron.**
|
|
302
|
+
|
|
303
|
+
Tu guía de usuario cumple con todos los criterios de calidad:
|
|
304
|
+
|
|
305
|
+
- ✓ Ambas versiones (español e inglés) generadas con estructura idéntica
|
|
306
|
+
- ✓ {citations_count} source citations presentes ({ratio} por feature)
|
|
307
|
+
- ✓ {diagrams_count} diagramas Mermaid completos y localizados
|
|
308
|
+
- ✓ {screenshots_count} screenshot placeholders con índice completo
|
|
309
|
+
- ✓ Completeness score: {score}/100 (excelente)
|
|
310
|
+
|
|
311
|
+
**Estadísticas Finales:**
|
|
312
|
+
- Features documentadas: {features_count}
|
|
313
|
+
- Workflows documentados: {workflows_count}
|
|
314
|
+
- Total páginas (aprox): {estimated_pages}
|
|
315
|
+
- Palabra count (aprox): {word_count}
|
|
316
|
+
|
|
317
|
+
¿Listo para guardar y finalizar?
|
|
318
|
+
|
|
319
|
+
{else:}
|
|
320
|
+
|
|
321
|
+
⚠️ **Atención: Se encontraron {issues_count} problemas que necesitan corrección.**
|
|
322
|
+
|
|
323
|
+
{Display issues list}
|
|
324
|
+
|
|
325
|
+
**Opciones:**
|
|
326
|
+
- Puedo intentar corregir estos problemas automáticamente (loop a step-05)
|
|
327
|
+
- O puedes revisar manualmente y volver a ejecutar el workflow
|
|
328
|
+
|
|
329
|
+
¿Qué prefieres hacer?
|
|
330
|
+
|
|
331
|
+
{endif}"
|
|
332
|
+
|
|
333
|
+
### 9. Update Completeness Score in Frontmatter
|
|
334
|
+
|
|
335
|
+
Update both Spanish and English frontmatter:
|
|
336
|
+
|
|
337
|
+
```yaml
|
|
338
|
+
completeness_score: {calculated_score}
|
|
339
|
+
review_status: "{approved/needs_review/failed}"
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### 10. Present FINAL MENU OPTIONS
|
|
343
|
+
|
|
344
|
+
**IF all validations passed:**
|
|
345
|
+
|
|
346
|
+
Display: **Select an Option:** [V] View Report [S] Save and Finalize
|
|
347
|
+
|
|
348
|
+
**IF validations failed:**
|
|
349
|
+
|
|
350
|
+
Display: **Select an Option:** [V] View Report [F] Fix Issues [S] Save Anyway (not recommended)
|
|
351
|
+
|
|
352
|
+
#### EXECUTION RULES:
|
|
353
|
+
|
|
354
|
+
- ALWAYS halt and wait for user input after presenting menu
|
|
355
|
+
- DO NOT proceed without explicit user choice
|
|
356
|
+
- After other menu items execution, return to this menu
|
|
357
|
+
|
|
358
|
+
#### Menu Handling Logic:
|
|
359
|
+
|
|
360
|
+
**Common options:**
|
|
361
|
+
- IF V: Display complete validation report in detail, return to menu
|
|
362
|
+
- IF A (if shown): Execute `{advancedElicitationTask}` for detailed issue analysis
|
|
363
|
+
- IF P (if shown): Execute `{partyModeWorkflow}` for collaborative review
|
|
364
|
+
|
|
365
|
+
**If ALL passed:**
|
|
366
|
+
- IF S: Proceed to finalization (section 11)
|
|
367
|
+
|
|
368
|
+
**If FAILED:**
|
|
369
|
+
- IF F: Collect issues, prepare corrections context, LOOP to `{correctionTargetStep}` with corrections
|
|
370
|
+
- IF S: Warn user, confirm, then proceed to finalization (not recommended)
|
|
371
|
+
|
|
372
|
+
### 11. Finalization Sequence (When User Selects [S] Save)
|
|
373
|
+
|
|
374
|
+
**11.1: Create/Update Language Selector Index**
|
|
375
|
+
|
|
376
|
+
Create `{indexFile}` with content:
|
|
377
|
+
|
|
378
|
+
```markdown
|
|
379
|
+
# {project_name} - User Guide
|
|
380
|
+
|
|
381
|
+
Select your preferred language / Selecciona tu idioma preferido:
|
|
382
|
+
|
|
383
|
+
## Available Languages / Idiomas Disponibles
|
|
384
|
+
|
|
385
|
+
### [📘 English Version](./en/{audience}-guide.md)
|
|
386
|
+
|
|
387
|
+
Complete user guide in English for {audience_description_en}.
|
|
388
|
+
|
|
389
|
+
**Contents:**
|
|
390
|
+
- Getting Started
|
|
391
|
+
- Core Concepts
|
|
392
|
+
- Features and How to Use Them
|
|
393
|
+
- Common Workflows
|
|
394
|
+
- FAQ and Troubleshooting
|
|
395
|
+
- Glossary
|
|
396
|
+
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
### [📗 Versión en Español](./es/{audience}-guide.md)
|
|
400
|
+
|
|
401
|
+
Guía de usuario completa en español para {audience_description_es}.
|
|
402
|
+
|
|
403
|
+
**Contenido:**
|
|
404
|
+
- Primeros Pasos
|
|
405
|
+
- Conceptos Clave
|
|
406
|
+
- Funcionalidades y Cómo Usarlas
|
|
407
|
+
- Flujos de Trabajo Comunes
|
|
408
|
+
- FAQ y Solución de Problemas
|
|
409
|
+
- Glosario
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## Document Information / Información del Documento
|
|
414
|
+
|
|
415
|
+
- **Project / Proyecto:** {project_name}
|
|
416
|
+
- **Target Audience / Audiencia:** {audience_name}
|
|
417
|
+
- **Generated / Generado:** {generated_date}
|
|
418
|
+
- **Version / Versión:** {workflow_version}
|
|
419
|
+
|
|
420
|
+
## Statistics / Estadísticas
|
|
421
|
+
|
|
422
|
+
- **Features Documented / Funcionalidades:** {features_count}
|
|
423
|
+
- **Workflows Documented / Workflows:** {workflows_count}
|
|
424
|
+
- **Diagrams / Diagramas:** {diagrams_count}
|
|
425
|
+
- **Screenshots / Capturas:** {screenshots_count}
|
|
426
|
+
- **Quality Score / Calidad:** {completeness_score}/100
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**11.2: Update Final Frontmatter**
|
|
430
|
+
|
|
431
|
+
Update both Spanish and English frontmatter:
|
|
432
|
+
|
|
433
|
+
```yaml
|
|
434
|
+
stepsCompleted: [1, 2, 3, 4, 5, 6, 7]
|
|
435
|
+
currentStep: "completed"
|
|
436
|
+
review_status: "approved"
|
|
437
|
+
last_modified: "{current_timestamp}"
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
**11.3: Save All Files**
|
|
441
|
+
|
|
442
|
+
- Save `{outputFileSpanish}`
|
|
443
|
+
- Save `{outputFileEnglish}`
|
|
444
|
+
- Save `{indexFile}`
|
|
445
|
+
|
|
446
|
+
**11.4: Generate Completion Summary**
|
|
447
|
+
|
|
448
|
+
"✅ **¡Workflow Completado Exitosamente!**
|
|
449
|
+
|
|
450
|
+
**📦 Archivos Generados:**
|
|
451
|
+
|
|
452
|
+
1. **Guía en Español:**
|
|
453
|
+
- Ubicación: `{outputFileSpanish}`
|
|
454
|
+
- Tamaño: {file_size}
|
|
455
|
+
- Secciones: {section_count}
|
|
456
|
+
|
|
457
|
+
2. **Guía en Inglés:**
|
|
458
|
+
- Ubicación: `{outputFileEnglish}`
|
|
459
|
+
- Tamaño: {file_size}
|
|
460
|
+
- Secciones: {section_count}
|
|
461
|
+
|
|
462
|
+
3. **Selector de Idioma:**
|
|
463
|
+
- Ubicación: `{indexFile}`
|
|
464
|
+
|
|
465
|
+
**📊 Estadísticas Finales:**
|
|
466
|
+
|
|
467
|
+
| Métrica | Valor |
|
|
468
|
+
|---------|-------|
|
|
469
|
+
| Features documentadas | {features_count} |
|
|
470
|
+
| Workflows documentados | {workflows_count} |
|
|
471
|
+
| Diagramas Mermaid | {diagrams_count} |
|
|
472
|
+
| Screenshot placeholders | {screenshots_count} |
|
|
473
|
+
| Source citations | {citations_count} |
|
|
474
|
+
| Completeness score | {score}/100 |
|
|
475
|
+
| Palabra count total (aprox) | {word_count} |
|
|
476
|
+
|
|
477
|
+
**📋 Épicas Documentadas:**
|
|
478
|
+
|
|
479
|
+
{For each epic in epics_selected:}
|
|
480
|
+
- Epic {number}: {title} ✓ Documentada
|
|
481
|
+
{End for}
|
|
482
|
+
|
|
483
|
+
**✅ Próximos Pasos:**
|
|
484
|
+
|
|
485
|
+
1. Revisar las guías generadas
|
|
486
|
+
2. Capturar las {screenshots_count} screenshots identificadas en el Screenshot Index
|
|
487
|
+
3. Reemplazar placeholders con screenshots reales
|
|
488
|
+
4. Revisar diagramas Mermaid y ajustar si es necesario
|
|
489
|
+
5. Publicar o distribuir la documentación
|
|
490
|
+
|
|
491
|
+
**¡Gracias por usar el generador de guías de usuario!**"
|
|
492
|
+
|
|
493
|
+
### 12. Workflow Complete
|
|
494
|
+
|
|
495
|
+
Workflow has finished successfully. No further steps.
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
## LOOP MECHANISM (If [F] Fix Issues Selected):
|
|
500
|
+
|
|
501
|
+
**When user selects [F] Fix Issues:**
|
|
502
|
+
|
|
503
|
+
1. **Prepare Corrections Context:**
|
|
504
|
+
- Compile list of all validation issues
|
|
505
|
+
- Identify which features/workflows need correction
|
|
506
|
+
- Prepare specific instructions for fixes
|
|
507
|
+
|
|
508
|
+
2. **Store Corrections in Frontmatter:**
|
|
509
|
+
```yaml
|
|
510
|
+
corrections_needed:
|
|
511
|
+
- issue: "{issue description}"
|
|
512
|
+
location: "{section/feature}"
|
|
513
|
+
fix: "{what needs to be done}"
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
3. **Loop to step-05:**
|
|
517
|
+
- Load, read entire file `{correctionTargetStep}`
|
|
518
|
+
- Execute step-05 with corrections context
|
|
519
|
+
- Step-05 will regenerate problematic sections
|
|
520
|
+
- After step-05 completes, flow continues to step-06 (translation)
|
|
521
|
+
- After step-06, returns to step-07 (this step) for re-validation
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
|
|
526
|
+
|
|
527
|
+
### ✅ SUCCESS:
|
|
528
|
+
|
|
529
|
+
- All 5 validation checks executed
|
|
530
|
+
- Validation report generated
|
|
531
|
+
- User presented with clear results
|
|
532
|
+
- IF issues: user offered fix or save options
|
|
533
|
+
- IF no issues: files saved successfully
|
|
534
|
+
- Index.md created with language selector
|
|
535
|
+
- Frontmatter updated with completion status
|
|
536
|
+
- frontmatter.stepsCompleted = [1, 2, 3, 4, 5, 6, 7]
|
|
537
|
+
- Completion summary displayed
|
|
538
|
+
- Workflow finished
|
|
539
|
+
|
|
540
|
+
### ❌ SYSTEM FAILURE:
|
|
541
|
+
|
|
542
|
+
- Skipping validation checks
|
|
543
|
+
- Not calculating completeness score
|
|
544
|
+
- Saving without user approval
|
|
545
|
+
- Not creating index.md
|
|
546
|
+
- Not updating frontmatter to "completed"
|
|
547
|
+
- Not offering fix option when issues found
|
|
548
|
+
|
|
549
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|
package/bmad/bmm/workflows/5-documentation/create-user-guide/templates/user-guide-template-en.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Workflow state
|
|
3
|
+
stepsCompleted: []
|
|
4
|
+
currentStep: step-01-init
|
|
5
|
+
workflow_name: create-user-guide
|
|
6
|
+
workflow_version: 1.0.0
|
|
7
|
+
|
|
8
|
+
# Project context
|
|
9
|
+
project_name: ""
|
|
10
|
+
generated_date: ""
|
|
11
|
+
last_modified: ""
|
|
12
|
+
|
|
13
|
+
# Configuration
|
|
14
|
+
target_audience: ""
|
|
15
|
+
output_language: "en"
|
|
16
|
+
epics_selected: []
|
|
17
|
+
epics_excluded: []
|
|
18
|
+
|
|
19
|
+
# Source artifacts discovered
|
|
20
|
+
source_artifacts:
|
|
21
|
+
prd_docs: []
|
|
22
|
+
epics_file: "" # Path to consolidated epics.md file
|
|
23
|
+
architecture_docs: []
|
|
24
|
+
workflow_docs: []
|
|
25
|
+
|
|
26
|
+
# Content tracking
|
|
27
|
+
features_documented: 0
|
|
28
|
+
workflows_documented: 0
|
|
29
|
+
diagrams_generated: 0
|
|
30
|
+
screenshot_placeholders: 0
|
|
31
|
+
|
|
32
|
+
# Quality metrics
|
|
33
|
+
source_citations_count: 0
|
|
34
|
+
completeness_score: 0
|
|
35
|
+
review_status: "draft"
|
|
36
|
+
|
|
37
|
+
# User preferences
|
|
38
|
+
technical_level: ""
|
|
39
|
+
include_troubleshooting: false
|
|
40
|
+
additional_scenarios: []
|
|
41
|
+
|
|
42
|
+
# Bilingual output
|
|
43
|
+
spanish_version: ""
|
|
44
|
+
english_version: ""
|
|
45
|
+
translation_completed: false
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
# {{project_name}} - User Guide
|
|
49
|
+
|
|
50
|
+
[Content will be generated during workflow execution]
|
package/bmad/bmm/workflows/5-documentation/create-user-guide/templates/user-guide-template-es.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Workflow state
|
|
3
|
+
stepsCompleted: []
|
|
4
|
+
currentStep: step-01-init
|
|
5
|
+
workflow_name: create-user-guide
|
|
6
|
+
workflow_version: 1.0.0
|
|
7
|
+
|
|
8
|
+
# Project context
|
|
9
|
+
project_name: ""
|
|
10
|
+
generated_date: ""
|
|
11
|
+
last_modified: ""
|
|
12
|
+
|
|
13
|
+
# Configuration
|
|
14
|
+
target_audience: ""
|
|
15
|
+
output_language: "es"
|
|
16
|
+
epics_selected: []
|
|
17
|
+
epics_excluded: []
|
|
18
|
+
|
|
19
|
+
# Source artifacts discovered
|
|
20
|
+
source_artifacts:
|
|
21
|
+
prd_docs: []
|
|
22
|
+
epics_file: "" # Path to consolidated epics.md file
|
|
23
|
+
architecture_docs: []
|
|
24
|
+
workflow_docs: []
|
|
25
|
+
|
|
26
|
+
# Content tracking
|
|
27
|
+
features_documented: 0
|
|
28
|
+
workflows_documented: 0
|
|
29
|
+
diagrams_generated: 0
|
|
30
|
+
screenshot_placeholders: 0
|
|
31
|
+
|
|
32
|
+
# Quality metrics
|
|
33
|
+
source_citations_count: 0
|
|
34
|
+
completeness_score: 0
|
|
35
|
+
review_status: "draft"
|
|
36
|
+
|
|
37
|
+
# User preferences
|
|
38
|
+
technical_level: ""
|
|
39
|
+
include_troubleshooting: false
|
|
40
|
+
additional_scenarios: []
|
|
41
|
+
|
|
42
|
+
# Bilingual output
|
|
43
|
+
spanish_version: ""
|
|
44
|
+
english_version: ""
|
|
45
|
+
translation_completed: false
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
# {{project_name}} - Guía de Usuario
|
|
49
|
+
|
|
50
|
+
[El contenido se generará durante la ejecución del workflow]
|