elsabro 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +268 -0
- package/agents/elsabro-analyst.md +176 -0
- package/agents/elsabro-debugger.md +293 -0
- package/agents/elsabro-executor.md +477 -0
- package/agents/elsabro-orchestrator.md +426 -0
- package/agents/elsabro-planner.md +278 -0
- package/agents/elsabro-qa.md +273 -0
- package/agents/elsabro-quick-dev.md +309 -0
- package/agents/elsabro-scrum-master.md +217 -0
- package/agents/elsabro-tech-writer.md +347 -0
- package/agents/elsabro-ux-designer.md +278 -0
- package/agents/elsabro-verifier.md +295 -0
- package/agents/elsabro-yolo-dev.md +322 -0
- package/bin/install.js +497 -0
- package/commands/elsabro/add-phase.md +114 -0
- package/commands/elsabro/add-todo.md +158 -0
- package/commands/elsabro/audit-milestone.md +147 -0
- package/commands/elsabro/check-todos.md +192 -0
- package/commands/elsabro/complete-milestone.md +138 -0
- package/commands/elsabro/debug.md +153 -0
- package/commands/elsabro/discuss-phase.md +160 -0
- package/commands/elsabro/execute.md +299 -0
- package/commands/elsabro/help.md +102 -0
- package/commands/elsabro/insert-phase.md +117 -0
- package/commands/elsabro/list-phase-assumptions.md +129 -0
- package/commands/elsabro/map-codebase.md +108 -0
- package/commands/elsabro/new-milestone.md +128 -0
- package/commands/elsabro/new.md +230 -0
- package/commands/elsabro/pause-work.md +261 -0
- package/commands/elsabro/plan-milestone-gaps.md +129 -0
- package/commands/elsabro/plan.md +272 -0
- package/commands/elsabro/progress.md +187 -0
- package/commands/elsabro/quick.md +99 -0
- package/commands/elsabro/remove-phase.md +136 -0
- package/commands/elsabro/research-phase.md +174 -0
- package/commands/elsabro/resume-work.md +288 -0
- package/commands/elsabro/set-profile.md +216 -0
- package/commands/elsabro/settings.md +185 -0
- package/commands/elsabro/start.md +204 -0
- package/commands/elsabro/update.md +71 -0
- package/commands/elsabro/verify-work.md +269 -0
- package/commands/elsabro/verify.md +207 -0
- package/hooks/dist/.gitkeep +2 -0
- package/package.json +45 -0
- package/references/error-handling-instructions.md +312 -0
- package/references/source-hierarchy.md +150 -0
- package/references/token-optimization.md +225 -0
- package/skills/api-setup.md +315 -0
- package/skills/auth-setup.md +180 -0
- package/skills/database-setup.md +238 -0
- package/skills/expo-app.md +261 -0
- package/skills/nextjs-app.md +206 -0
- package/skills/payments-setup.md +421 -0
- package/skills/sentry-setup.md +295 -0
- package/templates/error-handling-config.json +138 -0
- package/templates/session-state.json +69 -0
- package/templates/starters/.gitkeep +2 -0
- package/workflows/.gitkeep +2 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: debug
|
|
3
|
+
description: Debugging sistemático para investigar y resolver problemas
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Edit
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- WebSearch
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
- mcp__plugin_context7_context7__*
|
|
15
|
+
argument-hint: "[descripción del problema]"
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# ELSABRO: Debug
|
|
19
|
+
|
|
20
|
+
<objective>
|
|
21
|
+
Investigar y resolver bugs usando el método científico, no adivinando.
|
|
22
|
+
|
|
23
|
+
**Argumento opcional:** Descripción del problema. Si no se proporciona, preguntar al usuario.
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
## Paso 1: Entender el Problema
|
|
28
|
+
|
|
29
|
+
Si no hay descripción, preguntar:
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Cuéntame qué está pasando:
|
|
33
|
+
|
|
34
|
+
1. ¿Qué debería pasar?
|
|
35
|
+
2. ¿Qué pasa en su lugar?
|
|
36
|
+
3. ¿Cuándo empezó el problema?
|
|
37
|
+
4. ¿Cambiaste algo recientemente?
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Usar `AskUserQuestion` para esto.
|
|
41
|
+
|
|
42
|
+
## Paso 2: Crear Sesión de Debug
|
|
43
|
+
|
|
44
|
+
Crear archivo `.planning/debug/{slug}.md`:
|
|
45
|
+
|
|
46
|
+
```markdown
|
|
47
|
+
# Debug: [Descripción corta]
|
|
48
|
+
|
|
49
|
+
## Status: gathering
|
|
50
|
+
|
|
51
|
+
## Síntomas
|
|
52
|
+
- [Lo que reportó el usuario]
|
|
53
|
+
- [Error exacto si hay]
|
|
54
|
+
- [Cuándo ocurre]
|
|
55
|
+
|
|
56
|
+
## Ambiente
|
|
57
|
+
- [Proyecto/Framework]
|
|
58
|
+
- [Versiones relevantes]
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Paso 3: Spawnnear Debugger
|
|
62
|
+
|
|
63
|
+
Usar el Task tool para spawnnear el agente `elsabro-debugger`:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Task(elsabro-debugger):
|
|
67
|
+
Investiga este bug:
|
|
68
|
+
[Descripción del problema]
|
|
69
|
+
[Síntomas observados]
|
|
70
|
+
[Contexto del proyecto]
|
|
71
|
+
|
|
72
|
+
Sigue las 4 fases:
|
|
73
|
+
1. Investigar root cause
|
|
74
|
+
2. Analizar patrones
|
|
75
|
+
3. Formar y testear hipótesis
|
|
76
|
+
4. Implementar fix (si find_and_fix)
|
|
77
|
+
|
|
78
|
+
Modo: find_and_fix
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Paso 4: Seguimiento
|
|
82
|
+
|
|
83
|
+
El debugger actualizará el archivo de sesión con:
|
|
84
|
+
- Hipótesis investigadas
|
|
85
|
+
- Root cause encontrado
|
|
86
|
+
- Fix implementado
|
|
87
|
+
- Verificación realizada
|
|
88
|
+
|
|
89
|
+
## Paso 5: Verificar con Usuario
|
|
90
|
+
|
|
91
|
+
Una vez el debugger reporta fix:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
El problema estaba en: [root cause]
|
|
95
|
+
|
|
96
|
+
Lo arreglé: [descripción del fix]
|
|
97
|
+
|
|
98
|
+
Para verificar:
|
|
99
|
+
1. [Paso de verificación]
|
|
100
|
+
2. [Paso de verificación]
|
|
101
|
+
|
|
102
|
+
¿Funciona ahora?
|
|
103
|
+
```
|
|
104
|
+
</process>
|
|
105
|
+
|
|
106
|
+
<modes>
|
|
107
|
+
## Modos de Debug
|
|
108
|
+
|
|
109
|
+
### find_root_cause_only
|
|
110
|
+
Solo investiga y reporta la causa. No hace cambios.
|
|
111
|
+
Útil cuando quieres entender antes de decidir.
|
|
112
|
+
|
|
113
|
+
### find_and_fix (default)
|
|
114
|
+
Investiga, encuentra la causa, e implementa el fix.
|
|
115
|
+
Útil cuando confías en que el debugger lo resuelva.
|
|
116
|
+
</modes>
|
|
117
|
+
|
|
118
|
+
<user_help>
|
|
119
|
+
## Si el Usuario Necesita Ayuda
|
|
120
|
+
|
|
121
|
+
Frases activadoras para explicación detallada:
|
|
122
|
+
- "no entiendo"
|
|
123
|
+
- "explícame"
|
|
124
|
+
- "qué significa"
|
|
125
|
+
- "más detalle"
|
|
126
|
+
|
|
127
|
+
Entonces explicar:
|
|
128
|
+
- Qué es el error en términos simples
|
|
129
|
+
- Por qué ocurre (analogía si ayuda)
|
|
130
|
+
- Qué vamos a hacer para arreglarlo
|
|
131
|
+
</user_help>
|
|
132
|
+
|
|
133
|
+
<escalation>
|
|
134
|
+
## Escalación
|
|
135
|
+
|
|
136
|
+
Si después de 3 intentos el bug no se resuelve:
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
He intentado varias cosas pero el problema persiste.
|
|
140
|
+
|
|
141
|
+
Lo que sé hasta ahora:
|
|
142
|
+
- [Hallazgo 1]
|
|
143
|
+
- [Hallazgo 2]
|
|
144
|
+
|
|
145
|
+
Opciones:
|
|
146
|
+
1. Investigar más a fondo (más tiempo)
|
|
147
|
+
2. Buscar ayuda externa (StackOverflow, docs)
|
|
148
|
+
3. Replantear el approach
|
|
149
|
+
4. Trabajar en otra cosa y volver después
|
|
150
|
+
|
|
151
|
+
¿Qué prefieres?
|
|
152
|
+
```
|
|
153
|
+
</escalation>
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: discuss-phase
|
|
3
|
+
description: Discusión colaborativa sobre una fase - clarificar scope, identificar riesgos, refinar approach
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /elsabro:discuss-phase
|
|
7
|
+
|
|
8
|
+
<command-name>discuss-phase</command-name>
|
|
9
|
+
|
|
10
|
+
## Propósito
|
|
11
|
+
|
|
12
|
+
Facilitar una discusión estructurada sobre una fase para clarificar alcance, identificar riesgos y refinar el approach antes de comenzar la implementación.
|
|
13
|
+
|
|
14
|
+
## Uso
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Discutir fase actual
|
|
18
|
+
/elsabro:discuss-phase
|
|
19
|
+
|
|
20
|
+
# Discutir fase específica
|
|
21
|
+
/elsabro:discuss-phase P3
|
|
22
|
+
|
|
23
|
+
# Discutir con foco específico
|
|
24
|
+
/elsabro:discuss-phase P3 --focus=risks
|
|
25
|
+
/elsabro:discuss-phase P3 --focus=scope
|
|
26
|
+
/elsabro:discuss-phase P3 --focus=approach
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Proceso de Discusión
|
|
30
|
+
|
|
31
|
+
### Paso 1: Context Loading
|
|
32
|
+
|
|
33
|
+
ELSABRO carga:
|
|
34
|
+
- Definición de la fase
|
|
35
|
+
- Tasks asociados
|
|
36
|
+
- Dependencias
|
|
37
|
+
- Work completado en fases anteriores
|
|
38
|
+
|
|
39
|
+
### Paso 2: Facilitación
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
┌──────────────────────────────────────────────────┐
|
|
43
|
+
│ PHASE DISCUSSION: P3 - Frontend │
|
|
44
|
+
├──────────────────────────────────────────────────┤
|
|
45
|
+
│ │
|
|
46
|
+
│ Current understanding: │
|
|
47
|
+
│ - Build React components for dashboard │
|
|
48
|
+
│ - Integrate with backend API │
|
|
49
|
+
│ - Implement responsive design │
|
|
50
|
+
│ │
|
|
51
|
+
│ Key questions: │
|
|
52
|
+
│ 1. What's the priority order of components? │
|
|
53
|
+
│ 2. Are there design mockups to follow? │
|
|
54
|
+
│ 3. What's the testing strategy? │
|
|
55
|
+
│ │
|
|
56
|
+
└──────────────────────────────────────────────────┘
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Paso 3: Discusión Interactiva
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
ELSABRO: Let's clarify the scope. What components
|
|
63
|
+
are must-have vs nice-to-have?
|
|
64
|
+
|
|
65
|
+
User: Dashboard cards and navigation are must-have.
|
|
66
|
+
Charts can wait for next iteration.
|
|
67
|
+
|
|
68
|
+
ELSABRO: Got it. Updating scope...
|
|
69
|
+
|
|
70
|
+
Must-have:
|
|
71
|
+
- Dashboard cards
|
|
72
|
+
- Navigation
|
|
73
|
+
- User profile
|
|
74
|
+
|
|
75
|
+
Nice-to-have (defer to P4):
|
|
76
|
+
- Charts
|
|
77
|
+
- Advanced filters
|
|
78
|
+
|
|
79
|
+
Does this look right? (y/n/adjust)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Paso 4: Documentación
|
|
83
|
+
|
|
84
|
+
Genera/actualiza `.planning/milestones/M001/P3-DISCUSSION.md`:
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
# Phase Discussion: P3 - Frontend
|
|
88
|
+
|
|
89
|
+
## Date: 2024-01-20
|
|
90
|
+
|
|
91
|
+
## Participants
|
|
92
|
+
- User
|
|
93
|
+
- ELSABRO
|
|
94
|
+
|
|
95
|
+
## Key Decisions
|
|
96
|
+
|
|
97
|
+
### Scope
|
|
98
|
+
- **Must-have:** Dashboard cards, navigation, user profile
|
|
99
|
+
- **Deferred:** Charts, advanced filters
|
|
100
|
+
|
|
101
|
+
### Approach
|
|
102
|
+
- Use existing component library
|
|
103
|
+
- Start with mobile-first
|
|
104
|
+
- TDD for business logic
|
|
105
|
+
|
|
106
|
+
### Risks Identified
|
|
107
|
+
1. API not finalized - Mitigation: Use mocks
|
|
108
|
+
2. No design specs - Mitigation: Follow existing patterns
|
|
109
|
+
|
|
110
|
+
### Open Questions
|
|
111
|
+
- [ ] Confirm color palette with design team
|
|
112
|
+
- [ ] Clarify error state designs
|
|
113
|
+
|
|
114
|
+
## Action Items
|
|
115
|
+
- [ ] Create component inventory
|
|
116
|
+
- [ ] Set up Storybook
|
|
117
|
+
- [ ] Write first component tests
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Temas de Discusión
|
|
121
|
+
|
|
122
|
+
### Scope Focus
|
|
123
|
+
```bash
|
|
124
|
+
/elsabro:discuss-phase P3 --focus=scope
|
|
125
|
+
```
|
|
126
|
+
- Qué está incluido
|
|
127
|
+
- Qué está fuera de scope
|
|
128
|
+
- Acceptance criteria
|
|
129
|
+
|
|
130
|
+
### Risks Focus
|
|
131
|
+
```bash
|
|
132
|
+
/elsabro:discuss-phase P3 --focus=risks
|
|
133
|
+
```
|
|
134
|
+
- Technical risks
|
|
135
|
+
- Dependency risks
|
|
136
|
+
- Timeline risks
|
|
137
|
+
- Mitigaciones
|
|
138
|
+
|
|
139
|
+
### Approach Focus
|
|
140
|
+
```bash
|
|
141
|
+
/elsabro:discuss-phase P3 --focus=approach
|
|
142
|
+
```
|
|
143
|
+
- Cómo implementar
|
|
144
|
+
- Qué tools usar
|
|
145
|
+
- Orden de trabajo
|
|
146
|
+
|
|
147
|
+
## Output
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
✓ Discussion complete for P3
|
|
151
|
+
|
|
152
|
+
Documented: .planning/milestones/M001/P3-DISCUSSION.md
|
|
153
|
+
|
|
154
|
+
Summary:
|
|
155
|
+
- 3 scope decisions made
|
|
156
|
+
- 2 risks identified
|
|
157
|
+
- 5 action items created
|
|
158
|
+
|
|
159
|
+
Next: /elsabro:execute to start implementation
|
|
160
|
+
```
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: execute
|
|
3
|
+
description: Ejecutar un plan con TDD, verificación automática y commits atómicos
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Edit
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Task
|
|
12
|
+
- mcp__plugin_context7_context7__*
|
|
13
|
+
argument-hint: "[número de fase]"
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# ELSABRO: Execute
|
|
17
|
+
|
|
18
|
+
<objective>
|
|
19
|
+
Ejecutar planes de una fase con:
|
|
20
|
+
- Investigación de patrones con Context7
|
|
21
|
+
- TDD cuando sea apropiado
|
|
22
|
+
- Commits atómicos por tarea
|
|
23
|
+
- Verificación automática
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
## Paso 1: Descubrir Planes
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
ls .planning/*-PLAN.md
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Encontrar planes para la fase especificada.
|
|
34
|
+
|
|
35
|
+
## Paso 2: Organizar por Waves
|
|
36
|
+
|
|
37
|
+
Leer frontmatter de cada plan para agrupar por `wave`:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Wave 1: [Planes que pueden correr en paralelo]
|
|
41
|
+
Wave 2: [Planes que dependen de Wave 1]
|
|
42
|
+
Wave 3: [Planes que dependen de Wave 2]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Paso 3: Ejecutar Waves
|
|
46
|
+
|
|
47
|
+
Para cada wave:
|
|
48
|
+
|
|
49
|
+
### Si hay múltiples planes en la wave → Paralelo
|
|
50
|
+
```
|
|
51
|
+
Task(elsabro-executor) para Plan 1 |
|
|
52
|
+
Task(elsabro-executor) para Plan 2 |
|
|
53
|
+
Task(elsabro-executor) para Plan 3
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Si solo hay un plan → Secuencial
|
|
57
|
+
```
|
|
58
|
+
Task(elsabro-executor) para Plan único
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Cada executor recibe:
|
|
62
|
+
- El PLAN.md completo
|
|
63
|
+
- Referencias a RESEARCH.md
|
|
64
|
+
- Instrucciones de TDD
|
|
65
|
+
- Instrucciones de commits
|
|
66
|
+
|
|
67
|
+
## Paso 4: Verificar Fase
|
|
68
|
+
|
|
69
|
+
Una vez todos los planes completados:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
Task(elsabro-verifier):
|
|
73
|
+
Verifica la fase [N]:
|
|
74
|
+
- Lee los SUMMARY.md generados
|
|
75
|
+
- Verifica must_haves de cada plan
|
|
76
|
+
- Genera VERIFICATION.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Paso 5: Manejar Resultados
|
|
80
|
+
|
|
81
|
+
### Si passed:
|
|
82
|
+
```
|
|
83
|
+
✓ Fase [N] completada
|
|
84
|
+
|
|
85
|
+
Lo que se hizo:
|
|
86
|
+
- [Resumen de tareas]
|
|
87
|
+
|
|
88
|
+
Archivos modificados:
|
|
89
|
+
- [Lista de archivos]
|
|
90
|
+
|
|
91
|
+
Commits creados:
|
|
92
|
+
- [Lista de commits]
|
|
93
|
+
|
|
94
|
+
¿Siguiente paso?
|
|
95
|
+
- Continuar con fase [N+1]: /elsabro:plan [N+1]
|
|
96
|
+
- Verificar manualmente: /elsabro:verify [N]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Si gaps_found:
|
|
100
|
+
```
|
|
101
|
+
⚠ Fase [N] tiene gaps
|
|
102
|
+
|
|
103
|
+
Problemas encontrados:
|
|
104
|
+
- [Gap 1]
|
|
105
|
+
- [Gap 2]
|
|
106
|
+
|
|
107
|
+
Opciones:
|
|
108
|
+
1. Crear planes de corrección: /elsabro:plan [N] --gaps
|
|
109
|
+
2. Ver detalles: cat .planning/[N]-VERIFICATION.md
|
|
110
|
+
3. Continuar de todas formas
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Si human_needed:
|
|
114
|
+
```
|
|
115
|
+
👤 Se necesita verificación manual
|
|
116
|
+
|
|
117
|
+
Por favor prueba:
|
|
118
|
+
1. [Instrucción]
|
|
119
|
+
2. [Instrucción]
|
|
120
|
+
|
|
121
|
+
Cuando termines, dime si funcionó o qué problemas encontraste.
|
|
122
|
+
```
|
|
123
|
+
</process>
|
|
124
|
+
|
|
125
|
+
<execution_protocol>
|
|
126
|
+
## Protocolo de Ejecución
|
|
127
|
+
|
|
128
|
+
### Para Cada Tarea
|
|
129
|
+
|
|
130
|
+
1. **¿Necesita Context7?**
|
|
131
|
+
- Si usa librería específica → Verificar patrón actual
|
|
132
|
+
|
|
133
|
+
2. **¿Es candidata para TDD?**
|
|
134
|
+
- Lógica de negocio → SÍ
|
|
135
|
+
- Endpoints API → SÍ
|
|
136
|
+
- Configuración → NO
|
|
137
|
+
- UI simple → NO
|
|
138
|
+
|
|
139
|
+
3. **Si TDD:**
|
|
140
|
+
```
|
|
141
|
+
a. Escribir test que falla
|
|
142
|
+
b. Verificar que falla por razón correcta
|
|
143
|
+
c. Implementar código mínimo
|
|
144
|
+
d. Verificar que test pasa
|
|
145
|
+
e. Refactorizar si necesario
|
|
146
|
+
f. Commit
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
4. **Si no TDD:**
|
|
150
|
+
```
|
|
151
|
+
a. Implementar código
|
|
152
|
+
b. Ejecutar <verify>
|
|
153
|
+
c. Confirmar resultado esperado
|
|
154
|
+
d. Commit
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Commit por Tarea
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
git add [archivos]
|
|
161
|
+
git commit -m "feat([fase]-[plan]): [descripción]"
|
|
162
|
+
```
|
|
163
|
+
</execution_protocol>
|
|
164
|
+
|
|
165
|
+
<parallel_execution>
|
|
166
|
+
## Ejecución Paralela
|
|
167
|
+
|
|
168
|
+
### Cuándo usar paralelo
|
|
169
|
+
- Múltiples planes en la misma wave
|
|
170
|
+
- Tareas independientes (sin dependencias)
|
|
171
|
+
|
|
172
|
+
### Cómo paralelizar
|
|
173
|
+
```
|
|
174
|
+
# En un solo mensaje con múltiples Task calls:
|
|
175
|
+
Task(elsabro-executor) Plan 1
|
|
176
|
+
Task(elsabro-executor) Plan 2
|
|
177
|
+
Task(elsabro-executor) Plan 3
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Cuándo NO paralelizar
|
|
181
|
+
- Planes con dependencias entre sí
|
|
182
|
+
- Plan 2 necesita output de Plan 1
|
|
183
|
+
- Modifican los mismos archivos
|
|
184
|
+
</parallel_execution>
|
|
185
|
+
|
|
186
|
+
<error_handling>
|
|
187
|
+
## Manejo de Errores
|
|
188
|
+
|
|
189
|
+
### Política de Ejecución Paralela
|
|
190
|
+
|
|
191
|
+
Este comando usa **policy: quorum** por defecto.
|
|
192
|
+
|
|
193
|
+
```
|
|
194
|
+
┌────────────────────────────────────────────────┐
|
|
195
|
+
│ PARALLEL EXECUTION POLICY: quorum │
|
|
196
|
+
├────────────────────────────────────────────────┤
|
|
197
|
+
│ Si >50% de agentes tienen éxito → continuar │
|
|
198
|
+
│ Si ≤50% de agentes fallan → STOP │
|
|
199
|
+
└────────────────────────────────────────────────┘
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Clasificación de Errores
|
|
203
|
+
|
|
204
|
+
| Severity | Emoji | Acción |
|
|
205
|
+
|----------|-------|--------|
|
|
206
|
+
| 🔴 CRITICAL | Parar | No puede continuar de ninguna forma |
|
|
207
|
+
| 🟠 HIGH | Preguntar | Ofrecer opciones: fix/skip/abort |
|
|
208
|
+
| 🟡 MEDIUM | Warning | Mostrar y continuar |
|
|
209
|
+
| ⬜ LOW | Info | Log y continuar |
|
|
210
|
+
|
|
211
|
+
### Si una tarea falla
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
1. CLASIFICAR ERROR:
|
|
215
|
+
- Tests fallan → HIGH
|
|
216
|
+
- Build falla → HIGH
|
|
217
|
+
- Dependencia falta → HIGH (auto-fixable)
|
|
218
|
+
- Lint warnings → MEDIUM
|
|
219
|
+
- File not found crítico → CRITICAL
|
|
220
|
+
|
|
221
|
+
2. APLICAR RETRY (si es transitorio):
|
|
222
|
+
- Attempt 1: Ejecutar
|
|
223
|
+
- Attempt 2: Esperar 1s, reintentar
|
|
224
|
+
- Attempt 3: Esperar 2s, reintentar
|
|
225
|
+
- Máximo 3 intentos, timeout total 2 min
|
|
226
|
+
|
|
227
|
+
3. SI RETRY FALLA → Escalar según severidad
|
|
228
|
+
|
|
229
|
+
4. MOSTRAR ERROR formateado:
|
|
230
|
+
╔══════════════════════════════════════════╗
|
|
231
|
+
║ 🟠 ERROR: TESTS_FAILED ║
|
|
232
|
+
║ Severity: HIGH ║
|
|
233
|
+
╠══════════════════════════════════════════╣
|
|
234
|
+
║ [Detalles del error] ║
|
|
235
|
+
╠══════════════════════════════════════════╣
|
|
236
|
+
║ [d] Debug [s] Skip [a] Abort ║
|
|
237
|
+
╚══════════════════════════════════════════╝
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### Reglas de Desviación
|
|
241
|
+
|
|
242
|
+
| Situación | Severity | Acción |
|
|
243
|
+
|-----------|----------|--------|
|
|
244
|
+
| Bug que impide continuar | HIGH | Auto-fix (3 intentos) |
|
|
245
|
+
| Falta validación crítica | HIGH | Auto-add |
|
|
246
|
+
| Falta dependencia | HIGH | Auto-install |
|
|
247
|
+
| Cambio arquitectónico | HIGH | CHECKPOINT |
|
|
248
|
+
| Tests fallan | HIGH | Debug o skip |
|
|
249
|
+
| Lint warnings | MEDIUM | Continuar |
|
|
250
|
+
|
|
251
|
+
### Actualizar Estado
|
|
252
|
+
|
|
253
|
+
Después de errores, actualizar `.planning/SESSION-STATE.json`:
|
|
254
|
+
|
|
255
|
+
```json
|
|
256
|
+
{
|
|
257
|
+
"errors": {
|
|
258
|
+
"count": 1,
|
|
259
|
+
"lastError": {
|
|
260
|
+
"code": "TESTS_FAILED",
|
|
261
|
+
"severity": "HIGH",
|
|
262
|
+
"at": "2024-01-20T15:25:00Z",
|
|
263
|
+
"resolved": false
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"retry": {
|
|
267
|
+
"currentAttempt": 3,
|
|
268
|
+
"maxAttempts": 3,
|
|
269
|
+
"exhausted": true
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
```
|
|
273
|
+
</error_handling>
|
|
274
|
+
|
|
275
|
+
<summary_creation>
|
|
276
|
+
## Creación de Summary
|
|
277
|
+
|
|
278
|
+
Al completar un plan:
|
|
279
|
+
|
|
280
|
+
```markdown
|
|
281
|
+
# Summary: [Nombre del Plan]
|
|
282
|
+
|
|
283
|
+
## Completado
|
|
284
|
+
- [x] Tarea 1
|
|
285
|
+
- [x] Tarea 2
|
|
286
|
+
|
|
287
|
+
## Archivos
|
|
288
|
+
- path/to/file.ts
|
|
289
|
+
- path/to/another.ts
|
|
290
|
+
|
|
291
|
+
## Commits
|
|
292
|
+
- abc1234: feat(01-01): [descripción]
|
|
293
|
+
- def5678: feat(01-01): [descripción]
|
|
294
|
+
|
|
295
|
+
## Verificación
|
|
296
|
+
- [x] Build: npm run build
|
|
297
|
+
- [x] Tests: npm run test
|
|
298
|
+
```
|
|
299
|
+
</summary_creation>
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: help
|
|
3
|
+
description: Muestra todos los comandos disponibles de ELSABRO
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ELSABRO: Ayuda
|
|
9
|
+
|
|
10
|
+
<output>
|
|
11
|
+
Muestra el siguiente mensaje de ayuda:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
15
|
+
ELSABRO v2.0
|
|
16
|
+
Tu asistente AI para crear apps
|
|
17
|
+
Powered by BMAD-METHOD + Superpowers
|
|
18
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
19
|
+
|
|
20
|
+
GETTING STARTED
|
|
21
|
+
───────────────
|
|
22
|
+
/elsabro:start Wizard para empezar (recomendado)
|
|
23
|
+
/elsabro:new Crear un proyecto nuevo
|
|
24
|
+
/elsabro:help Esta ayuda
|
|
25
|
+
|
|
26
|
+
CORE WORKFLOW
|
|
27
|
+
─────────────
|
|
28
|
+
/elsabro:plan Planificar una fase o feature
|
|
29
|
+
/elsabro:execute Ejecutar un plan
|
|
30
|
+
/elsabro:verify Verificar que todo funciona
|
|
31
|
+
/elsabro:verify-work Verificación completa con agentes paralelos
|
|
32
|
+
/elsabro:quick Ejecución rápida (YOLO mode)
|
|
33
|
+
|
|
34
|
+
MILESTONE MANAGEMENT
|
|
35
|
+
────────────────────
|
|
36
|
+
/elsabro:new-milestone Crear nuevo milestone
|
|
37
|
+
/elsabro:complete-milestone Cerrar milestone completado
|
|
38
|
+
/elsabro:audit-milestone Auditar estado de milestone
|
|
39
|
+
/elsabro:plan-milestone-gaps Planificar gaps en milestone
|
|
40
|
+
|
|
41
|
+
PHASE MANAGEMENT
|
|
42
|
+
────────────────
|
|
43
|
+
/elsabro:add-phase Agregar fase al final
|
|
44
|
+
/elsabro:insert-phase Insertar fase en posición
|
|
45
|
+
/elsabro:remove-phase Eliminar fase
|
|
46
|
+
/elsabro:discuss-phase Discutir scope de fase
|
|
47
|
+
/elsabro:research-phase Investigar tecnologías para fase
|
|
48
|
+
/elsabro:list-phase-assumptions Listar asunciones de fase
|
|
49
|
+
|
|
50
|
+
SESSION MANAGEMENT
|
|
51
|
+
──────────────────
|
|
52
|
+
/elsabro:resume-work Retomar trabajo guardado
|
|
53
|
+
/elsabro:pause-work Pausar y guardar contexto
|
|
54
|
+
/elsabro:progress Ver progreso actual
|
|
55
|
+
|
|
56
|
+
TODO MANAGEMENT
|
|
57
|
+
───────────────
|
|
58
|
+
/elsabro:add-todo Agregar item al todo list
|
|
59
|
+
/elsabro:check-todos Ver y gestionar todos
|
|
60
|
+
|
|
61
|
+
DEBUGGING & ANALYSIS
|
|
62
|
+
────────────────────
|
|
63
|
+
/elsabro:debug Investigar y arreglar problemas
|
|
64
|
+
/elsabro:map-codebase Generar mapa del codebase
|
|
65
|
+
|
|
66
|
+
SETTINGS
|
|
67
|
+
────────
|
|
68
|
+
/elsabro:settings Ver/modificar configuración
|
|
69
|
+
/elsabro:set-profile Cambiar perfil (default/yolo/careful)
|
|
70
|
+
/elsabro:update Actualizar ELSABRO
|
|
71
|
+
|
|
72
|
+
AGENTES DISPONIBLES
|
|
73
|
+
───────────────────
|
|
74
|
+
• elsabro-analyst - Análisis y research
|
|
75
|
+
• elsabro-planner - Planificación técnica
|
|
76
|
+
• elsabro-executor - Implementación de código
|
|
77
|
+
• elsabro-debugger - Debugging sistemático
|
|
78
|
+
• elsabro-verifier - Verificación de calidad
|
|
79
|
+
• elsabro-orchestrator - Coordinación de agentes paralelos
|
|
80
|
+
• elsabro-scrum-master - Gestión de sprints
|
|
81
|
+
• elsabro-qa - Testing y calidad
|
|
82
|
+
• elsabro-ux-designer - Diseño de experiencia
|
|
83
|
+
• elsabro-tech-writer - Documentación
|
|
84
|
+
• elsabro-quick-dev - Desarrollo rápido (Barry)
|
|
85
|
+
• elsabro-yolo-dev - Desarrollo ultra-rápido (Flash)
|
|
86
|
+
|
|
87
|
+
PERFILES
|
|
88
|
+
────────
|
|
89
|
+
• default - Balance entre velocidad y calidad
|
|
90
|
+
• yolo ⚡ - Máxima velocidad, mínima fricción
|
|
91
|
+
• careful 🛡️ - Máxima calidad, validación exhaustiva
|
|
92
|
+
|
|
93
|
+
TIPS
|
|
94
|
+
────
|
|
95
|
+
• Si no sabes por dónde empezar → /elsabro:start
|
|
96
|
+
• Para fixes rápidos → /elsabro:quick
|
|
97
|
+
• Para retomar trabajo → /elsabro:resume-work
|
|
98
|
+
• Para cambiar modo → /elsabro:set-profile yolo
|
|
99
|
+
|
|
100
|
+
¿Algo no quedó claro? Solo pregúntame.
|
|
101
|
+
```
|
|
102
|
+
</output>
|