siesa-agents 2.1.90 → 2.1.91
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/claude/skills/sa-wds-visual-proposals/SKILL.md +6 -0
- package/package.json +1 -1
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/data/component-mapping.csv +47 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-01-init.md +148 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-01b-continue.md +79 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-02-bridge.md +114 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-02b-kit-warmup.md +96 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-03-scenarios.md +102 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-04-specs.md +97 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-05-prototype.md +102 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-06-handoff.md +96 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/product-brief-bridge.md +68 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/proposal-index.md +46 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/templates/trigger-map-bridge.md +54 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow.md +82 -0
- package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow_ext.md +195 -0
- package/siesa-agents/wds/config.yaml +20 -0
- package/siesa-agents/wds/data/agent-contracts.md +72 -0
- package/siesa-agents/wds/data/agent-guides/freya/agentic-development.md +223 -0
- package/siesa-agents/wds/data/agent-guides/freya/content-creation.md +270 -0
- package/siesa-agents/wds/data/agent-guides/freya/design-system.md +333 -0
- package/siesa-agents/wds/data/agent-guides/freya/meta-content-guide.md +495 -0
- package/siesa-agents/wds/data/agent-guides/freya/specification-quality.md +262 -0
- package/siesa-agents/wds/data/agent-guides/freya/strategic-design.md +116 -0
- package/siesa-agents/wds/data/agent-guides/saga/content-structure-principles.md +190 -0
- package/siesa-agents/wds/data/agent-guides/saga/conversational-followups.md +372 -0
- package/siesa-agents/wds/data/agent-guides/saga/discovery-conversation.md +265 -0
- package/siesa-agents/wds/data/agent-guides/saga/dream-up-approach.md +1034 -0
- package/siesa-agents/wds/data/agent-guides/saga/inspiration-analysis.md +215 -0
- package/siesa-agents/wds/data/agent-guides/saga/resources/project-brief.template.md +187 -0
- package/siesa-agents/wds/data/agent-guides/saga/seo-strategy-guide.md +391 -0
- package/siesa-agents/wds/data/agent-guides/saga/strategic-documentation.md +454 -0
- package/siesa-agents/wds/data/agent-guides/saga/trigger-mapping.md +653 -0
- package/siesa-agents/wds/data/agent-guides/saga/working-with-existing-materials.md +172 -0
- package/siesa-agents/wds/data/design-system/component-boundaries.md +318 -0
- package/siesa-agents/wds/data/design-system/figma-component-structure.md +697 -0
- package/siesa-agents/wds/data/design-system/naming-conventions.md +200 -0
- package/siesa-agents/wds/data/design-system/state-management.md +93 -0
- package/siesa-agents/wds/data/design-system/token-architecture.md +474 -0
- package/siesa-agents/wds/data/design-system/validation-patterns.md +74 -0
- package/siesa-agents/wds/data/presentations/freya-how-i-help.md +63 -0
- package/siesa-agents/wds/data/presentations/freya-intro.md +269 -0
- package/siesa-agents/wds/data/presentations/freya-presentation.md +77 -0
- package/siesa-agents/wds/data/presentations/freya-workflows-guide.md +51 -0
- package/siesa-agents/wds/data/presentations/mimir-agents-overview.md +66 -0
- package/siesa-agents/wds/data/presentations/mimir-tone-setting.md +48 -0
- package/siesa-agents/wds/data/presentations/saga-how-i-help.md +62 -0
- package/siesa-agents/wds/data/presentations/saga-intro.md +285 -0
- package/siesa-agents/wds/data/presentations/saga-presentation.md +74 -0
- package/siesa-agents/wds/data/presentations/saga-workflows-guide.md +48 -0
- package/siesa-agents/wds/data/shared-activation.md +49 -0
- package/siesa-agents/wds/data/wds-glossary.md +98 -0
- package/siesa-agents/wds/module-help.csv +19 -0
- package/siesa-agents/wds/scripts/README.md +155 -0
- package/siesa-agents/wds/scripts/wds-add-object.js +207 -0
- package/siesa-agents/wds/scripts/wds-add-spacing.js +158 -0
- package/siesa-agents/wds/scripts/wds-init-page.js +234 -0
- package/siesa-agents/wds/scripts/wds-init-scenario.js +125 -0
- package/siesa-agents/wds/scripts/wds-nav.js +206 -0
- package/siesa-agents/wds/scripts/wds-validate.js +306 -0
- package/siesa-agents/wds/skills/freya.activation.md +204 -0
- package/siesa-agents/wds/skills/handoff.md +91 -0
- package/siesa-agents/wds/skills/saga.activation.md +169 -0
- package/siesa-agents/wds/skills/shared/git.md +55 -0
- package/siesa-agents/wds/skills/start.md +99 -0
- package/siesa-agents/wds/skills/wrap.md +198 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sa-wds-visual-proposals
|
|
3
|
+
description: 'Toma los artefactos de planning ya hechos (PRD, épicas/historias, UX spec, arquitectura) como base y dirige el módulo WDS (Freya) para generar propuestas visuales — escenarios UX, page-specs y prototipos renderizados con siesa-ui-kit — ayudando a los diseñadores. Úsalo cuando el usuario diga "generar propuestas visuales", "wds visual proposals", "diseñar pantallas desde el planning" o quiera convertir el planning en mockups con siesa-ui-kit.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: FIRST load the FULL @_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow_ext.md and apply its mandatory Siesa rules. THEN load the FULL @_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/workflow.md, READ its entire contents and follow its directions exactly!
|
package/package.json
CHANGED
package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/data/component-mapping.csv
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
ui_need,siesa_uikit_component,level,notes
|
|
2
|
+
Botón de acción / CTA,Button,atom,"variantes Default/Outline/Plain, soporta icono"
|
|
3
|
+
Grupo de botones tipo toggle,ButtonGroup,atom,selección estilo radio
|
|
4
|
+
Contenedor de contenido,Card,atom,"subcomponentes Header/Title/Content/Footer"
|
|
5
|
+
Etiqueta / estado / categoría,Badge,atom,variantes de color
|
|
6
|
+
Diálogo modal / confirmación,Alert Dialog,atom,alertas y diálogos del sistema
|
|
7
|
+
Imagen de perfil de usuario,Avatar,atom,
|
|
8
|
+
Casilla de verificación,Checkbox,atom,
|
|
9
|
+
Selección única en grupo,Radio,atom,"RadioGroup, RadioGroupItem"
|
|
10
|
+
Interruptor on/off,Switch,atom,
|
|
11
|
+
Campo de texto,Input,atom,
|
|
12
|
+
Campo numérico,InputNumber,atom,
|
|
13
|
+
Área de texto multilínea,Textarea,atom,
|
|
14
|
+
Selector desplegable,Select,atom,navegación por teclado
|
|
15
|
+
Menú de opciones,Dropdown,atom,"items, headings, dividers"
|
|
16
|
+
Navegación por pestañas,Tabs,atom,soporta icono/badge
|
|
17
|
+
Tabla de datos,Table,atom,"ordenamiento, variantes visuales"
|
|
18
|
+
Separador de contenido,Divider,atom,
|
|
19
|
+
Paginación,Pagination,atom,
|
|
20
|
+
Selección jerárquica con checkboxes,Tree,atom,cascada
|
|
21
|
+
Mensaje informativo / banner,Info,atom,
|
|
22
|
+
Notificación temporal,Toast,atom,sistema de notificaciones
|
|
23
|
+
Contador de alertas,Notification,atom,badge con contador
|
|
24
|
+
Navegación lateral,NavigationRail,navigation,"con NavigationRailGroup/Item/Panel"
|
|
25
|
+
Navegación inferior móvil,NavigationBar,navigation,3-5 destinos
|
|
26
|
+
Carga de archivos,FileUploader,file,"drag-and-drop, progreso, validación"
|
|
27
|
+
Galería de archivos,FileUploaderGallery,file,
|
|
28
|
+
Búsqueda de entidad relacionada,LookupField,form,relación entre entidades
|
|
29
|
+
Lista clave-valor,DescriptionList,form,
|
|
30
|
+
Guardar/restaurar filtros,FormCacheSelector,form,
|
|
31
|
+
Gestión CRUD de entidad,MasterCrud,enterprise,"listados+formularios+acciones; modos Modal/Sidebar/Page; consultar skill MasterCrud"
|
|
32
|
+
Contenedor de formulario CRUD,MasterPatternView,enterprise,
|
|
33
|
+
Gestión documental,MasterDocument,enterprise,"InstallmentsPanel, WithholdingsPanel, etc."
|
|
34
|
+
Auditoría (historial + detalle),AuditHistoryPanel,audit,"timeline + diff campo a campo"
|
|
35
|
+
Pantalla de login,LoginView,view,vista completa de inicio de sesión
|
|
36
|
+
Pantalla de registro,SignUpView,view,con aceptación de términos
|
|
37
|
+
Recuperar contraseña,RecoverPasswordView,view,
|
|
38
|
+
Layout comercial (rail + navbar),LayoutBase,view,
|
|
39
|
+
Contenedor principal con toolbar,LayoutContent,view,
|
|
40
|
+
Vista de lista genérica,ListView,view,
|
|
41
|
+
Tablero / dashboard,Dashboard,view,
|
|
42
|
+
Selección de productos POS,ProductsView,view,categorías/grid/carrito
|
|
43
|
+
Gestión de mesas POS,TableLayoutView,view,
|
|
44
|
+
Gestión de contactos,ContactManager,view,CRUD completo de contactos
|
|
45
|
+
Chat de soporte,ChatWidget,view,flotante
|
|
46
|
+
Edición de parámetros del sistema,ParameterEditor,config,Server-Driven UI
|
|
47
|
+
Administración de entidades dinámicas,Dynamic Entities/Admin,dynamic,no-code
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-01-init'
|
|
3
|
+
description: 'Inicializa el workflow: carga config, detecta continuación, descubre artefactos de planning y el catálogo siesa-ui-kit, y define el alcance de las propuestas visuales'
|
|
4
|
+
|
|
5
|
+
# Path Definitions
|
|
6
|
+
workflow_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals'
|
|
7
|
+
|
|
8
|
+
# File References
|
|
9
|
+
thisStepFile: '{workflow_path}/steps/step-01-init.md'
|
|
10
|
+
continueStepFile: '{workflow_path}/steps/step-01b-continue.md'
|
|
11
|
+
nextStepFile: '{workflow_path}/steps/step-02-bridge.md'
|
|
12
|
+
workflowFile: '{workflow_path}/workflow.md'
|
|
13
|
+
|
|
14
|
+
# WDS module
|
|
15
|
+
wds_module_path: '{project-root}/_siesa-agents/wds'
|
|
16
|
+
wds_config: '{wds_module_path}/config.yaml'
|
|
17
|
+
wds_scripts_path: '{wds_module_path}/scripts'
|
|
18
|
+
|
|
19
|
+
# Catalog / standards
|
|
20
|
+
siesa_uikit_catalog_url: 'https://siesa-ui-kit.pages.dev/llms.txt'
|
|
21
|
+
company_standards_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/create-architecture/data/company-standards'
|
|
22
|
+
base_ux_spec: '{project-root}/_siesa-agents/resources/ux-ui/ux-design-specification.md'
|
|
23
|
+
|
|
24
|
+
# Data References
|
|
25
|
+
componentMappingData: '{workflow_path}/data/component-mapping.csv'
|
|
26
|
+
|
|
27
|
+
# Config
|
|
28
|
+
bmmConfig: '{project-root}/_bmad/bmm/config.yaml'
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Step 1: Inicialización y Descubrimiento
|
|
32
|
+
|
|
33
|
+
## STEP GOAL
|
|
34
|
+
|
|
35
|
+
Preparar todo el contexto para construir el puente planning → WDS: cargar configuración, detectar si es una re-ejecución, descubrir los artefactos de planning existentes, resolver el catálogo y el paquete de siesa-ui-kit, y acordar con el usuario el **alcance** (qué épicas/features se convierten en propuestas visuales).
|
|
36
|
+
|
|
37
|
+
## MANDATORY EXECUTION RULES (READ FIRST)
|
|
38
|
+
|
|
39
|
+
- 🛑 NEVER generate WDS artifacts in this step — solo descubrimiento y alcance
|
|
40
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
41
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
42
|
+
- 🇪🇸 Texto de UI siempre en español; siesa-ui-kit primero
|
|
43
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
44
|
+
|
|
45
|
+
## INITIALIZATION SEQUENCE
|
|
46
|
+
|
|
47
|
+
### 1. Load Configuration
|
|
48
|
+
|
|
49
|
+
Load `{bmmConfig}` and resolve: `{project_name}`, `{communication_language}`, `{document_output_language}`, `{planning_artifacts}`, `{implementation_artifacts}`, `{project_knowledge}`, `{output_folder}`.
|
|
50
|
+
|
|
51
|
+
Load `{wds_config}` and resolve `{design_artifacts}` (WDS base output path) and `{wds_output_folder}`. **WDS config wins for WDS paths** (see workflow_ext.md §4).
|
|
52
|
+
|
|
53
|
+
### 2. Detect Continuation
|
|
54
|
+
|
|
55
|
+
Check whether a WDS project already exists for visual proposals:
|
|
56
|
+
|
|
57
|
+
- `{design_artifacts}/_progress/wds-project-outline.yaml`
|
|
58
|
+
- `{design_artifacts}/A-Product-Brief/product-brief.md`
|
|
59
|
+
- `{design_artifacts}/C-UX-Scenarios/` (any scenario folders)
|
|
60
|
+
|
|
61
|
+
**If any exist** → this is a re-run. Load `{continueStepFile}`, read it fully, and execute it. STOP here.
|
|
62
|
+
|
|
63
|
+
**If none exist** → fresh run. Continue to section 3.
|
|
64
|
+
|
|
65
|
+
### 3. Discover Planning Artifacts (the BASE)
|
|
66
|
+
|
|
67
|
+
Search the workspace for the SIESA planning artifacts that will feed the bridge. Look under `{planning_artifacts}/`, `{project_knowledge}/`, `{output_folder}/`, and the repo root:
|
|
68
|
+
|
|
69
|
+
| Artifact | Typical location / glob | Used for |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| PRD | `*PRD*.md`, `prd/*.md`, `prd/feature-*.md` | Vision, goals, target users, scope → Product Brief |
|
|
72
|
+
| Épicas/historias | `epics*.md`, `epics/epic-*.md`, `stories/*.md` | Flows + acceptance criteria → Scenarios & pages |
|
|
73
|
+
| UX design spec | `*ux-design-specification*.md` | Design tokens, component strategy → render fidelity |
|
|
74
|
+
| Arquitectura | `*architecture*.md`, `solution-architecture*.md` | Technical constraints on what can be proposed |
|
|
75
|
+
|
|
76
|
+
Build an in-memory inventory: `{ prd: [...], epics: [...], ux_spec: path|null, architecture: [...] }`.
|
|
77
|
+
|
|
78
|
+
**If NO planning artifacts are found**, inform the user and offer:
|
|
79
|
+
- `[B]` Buscar en otra ruta (pídela)
|
|
80
|
+
- `[X]` Cancelar — este workflow requiere planning previo (usa `/create-prd`, `/create-epics-and-stories`, `/create-ux-design` primero)
|
|
81
|
+
|
|
82
|
+
HALT and wait. Do not fabricate planning content.
|
|
83
|
+
|
|
84
|
+
### 3b. Detect & Render the Reference Design (if the user provided one)
|
|
85
|
+
|
|
86
|
+
🔴 **Aplica workflow_ext §3C.** Busca un **diseño de referencia** aportado por el usuario que la propuesta deba replicar: un mockup/`*.html` (incluidos HTML autocontenidos/bundled), imágenes (`*.png/*.jpg`), un PDF de pantallas, o un enlace de Figma — en el prompt del usuario, en la raíz del repo, o junto a los planning artifacts.
|
|
87
|
+
|
|
88
|
+
**Si existe un diseño de referencia:**
|
|
89
|
+
1. **Renderízalo a screenshots AHORA** (no diseñes contra una descripción textual): imagen → úsala tal cual; HTML autocontenido → Chrome headless (`--screenshot`, con `--virtual-time-budget` amplio); HTML interactivo/multi-pantalla → condúcelo con `puppeteer-core` haciendo clic hacia cada estado (lista/crear/editar/diálogos) y captura uno por pantalla; Figma → exporta frames a PNG. Guárdalos en `{design_artifacts}/_design-ref/`.
|
|
90
|
+
2. Si el diseño define tokens CSS (`:root { --… }`), **extrae ese bloque** para copiarlo luego al harness en step-02b/05 (evita que los componentes custom salgan sin estilo).
|
|
91
|
+
3. Registra `reference_design: [rutas de los screenshots]` para el outline y anótalo para que step-05 verifique **lado a lado** contra estas imágenes.
|
|
92
|
+
|
|
93
|
+
**Si NO hay diseño de referencia:** continúa normal (la fidelidad se guía por `{base_ux_spec}` + tokens de marca).
|
|
94
|
+
|
|
95
|
+
### 4. Resolve siesa-ui-kit Catalog & Package
|
|
96
|
+
|
|
97
|
+
1. Fetch `{siesa_uikit_catalog_url}` and keep the component catalog in memory (atoms + view-level components like `LoginView`, `Dashboard`, `MasterCrud`, `LayoutBase`).
|
|
98
|
+
- If unreachable, warn: "⚠️ No se pudo acceder al catálogo de siesa-ui-kit; usaré la semilla local `{componentMappingData}` y los tokens de `{base_ux_spec}`."
|
|
99
|
+
2. El paquete siesa-ui-kit lo **fija el repo base BaseFrontend** (`siesa-ui-kit@^1.0.109` en su `package.json`) que step-02b clona como harness (workflow_ext §3A) — no hay que resolver el nombre a mano ni requiere una app consumidora previa.
|
|
100
|
+
3. Load `{componentMappingData}` (seed mapping) and `{company_standards_path}/frontend-standards.md`.
|
|
101
|
+
|
|
102
|
+
### 5. Define Scope (AUTO — todas las épicas con frontend, sin preguntar)
|
|
103
|
+
|
|
104
|
+
🚫 **NO preguntes al usuario.** Selecciona automáticamente **TODAS las épicas que requieren frontend** — es decir, las que contienen al menos una historia con UI de cara al usuario. **Excluye** épicas/historias puramente backend o de infraestructura (p. ej. init de proyecto, configuración de base de datos, endpoints API sin pantalla) porque no tienen UI que proponer.
|
|
105
|
+
|
|
106
|
+
Reporta la selección (sin HALT) y continúa:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
📋 Inventario de planning: PRD {n} · épicas {n} · UX spec {sí/no} · arquitectura {n}
|
|
110
|
+
🧩 Catálogo siesa-ui-kit: {cargado / fallback local} · paquete: {nombre}
|
|
111
|
+
🎯 Alcance (automático): todas las épicas con frontend → {lista de épicas seleccionadas}
|
|
112
|
+
Excluidas por ser backend/infra: {lista o "ninguna"}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Store `scope` (todas las épicas con frontend) en memoria y **procede directamente** a la sección 6 — sin menú, sin esperar.
|
|
116
|
+
|
|
117
|
+
### 6. Confirm and Proceed
|
|
118
|
+
|
|
119
|
+
Confirm:
|
|
120
|
+
```
|
|
121
|
+
✅ Configuración lista.
|
|
122
|
+
- Alcance: {scope}
|
|
123
|
+
- Salida WDS: {design_artifacts}
|
|
124
|
+
Continuando a construir el puente estratégico (Product Brief + Trigger Map)...
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Load, read entire file, then execute `{nextStepFile}` immediately (no further menu).
|
|
128
|
+
|
|
129
|
+
## CRITICAL STEP COMPLETION NOTE
|
|
130
|
+
|
|
131
|
+
Two exit paths: continuation (`{continueStepFile}`) OR fresh → `{nextStepFile}`. Never both.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 🚨 SUCCESS / FAILURE METRICS
|
|
136
|
+
|
|
137
|
+
### ✅ SUCCESS
|
|
138
|
+
- Both configs loaded; WDS `design_artifacts` resolved
|
|
139
|
+
- Continuation correctly detected
|
|
140
|
+
- Planning inventory built from real files (not invented)
|
|
141
|
+
- siesa-ui-kit catalog fetched + render mode + package resolved
|
|
142
|
+
- Scope = todas las épicas con frontend, auto-seleccionadas (sin preguntar)
|
|
143
|
+
|
|
144
|
+
### ❌ FAILURE
|
|
145
|
+
- Inventing planning content when none found
|
|
146
|
+
- Hardcoding output paths instead of reading `{wds_config}`
|
|
147
|
+
- Assuming the npm package name instead of reading `package.json`
|
|
148
|
+
- Preguntar el alcance al usuario en vez de auto-seleccionar todas las épicas con frontend
|
package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-01b-continue.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-01b-continue'
|
|
3
|
+
description: 'Reanuda una ejecución previa del workflow de propuestas visuales a partir del estado WDS guardado'
|
|
4
|
+
|
|
5
|
+
workflow_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals'
|
|
6
|
+
thisStepFile: '{workflow_path}/steps/step-01b-continue.md'
|
|
7
|
+
bridgeStep: '{workflow_path}/steps/step-02-bridge.md'
|
|
8
|
+
warmupStep: '{workflow_path}/steps/step-02b-kit-warmup.md'
|
|
9
|
+
scenariosStep: '{workflow_path}/steps/step-03-scenarios.md'
|
|
10
|
+
specsStep: '{workflow_path}/steps/step-04-specs.md'
|
|
11
|
+
prototypeStep: '{workflow_path}/steps/step-05-prototype.md'
|
|
12
|
+
handoffStep: '{workflow_path}/steps/step-06-handoff.md'
|
|
13
|
+
wds_validate: '{project-root}/_siesa-agents/wds/scripts/wds-validate.js'
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Step 1b: Reanudación
|
|
17
|
+
|
|
18
|
+
## STEP GOAL
|
|
19
|
+
|
|
20
|
+
Detectar dónde quedó la generación previa de propuestas visuales y reanudar en el paso correcto, sin rehacer trabajo ya hecho.
|
|
21
|
+
|
|
22
|
+
## MANDATORY EXECUTION RULES
|
|
23
|
+
|
|
24
|
+
- 📖 Read the complete step file before acting
|
|
25
|
+
- 🚫 NEVER overwrite existing WDS artifacts — append/continue only
|
|
26
|
+
- ✅ Speak in `{communication_language}`
|
|
27
|
+
|
|
28
|
+
## RESUME SEQUENCE
|
|
29
|
+
|
|
30
|
+
### 1. Read the WDS State
|
|
31
|
+
|
|
32
|
+
Read `{design_artifacts}/_progress/wds-project-outline.yaml` and `{design_artifacts}/_progress/00-design-log.md` (if present). Extract phase status and the "Current" task.
|
|
33
|
+
|
|
34
|
+
### 2. Assess What Exists
|
|
35
|
+
|
|
36
|
+
Check, under `{design_artifacts}`:
|
|
37
|
+
|
|
38
|
+
| Evidence | Means stage complete |
|
|
39
|
+
|---|---|
|
|
40
|
+
| `A-Product-Brief/product-brief.md` + `B-Trigger-Map/trigger-map.md` | Bridge (step-02) done |
|
|
41
|
+
| `_kit-playground/` (clon BaseFrontend) + `_kit-playground/kit-grounding.md` | Kit Warm-up (step-02b) done |
|
|
42
|
+
| `C-UX-Scenarios/<scenario>/README.md` + page folders | Scenarios (step-03) done |
|
|
43
|
+
| Page specs pass `node {wds_validate} --all --output {design_artifacts}` | Specs (step-04) done |
|
|
44
|
+
| Módulos del dominio en `_kit-playground/src/modules/` + screenshots `-real.png` | Prototype (step-05) done |
|
|
45
|
+
| `proposal-index.md` present | Handoff (step-06) done |
|
|
46
|
+
|
|
47
|
+
### 3. Present Resume Menu (HALT)
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
🔁 Encontré una ejecución previa de propuestas visuales.
|
|
51
|
+
Estado: {resumen del outline}
|
|
52
|
+
|
|
53
|
+
¿Cómo continúo?
|
|
54
|
+
[R] Reanudar donde quedó ({siguiente paso detectado})
|
|
55
|
+
[E] Ir a un paso específico (bridge / kit-warmup / scenarios / specs / prototype / handoff)
|
|
56
|
+
[N] Empezar de cero (conservará los archivos existentes; pediré confirmación antes de sobrescribir)
|
|
57
|
+
[X] Cancelar
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
HALT and wait.
|
|
61
|
+
|
|
62
|
+
### 4. Route
|
|
63
|
+
|
|
64
|
+
Load and execute the chosen step file:
|
|
65
|
+
- bridge → `{bridgeStep}`
|
|
66
|
+
- kit-warmup → `{warmupStep}`
|
|
67
|
+
- scenarios → `{scenariosStep}`
|
|
68
|
+
- specs → `{specsStep}`
|
|
69
|
+
- prototype → `{prototypeStep}`
|
|
70
|
+
- handoff → `{handoffStep}`
|
|
71
|
+
|
|
72
|
+
Read the chosen file fully before executing.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## 🚨 SUCCESS / FAILURE
|
|
77
|
+
|
|
78
|
+
✅ Correct stage detected and resumed without redoing finished work.
|
|
79
|
+
❌ Re-running the bridge over existing artifacts, or overwriting specs without confirmation.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-02-bridge'
|
|
3
|
+
description: 'Traduce los artefactos de planning de SIESA a la fundación estratégica que WDS/Freya exige: Product Brief, Trigger Map, personas, tokens y project outline'
|
|
4
|
+
|
|
5
|
+
workflow_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals'
|
|
6
|
+
thisStepFile: '{workflow_path}/steps/step-02-bridge.md'
|
|
7
|
+
nextStepFile: '{workflow_path}/steps/step-02b-kit-warmup.md'
|
|
8
|
+
|
|
9
|
+
productBriefTemplate: '{workflow_path}/templates/product-brief-bridge.md'
|
|
10
|
+
triggerMapTemplate: '{workflow_path}/templates/trigger-map-bridge.md'
|
|
11
|
+
base_ux_spec: '{project-root}/_siesa-agents/resources/ux-ui/ux-design-specification.md'
|
|
12
|
+
|
|
13
|
+
# WDS guides to honor while writing the foundation
|
|
14
|
+
freya_strategic_guide: '{project-root}/_siesa-agents/wds/data/agent-guides/freya/strategic-design.md'
|
|
15
|
+
saga_existing_materials: '{project-root}/_siesa-agents/wds/data/agent-guides/saga/working-with-existing-materials.md'
|
|
16
|
+
wds_glossary: '{project-root}/_siesa-agents/wds/data/wds-glossary.md'
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Step 2: Puente Estratégico (Planning → WDS)
|
|
20
|
+
|
|
21
|
+
## STEP GOAL
|
|
22
|
+
|
|
23
|
+
Producir, a partir de los artefactos de planning ya hechos, los prerequisitos EXACTOS que Freya valida antes de diseñar:
|
|
24
|
+
|
|
25
|
+
1. `{design_artifacts}/A-Product-Brief/product-brief.md`
|
|
26
|
+
2. `{design_artifacts}/B-Trigger-Map/trigger-map.md` (+ personas + feature-impact)
|
|
27
|
+
3. Semilla de tokens/decisiones visuales desde la UX spec (para fidelidad de marca)
|
|
28
|
+
4. `{design_artifacts}/_progress/wds-project-outline.yaml` y `_progress/00-design-log.md`
|
|
29
|
+
|
|
30
|
+
## MANDATORY EXECUTION RULES
|
|
31
|
+
|
|
32
|
+
- 📖 Read this entire file first
|
|
33
|
+
- 🧭 Load `{saga_existing_materials}` — usa el patrón "import existing materials": referenciar → validar vigencia → llenar huecos → sintetizar. NO inventes; deriva todo del planning.
|
|
34
|
+
- 🧠 Load `{freya_strategic_guide}` — el Product Brief y el Trigger Map deben quedar en términos que Freya pueda usar (golden circle WHY→HOW→WHAT, driving forces, awareness stages).
|
|
35
|
+
- 📚 Load `{wds_glossary}` para respetar nombres/estructura de artefactos WDS.
|
|
36
|
+
- 🇪🇸 Comunicación en `{communication_language}`; el contenido de documentos sigue `{document_output_language}`, PERO el texto de UI de ejemplo siempre en español.
|
|
37
|
+
|
|
38
|
+
## EXECUTION SEQUENCE
|
|
39
|
+
|
|
40
|
+
### 1. Map PRD → Product Brief
|
|
41
|
+
|
|
42
|
+
Read the PRD artifacts from the step-01 inventory. Using `{productBriefTemplate}`, populate:
|
|
43
|
+
|
|
44
|
+
| WDS Product Brief field | Source in SIESA planning |
|
|
45
|
+
|---|---|
|
|
46
|
+
| Vision / WHY | PRD problem statement, goals, value proposition |
|
|
47
|
+
| Target users | PRD user segments / personas section |
|
|
48
|
+
| Business goals & KPIs | PRD objectives / success metrics |
|
|
49
|
+
| Scope & constraints | PRD scope + architecture constraints |
|
|
50
|
+
| Content language / tone | UX spec voice (default: español, tono corporativo Siesa) |
|
|
51
|
+
| Visual direction | UX spec tokens (color primario `#0e79fd`, tipografía Inter, etc.) |
|
|
52
|
+
|
|
53
|
+
Write to `{design_artifacts}/A-Product-Brief/product-brief.md`. Add a provenance footer listing the source files. Where the PRD is silent, mark `⚠️ [Asunción — confirmar]` and ask the user before finalizing.
|
|
54
|
+
|
|
55
|
+
### 2. Map PRD + Epics → Trigger Map & Personas
|
|
56
|
+
|
|
57
|
+
Using `{triggerMapTemplate}`:
|
|
58
|
+
|
|
59
|
+
- **Personas:** derive from PRD user segments. Use alliterative names per WDS convention (e.g. "Carla la Cajera"). One file each: `{design_artifacts}/B-Trigger-Map/NN-persona-<nombre>-<arquetipo>.md`.
|
|
60
|
+
- **Driving forces:** map each persona's positive forces (wishes, aspirations) and negative forces (fears, frustrations) from the PRD pains/gains and epic goals.
|
|
61
|
+
- **Awareness stage** per persona (Unaware → … → Most Aware) inferred from the product context.
|
|
62
|
+
- **Feature impact:** build `{design_artifacts}/B-Trigger-Map/feature-impact.md` cross-referencing each in-scope epic/feature × persona × driving force.
|
|
63
|
+
|
|
64
|
+
Write the main `{design_artifacts}/B-Trigger-Map/trigger-map.md`.
|
|
65
|
+
|
|
66
|
+
### 3. Seed Visual Foundation from UX Spec
|
|
67
|
+
|
|
68
|
+
Read `{base_ux_spec}` and the project-specific `ux-design-specification.md` (if found in step-01). Extract into a short note `{design_artifacts}/A-Product-Brief/visual-direction.md`:
|
|
69
|
+
- Color tokens (primary/secondary/tertiary scales)
|
|
70
|
+
- Typography (Inter), spacing scale, dark mode availability
|
|
71
|
+
- Component strategy summary (siesa-ui-kit first)
|
|
72
|
+
|
|
73
|
+
This note is what step-05 uses to keep prototypes brand-faithful.
|
|
74
|
+
|
|
75
|
+
### 4. Write the WDS Project Outline & Design Log
|
|
76
|
+
|
|
77
|
+
Create `{design_artifacts}/_progress/wds-project-outline.yaml` so Freya's activation recognizes the project:
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
project_name: {project_name}
|
|
81
|
+
methodology_version: wds-v6
|
|
82
|
+
source: siesa-planning-bridge
|
|
83
|
+
phases:
|
|
84
|
+
"1-product-brief": complete
|
|
85
|
+
"2-trigger-map": complete
|
|
86
|
+
"3-ux-scenarios": pending
|
|
87
|
+
"4-ux-design": pending
|
|
88
|
+
scope: {scope from step-01}
|
|
89
|
+
siesa_uikit_package: {resolved package name}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Initialize `{design_artifacts}/_progress/00-design-log.md` with a "Current" table pointing to "Phase 3 — generar escenarios".
|
|
93
|
+
|
|
94
|
+
### 5. Review Gate (HALT)
|
|
95
|
+
|
|
96
|
+
Present a concise summary of the generated foundation (personas, driving forces, visual direction) and ask:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
He construido la base estratégica WDS desde tu planning:
|
|
100
|
+
- Product Brief ✅ - Trigger Map + {n} personas ✅ - Dirección visual ✅
|
|
101
|
+
|
|
102
|
+
[C] Continuar al Kit Warm-up (grounding del UI kit real) y luego a escenarios
|
|
103
|
+
[E] Editar algo de la base antes de continuar
|
|
104
|
+
[X] Detener aquí (la base queda lista para usar /freya manualmente)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
HALT. On `C`, update the design log and load+execute `{nextStepFile}` (Kit Warm-up — step-02b).
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## 🚨 SUCCESS / FAILURE
|
|
112
|
+
|
|
113
|
+
✅ product-brief.md, trigger-map.md, personas, visual-direction.md y wds-project-outline.yaml creados, todos trazables al planning.
|
|
114
|
+
❌ Inventar personas/objetivos sin fuente; omitir el outline (Freya no reconocería el proyecto); escribir UI de ejemplo en inglés.
|
package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-02b-kit-warmup.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-02b-kit-warmup'
|
|
3
|
+
description: 'Kit Warm-up: instala/usa el paquete REAL de siesa-ui-kit en una mini app, verifica con build+render, y produce kit-grounding.md (fuente de verdad anti-alucinación) ANTES de diseñar'
|
|
4
|
+
|
|
5
|
+
workflow_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals'
|
|
6
|
+
thisStepFile: '{workflow_path}/steps/step-02b-kit-warmup.md'
|
|
7
|
+
nextStepFile: '{workflow_path}/steps/step-03-scenarios.md'
|
|
8
|
+
|
|
9
|
+
# Outputs
|
|
10
|
+
kit_playground: '{design_artifacts}/_kit-playground'
|
|
11
|
+
kit_grounding: '{design_artifacts}/_kit-playground/kit-grounding.md'
|
|
12
|
+
|
|
13
|
+
# References
|
|
14
|
+
siesa_uikit_catalog_url: 'https://siesa-ui-kit.pages.dev/llms.txt'
|
|
15
|
+
componentMappingData: '{workflow_path}/data/component-mapping.csv'
|
|
16
|
+
base_ux_spec: '{project-root}/_siesa-agents/resources/ux-ui/ux-design-specification.md'
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Step 2b: Kit Warm-up — Grounding del UI kit REAL (anti-alucinación)
|
|
20
|
+
|
|
21
|
+
## STEP GOAL
|
|
22
|
+
|
|
23
|
+
Antes de mapear objetos a componentes y renderizar, el agente debe **tocar el kit real**: instalarlo, compilarlo y renderizarlo. El resultado es `kit-grounding.md` — la **fuente de verdad** (nombres, props, contratos reales) que consumen step-04 (specs) y step-05 (prototype). Esto evita alucinaciones como suponer componentes/props que el catálogo `llms.txt` lista pero el paquete no expone (p. ej. `LayoutContent` vs el real `ContentLayout`, o `Dashboard`/`StatCard` inexistentes).
|
|
24
|
+
|
|
25
|
+
## MANDATORY EXECUTION RULES
|
|
26
|
+
|
|
27
|
+
- 📖 Read this entire file first.
|
|
28
|
+
- 🔴 La verdad la da el **paquete instalado**, NO el catálogo. Si `kit-grounding.md` y `llms.txt` discrepan, **gana el grounding**.
|
|
29
|
+
- 🧪 No se considera "verificado" hasta que el playground **compile** (build exit 0) o renderice.
|
|
30
|
+
- 🇪🇸 Texto de UI siempre en español.
|
|
31
|
+
- ✅ Speak in `{communication_language}`.
|
|
32
|
+
|
|
33
|
+
## EXECUTION SEQUENCE
|
|
34
|
+
|
|
35
|
+
### 1. Detect existing grounding (skip if fresh)
|
|
36
|
+
|
|
37
|
+
If `{kit_grounding}` already exists AND records the same `siesa_uikit_package` version resolved in step-01:
|
|
38
|
+
- Inform the user it's current and **skip to section 6** (no reinstall).
|
|
39
|
+
Otherwise continue.
|
|
40
|
+
|
|
41
|
+
### 2. Clone BaseFrontend (the harness) — per workflow_ext §3A
|
|
42
|
+
|
|
43
|
+
El harness del frontend ES un clon del repo base oficial `{frontend_base_repo}` (Vite 6 + React 19 + TS + Tailwind v4 + `siesa-ui-kit@^1.0.109` con todos los peers ya instalados, TanStack Router, Clean Architecture por módulos, capa mock y shell `LayoutBase`). NO scaffoldees a mano.
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone --depth 1 https://github.com/SiesaTeams/BaseFrontend {kit_playground}
|
|
47
|
+
rm -rf {kit_playground}/.git # no anidar .git dentro del repo SIESA
|
|
48
|
+
cd {kit_playground} && npm install
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- Si `{kit_playground}` ya existe con un clon válido (tiene `package.json` con dependencia `siesa-ui-kit`), reutilízalo — no re-clones.
|
|
52
|
+
- El `.gitignore` del base solo trae `node_modules/`; añade `dist/` para no versionar el build de verificación.
|
|
53
|
+
- Si NO hay red/acceso al repo o al registro npm → ve a la sección 5 (grounding degradado) y avisa al usuario.
|
|
54
|
+
- El paquete queda **fijado por el `package.json` del base** (`siesa-ui-kit@^1.0.109`); no hay que resolver el nombre a mano. CSS ya se importa en `src/main.tsx` (`import 'siesa-ui-kit/styles.css'`).
|
|
55
|
+
|
|
56
|
+
### 3. Verify the real package builds (the grounding act)
|
|
57
|
+
|
|
58
|
+
1. `npm run build` en `{kit_playground}` debe salir **exit 0** (compila los imports/exports reales del kit contra los módulos de ejemplo `agentes`/`colaboradores`). Un import roto es en sí un hallazgo.
|
|
59
|
+
2. Opcional: `npm run dev` (puerto 3010) + screenshot para confirmar el render visual del shell `LayoutBase` + `MasterCrud`.
|
|
60
|
+
3. Extrae los **exports y prop types reales** desde el paquete instalado: `{kit_playground}/node_modules/siesa-ui-kit/dist/index.d.ts` y `dist/components/**/*.types.d.ts`.
|
|
61
|
+
4. Documenta los contratos que el base **ya usa** como referencia verificada: `LayoutBase` (props del shell + `navigationItems`), `MasterCrud` (array `fields` con `accessorKey`/`header`/`type`/`config` + `service`/`schema`), y el patrón de 4 capas de un módulo (`src/modules/agentes/`).
|
|
62
|
+
|
|
63
|
+
### 5. Write `kit-grounding.md`
|
|
64
|
+
|
|
65
|
+
Write `{kit_grounding}` with, at minimum:
|
|
66
|
+
- **Install**: package name + version + peer deps + transitive deps + CSS import + order gotchas.
|
|
67
|
+
- **Real component inventory** (verified export names).
|
|
68
|
+
- **Real prop signatures** for the components in scope (e.g. `Button.type` not `variant`, `Badge.label`, `DescriptionList` = one `term`/`details` per row, `Table` data-driven, server-driven `LookupField`/`ContactManager`).
|
|
69
|
+
- **Hallucinations caught**: a table of "assumed name → real name / does-not-exist" (this is the anti-hallucination payload).
|
|
70
|
+
|
|
71
|
+
**Degraded mode** (no install possible): still write `kit-grounding.md` from `{siesa_uikit_catalog_url}` + `{componentMappingData}`, clearly flagged `⚠️ NO VERIFICADO EN RUNTIME — derivado del catálogo`. Never silently skip the file.
|
|
72
|
+
|
|
73
|
+
### 6. Spec Sync gate (HALT)
|
|
74
|
+
|
|
75
|
+
Present a concise summary of the grounding (package/version, components verified, hallucinations caught) and ask:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
🧪 Kit Warm-up listo. Grounding en _kit-playground/kit-grounding.md
|
|
79
|
+
- Paquete: {nombre}@{versión} ({verificado por build/render | degradado})
|
|
80
|
+
- Componentes verificados: {n} - Correcciones detectadas: {n}
|
|
81
|
+
|
|
82
|
+
[C] Continuar a generar escenarios (step-04/05 usarán el grounding)
|
|
83
|
+
[S] Sincronizar el spec ahora (aplicar correcciones a ux-design-specification.md)
|
|
84
|
+
[E] Editar el grounding antes de continuar
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
If `[S]`: apply the name/contract corrections to the project `ux-design-specification.md` (add/refresh a "Kit Grounding — Spec Sync" section). Then return to this menu.
|
|
88
|
+
|
|
89
|
+
On `[C]`: update `_progress/00-design-log.md` ("Phase 3 — generar escenarios; grounding listo") and load + execute `{nextStepFile}`.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## 🚨 SUCCESS / FAILURE
|
|
94
|
+
|
|
95
|
+
✅ Paquete real resuelto; playground compila/renderiza; `kit-grounding.md` escrito con nombres/props reales y alucinaciones detectadas; gate de Spec Sync presentado.
|
|
96
|
+
❌ Saltar el grounding y diseñar contra el catálogo; omitir `kit-grounding.md`; declarar "verificado" sin build/render; escribir UI de ejemplo en inglés.
|
package/siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals/steps/step-03-scenarios.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-03-scenarios'
|
|
3
|
+
description: 'Deriva escenarios UX y páginas desde las épicas/historias usando los scripts scaffold de WDS'
|
|
4
|
+
|
|
5
|
+
workflow_path: '{project-root}/_siesa-agents/bmm/workflows/3-solutioning/wds-visual-proposals'
|
|
6
|
+
thisStepFile: '{workflow_path}/steps/step-03-scenarios.md'
|
|
7
|
+
nextStepFile: '{workflow_path}/steps/step-04-specs.md'
|
|
8
|
+
|
|
9
|
+
wds_scripts: '{project-root}/_siesa-agents/wds/scripts'
|
|
10
|
+
init_scenario: '{wds_scripts}/wds-init-scenario.js'
|
|
11
|
+
init_page: '{wds_scripts}/wds-init-page.js'
|
|
12
|
+
nav: '{wds_scripts}/wds-nav.js'
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Step 3: Escenarios y Páginas (Phase 3 WDS)
|
|
16
|
+
|
|
17
|
+
## STEP GOAL
|
|
18
|
+
|
|
19
|
+
Convertir cada épica/historia del alcance en la estructura de escenarios y páginas de WDS, usando EXCLUSIVAMENTE los scripts scaffold (nunca markdown a mano). Salida bajo `{design_artifacts}/C-UX-Scenarios/`.
|
|
20
|
+
|
|
21
|
+
## MANDATORY EXECUTION RULES
|
|
22
|
+
|
|
23
|
+
- 🧩 NEVER write the scenario/page markdown by hand — use the scripts
|
|
24
|
+
- 📖 Read this entire file first
|
|
25
|
+
- ✅ Speak in `{communication_language}`
|
|
26
|
+
|
|
27
|
+
## MAPPING MODEL
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
Épica → Escenario WDS (un flujo de usuario)
|
|
31
|
+
Historia → Página WDS (una pantalla del flujo)
|
|
32
|
+
Criterio (AC) → Success Criteria de la página
|
|
33
|
+
Orden de historias → numeración de páginas (01, 02, ...)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## EXECUTION SEQUENCE
|
|
37
|
+
|
|
38
|
+
### 1. Plan the Scenarios (HALT for confirmation)
|
|
39
|
+
|
|
40
|
+
From the in-scope epics, propose the scenario/page breakdown:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Propuesta de escenarios:
|
|
44
|
+
1. "01 <Épica A>" → páginas: 01 <Historia> · 02 <Historia> · ...
|
|
45
|
+
2. "02 <Épica B>" → páginas: ...
|
|
46
|
+
|
|
47
|
+
[C] Confirmar y generar la estructura
|
|
48
|
+
[E] Ajustar el desglose
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
HALT. Group stories that clearly belong to the same flow; split very large epics into multiple scenarios if needed. Keep page count realistic for a proposal.
|
|
52
|
+
|
|
53
|
+
### 2. Create Each Scenario
|
|
54
|
+
|
|
55
|
+
For each confirmed scenario:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
node {init_scenario} \
|
|
59
|
+
--scenario "NN <Nombre del escenario>" \
|
|
60
|
+
--description "<flujo en una frase, en español>" \
|
|
61
|
+
--output {design_artifacts}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 3. Create Each Page
|
|
65
|
+
|
|
66
|
+
For each story/screen in the scenario:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
node {init_page} \
|
|
70
|
+
--page "NN <Nombre de la página>" \
|
|
71
|
+
--scenario "NN <Nombre del escenario>" \
|
|
72
|
+
--platform "Web" \
|
|
73
|
+
--visibility "<Public|Authenticated>" \
|
|
74
|
+
--output {design_artifacts}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Choose `--platform` from the architecture (default "Web"; "Mobile web" if the PRD targets mobile). Choose `--visibility` from whether the story is pre/post login.
|
|
78
|
+
|
|
79
|
+
### 4. Wire Navigation
|
|
80
|
+
|
|
81
|
+
After all pages of a scenario exist:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
node {nav} --scenario "NN <Nombre del escenario>" --output {design_artifacts}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Or, once everything is created: `node {nav} --all --output {design_artifacts}`.
|
|
88
|
+
|
|
89
|
+
### 5. Record Source Traceability
|
|
90
|
+
|
|
91
|
+
For each created page, note in memory (used in step-04 and step-06) the originating `[Source: <Épica> / <Historia> / FR-x]` so every spec and proposal traces back to planning.
|
|
92
|
+
|
|
93
|
+
### 6. Update Log & Proceed
|
|
94
|
+
|
|
95
|
+
Update `{design_artifacts}/_progress/00-design-log.md` "Current" to "Phase 4 — poblar page-specs". Load and execute `{nextStepFile}`.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 🚨 SUCCESS / FAILURE
|
|
100
|
+
|
|
101
|
+
✅ Cada escenario y página creados vía scripts; navegación cableada; trazabilidad a épicas/historias registrada.
|
|
102
|
+
❌ Escribir specs a mano; páginas sin orden numérico; perder el vínculo con las historias de origen.
|