context-first-cli 2.2.0 → 2.2.1
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/dist/commands/feature.d.ts.map +1 -1
- package/dist/commands/feature.js +21 -2
- package/dist/commands/feature.js.map +1 -1
- package/dist/templates/commands/en/products/refine.md +64 -26
- package/dist/templates/commands/en/products/spec.md +42 -5
- package/dist/templates/commands/en/quality/metrics.md +51 -14
- package/dist/templates/commands/en/quality/observe.md +44 -6
- package/dist/templates/commands/en/warm-up.md +56 -19
- package/dist/templates/commands/es/products/refine.md +100 -62
- package/dist/templates/commands/es/products/spec.md +63 -26
- package/dist/templates/commands/es/quality/metrics.md +43 -5
- package/dist/templates/commands/es/quality/observe.md +42 -5
- package/dist/templates/commands/es/warm-up.md +45 -7
- package/package.json +1 -1
- package/templates/commands/en/products/refine.md +64 -26
- package/templates/commands/en/products/spec.md +42 -5
- package/templates/commands/en/quality/metrics.md +51 -14
- package/templates/commands/en/quality/observe.md +44 -6
- package/templates/commands/en/warm-up.md +56 -19
- package/templates/commands/es/products/refine.md +100 -62
- package/templates/commands/es/products/spec.md +63 -26
- package/templates/commands/es/quality/metrics.md +43 -5
- package/templates/commands/es/quality/observe.md +42 -5
- package/templates/commands/es/warm-up.md +45 -7
|
@@ -9,11 +9,49 @@ Medir y documentar la calidad de la implementación mediante métricas objetivas
|
|
|
9
9
|
- Complejidad del código
|
|
10
10
|
- Deuda técnica
|
|
11
11
|
- Rendimiento
|
|
12
|
-
-
|
|
12
|
+
- Conformidad con estándares
|
|
13
13
|
|
|
14
|
-
## 📋
|
|
14
|
+
## 📋 Configuración del Proyecto
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
**⚠️ IMPORTANTE: ¡Siempre lea los archivos de configuración del proyecto ANTES de ejecutar este comando!**
|
|
17
|
+
|
|
18
|
+
### Archivos Obligatorios
|
|
19
|
+
|
|
20
|
+
1. **`context-manifest.json`** (raíz del orquestador)
|
|
21
|
+
- Lista de repositorios del proyecto
|
|
22
|
+
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
23
|
+
- URLs y dependencias entre repositorios
|
|
24
|
+
|
|
25
|
+
2. **`ai.properties.md`** (raíz del orquestador)
|
|
26
|
+
- Configuraciones del proyecto (`project_name`, `base_path`)
|
|
27
|
+
- Sistema de gestión de tareas (`task_management_system`)
|
|
28
|
+
- Credenciales y configuraciones específicas
|
|
29
|
+
|
|
30
|
+
### Cómo Leer
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# 1. Leer context-manifest.json
|
|
34
|
+
cat context-manifest.json
|
|
35
|
+
|
|
36
|
+
# 2. Leer ai.properties.md
|
|
37
|
+
cat ai.properties.md
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Información Esencial
|
|
41
|
+
|
|
42
|
+
Después de leer los archivos, tendrás:
|
|
43
|
+
- ✅ Lista completa de repositorios del proyecto
|
|
44
|
+
- ✅ Ubicación del repositorio de metaspecs
|
|
45
|
+
- ✅ Base path para localizar repositorios
|
|
46
|
+
- ✅ Sistema de gestión de tareas configurado
|
|
47
|
+
- ✅ Configuraciones específicas del proyecto
|
|
48
|
+
|
|
49
|
+
**🛑 NO continúe sin leer estos archivos!** Contienen información crítica para la correcta ejecución del comando.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## 📋 Requisitos Previos
|
|
53
|
+
|
|
54
|
+
- Implementación completada (después de `/work`)
|
|
17
55
|
- Pruebas implementadas
|
|
18
56
|
- Build funcionando
|
|
19
57
|
|
|
@@ -142,7 +180,7 @@ Si aplica, mida rendimiento:
|
|
|
142
180
|
## Tamaño e Impacto
|
|
143
181
|
|
|
144
182
|
### Líneas de Código
|
|
145
|
-
- **
|
|
183
|
+
- **Agregadas**: +X líneas
|
|
146
184
|
- **Eliminadas**: -Y líneas
|
|
147
185
|
- **Modificadas**: Z líneas
|
|
148
186
|
|
|
@@ -254,7 +292,7 @@ Si alguna métrica está fuera de lo aceptable:
|
|
|
254
292
|
|
|
255
293
|
## 🎯 Resultado
|
|
256
294
|
|
|
257
|
-
|
|
295
|
+
Después de ejecutar este comando, tendrás:
|
|
258
296
|
- Informe completo de métricas
|
|
259
297
|
- Comparación con baseline y metas
|
|
260
298
|
- Identificación de problemas de calidad
|
|
@@ -12,7 +12,44 @@ Crear un registro estructurado de decisiones técnicas y de producto, garantizan
|
|
|
12
12
|
|
|
13
13
|
**IMPORTANTE**: Este comando NO genera decisiones nuevas. Solo REGISTRA decisiones que ya fueron tomadas en el proceso de desarrollo.
|
|
14
14
|
|
|
15
|
-
## 📋
|
|
15
|
+
## 📋 Configuración del Proyecto
|
|
16
|
+
|
|
17
|
+
**⚠️ IMPORTANTE: ¡Siempre lea los archivos de configuración del proyecto ANTES de ejecutar este comando!**
|
|
18
|
+
|
|
19
|
+
### Archivos Obligatorios
|
|
20
|
+
|
|
21
|
+
1. **`context-manifest.json`** (raíz del orchestrator)
|
|
22
|
+
- Lista de repositorios del proyecto
|
|
23
|
+
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
24
|
+
- URLs y dependencias entre repositorios
|
|
25
|
+
|
|
26
|
+
2. **`ai.properties.md`** (raíz del orchestrator)
|
|
27
|
+
- Configuraciones del proyecto (`project_name`, `base_path`)
|
|
28
|
+
- Sistema de gestión de tareas (`task_management_system`)
|
|
29
|
+
- Credenciales y configuraciones específicas
|
|
30
|
+
|
|
31
|
+
### Cómo Leer
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Leer context-manifest.json
|
|
35
|
+
cat context-manifest.json
|
|
36
|
+
|
|
37
|
+
# 2. Leer ai.properties.md
|
|
38
|
+
cat ai.properties.md
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Información Esencial
|
|
42
|
+
|
|
43
|
+
Después de leer los archivos, tendrás:
|
|
44
|
+
- ✅ Lista completa de repositorios del proyecto
|
|
45
|
+
- ✅ Ubicación del repositorio de metaspecs
|
|
46
|
+
- ✅ Base path para localizar repositorios
|
|
47
|
+
- ✅ Sistema de gestión de tareas configurado
|
|
48
|
+
- ✅ Configuraciones específicas del proyecto
|
|
49
|
+
|
|
50
|
+
**🛑 NO continúe sin leer estos archivos!** Contienen información crítica para la correcta ejecución del comando.
|
|
51
|
+
|
|
52
|
+
## 📋 Pre-requisitos
|
|
16
53
|
|
|
17
54
|
- Haber ejecutado al menos uno de los comandos que generan decisiones:
|
|
18
55
|
- `/spec` - genera PRD con decisiones de producto
|
|
@@ -28,7 +65,7 @@ Analice los archivos de la sesión (`./.sessions/<ISSUE-ID>/`) para identificar
|
|
|
28
65
|
**Después de `/spec`** - Decisiones de Producto:
|
|
29
66
|
- Lea `./.sessions/<ISSUE-ID>/prd.md`
|
|
30
67
|
- Identifique decisiones en:
|
|
31
|
-
- Alcance (qué entra/no entra en la
|
|
68
|
+
- Alcance (qué entra/no entra en la funcionalidad)
|
|
32
69
|
- Personas atendidas (quién es el público objetivo)
|
|
33
70
|
- Métricas de éxito (cómo medir resultados)
|
|
34
71
|
- Requisitos no funcionales (performance, accesibilidad)
|
|
@@ -41,7 +78,7 @@ Analice los archivos de la sesión (`./.sessions/<ISSUE-ID>/`) para identificar
|
|
|
41
78
|
- Elección de bibliotecas o herramientas
|
|
42
79
|
- Patrones de implementación
|
|
43
80
|
- Estructura de datos
|
|
44
|
-
- Estrategia de
|
|
81
|
+
- Estrategia de pruebas
|
|
45
82
|
|
|
46
83
|
**Durante `/work`** - Decisiones de Implementación:
|
|
47
84
|
- Lea `./.sessions/<ISSUE-ID>/work.md`
|
|
@@ -92,7 +129,7 @@ Guarde en `./.sessions/<ISSUE-ID>/decisions.md`:
|
|
|
92
129
|
# Registro de Decisiones - [ISSUE-ID]
|
|
93
130
|
|
|
94
131
|
## Resumen
|
|
95
|
-
[Breve resumen de las principales decisiones tomadas en esta
|
|
132
|
+
[Breve resumen de las principales decisiones tomadas en esta funcionalidad]
|
|
96
133
|
|
|
97
134
|
## Decisiones de Producto
|
|
98
135
|
|
|
@@ -161,7 +198,7 @@ Periódicamente, revise las decisiones tomadas:
|
|
|
161
198
|
|
|
162
199
|
## 🎯 Resultado
|
|
163
200
|
|
|
164
|
-
Después de ejecutar este comando,
|
|
201
|
+
Después de ejecutar este comando, tendrás:
|
|
165
202
|
- Registro completo de decisiones en `./.sessions/<ISSUE-ID>/decisions.md`
|
|
166
203
|
- Trazabilidad de cada elección realizada
|
|
167
204
|
- Documentación para futuras referencias
|
|
@@ -14,6 +14,44 @@ pwd
|
|
|
14
14
|
|
|
15
15
|
Si no está en un workspace, pregunte al usuario qué workspace usar o si debe crear uno nuevo con `feature:start`.
|
|
16
16
|
|
|
17
|
+
## 📋 Configuración del Proyecto
|
|
18
|
+
|
|
19
|
+
**⚠️ IMPORTANTE: ¡Siempre lea los archivos de configuración del proyecto ANTES de ejecutar este comando!**
|
|
20
|
+
|
|
21
|
+
### Archivos Obligatorios
|
|
22
|
+
|
|
23
|
+
1. **`context-manifest.json`** (raíz del orchestrator)
|
|
24
|
+
- Lista de repositorios del proyecto
|
|
25
|
+
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
26
|
+
- URLs y dependencias entre repositorios
|
|
27
|
+
|
|
28
|
+
2. **`ai.properties.md`** (raíz del orchestrator)
|
|
29
|
+
- Configuraciones del proyecto (`project_name`, `base_path`)
|
|
30
|
+
- Sistema de gestión de tareas (`task_management_system`)
|
|
31
|
+
- Credenciales y configuraciones específicas
|
|
32
|
+
|
|
33
|
+
### Cómo Leer
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# 1. Leer context-manifest.json
|
|
37
|
+
cat context-manifest.json
|
|
38
|
+
|
|
39
|
+
# 2. Leer ai.properties.md
|
|
40
|
+
cat ai.properties.md
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Información Esencial
|
|
44
|
+
|
|
45
|
+
Después de leer los archivos, tendrá:
|
|
46
|
+
- ✅ Lista completa de repositorios del proyecto
|
|
47
|
+
- ✅ Ubicación del repositorio de metaspecs
|
|
48
|
+
- ✅ Base path para localizar repositorios
|
|
49
|
+
- ✅ Sistema de gestión de tareas configurado
|
|
50
|
+
- ✅ Configuraciones específicas del proyecto
|
|
51
|
+
|
|
52
|
+
**🛑 NO continúe sin leer estos archivos!** Contienen información crítica para la correcta ejecución del comando.
|
|
53
|
+
|
|
54
|
+
|
|
17
55
|
## 2. Cargar Configuración del Proyecto
|
|
18
56
|
|
|
19
57
|
Ya está en el orchestrator del proyecto (raíz del repositorio actual).
|
|
@@ -32,7 +70,7 @@ Lea el `context-manifest.json` del orchestrator para entender:
|
|
|
32
70
|
|
|
33
71
|
## 4. Cargar MetaSpecs
|
|
34
72
|
|
|
35
|
-
El repositorio de MetaSpecs es **separado** y está definido en `context-manifest.json` con `role: "metaspecs"`.
|
|
73
|
+
El repositorio de MetaSpecs es **separado** y está definido en el `context-manifest.json` con `role: "metaspecs"`.
|
|
36
74
|
|
|
37
75
|
**Localice el repositorio de metaspecs:**
|
|
38
76
|
|
|
@@ -46,14 +84,14 @@ El repositorio de MetaSpecs es **separado** y está definido en `context-manifes
|
|
|
46
84
|
1. **`README.md`** - Visión general del proyecto y estructura de documentación
|
|
47
85
|
2. **`index.md`** (en la raíz o en subcarpetas) - Índice de especificaciones disponibles
|
|
48
86
|
|
|
49
|
-
**Use los índices como referencia** para navegar hasta las especificaciones específicas que
|
|
87
|
+
**Use los índices como referencia** para navegar hasta las especificaciones específicas que necesite. No asuma que archivos específicos existen - siempre consulte los índices primero.
|
|
50
88
|
|
|
51
89
|
## 5. Cargar Sesión Actual (si existe)
|
|
52
90
|
|
|
53
91
|
Verifique si existe una sesión guardada para este workspace:
|
|
54
92
|
|
|
55
93
|
```bash
|
|
56
|
-
# Buscar sesión en orchestrator
|
|
94
|
+
# Buscar sesión en el orchestrator
|
|
57
95
|
ls -la .sessions/<ISSUE-ID>/ 2>/dev/null
|
|
58
96
|
```
|
|
59
97
|
|
|
@@ -68,18 +106,18 @@ Para cada repositorio presente en el workspace, lea:
|
|
|
68
106
|
## 7. Navegación Inteligente
|
|
69
107
|
|
|
70
108
|
- **Código**: Use herramientas de búsqueda (glob, grep) para localizar archivos relevantes
|
|
71
|
-
- **Documentación**: Use los índices de MetaSpecs como referencia
|
|
109
|
+
- **Documentación**: Use los índices de los MetaSpecs como referencia
|
|
72
110
|
- **Espere Instrucciones**: NO lea otros archivos ahora. Espere el próximo comando.
|
|
73
111
|
|
|
74
112
|
## 8. Principio Jidoka (Parar al Detectar Problemas)
|
|
75
113
|
|
|
76
|
-
Si detecta
|
|
114
|
+
Si detecta desalineamientos, conflictos o problemas:
|
|
77
115
|
1. 🛑 **PARE** inmediatamente
|
|
78
116
|
2. 📝 **DOCUMENTE** el problema encontrado
|
|
79
|
-
3. 💬 **ALERTE** al usuario antes de
|
|
117
|
+
3. 💬 **ALERTE** al usuario antes de continuar
|
|
80
118
|
|
|
81
119
|
---
|
|
82
120
|
|
|
83
121
|
**Argumentos proporcionados**: #$ARGUMENTS
|
|
84
122
|
|
|
85
|
-
**Estado**: Contexto cargado. Esperando próximo comando.
|
|
123
|
+
**Estado**: Contexto cargado. Esperando próximo comando.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Requirements Refinement
|
|
2
2
|
|
|
3
|
-
You are a product expert
|
|
3
|
+
You are a product expert responsible for helping to refine requirements for the project.
|
|
4
4
|
|
|
5
5
|
## ⚠️ IMPORTANT: This Command DOES NOT Implement Code
|
|
6
6
|
|
|
@@ -17,6 +17,44 @@ You are a product expert tasked with helping to refine requirements for the proj
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## 📋 Project Setup
|
|
21
|
+
|
|
22
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
23
|
+
|
|
24
|
+
### Mandatory Files
|
|
25
|
+
|
|
26
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
27
|
+
- List of project repositories
|
|
28
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
29
|
+
- URLs and dependencies between repositories
|
|
30
|
+
|
|
31
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
32
|
+
- Project settings (`project_name`, `base_path`)
|
|
33
|
+
- Task management system (`task_management_system`)
|
|
34
|
+
- Credentials and specific configurations
|
|
35
|
+
|
|
36
|
+
### How to Read
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# 1. Read context-manifest.json
|
|
40
|
+
cat context-manifest.json
|
|
41
|
+
|
|
42
|
+
# 2. Read ai.properties.md
|
|
43
|
+
cat ai.properties.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Essential Information
|
|
47
|
+
|
|
48
|
+
After reading the files, you will have:
|
|
49
|
+
- ✅ Complete list of project repositories
|
|
50
|
+
- ✅ Location of the metaspecs repository
|
|
51
|
+
- ✅ Base path to locate repositories
|
|
52
|
+
- ✅ Configured task management system
|
|
53
|
+
- ✅ Project-specific configurations
|
|
54
|
+
|
|
55
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for correct command execution.
|
|
56
|
+
|
|
57
|
+
|
|
20
58
|
## Objective
|
|
21
59
|
|
|
22
60
|
Transform an initial requirement into a refined and validated specification, ready to become a complete PRD.
|
|
@@ -26,7 +64,7 @@ Transform an initial requirement into a refined and validated specification, rea
|
|
|
26
64
|
### 1. Clarification Phase
|
|
27
65
|
|
|
28
66
|
Read the initial requirement and ask questions to achieve full clarity about:
|
|
29
|
-
- **
|
|
67
|
+
- **Goal**: Why build this?
|
|
30
68
|
- **Business Value**: Which metric/persona does it impact?
|
|
31
69
|
- **Scope**: What is included and what is NOT included?
|
|
32
70
|
- **Interactions**: Which existing features/components are affected?
|
|
@@ -35,7 +73,7 @@ Keep asking questions until you have complete understanding.
|
|
|
35
73
|
|
|
36
74
|
### 2. Validation Against Metaspecs
|
|
37
75
|
|
|
38
|
-
**IMPORTANT**: First read `ai.properties.md` to
|
|
76
|
+
**IMPORTANT**: First read `ai.properties.md` to get the `base_path`. The indexes should ALREADY be in context (you ran `/warm-up`). Consult the indexes and read ONLY relevant documents to validate the requirement.
|
|
39
77
|
|
|
40
78
|
**Validation Process**:
|
|
41
79
|
|
|
@@ -61,50 +99,50 @@ Keep asking questions until you have complete understanding.
|
|
|
61
99
|
- ✅ Follows existing business rules
|
|
62
100
|
- ⚠️ Identify conflicts or violations
|
|
63
101
|
|
|
64
|
-
**If
|
|
102
|
+
**If violations are identified**: 🛑 **STOP** and ask the user for clarification before proceeding (Jidoka Principle).
|
|
65
103
|
|
|
66
104
|
### 3. Summary and Approval Phase
|
|
67
105
|
|
|
68
106
|
Once you have gathered sufficient information and validated against metaspecs, present a structured summary with:
|
|
69
107
|
- **Feature**: Feature name
|
|
70
|
-
- **
|
|
108
|
+
- **Goal**: Why build it (1-2 sentences)
|
|
71
109
|
- **Business Value**: Metric, persona, roadmap phase (consult metaspecs)
|
|
72
|
-
- **Scope**: What
|
|
110
|
+
- **Scope**: What IS included and what IS NOT included
|
|
73
111
|
- **Affected Components**: List based on current architecture (consult technical metaspecs)
|
|
74
112
|
- **Validation against Metaspecs**: ✅ Approved / ⚠️ Attention needed
|
|
75
113
|
- **Effort Estimate**: Small (< 1 day) / Medium (1-3 days) / Large (3-5 days) / Very Large (> 5 days)
|
|
76
114
|
|
|
77
|
-
**Complexity Assessment and Suggestion to
|
|
115
|
+
**Complexity Assessment and Suggestion to Split**:
|
|
78
116
|
|
|
79
|
-
**If
|
|
80
|
-
- 🚨 **Suggest
|
|
81
|
-
- Explain the rationale for
|
|
82
|
-
- Propose a **logical**
|
|
117
|
+
**If implementation seems large** (> 5 days estimated effort):
|
|
118
|
+
- 🚨 **Suggest splitting into multiple smaller issues**
|
|
119
|
+
- Explain the rationale for splitting (e.g., "This feature involves 3 distinct areas that can be implemented independently")
|
|
120
|
+
- Propose a **logical** split based on:
|
|
83
121
|
- Independent functionalities
|
|
84
122
|
- Different repositories
|
|
85
123
|
- Application layers (backend, frontend, infra)
|
|
86
124
|
- Implementation phases (MVP, improvements, optimizations)
|
|
87
|
-
- Example
|
|
125
|
+
- Example split:
|
|
88
126
|
```
|
|
89
127
|
Original Issue: "Multi-channel notification system"
|
|
90
128
|
|
|
91
|
-
Suggested
|
|
129
|
+
Suggested Split:
|
|
92
130
|
- FIN-201: Queue and worker infrastructure (backend)
|
|
93
131
|
- FIN-202: Email notifications (backend + templates)
|
|
94
132
|
- FIN-203: Push notifications (backend + mobile)
|
|
95
133
|
- FIN-204: Notification preferences (frontend + backend)
|
|
96
134
|
```
|
|
97
|
-
- **Important**:
|
|
135
|
+
- **Important**: Final decision is the user's - they may accept the split or keep it as a single issue
|
|
98
136
|
|
|
99
|
-
**If the user accepts the
|
|
137
|
+
**If the user accepts the split**:
|
|
100
138
|
- Document each issue separately
|
|
101
139
|
- Add cross-references between related issues
|
|
102
140
|
- Suggest implementation order if dependencies exist
|
|
103
|
-
- Each
|
|
141
|
+
- Each split issue must go through the same refinement process
|
|
104
142
|
|
|
105
|
-
Request user approval and incorporate feedback if
|
|
143
|
+
Request user approval and incorporate feedback if needed.
|
|
106
144
|
|
|
107
|
-
**Tip**: You may search the codebase or internet before finalizing, if
|
|
145
|
+
**Tip**: You may search the codebase or internet before finalizing, if necessary.
|
|
108
146
|
|
|
109
147
|
### 4. Saving the Refined Requirements
|
|
110
148
|
|
|
@@ -131,23 +169,23 @@ Once the user approves, save the requirements:
|
|
|
131
169
|
- **ALWAYS overwrite** the existing body (do not append)
|
|
132
170
|
|
|
133
171
|
**Note**:
|
|
134
|
-
-
|
|
172
|
+
- Local backup is ALWAYS saved and complete
|
|
135
173
|
- If API error occurs, manually verify if the issue was updated in the task manager
|
|
136
174
|
|
|
137
175
|
**Output Template**:
|
|
138
176
|
|
|
139
|
-
**IMPORTANT**: The standard template for refined requirements may be documented in the metaspecs repository.
|
|
177
|
+
**IMPORTANT**: The standard template for refined requirements may be documented in the metaspecs repository. Consult `{base_path}/{metaspecs-id}/specs/refined/` or similar.
|
|
140
178
|
|
|
141
179
|
**FULL Template** (for local backup `.sessions/<ISSUE-ID>/refined.md`):
|
|
142
180
|
- **Metadata**: Issue, ID, Task Manager, Project, Date, Sprint, Priority
|
|
143
181
|
- **🎯 WHY**: Reasons, business value, metric, persona, strategic alignment
|
|
144
182
|
- **📦 WHAT**: Detailed features, affected components, integrations, full negative scope
|
|
145
|
-
- **🔧 HOW**: Stack, coding
|
|
183
|
+
- **🔧 HOW**: Stack, coding patterns, file structure, dependencies, implementation order, failure modes, performance/cost/UX considerations
|
|
146
184
|
- **✅ Validation against Metaspecs**: Consulted documents (business and technical), verified ADRs, validation result
|
|
147
185
|
- **📊 Success Metrics**: Technical, product/UX, acceptance criteria
|
|
148
186
|
- **🔄 Product Impact**: Alignment with objectives, enablers, mitigated risks
|
|
149
187
|
- **⚠️ Known Limitations**: MVP limitations
|
|
150
|
-
- **📝 Implementation Checklist**: Tasks by area (backend, frontend,
|
|
188
|
+
- **📝 Implementation Checklist**: Tasks by area (backend, frontend, tests, security, etc.)
|
|
151
189
|
|
|
152
190
|
**Task Manager Template**:
|
|
153
191
|
```markdown
|
|
@@ -155,7 +193,7 @@ Once the user approves, save the requirements:
|
|
|
155
193
|
|
|
156
194
|
**Sprint X** | **Y days** | **Priority**
|
|
157
195
|
|
|
158
|
-
##
|
|
196
|
+
## Goal
|
|
159
197
|
[1-2 paragraphs: what it is and why]
|
|
160
198
|
|
|
161
199
|
## Scope
|
|
@@ -176,12 +214,12 @@ Once the user approves, save the requirements:
|
|
|
176
214
|
❌ [item 1] ❌ [item 2] ❌ [item 3]
|
|
177
215
|
|
|
178
216
|
## Stack
|
|
179
|
-
[Tech stack
|
|
217
|
+
[Tech stack summarized by area]
|
|
180
218
|
|
|
181
219
|
## Structure
|
|
182
220
|
[SUMMARIZED file tree - main modules only]
|
|
183
221
|
|
|
184
|
-
## Failure Modes (
|
|
222
|
+
## Failure Modes (Avoid)
|
|
185
223
|
🔴 [critical 1] 🔴 [critical 2]
|
|
186
224
|
🟡 [medium 1] 🟡 [medium 2]
|
|
187
225
|
|
|
@@ -224,4 +262,4 @@ Once the user approves, save the requirements:
|
|
|
224
262
|
|
|
225
263
|
**Example**: `/spec FIN-3`
|
|
226
264
|
|
|
227
|
-
This command will create a
|
|
265
|
+
This command will create a PRD (Product Requirements Document) complete based on the refined requirements, detailing features, user stories, acceptance criteria, and final validations.
|
|
@@ -6,17 +6,54 @@ This command creates the complete specification (Product Requirements Document)
|
|
|
6
6
|
|
|
7
7
|
**This command is ONLY for requirements documentation:**
|
|
8
8
|
- ✅ Create PRD (Product Requirements Document)
|
|
9
|
-
- ✅ Update issue in task manager via MCP
|
|
9
|
+
- ✅ Update issue in the task manager via MCP
|
|
10
10
|
- ✅ **READ** files from main repositories (read-only)
|
|
11
11
|
- ❌ **DO NOT implement code**
|
|
12
12
|
- ❌ **DO NOT edit code files**
|
|
13
13
|
- ❌ **DO NOT checkout branches in main repositories**
|
|
14
|
-
- ❌ **DO NOT
|
|
14
|
+
- ❌ **DO NOT make commits**
|
|
15
15
|
|
|
16
16
|
**Next step**: `/start` to begin development.
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## 📋 Project Configuration
|
|
21
|
+
|
|
22
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
23
|
+
|
|
24
|
+
### Mandatory Files
|
|
25
|
+
|
|
26
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
27
|
+
- List of project repositories
|
|
28
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
29
|
+
- URLs and dependencies between repositories
|
|
30
|
+
|
|
31
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
32
|
+
- Project settings (`project_name`, `base_path`)
|
|
33
|
+
- Task management system (`task_management_system`)
|
|
34
|
+
- Credentials and specific configurations
|
|
35
|
+
|
|
36
|
+
### How to Read
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# 1. Read context-manifest.json
|
|
40
|
+
cat context-manifest.json
|
|
41
|
+
|
|
42
|
+
# 2. Read ai.properties.md
|
|
43
|
+
cat ai.properties.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Essential Information
|
|
47
|
+
|
|
48
|
+
After reading the files, you will have:
|
|
49
|
+
- ✅ Complete list of project repositories
|
|
50
|
+
- ✅ Location of the metaspecs repository
|
|
51
|
+
- ✅ Base path to locate repositories
|
|
52
|
+
- ✅ Configured task management system
|
|
53
|
+
- ✅ Project-specific configurations
|
|
54
|
+
|
|
55
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for correct command execution.
|
|
56
|
+
|
|
20
57
|
## 📋 Prerequisites
|
|
21
58
|
|
|
22
59
|
- Issue refined via `/refine`
|
|
@@ -29,7 +66,7 @@ This command creates the complete specification (Product Requirements Document)
|
|
|
29
66
|
2. Find the repository with `"role": "metaspecs"`
|
|
30
67
|
3. Read `ai.properties.md` to get the `base_path`
|
|
31
68
|
4. The metaspecs are located at: `{base_path}/{metaspecs-repo-id}/`
|
|
32
|
-
5. Read
|
|
69
|
+
5. Read relevant `index.md` files to ensure compliance with:
|
|
33
70
|
- System architecture
|
|
34
71
|
- Design patterns
|
|
35
72
|
- Technical constraints
|
|
@@ -133,7 +170,7 @@ Create a complete PRD that will serve as the single source of truth for implemen
|
|
|
133
170
|
- **External**: [external APIs, if any]
|
|
134
171
|
|
|
135
172
|
### Data Model
|
|
136
|
-
[Describe changes to
|
|
173
|
+
[Describe changes to data model, if any]
|
|
137
174
|
```
|
|
138
175
|
|
|
139
176
|
### 6. Acceptance Criteria
|
|
@@ -162,7 +199,7 @@ Create a complete PRD that will serve as the single source of truth for implemen
|
|
|
162
199
|
```markdown
|
|
163
200
|
## Out of Scope
|
|
164
201
|
|
|
165
|
-
Features that
|
|
202
|
+
Features that will NOT be implemented in this version:
|
|
166
203
|
- [Item 1]
|
|
167
204
|
- [Item 2]
|
|
168
205
|
|
|
@@ -11,6 +11,43 @@ Measure and document the quality of the implementation through objective metrics
|
|
|
11
11
|
- Performance
|
|
12
12
|
- Compliance with standards
|
|
13
13
|
|
|
14
|
+
## 📋 Project Configuration
|
|
15
|
+
|
|
16
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
17
|
+
|
|
18
|
+
### Required Files
|
|
19
|
+
|
|
20
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
21
|
+
- List of project repositories
|
|
22
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
23
|
+
- URLs and dependencies between repositories
|
|
24
|
+
|
|
25
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
26
|
+
- Project settings (`project_name`, `base_path`)
|
|
27
|
+
- Task management system (`task_management_system`)
|
|
28
|
+
- Credentials and specific configurations
|
|
29
|
+
|
|
30
|
+
### How to Read
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# 1. Read context-manifest.json
|
|
34
|
+
cat context-manifest.json
|
|
35
|
+
|
|
36
|
+
# 2. Read ai.properties.md
|
|
37
|
+
cat ai.properties.md
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Essential Information
|
|
41
|
+
|
|
42
|
+
After reading the files, you will have:
|
|
43
|
+
- ✅ Complete list of project repositories
|
|
44
|
+
- ✅ Location of the metaspecs repository
|
|
45
|
+
- ✅ Base path to locate repositories
|
|
46
|
+
- ✅ Configured task management system
|
|
47
|
+
- ✅ Project-specific configurations
|
|
48
|
+
|
|
49
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
50
|
+
|
|
14
51
|
## 📋 Prerequisites
|
|
15
52
|
|
|
16
53
|
- Implementation completed (after `/work`)
|
|
@@ -57,14 +94,14 @@ Document:
|
|
|
57
94
|
|
|
58
95
|
### 2. Code Complexity
|
|
59
96
|
|
|
60
|
-
Analyze the cyclomatic complexity of
|
|
97
|
+
Analyze the cyclomatic complexity of modified files:
|
|
61
98
|
|
|
62
99
|
```markdown
|
|
63
100
|
## Code Complexity
|
|
64
101
|
|
|
65
102
|
### Files with High Complexity
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
103
|
+
- **file1.ts**: Complexity 15 (recommended: < 10)
|
|
104
|
+
- **file2.ts**: Complexity 12
|
|
68
105
|
|
|
69
106
|
### Recommendations
|
|
70
107
|
- [Refactoring suggestion 1]
|
|
@@ -163,12 +200,12 @@ Identify technical debt introduced or resolved:
|
|
|
163
200
|
```markdown
|
|
164
201
|
## Technical Debt
|
|
165
202
|
|
|
166
|
-
### Introduced
|
|
203
|
+
### Debt Introduced
|
|
167
204
|
- **Item 1**: [Description and justification]
|
|
168
205
|
- Severity: High / Medium / Low
|
|
169
206
|
- Resolution plan: [when and how to resolve]
|
|
170
207
|
|
|
171
|
-
### Resolved
|
|
208
|
+
### Debt Resolved
|
|
172
209
|
- **Item 1**: [What was resolved]
|
|
173
210
|
- Impact: [improvement achieved]
|
|
174
211
|
```
|
|
@@ -185,7 +222,7 @@ Create `./.sessions/<ISSUE-ID>/metrics.md`:
|
|
|
185
222
|
|
|
186
223
|
## Executive Summary
|
|
187
224
|
|
|
188
|
-
- **Test Coverage**: X% (
|
|
225
|
+
- **Test Coverage**: X% (goal: Y%)
|
|
189
226
|
- **Code Quality**: ✅ / ⚠️ / ❌
|
|
190
227
|
- **Performance**: ✅ / ⚠️ / ❌
|
|
191
228
|
- **Technical Debt**: Low / Medium / High
|
|
@@ -210,7 +247,7 @@ Create `./.sessions/<ISSUE-ID>/metrics.md`:
|
|
|
210
247
|
|
|
211
248
|
## Approval for Merge
|
|
212
249
|
|
|
213
|
-
- [ ] Test coverage >=
|
|
250
|
+
- [ ] Test coverage >= goal
|
|
214
251
|
- [ ] No critical quality issues
|
|
215
252
|
- [ ] Performance within requirements
|
|
216
253
|
- [ ] Technical debt documented and approved
|
|
@@ -229,18 +266,18 @@ If the project has goals defined in metaspecs, validate:
|
|
|
229
266
|
- **Performance**: < 100ms
|
|
230
267
|
|
|
231
268
|
### Status
|
|
232
|
-
- Coverage: ✅ 85% (
|
|
233
|
-
- Complexity: ⚠️ 12 (
|
|
234
|
-
- Performance: ✅ 85ms (
|
|
269
|
+
- Coverage: ✅ 85% (goal: 80%)
|
|
270
|
+
- Complexity: ⚠️ 12 (goal: 10) - Justified
|
|
271
|
+
- Performance: ✅ 85ms (goal: 100ms)
|
|
235
272
|
```
|
|
236
273
|
|
|
237
274
|
## 🚨 Alerts
|
|
238
275
|
|
|
239
276
|
If any metric is out of acceptable range:
|
|
240
|
-
1. 🛑 **DOCUMENT** the
|
|
277
|
+
1. 🛑 **DOCUMENT** the issue
|
|
241
278
|
2. 💬 **ALERT** the user
|
|
242
279
|
3. 🔧 **PROPOSE** corrective actions
|
|
243
|
-
4. ⏸️ **CONSIDER** blocking the merge until
|
|
280
|
+
4. ⏸️ **CONSIDER** blocking the merge until resolution
|
|
244
281
|
|
|
245
282
|
---
|
|
246
283
|
|
|
@@ -252,11 +289,11 @@ If any metric is out of acceptable range:
|
|
|
252
289
|
|
|
253
290
|
---
|
|
254
291
|
|
|
255
|
-
## 🎯
|
|
292
|
+
## 🎯 Outcome
|
|
256
293
|
|
|
257
294
|
After running this command, you will have:
|
|
258
295
|
- Complete metrics report
|
|
259
296
|
- Comparison with baseline and goals
|
|
260
297
|
- Identification of quality issues
|
|
261
|
-
-
|
|
298
|
+
- Recommendations for actions
|
|
262
299
|
- Objective basis for merge approval
|