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
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# 5-Documentation Phase - BMM Module
|
|
2
|
+
|
|
3
|
+
**Phase:** Documentation
|
|
4
|
+
**Module:** BMM (Build & Management Module)
|
|
5
|
+
**Purpose:** Workflows for generating user documentation, API documentation, technical guides, and other end-user/developer documentation artifacts from project artifacts (PRDs, Epics, Architecture, Stories)
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
La fase **5-documentation** contiene workflows especializados en la generación de documentación técnica y de usuario a partir de artefactos de proyecto existentes. Estos workflows automatizan la creación de guías comprehensivas, asegurando consistencia, trazabilidad y calidad en la documentación producida.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Workflows Disponibles
|
|
16
|
+
|
|
17
|
+
### 📚 create-user-guide
|
|
18
|
+
|
|
19
|
+
**Ruta:** `_bmad/bmm/workflows/5-documentation/create-user-guide/`
|
|
20
|
+
**Comando:** `/bmad:bmm:workflows:create-user-guide`
|
|
21
|
+
**Versión:** 1.0.0
|
|
22
|
+
|
|
23
|
+
#### Descripción
|
|
24
|
+
|
|
25
|
+
Genera guías de usuario comprehensivas en español e inglés desde épicas y PRDs, con diagramas Mermaid, screenshot placeholders y trazabilidad completa a fuentes.
|
|
26
|
+
|
|
27
|
+
#### Características Principales
|
|
28
|
+
|
|
29
|
+
- ✅ **Salida Bilingüe:** Genera versiones en español e inglés con estructura idéntica
|
|
30
|
+
- ✅ **Diagramas Mermaid:** Incluye diagramas para cada feature y workflow
|
|
31
|
+
- ✅ **Screenshot Placeholders:** Sistema estructurado de placeholders con índice
|
|
32
|
+
- ✅ **Trazabilidad:** Citaciones a épicas y stories de origen
|
|
33
|
+
- ✅ **Continuación:** Soporte para resumir workflows interrumpidos
|
|
34
|
+
- ✅ **Múltiples Audiencias:** End users, administrators, API consumers, mixed
|
|
35
|
+
|
|
36
|
+
#### Estructura de Archivos (15 archivos)
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
create-user-guide/
|
|
40
|
+
├── workflow.md # Entry point del workflow
|
|
41
|
+
├── workflow-plan-create-user-guide.md # Documento de planificación
|
|
42
|
+
│
|
|
43
|
+
├── steps/ # 8 step files
|
|
44
|
+
│ ├── step-01-init.md # Inicialización + detección continuación
|
|
45
|
+
│ ├── step-01b-continue.md # Reanudación de workflow
|
|
46
|
+
│ ├── step-02-seleccion-epicas.md # Selección de épicas (PRESCRIPTIVE)
|
|
47
|
+
│ ├── step-03-analisis-fuentes.md # Análisis de artefactos (INTENT-BASED)
|
|
48
|
+
│ ├── step-04-elicitacion.md # Elicitación de info (INTENT-BASED)
|
|
49
|
+
│ ├── step-05-generacion-espanol.md # Generación español (PRESCRIPTIVE)
|
|
50
|
+
│ ├── step-06-traduccion-ingles.md # Traducción inglés (PRESCRIPTIVE)
|
|
51
|
+
│ └── step-07-validacion-guardado.md # Validación final (PRESCRIPTIVE)
|
|
52
|
+
│
|
|
53
|
+
├── templates/ # 2 templates bilingües
|
|
54
|
+
│ ├── user-guide-template-es.md # Template español con frontmatter
|
|
55
|
+
│ └── user-guide-template-en.md # Template inglés con frontmatter
|
|
56
|
+
│
|
|
57
|
+
└── data/ # 3 CSV data files
|
|
58
|
+
├── audience-types.csv # 4 tipos de audiencia
|
|
59
|
+
├── diagram-types.csv # 5 tipos de diagramas Mermaid
|
|
60
|
+
└── section-structure.csv # 9 secciones de guía
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### Flujo del Workflow (8 pasos)
|
|
65
|
+
|
|
66
|
+
1. **step-01-init** → Inicialización y configuración de audiencia
|
|
67
|
+
- Detecta workflows existentes
|
|
68
|
+
- Configura audiencia (enduser/admin/api/mixed)
|
|
69
|
+
- Crea documento inicial con frontmatter
|
|
70
|
+
|
|
71
|
+
2. **step-01b-continue** → Continuación (si aplica)
|
|
72
|
+
- Carga estado guardado
|
|
73
|
+
- Resume desde último paso completado
|
|
74
|
+
|
|
75
|
+
3. **step-02-seleccion-epicas** → Selección de épicas
|
|
76
|
+
- Escanea múltiples ubicaciones (BMAD 6, BMAD 4, custom)
|
|
77
|
+
- Usuario selecciona épicas a documentar
|
|
78
|
+
- Registra selección en frontmatter
|
|
79
|
+
|
|
80
|
+
4. **step-03-analisis-fuentes** → Análisis de artefactos
|
|
81
|
+
- Lee PRDs, épicas, arquitectura autónomamente
|
|
82
|
+
- Extrae features y workflows
|
|
83
|
+
- Genera sección "Contexto del Proyecto"
|
|
84
|
+
|
|
85
|
+
5. **step-04-elicitacion** → Elicitación de preferencias
|
|
86
|
+
- Conversación para capturar nivel técnico
|
|
87
|
+
- Escenarios adicionales
|
|
88
|
+
- Features a excluir
|
|
89
|
+
|
|
90
|
+
6. **step-05-generacion-espanol** → Generación en español
|
|
91
|
+
- Genera 9 secciones completas
|
|
92
|
+
- Incluye diagramas Mermaid para cada feature
|
|
93
|
+
- Agrega screenshot placeholders
|
|
94
|
+
- Cita fuentes `[Source: Epic X Story Y]`
|
|
95
|
+
|
|
96
|
+
7. **step-06-traduccion-ingles** → Traducción al inglés
|
|
97
|
+
- Traduce contenido manteniendo estructura
|
|
98
|
+
- Traduce labels de Mermaid
|
|
99
|
+
- Valida consistencia estructural
|
|
100
|
+
|
|
101
|
+
8. **step-07-validacion-guardado** → Validación y guardado
|
|
102
|
+
- Ejecuta TOP 5 validaciones
|
|
103
|
+
- Presenta resultados al usuario
|
|
104
|
+
- Permite loop a step-05 para correcciones
|
|
105
|
+
- Guarda ambas versiones + index.md
|
|
106
|
+
|
|
107
|
+
#### Datos Estructurados
|
|
108
|
+
|
|
109
|
+
**audience-types.csv** (4 tipos de audiencia)
|
|
110
|
+
```csv
|
|
111
|
+
audience_id,audience_name_es,audience_name_en,description_es,description_en,filename_prefix
|
|
112
|
+
enduser,Usuarios Finales,End Users,...,enduser-guide
|
|
113
|
+
admin,Administradores,Administrators,...,admin-guide
|
|
114
|
+
api,Consumidores de API,API Consumers,...,api-guide
|
|
115
|
+
mixed,Audiencia Mixta,Mixed Audience,...,complete-guide
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**diagram-types.csv** (5 tipos de diagramas)
|
|
119
|
+
```csv
|
|
120
|
+
content_type,diagram_type,mermaid_syntax,use_case_es,use_case_en
|
|
121
|
+
feature_overview,flowchart,"flowchart LR",...
|
|
122
|
+
user_workflow,flowchart,"flowchart TD",...
|
|
123
|
+
sequential_process,sequenceDiagram,...
|
|
124
|
+
state_changes,stateDiagram-v2,...
|
|
125
|
+
user_journey,journey,...
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**section-structure.csv** (9 secciones)
|
|
129
|
+
```csv
|
|
130
|
+
section_id,section_name_es,section_name_en,description,required
|
|
131
|
+
1,Introducción,Introduction,...,true
|
|
132
|
+
2,Primeros Pasos,Getting Started,...,true
|
|
133
|
+
3,Conceptos Clave,Core Concepts,...,true
|
|
134
|
+
4,Funcionalidades,Features and How to Use Them,...,true
|
|
135
|
+
5,Flujos de Trabajo,Common Workflows,...,true
|
|
136
|
+
6,Solución de Problemas,Troubleshooting,...,false
|
|
137
|
+
7,Preguntas Frecuentes,FAQ,...,true
|
|
138
|
+
8,Glosario,Glossary,...,true
|
|
139
|
+
9,Índice de Capturas,Screenshot Index,...,true
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
#### Criterios de Validación (TOP 5)
|
|
143
|
+
|
|
144
|
+
1. **📄 Bilingual Output Completo** - Ambas versiones existen con estructura idéntica
|
|
145
|
+
2. **🔗 Source Citations Obligatorias** - Cada feature tiene citación de origen
|
|
146
|
+
3. **📊 Diagramas Mermaid Completos** - Cada feature/workflow tiene diagrama
|
|
147
|
+
4. **📸 Screenshot Placeholders Presentes** - Formato correcto + índice
|
|
148
|
+
5. **✅ Self-Check Pasado** - Completeness >= 90%, sin TODOs
|
|
149
|
+
|
|
150
|
+
#### Output Generado
|
|
151
|
+
|
|
152
|
+
**Ubicación:** `docs/user-guide/`
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
docs/user-guide/
|
|
156
|
+
├── index.md # Selector de idioma
|
|
157
|
+
├── es/
|
|
158
|
+
│ └── {audience}-guide.md # Guía en español
|
|
159
|
+
└── en/
|
|
160
|
+
└── {audience}-guide.md # Guía en inglés
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Donde `{audience}` = `enduser-guide` | `admin-guide` | `api-guide` | `complete-guide`
|
|
164
|
+
|
|
165
|
+
#### Patrones de Interacción
|
|
166
|
+
|
|
167
|
+
- **PRESCRIPTIVE Steps** (01, 02, 05, 06, 07): Instrucciones exactas, ejecución paso a paso
|
|
168
|
+
- **INTENT-BASED Steps** (03, 04): Objetivo claro, libertad de implementación
|
|
169
|
+
- **Collaboration Level:** 40% user input / 60% autonomous generation
|
|
170
|
+
|
|
171
|
+
#### Tecnologías Utilizadas
|
|
172
|
+
|
|
173
|
+
- Mermaid.js para diagramas
|
|
174
|
+
- Markdown con frontmatter YAML
|
|
175
|
+
- CSV para datos estructurados
|
|
176
|
+
- Sistema de templates bilingües
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Estadísticas de la Fase
|
|
181
|
+
|
|
182
|
+
| Métrica | Valor |
|
|
183
|
+
|---------|-------|
|
|
184
|
+
| Total Workflows | 1 |
|
|
185
|
+
| Total Archivos | 15 |
|
|
186
|
+
| Step Files | 8 |
|
|
187
|
+
| Templates | 2 |
|
|
188
|
+
| Data Files | 3 |
|
|
189
|
+
| Idiomas Soportados | 2 (ES/EN) |
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Uso
|
|
194
|
+
|
|
195
|
+
Para ejecutar el workflow create-user-guide:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
/bmad:bmm:workflows:create-user-guide
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
O mediante Skill tool:
|
|
202
|
+
```bash
|
|
203
|
+
bmad:bmm:workflows:create-user-guide
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
## Arquitectura
|
|
209
|
+
|
|
210
|
+
Todos los workflows en esta fase utilizan **step-file architecture**:
|
|
211
|
+
|
|
212
|
+
- **Micro-file Design**: Cada step es autocontenido
|
|
213
|
+
- **Just-In-Time Loading**: Solo el step actual en memoria
|
|
214
|
+
- **Sequential Enforcement**: Secuencia estricta sin optimizaciones
|
|
215
|
+
- **State Tracking**: Progreso en frontmatter `stepsCompleted`
|
|
216
|
+
- **Append-Only Building**: Construcción incremental de documentos
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Próximos Workflows (Planificados)
|
|
221
|
+
|
|
222
|
+
- `create-api-docs` - Generación de documentación API desde arquitectura
|
|
223
|
+
- `create-tech-guide` - Guías técnicas para desarrolladores
|
|
224
|
+
- `create-deployment-guide` - Documentación de deployment y operaciones
|
|
225
|
+
- `update-documentation` - Actualización de docs existentes con cambios
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## Metadatos
|
|
230
|
+
|
|
231
|
+
**Última Actualización:** 2026-01-14
|
|
232
|
+
**Creado Por:** BMAD Module Builder Workflow
|
|
233
|
+
**Versión BMAD:** 6.0
|
|
234
|
+
**Módulo:** BMM (Build & Management Module)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
audience_id,audience_name_es,audience_name_en,description_es,description_en,filename_prefix
|
|
2
|
+
enduser,Usuarios Finales,End Users,"Usuarios que interactúan con la aplicación","Users who interact with the application",enduser-guide
|
|
3
|
+
admin,Administradores,Administrators,"Usuarios que gestionan el sistema","Users who manage the system",admin-guide
|
|
4
|
+
api,Consumidores de API,API Consumers,"Desarrolladores que integran con el sistema","Developers who integrate with the system",api-guide
|
|
5
|
+
mixed,Audiencia Mixta,Mixed Audience,"Usuarios finales y administradores","End users and administrators",complete-guide
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
content_type,diagram_type,mermaid_syntax,use_case_es,use_case_en
|
|
2
|
+
feature_overview,flowchart,"flowchart LR","Mostrar componentes y relaciones","Show components and relationships"
|
|
3
|
+
user_workflow,flowchart,"flowchart TD","Proceso paso a paso con decisiones","Step-by-step process with decisions"
|
|
4
|
+
sequential_process,sequenceDiagram,"sequenceDiagram","Interacciones usuario-sistema","User-system interactions"
|
|
5
|
+
state_changes,stateDiagram-v2,"stateDiagram-v2","Cambios de estado de datos","Data state changes"
|
|
6
|
+
user_journey,journey,"journey","Experiencia del usuario","User experience across touchpoints"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
section_id,section_name_es,section_name_en,description,required
|
|
2
|
+
1,Introducción,Introduction,"What is the product, who is this guide for, how to use it",true
|
|
3
|
+
2,Primeros Pasos,Getting Started,"Prerequisites, setup, accessing system, interface overview",true
|
|
4
|
+
3,Conceptos Clave,Core Concepts,"Key terminology, main concepts, user roles",true
|
|
5
|
+
4,Funcionalidades,Features and How to Use Them,"Feature descriptions with diagrams and screenshots",true
|
|
6
|
+
5,Flujos de Trabajo,Common Workflows,"Step-by-step workflows with diagrams",true
|
|
7
|
+
6,Solución de Problemas,Troubleshooting,"Common issues and solutions",false
|
|
8
|
+
7,Preguntas Frecuentes,FAQ,"Frequently asked questions",true
|
|
9
|
+
8,Glosario,Glossary,"Terms and definitions",true
|
|
10
|
+
9,Índice de Capturas,Screenshot Index,"Table of all screenshot placeholders",true
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-01-init'
|
|
3
|
+
description: 'Initialize the user guide generation workflow by detecting continuation state and configuring target audience'
|
|
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-01-init.md'
|
|
10
|
+
nextStepFile: '{workflow_path}/steps/step-02-seleccion-epicas.md'
|
|
11
|
+
continueFile: '{workflow_path}/steps/step-01b-continue.md'
|
|
12
|
+
workflowFile: '{workflow_path}/workflow.md'
|
|
13
|
+
outputFileSpanish: '{output_folder}/documentation-artifacts/user-guide/es/{audience}-guide.md'
|
|
14
|
+
templateSpanish: '{workflow_path}/templates/user-guide-template-es.md'
|
|
15
|
+
|
|
16
|
+
# Data References
|
|
17
|
+
audienceTypesData: '{workflow_path}/data/audience-types.csv'
|
|
18
|
+
|
|
19
|
+
# Task References
|
|
20
|
+
advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
|
|
21
|
+
partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
|
|
22
|
+
|
|
23
|
+
# Config
|
|
24
|
+
bmmConfig: '{project-root}/_bmad/bmm/config.yaml'
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Step 1: Inicialización del Workflow
|
|
28
|
+
|
|
29
|
+
## STEP GOAL:
|
|
30
|
+
|
|
31
|
+
Detectar si existe un workflow en ejecución (continuación) o inicializar un nuevo workflow de generación de guías de usuario. Determinar audiencia objetivo, verificar guías existentes para evitar sobrescrituras accidentales, y crear el documento de output con frontmatter inicial.
|
|
32
|
+
|
|
33
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
34
|
+
|
|
35
|
+
### Universal Rules:
|
|
36
|
+
|
|
37
|
+
- 🛑 NEVER generate content without user input
|
|
38
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
39
|
+
- 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
|
|
40
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
41
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
42
|
+
|
|
43
|
+
### Role Reinforcement:
|
|
44
|
+
|
|
45
|
+
- ✅ You are a technical writer and documentation specialist
|
|
46
|
+
- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
|
|
47
|
+
- ✅ We engage in collaborative dialogue, not command-response
|
|
48
|
+
- ✅ You bring documentation expertise and structure, user brings project knowledge
|
|
49
|
+
- ✅ Maintain collaborative professional tone throughout
|
|
50
|
+
|
|
51
|
+
### Step-Specific Rules:
|
|
52
|
+
|
|
53
|
+
- 🎯 Focus ONLY on initialization and audience configuration
|
|
54
|
+
- 🚫 FORBIDDEN to look ahead to future steps
|
|
55
|
+
- 💬 Handle initialization professionally
|
|
56
|
+
- 🚪 DETECT existing workflow state and handle continuation properly
|
|
57
|
+
|
|
58
|
+
## EXECUTION PROTOCOLS:
|
|
59
|
+
|
|
60
|
+
- 🎯 Show analysis before taking any action
|
|
61
|
+
- 💾 Initialize document and update frontmatter
|
|
62
|
+
- 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step
|
|
63
|
+
- 🚫 FORBIDDEN to load next step until setup is complete
|
|
64
|
+
|
|
65
|
+
## CONTEXT BOUNDARIES:
|
|
66
|
+
|
|
67
|
+
- Variables from workflow.md and config.yaml are available
|
|
68
|
+
- Previous context = what's in output document + frontmatter (if exists)
|
|
69
|
+
- Don't assume knowledge from other steps
|
|
70
|
+
- Input document discovery happens in step-03
|
|
71
|
+
|
|
72
|
+
## INITIALIZATION SEQUENCE:
|
|
73
|
+
|
|
74
|
+
### 1. Load Configuration
|
|
75
|
+
|
|
76
|
+
Load `{bmmConfig}` and resolve:
|
|
77
|
+
- `{project_name}`
|
|
78
|
+
- `{communication_language}`
|
|
79
|
+
- `{document_output_language}`
|
|
80
|
+
- `{planning_artifacts}`
|
|
81
|
+
- `{implementation_artifacts}`
|
|
82
|
+
- `{project_knowledge}`
|
|
83
|
+
|
|
84
|
+
Communicate with user in `{communication_language}` (typically Spanish).
|
|
85
|
+
|
|
86
|
+
### 2. Load Audience Types Data
|
|
87
|
+
|
|
88
|
+
Load and parse `{audienceTypesData}` to understand available audience types:
|
|
89
|
+
- enduser (Usuarios Finales / End Users)
|
|
90
|
+
- admin (Administradores / Administrators)
|
|
91
|
+
- api (Consumidores de API / API Consumers)
|
|
92
|
+
- mixed (Audiencia Mixta / Mixed Audience)
|
|
93
|
+
|
|
94
|
+
### 3. Check for Existing User Guides
|
|
95
|
+
|
|
96
|
+
Scan for existing user guides in:
|
|
97
|
+
- `{output_folder}/documentation-artifacts/user-guide/es/*.md`
|
|
98
|
+
- `{output_folder}/documentation-artifacts/user-guide/en/*.md`
|
|
99
|
+
|
|
100
|
+
For each guide found:
|
|
101
|
+
- Read frontmatter to extract: target_audience, generated_date, review_status
|
|
102
|
+
- Check if it has `stepsCompleted` array
|
|
103
|
+
|
|
104
|
+
### 4. Handle Continuation (If Guides Exist with stepsCompleted)
|
|
105
|
+
|
|
106
|
+
**If guides exist with `stepsCompleted` array AND steps are incomplete:**
|
|
107
|
+
|
|
108
|
+
"🔄 **Workflow en Ejecución Detectado**
|
|
109
|
+
|
|
110
|
+
He encontrado una guía de usuario en progreso:
|
|
111
|
+
- Audiencia: {target_audience}
|
|
112
|
+
- Última modificación: {last_modified}
|
|
113
|
+
- Steps completados: {stepsCompleted}
|
|
114
|
+
- Step actual: {currentStep}
|
|
115
|
+
|
|
116
|
+
Voy a cargar el estado previo para continuar donde dejamos..."
|
|
117
|
+
|
|
118
|
+
**STOP here and immediately load, read entire file, then execute `{continueFile}`**
|
|
119
|
+
|
|
120
|
+
### 5. Handle Completed Guides
|
|
121
|
+
|
|
122
|
+
**If guides exist with ALL steps completed (stepsCompleted includes all 7 steps):**
|
|
123
|
+
|
|
124
|
+
"✅ **Guía Existente Encontrada**
|
|
125
|
+
|
|
126
|
+
He encontrado una guía de usuario completada:
|
|
127
|
+
- Audiencia: {target_audience}
|
|
128
|
+
- Generada: {generated_date}
|
|
129
|
+
- Estado: {review_status}
|
|
130
|
+
|
|
131
|
+
¿Qué deseas hacer?
|
|
132
|
+
|
|
133
|
+
**[N]** Nueva guía - Crear una nueva guía de usuario
|
|
134
|
+
**[U]** Update - Actualizar la guía existente (re-ejecutar workflow)
|
|
135
|
+
**[R]** Replace - Reemplazar completamente (borrar y crear nueva)
|
|
136
|
+
**[X]** Cancel - Cancelar workflow
|
|
137
|
+
|
|
138
|
+
Por favor selecciona una opción:"
|
|
139
|
+
|
|
140
|
+
**Menu Handling:**
|
|
141
|
+
- IF N: Continue with fresh workflow (step 6)
|
|
142
|
+
- IF U: Load `{continueFile}` to resume and update
|
|
143
|
+
- IF R: Delete existing files, continue with fresh workflow (step 6)
|
|
144
|
+
- IF X: HALT workflow and inform user
|
|
145
|
+
|
|
146
|
+
### 6. Fresh Workflow Setup (If No Guides or User Selected New)
|
|
147
|
+
|
|
148
|
+
"👋 **Bienvenido al Generador de Guías de Usuario**
|
|
149
|
+
|
|
150
|
+
Este workflow te ayudará a crear guías de usuario comprehensivas en español e inglés desde la documentación existente de tu proyecto (PRDs, épicas, stories).
|
|
151
|
+
|
|
152
|
+
**Características:**
|
|
153
|
+
- 📄 Guías bilingües (español/inglés) con estructura idéntica
|
|
154
|
+
- 📊 Diagramas Mermaid para features y workflows
|
|
155
|
+
- 📸 Screenshot placeholders con índice consolidado
|
|
156
|
+
- 🔗 Trazabilidad completa a fuentes (épicas, stories)
|
|
157
|
+
- ✅ Validación de completitud y calidad
|
|
158
|
+
|
|
159
|
+
Comencemos configurando la guía de usuario..."
|
|
160
|
+
|
|
161
|
+
#### A. Determine Target Audience
|
|
162
|
+
|
|
163
|
+
"**¿Para qué audiencia deseas generar la guía de usuario?**
|
|
164
|
+
|
|
165
|
+
Según tu proyecto, puedo crear guías optimizadas para:
|
|
166
|
+
|
|
167
|
+
**[E]** Usuarios Finales (Enduser)
|
|
168
|
+
- Personas que interactúan con la aplicación
|
|
169
|
+
- Enfoque: tareas cotidianas, UI, workflows
|
|
170
|
+
|
|
171
|
+
**[A]** Administradores (Admin)
|
|
172
|
+
- Personas que gestionan el sistema
|
|
173
|
+
- Enfoque: configuración, gestión de usuarios, mantenimiento
|
|
174
|
+
|
|
175
|
+
**[I]** Consumidores de API (API)
|
|
176
|
+
- Desarrolladores que integran con el sistema
|
|
177
|
+
- Enfoque: endpoints, autenticación, ejemplos de código
|
|
178
|
+
|
|
179
|
+
**[M]** Audiencia Mixta (Mixed)
|
|
180
|
+
- Usuarios finales + administradores
|
|
181
|
+
- Enfoque: guía completa con todas las perspectivas
|
|
182
|
+
|
|
183
|
+
Por favor selecciona una opción (E/A/I/M):"
|
|
184
|
+
|
|
185
|
+
**Wait for user input and parse response:**
|
|
186
|
+
- E → audience_id = "enduser", filename_prefix = "enduser-guide"
|
|
187
|
+
- A → audience_id = "admin", filename_prefix = "admin-guide"
|
|
188
|
+
- I → audience_id = "api", filename_prefix = "api-guide"
|
|
189
|
+
- M → audience_id = "mixed", filename_prefix = "complete-guide"
|
|
190
|
+
|
|
191
|
+
Store selected audience information from CSV data.
|
|
192
|
+
|
|
193
|
+
#### B. Create Output Document
|
|
194
|
+
|
|
195
|
+
Load template from `{templateSpanish}` and create initial Spanish output file at:
|
|
196
|
+
`{output_folder}/documentation-artifacts/user-guide/es/{filename_prefix}.md`
|
|
197
|
+
|
|
198
|
+
Initialize with frontmatter:
|
|
199
|
+
|
|
200
|
+
```yaml
|
|
201
|
+
---
|
|
202
|
+
# Workflow state
|
|
203
|
+
stepsCompleted: [1]
|
|
204
|
+
currentStep: step-01-init
|
|
205
|
+
workflow_name: create-user-guide
|
|
206
|
+
workflow_version: 1.0.0
|
|
207
|
+
|
|
208
|
+
# Project context
|
|
209
|
+
project_name: "{project_name}"
|
|
210
|
+
generated_date: "{current_date}"
|
|
211
|
+
last_modified: "{current_timestamp}"
|
|
212
|
+
|
|
213
|
+
# Configuration
|
|
214
|
+
target_audience: "{audience_id}"
|
|
215
|
+
output_language: "es"
|
|
216
|
+
epics_selected: []
|
|
217
|
+
epics_excluded: []
|
|
218
|
+
|
|
219
|
+
# Source artifacts discovered (populated in step-03)
|
|
220
|
+
source_artifacts:
|
|
221
|
+
prd_docs: []
|
|
222
|
+
epics_file: "" # Path to consolidated epics.md file
|
|
223
|
+
architecture_docs: []
|
|
224
|
+
workflow_docs: []
|
|
225
|
+
|
|
226
|
+
# Content tracking
|
|
227
|
+
features_documented: 0
|
|
228
|
+
workflows_documented: 0
|
|
229
|
+
diagrams_generated: 0
|
|
230
|
+
screenshot_placeholders: 0
|
|
231
|
+
|
|
232
|
+
# Quality metrics
|
|
233
|
+
source_citations_count: 0
|
|
234
|
+
completeness_score: 0
|
|
235
|
+
review_status: "draft"
|
|
236
|
+
|
|
237
|
+
# User preferences (populated in step-04)
|
|
238
|
+
technical_level: ""
|
|
239
|
+
include_troubleshooting: false
|
|
240
|
+
additional_scenarios: []
|
|
241
|
+
|
|
242
|
+
# Bilingual output
|
|
243
|
+
spanish_version: "{output_folder}/documentation-artifacts/user-guide/es/{filename_prefix}.md"
|
|
244
|
+
english_version: "{output_folder}/documentation-artifacts/user-guide/en/{filename_prefix}.md"
|
|
245
|
+
translation_completed: false
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
# {project_name} - Guía de Usuario
|
|
249
|
+
|
|
250
|
+
[El contenido se generará en los siguientes steps]
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
#### C. Confirmation Message
|
|
254
|
+
|
|
255
|
+
"✅ **Configuración Inicial Completada**
|
|
256
|
+
|
|
257
|
+
- Audiencia objetivo: **{audience_name_es}**
|
|
258
|
+
- Idioma base: Español (se traducirá a inglés en step-06)
|
|
259
|
+
- Documento creado: `{output_folder}/documentation-artifacts/user-guide/es/{filename_prefix}.md`
|
|
260
|
+
|
|
261
|
+
Continuando a la selección de épicas..."
|
|
262
|
+
|
|
263
|
+
### 7. Update State and Proceed
|
|
264
|
+
|
|
265
|
+
Before loading next step:
|
|
266
|
+
- Ensure frontmatter.stepsCompleted = [1]
|
|
267
|
+
- Ensure frontmatter.currentStep = "step-02-seleccion-epicas"
|
|
268
|
+
- Save outputFile
|
|
269
|
+
|
|
270
|
+
### 8. Present MENU OPTIONS
|
|
271
|
+
|
|
272
|
+
Display: **Select an Option:** [C] Continue
|
|
273
|
+
|
|
274
|
+
#### EXECUTION RULES:
|
|
275
|
+
|
|
276
|
+
- ALWAYS halt and wait for user input after presenting menu
|
|
277
|
+
- ONLY proceed to next step when user selects 'C'
|
|
278
|
+
- User can chat or ask questions - always respond and then end with display again of the menu options
|
|
279
|
+
|
|
280
|
+
#### Menu Handling Logic:
|
|
281
|
+
|
|
282
|
+
- IF C: Update frontmatter, then load, read entire file, then execute `{nextStepFile}`
|
|
283
|
+
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#8-present-menu-options)
|
|
284
|
+
|
|
285
|
+
## CRITICAL STEP COMPLETION NOTE
|
|
286
|
+
|
|
287
|
+
ONLY WHEN C is selected and initialization is complete (OR continuation is properly routed to step-01b-continue.md), will you then load, read entire file, then execute `{nextStepFile}` to begin epic selection.
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
|
|
292
|
+
|
|
293
|
+
### ✅ SUCCESS:
|
|
294
|
+
|
|
295
|
+
- Configuration loaded from config.yaml
|
|
296
|
+
- Audience types loaded from CSV
|
|
297
|
+
- Existing guides checked and handled appropriately
|
|
298
|
+
- Continuation routed to step-01b-continue.md if needed
|
|
299
|
+
- OR new document created from template with complete frontmatter
|
|
300
|
+
- frontmatter.stepsCompleted = [1]
|
|
301
|
+
- User welcomed and confirmed audience selection
|
|
302
|
+
- Ready to proceed to step 2
|
|
303
|
+
|
|
304
|
+
### ❌ SYSTEM FAILURE:
|
|
305
|
+
|
|
306
|
+
- Not checking for existing documents properly
|
|
307
|
+
- Not routing to step-01b-continue.md when appropriate
|
|
308
|
+
- Creating duplicate documents
|
|
309
|
+
- Missing audience configuration
|
|
310
|
+
- Not initializing frontmatter completely
|
|
311
|
+
- Proceeding without user confirmation
|
|
312
|
+
|
|
313
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|