context-first-cli 2.1.6 → 2.2.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/dist/templates/commands/en/engineer/plan.md +48 -10
- package/dist/templates/commands/en/engineer/pr.md +46 -8
- package/dist/templates/commands/en/engineer/pre-pr.md +49 -11
- package/dist/templates/commands/en/engineer/start.md +60 -23
- package/dist/templates/commands/en/engineer/work.md +45 -7
- package/dist/templates/commands/en/products/check.md +48 -11
- package/dist/templates/commands/en/products/collect.md +51 -14
- package/dist/templates/commands/es/engineer/plan.md +60 -22
- package/dist/templates/commands/es/engineer/pr.md +47 -9
- package/dist/templates/commands/es/engineer/pre-pr.md +59 -21
- package/dist/templates/commands/es/engineer/start.md +52 -15
- package/dist/templates/commands/es/engineer/work.md +91 -53
- package/dist/templates/commands/es/products/check.md +48 -10
- package/dist/templates/commands/es/products/collect.md +55 -18
- package/dist/templates/commands/pt-BR/engineer/plan.md +38 -0
- package/dist/templates/commands/pt-BR/engineer/pr.md +38 -0
- package/dist/templates/commands/pt-BR/engineer/pre-pr.md +38 -0
- package/dist/templates/commands/pt-BR/engineer/start.md +38 -0
- package/dist/templates/commands/pt-BR/engineer/work.md +38 -0
- package/dist/templates/commands/pt-BR/products/check.md +38 -0
- package/dist/templates/commands/pt-BR/products/collect.md +38 -0
- package/dist/templates/commands/pt-BR/products/refine.md +38 -0
- package/dist/templates/commands/pt-BR/products/spec.md +38 -0
- package/dist/templates/commands/pt-BR/quality/metrics.md +38 -0
- package/dist/templates/commands/pt-BR/quality/observe.md +38 -0
- package/dist/templates/commands/pt-BR/warm-up.md +38 -0
- package/package.json +1 -1
- package/templates/commands/en/engineer/plan.md +48 -10
- package/templates/commands/en/engineer/pr.md +46 -8
- package/templates/commands/en/engineer/pre-pr.md +49 -11
- package/templates/commands/en/engineer/start.md +60 -23
- package/templates/commands/en/engineer/work.md +45 -7
- package/templates/commands/en/products/check.md +48 -11
- package/templates/commands/en/products/collect.md +51 -14
- package/templates/commands/es/engineer/plan.md +60 -22
- package/templates/commands/es/engineer/pr.md +47 -9
- package/templates/commands/es/engineer/pre-pr.md +59 -21
- package/templates/commands/es/engineer/start.md +52 -15
- package/templates/commands/es/engineer/work.md +91 -53
- package/templates/commands/es/products/check.md +48 -10
- package/templates/commands/es/products/collect.md +55 -18
- package/templates/commands/pt-BR/engineer/plan.md +38 -0
- package/templates/commands/pt-BR/engineer/pr.md +38 -0
- package/templates/commands/pt-BR/engineer/pre-pr.md +38 -0
- package/templates/commands/pt-BR/engineer/start.md +38 -0
- package/templates/commands/pt-BR/engineer/work.md +38 -0
- package/templates/commands/pt-BR/products/check.md +38 -0
- package/templates/commands/pt-BR/products/collect.md +38 -0
- package/templates/commands/pt-BR/products/refine.md +38 -0
- package/templates/commands/pt-BR/products/spec.md +38 -0
- package/templates/commands/pt-BR/quality/metrics.md +38 -0
- package/templates/commands/pt-BR/quality/observe.md +38 -0
- package/templates/commands/pt-BR/warm-up.md +38 -0
|
@@ -12,6 +12,43 @@ This command validates requirements, decisions, or implementations against the p
|
|
|
12
12
|
- ❌ **DO NOT modify code**
|
|
13
13
|
- ❌ **DO NOT modify `context.md` or `architecture.md`**
|
|
14
14
|
|
|
15
|
+
## 📋 Project Configuration
|
|
16
|
+
|
|
17
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
18
|
+
|
|
19
|
+
### Required Files
|
|
20
|
+
|
|
21
|
+
1. **`context-manifest.json`** (root of the orchestrator)
|
|
22
|
+
- List of project repositories
|
|
23
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
24
|
+
- URLs and dependencies between repositories
|
|
25
|
+
|
|
26
|
+
2. **`ai.properties.md`** (root of the orchestrator)
|
|
27
|
+
- Project settings (`project_name`, `base_path`)
|
|
28
|
+
- Task management system
|
|
29
|
+
- Credentials and specific configurations
|
|
30
|
+
|
|
31
|
+
### How to Read
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Read context-manifest.json
|
|
35
|
+
cat context-manifest.json
|
|
36
|
+
|
|
37
|
+
# 2. Read ai.properties.md
|
|
38
|
+
cat ai.properties.md
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Essential Information
|
|
42
|
+
|
|
43
|
+
After reading the files, you will have:
|
|
44
|
+
- ✅ Complete list of project repositories
|
|
45
|
+
- ✅ Location of the metaspecs repository
|
|
46
|
+
- ✅ Base path to locate repositories
|
|
47
|
+
- ✅ Configured task management system
|
|
48
|
+
- ✅ Specific project configurations
|
|
49
|
+
|
|
50
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
51
|
+
|
|
15
52
|
## 🎯 Objective
|
|
16
53
|
|
|
17
54
|
Ensure alignment with:
|
|
@@ -34,7 +71,7 @@ Run this command:
|
|
|
34
71
|
1. Read `context-manifest.json` from the orchestrator
|
|
35
72
|
2. Find the repository with `"role": "metaspecs"`
|
|
36
73
|
3. Read `ai.properties.md` to get the `base_path`
|
|
37
|
-
4. The metaspecs are located at: `{base_path}/{metaspecs-repo-id}
|
|
74
|
+
4. The metaspecs are located at: `{base_path}/{metaspecs-repo-id}/`
|
|
38
75
|
|
|
39
76
|
## 🔍 Validation Process
|
|
40
77
|
|
|
@@ -48,7 +85,7 @@ ls -la {base_path}/{metaspecs-repo-id}/
|
|
|
48
85
|
|
|
49
86
|
### 2. Business Validation
|
|
50
87
|
|
|
51
|
-
If
|
|
88
|
+
If business metaspecs exist (`MetaSpecs repository (business section)`):
|
|
52
89
|
|
|
53
90
|
```markdown
|
|
54
91
|
## Business Validation
|
|
@@ -56,25 +93,25 @@ If there are business metaspecs (`MetaSpecs repository (business section)`):
|
|
|
56
93
|
### Product Strategy
|
|
57
94
|
- **File**: `MetaSpecs repository (business section)PRODUCT_STRATEGY.md`
|
|
58
95
|
- **Validation**: [Is this feature aligned with the strategy?]
|
|
59
|
-
- **Status**: ✅ Aligned / ⚠️
|
|
96
|
+
- **Status**: ✅ Aligned / ⚠️ Partial / ❌ Misaligned
|
|
60
97
|
- **Notes**: [Observations]
|
|
61
98
|
|
|
62
99
|
### Personas
|
|
63
100
|
- **File**: `MetaSpecs repository (business section)CUSTOMER_PERSONAS.md`
|
|
64
101
|
- **Validation**: [Does it meet the correct persona?]
|
|
65
|
-
- **Status**: ✅ Aligned / ⚠️
|
|
102
|
+
- **Status**: ✅ Aligned / ⚠️ Partial / ❌ Misaligned
|
|
66
103
|
- **Notes**: [Observations]
|
|
67
104
|
|
|
68
105
|
### Metrics
|
|
69
106
|
- **File**: `MetaSpecs repository (business section)PRODUCT_METRICS.md`
|
|
70
107
|
- **Validation**: [Is the success metric documented?]
|
|
71
|
-
- **Status**: ✅ Aligned / ⚠️
|
|
108
|
+
- **Status**: ✅ Aligned / ⚠️ Partial / ❌ Misaligned
|
|
72
109
|
- **Notes**: [Observations]
|
|
73
110
|
```
|
|
74
111
|
|
|
75
112
|
### 3. Technical Validation
|
|
76
113
|
|
|
77
|
-
If
|
|
114
|
+
If technical metaspecs exist (`MetaSpecs repository (technical section)`):
|
|
78
115
|
|
|
79
116
|
```markdown
|
|
80
117
|
## Technical Validation
|
|
@@ -128,14 +165,14 @@ If there are technical metaspecs (`MetaSpecs repository (technical section)`):
|
|
|
128
165
|
|
|
129
166
|
### 5. Conflict Identification
|
|
130
167
|
|
|
131
|
-
If
|
|
168
|
+
If conflicts or misalignments exist:
|
|
132
169
|
|
|
133
170
|
```markdown
|
|
134
171
|
## Identified Conflicts
|
|
135
172
|
|
|
136
173
|
### Conflict 1: [Description]
|
|
137
174
|
- **Severity**: Critical / High / Medium / Low
|
|
138
|
-
- **Metaspec**: [
|
|
175
|
+
- **Metaspec**: [Violated file]
|
|
139
176
|
- **Description**: [Conflict details]
|
|
140
177
|
- **Recommendation**: [How to resolve]
|
|
141
178
|
|
|
@@ -151,7 +188,7 @@ If there are justified deviations:
|
|
|
151
188
|
## Justified Exceptions
|
|
152
189
|
|
|
153
190
|
### Exception 1: [Description]
|
|
154
|
-
- **Metaspec**: [
|
|
191
|
+
- **Metaspec**: [Deviated file]
|
|
155
192
|
- **Deviation**: [What is different]
|
|
156
193
|
- **Justification**: [Why it is necessary]
|
|
157
194
|
- **Approval**: [Who approved]
|
|
@@ -166,7 +203,7 @@ If there are justified deviations:
|
|
|
166
203
|
- Use the appropriate MCP to add the report to the issue:
|
|
167
204
|
- Add as a comment on the issue
|
|
168
205
|
- Update labels/tags according to the result (e.g., "validated", "needs-adjustment", "blocked")
|
|
169
|
-
- If
|
|
206
|
+
- If critical conflicts exist, update the issue status
|
|
170
207
|
- Inform the user: "✅ Validation report added to issue [ID]"
|
|
171
208
|
|
|
172
209
|
**FALLBACK: Create .md file only if MCP fails**
|
|
@@ -212,7 +249,7 @@ If critical conflicts are found:
|
|
|
212
249
|
2. 📝 **DOCUMENT** all conflicts
|
|
213
250
|
3. 💬 **ALERT** the user and stakeholders
|
|
214
251
|
4. **Via MCP**: Update issue status to "Blocked" or "Requires Adjustments"
|
|
215
|
-
5. 🔄 **ADJUST**
|
|
252
|
+
5. 🔄 **ADJUST** plan/implementation as needed
|
|
216
253
|
6. ✅ **REVALIDATE** after adjustments
|
|
217
254
|
|
|
218
255
|
---
|
|
@@ -18,20 +18,57 @@ You are a product specialist responsible for collecting and documenting new idea
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
+
## 📋 Project Setup
|
|
22
|
+
|
|
23
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
24
|
+
|
|
25
|
+
### Mandatory Files
|
|
26
|
+
|
|
27
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
28
|
+
- List of project repositories
|
|
29
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
30
|
+
- URLs and dependencies between repositories
|
|
31
|
+
|
|
32
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
33
|
+
- Project settings (`project_name`, `base_path`)
|
|
34
|
+
- Task management system (`task_management_system`)
|
|
35
|
+
- Credentials and specific configurations
|
|
36
|
+
|
|
37
|
+
### How to Read
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# 1. Read context-manifest.json
|
|
41
|
+
cat context-manifest.json
|
|
42
|
+
|
|
43
|
+
# 2. Read ai.properties.md
|
|
44
|
+
cat ai.properties.md
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Essential Information
|
|
48
|
+
|
|
49
|
+
After reading the files, you will have:
|
|
50
|
+
- ✅ Complete list of project repositories
|
|
51
|
+
- ✅ Location of the metaspecs repository
|
|
52
|
+
- ✅ Base path to locate repositories
|
|
53
|
+
- ✅ Configured task management system
|
|
54
|
+
- ✅ Project-specific configurations
|
|
55
|
+
|
|
56
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
57
|
+
|
|
21
58
|
## Project Context
|
|
22
59
|
|
|
23
60
|
Before starting, load the context by consulting:
|
|
24
61
|
|
|
25
|
-
1. **Automatically
|
|
62
|
+
1. **Automatically locate MetaSpecs**:
|
|
26
63
|
- Read `context-manifest.json` from the orchestrator
|
|
27
64
|
- Find the repository with `"role": "metaspecs"`
|
|
28
65
|
- Read `ai.properties.md` to get the `base_path`
|
|
29
|
-
- The metaspecs are at: `{base_path}/{metaspecs-repo-id}/`
|
|
66
|
+
- The metaspecs are located at: `{base_path}/{metaspecs-repo-id}/`
|
|
30
67
|
- Read the `index.md` files as reference
|
|
31
68
|
|
|
32
|
-
2. **Project
|
|
69
|
+
2. **Project structure**:
|
|
33
70
|
- `context-manifest.json` - List of repositories and their roles
|
|
34
|
-
- `README.md` of
|
|
71
|
+
- `README.md` of involved repositories
|
|
35
72
|
|
|
36
73
|
## Your Goal
|
|
37
74
|
|
|
@@ -87,14 +124,14 @@ Just ensure the idea is **adequately understood**.
|
|
|
87
124
|
- Suggested priority
|
|
88
125
|
|
|
89
126
|
3. **Complexity Assessment and Suggestion to Split**
|
|
90
|
-
|
|
127
|
+
|
|
91
128
|
Before finalizing, assess the issue complexity:
|
|
92
|
-
|
|
129
|
+
|
|
93
130
|
**If the implementation seems large** (> 5 days estimated effort):
|
|
94
131
|
- 🚨 **Suggest splitting into multiple smaller issues**
|
|
95
|
-
- Explain the rationale for
|
|
132
|
+
- Explain the rationale for the split (e.g., "This feature involves 3 distinct areas: authentication, processing, and notification")
|
|
96
133
|
- Propose a **logical** split (by functionality, repository, layer, etc.)
|
|
97
|
-
- Example
|
|
134
|
+
- Example split:
|
|
98
135
|
```
|
|
99
136
|
Original Issue: "Complete payment system"
|
|
100
137
|
|
|
@@ -104,7 +141,7 @@ Just ensure the idea is **adequately understood**.
|
|
|
104
141
|
- FIN-103: Confirmation webhook and notifications (backend + jobs)
|
|
105
142
|
```
|
|
106
143
|
- **Important**: The final decision is the user's - they can accept the split or keep it as a single issue
|
|
107
|
-
|
|
144
|
+
|
|
108
145
|
**If the user accepts the split**:
|
|
109
146
|
- Create each issue separately using the same process
|
|
110
147
|
- Add cross-references between related issues
|
|
@@ -112,10 +149,10 @@ Just ensure the idea is **adequately understood**.
|
|
|
112
149
|
|
|
113
150
|
4. **User Approval**
|
|
114
151
|
- Present the draft (or drafts, if split)
|
|
115
|
-
- Make adjustments
|
|
152
|
+
- Make adjustments according to feedback
|
|
116
153
|
- Obtain final approval
|
|
117
154
|
|
|
118
|
-
5. **Saving
|
|
155
|
+
5. **Issue Saving**
|
|
119
156
|
|
|
120
157
|
**PRIORITY 1: Use MCP (Model Context Protocol)**
|
|
121
158
|
|
|
@@ -134,8 +171,8 @@ Just ensure the idea is **adequately understood**.
|
|
|
134
171
|
|
|
135
172
|
**FALLBACK: Create .md file only if MCP fails**
|
|
136
173
|
|
|
137
|
-
If MCP is
|
|
138
|
-
- Create a file
|
|
174
|
+
If MCP is not available or fails:
|
|
175
|
+
- Create a file in `./.sessions/<ISSUE-ID>/collect.md`
|
|
139
176
|
- Use manual ID format: `LOCAL-001`, `LOCAL-002`, etc.
|
|
140
177
|
- Include date, type, and full content
|
|
141
178
|
- Inform the user: "⚠️ Issue saved locally in .sessions/ (task manager not available)"
|
|
@@ -157,7 +194,7 @@ Just ensure the idea is **adequately understood**.
|
|
|
157
194
|
|
|
158
195
|
**For Improvements**:
|
|
159
196
|
- What is working but can be improved?
|
|
160
|
-
-
|
|
197
|
+
- Which metric do we want to impact?
|
|
161
198
|
- Is it a technical or business optimization?
|
|
162
199
|
|
|
163
200
|
---
|
|
@@ -1,20 +1,58 @@
|
|
|
1
1
|
# Planificación Técnica
|
|
2
2
|
|
|
3
|
-
Este comando crea el plan técnico detallado para la implementación de la
|
|
3
|
+
Este comando crea el plan técnico detallado para la implementación de la funcionalidad.
|
|
4
4
|
|
|
5
|
-
## 📋
|
|
5
|
+
## 📋 Requisitos Previos
|
|
6
6
|
|
|
7
7
|
- PRD creado vía `/spec`
|
|
8
|
-
- Análisis inicial
|
|
8
|
+
- Análisis inicial realizado vía `/start`
|
|
9
9
|
- Archivos `context.md` y `architecture.md` creados y aprobados
|
|
10
10
|
|
|
11
|
+
## 📋 Configuración del Proyecto
|
|
12
|
+
|
|
13
|
+
**⚠️ IMPORTANTE: ¡Siempre lea los archivos de configuración del proyecto ANTES de ejecutar este comando!**
|
|
14
|
+
|
|
15
|
+
### Archivos Obligatorios
|
|
16
|
+
|
|
17
|
+
1. **`context-manifest.json`** (raíz del orquestador)
|
|
18
|
+
- Lista de repositorios del proyecto
|
|
19
|
+
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
20
|
+
- URLs y dependencias entre repositorios
|
|
21
|
+
|
|
22
|
+
2. **`ai.properties.md`** (raíz del orquestador)
|
|
23
|
+
- Configuraciones del proyecto (`project_name`, `base_path`)
|
|
24
|
+
- Sistema de gestión de tareas (`task_management_system`)
|
|
25
|
+
- Credenciales y configuraciones específicas
|
|
26
|
+
|
|
27
|
+
### Cómo Leer
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# 1. Leer context-manifest.json
|
|
31
|
+
cat context-manifest.json
|
|
32
|
+
|
|
33
|
+
# 2. Leer ai.properties.md
|
|
34
|
+
cat ai.properties.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Información Esencial
|
|
38
|
+
|
|
39
|
+
Después de leer los archivos, tendrás:
|
|
40
|
+
- ✅ Lista completa de repositorios del proyecto
|
|
41
|
+
- ✅ Ubicación del repositorio de metaspecs
|
|
42
|
+
- ✅ Base path para localizar repositorios
|
|
43
|
+
- ✅ Sistema de gestión de tareas configurado
|
|
44
|
+
- ✅ Configuraciones específicas del proyecto
|
|
45
|
+
|
|
46
|
+
**🛑 NO continúe sin leer estos archivos!** Contienen información crítica para la correcta ejecución del comando.
|
|
47
|
+
|
|
48
|
+
|
|
11
49
|
## 📍 IMPORTANTE: Entienda la Estructura
|
|
12
50
|
|
|
13
51
|
**Workspace**:
|
|
14
52
|
```
|
|
15
53
|
<orchestrator>/.sessions/<ISSUE-ID>/
|
|
16
|
-
├── repo-1/ # worktree (
|
|
17
|
-
├── repo-2/ # worktree (
|
|
54
|
+
├── repo-1/ # worktree (se usará en /work)
|
|
55
|
+
├── repo-2/ # worktree (se usará en /work)
|
|
18
56
|
├── context.md # contexto (inmutable - LEER)
|
|
19
57
|
├── architecture.md # arquitectura (inmutable - LEER)
|
|
20
58
|
└── plan.md # plan (mutable - CREAR)
|
|
@@ -29,7 +67,7 @@ Este comando crea el plan técnico detallado para la implementación de la featu
|
|
|
29
67
|
**REGLA DE ORO**:
|
|
30
68
|
- ✅ Lea `context.md` y `architecture.md` (inmutables)
|
|
31
69
|
- ✅ Cree `plan.md` en `.sessions/<ISSUE-ID>/`
|
|
32
|
-
- ✅ Lea código de los repositorios principales (
|
|
70
|
+
- ✅ Lea código de los repositorios principales (solo lectura)
|
|
33
71
|
- ❌ NUNCA haga checkout en los repositorios principales
|
|
34
72
|
- ❌ NUNCA modifique `context.md` o `architecture.md`
|
|
35
73
|
|
|
@@ -38,17 +76,17 @@ Este comando crea el plan técnico detallado para la implementación de la featu
|
|
|
38
76
|
**Este comando debe LEER pero NO MODIFICAR:**
|
|
39
77
|
- ✅ **LEER** `.sessions/<ISSUE-ID>/context.md` (inmutable)
|
|
40
78
|
- ✅ **LEER** `.sessions/<ISSUE-ID>/architecture.md` (inmutable)
|
|
41
|
-
- ✅ **CREAR** `.sessions/<ISSUE-ID>/plan.md` (mutable -
|
|
79
|
+
- ✅ **CREAR** `.sessions/<ISSUE-ID>/plan.md` (mutable - se actualizará durante `/work`)
|
|
42
80
|
- ❌ **NO modificar `context.md` o `architecture.md`**
|
|
43
81
|
|
|
44
82
|
## 📚 Cargar MetaSpecs
|
|
45
83
|
|
|
46
84
|
**Localizar MetaSpecs automáticamente**:
|
|
47
|
-
1. Lea `context-manifest.json` del
|
|
85
|
+
1. Lea `context-manifest.json` del orquestador
|
|
48
86
|
2. Encuentre el repositorio con `"role": "metaspecs"`
|
|
49
87
|
3. Lea `ai.properties.md` para obtener el `base_path`
|
|
50
88
|
4. El metaspecs está en: `{base_path}/{metaspecs-repo-id}/`
|
|
51
|
-
5. Lea los archivos `index.md` relevantes para
|
|
89
|
+
5. Lea los archivos `index.md` relevantes para asegurar conformidad con:
|
|
52
90
|
- Arquitectura del sistema
|
|
53
91
|
- Patrones de diseño y código
|
|
54
92
|
- Estructura de carpetas y archivos
|
|
@@ -63,14 +101,14 @@ Crear un plan técnico detallado que guiará la implementación, dividiendo el t
|
|
|
63
101
|
### 1. Visión General Técnica
|
|
64
102
|
|
|
65
103
|
```markdown
|
|
66
|
-
# Plan Técnico - [Título de la
|
|
104
|
+
# Plan Técnico - [Título de la Funcionalidad]
|
|
67
105
|
|
|
68
106
|
## Resumen
|
|
69
107
|
[Breve descripción técnica de lo que se implementará]
|
|
70
108
|
|
|
71
109
|
## Repositorios Involucrados
|
|
72
|
-
- **<repo-1>**: [
|
|
73
|
-
- **<repo-2>**: [
|
|
110
|
+
- **<repo-1>**: [Rol en esta funcionalidad]
|
|
111
|
+
- **<repo-2>**: [Rol en esta funcionalidad]
|
|
74
112
|
|
|
75
113
|
## Enfoque Técnico
|
|
76
114
|
[Estrategia general de implementación]
|
|
@@ -82,7 +120,7 @@ Crear un plan técnico detallado que guiará la implementación, dividiendo el t
|
|
|
82
120
|
## Arquitectura
|
|
83
121
|
|
|
84
122
|
### Diagrama de Componentes
|
|
85
|
-
[Descripción textual o ASCII
|
|
123
|
+
[Descripción textual o arte ASCII de los componentes y sus relaciones]
|
|
86
124
|
|
|
87
125
|
### Flujo de Datos
|
|
88
126
|
1. [Paso 1 del flujo]
|
|
@@ -91,7 +129,7 @@ Crear un plan técnico detallado que guiará la implementación, dividiendo el t
|
|
|
91
129
|
|
|
92
130
|
### Integraciones
|
|
93
131
|
- **<repo-1> → <repo-2>**: [Cómo se comunican]
|
|
94
|
-
- **Sistema → API Externa**: [Si
|
|
132
|
+
- **Sistema → API Externa**: [Si aplica]
|
|
95
133
|
```
|
|
96
134
|
|
|
97
135
|
### 3. Decisiones Técnicas
|
|
@@ -108,7 +146,7 @@ Crear un plan técnico detallado que guiará la implementación, dividiendo el t
|
|
|
108
146
|
**Justificación**: [Por qué elegimos esta opción]
|
|
109
147
|
|
|
110
148
|
### Decisión 2: [Título]
|
|
111
|
-
[Mismo formato
|
|
149
|
+
[Mismo formato anterior]
|
|
112
150
|
```
|
|
113
151
|
|
|
114
152
|
### 4. Plan de Implementación
|
|
@@ -137,10 +175,10 @@ Divida el trabajo en unidades pequeñas y secuenciales:
|
|
|
137
175
|
- **Estimación**: [tiempo estimado]
|
|
138
176
|
|
|
139
177
|
### Fase 2: [Nombre de la Fase]
|
|
140
|
-
[Mismo formato
|
|
178
|
+
[Mismo formato anterior]
|
|
141
179
|
|
|
142
180
|
### Fase 3: [Nombre de la Fase]
|
|
143
|
-
[Mismo formato
|
|
181
|
+
[Mismo formato anterior]
|
|
144
182
|
```
|
|
145
183
|
|
|
146
184
|
### 5. Estructura de Archivos
|
|
@@ -233,7 +271,7 @@ src/
|
|
|
233
271
|
- **Plan B**: [Alternativa si ocurre]
|
|
234
272
|
|
|
235
273
|
### Riesgo 2: [Descripción]
|
|
236
|
-
[Mismo formato
|
|
274
|
+
[Mismo formato anterior]
|
|
237
275
|
```
|
|
238
276
|
|
|
239
277
|
### 9. Checklist de Implementación
|
|
@@ -272,9 +310,9 @@ Guarde en `./.sessions/<ISSUE-ID>/plan.md`
|
|
|
272
310
|
Revise el plan verificando:
|
|
273
311
|
- Todas las tareas están claras y ejecutables
|
|
274
312
|
- Dependencias entre tareas están identificadas
|
|
275
|
-
-
|
|
276
|
-
-
|
|
277
|
-
-
|
|
313
|
+
- Las estimaciones son realistas
|
|
314
|
+
- Los riesgos fueron considerados
|
|
315
|
+
- La estrategia de pruebas es adecuada
|
|
278
316
|
|
|
279
317
|
---
|
|
280
318
|
|
|
@@ -288,7 +326,7 @@ Revise el plan verificando:
|
|
|
288
326
|
|
|
289
327
|
## 🎯 Próximo Paso
|
|
290
328
|
|
|
291
|
-
|
|
329
|
+
Después de la aprobación del plan:
|
|
292
330
|
|
|
293
331
|
```bash
|
|
294
332
|
/work
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Este comando crea Pull Requests para todos los repositorios modificados en el workspace.
|
|
4
4
|
|
|
5
|
-
## 📋 Requisitos
|
|
5
|
+
## 📋 Requisitos Previos
|
|
6
6
|
|
|
7
7
|
Antes de crear PRs, asegúrate de que:
|
|
8
8
|
- Ejecutaste `/pre-pr` y todas las validaciones pasaron
|
|
@@ -10,9 +10,47 @@ Antes de crear PRs, asegúrate de que:
|
|
|
10
10
|
- Todas las pruebas están pasando
|
|
11
11
|
- La documentación está actualizada
|
|
12
12
|
|
|
13
|
+
## 📋 Configuración del Proyecto
|
|
14
|
+
|
|
15
|
+
**⚠️ IMPORTANTE: ¡Siempre lee los archivos de configuración del proyecto ANTES de ejecutar este comando!**
|
|
16
|
+
|
|
17
|
+
### Archivos Obligatorios
|
|
18
|
+
|
|
19
|
+
1. **`context-manifest.json`** (raíz del orchestrator)
|
|
20
|
+
- Lista de repositorios del proyecto
|
|
21
|
+
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
22
|
+
- URLs y dependencias entre repositorios
|
|
23
|
+
|
|
24
|
+
2. **`ai.properties.md`** (raíz del orchestrator)
|
|
25
|
+
- Configuraciones del proyecto (`project_name`, `base_path`)
|
|
26
|
+
- Sistema de gestión de tareas (`task_management_system`)
|
|
27
|
+
- Credenciales y configuraciones específicas
|
|
28
|
+
|
|
29
|
+
### Cómo Leer
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# 1. Leer context-manifest.json
|
|
33
|
+
cat context-manifest.json
|
|
34
|
+
|
|
35
|
+
# 2. Leer ai.properties.md
|
|
36
|
+
cat ai.properties.md
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Información Esencial
|
|
40
|
+
|
|
41
|
+
Después de leer los archivos, tendrás:
|
|
42
|
+
- ✅ Lista completa de repositorios del proyecto
|
|
43
|
+
- ✅ Ubicación del repositorio de metaspecs
|
|
44
|
+
- ✅ Base path para localizar repositorios
|
|
45
|
+
- ✅ Sistema de gestión de tareas configurado
|
|
46
|
+
- ✅ Configuraciones específicas del proyecto
|
|
47
|
+
|
|
48
|
+
**🛑 NO continúes sin leer estos archivos!** ¡Contienen información crítica para la correcta ejecución del comando!
|
|
49
|
+
|
|
50
|
+
|
|
13
51
|
## 🛑 CRÍTICO: DÓNDE TRABAJAR
|
|
14
52
|
|
|
15
|
-
**⚠️ ATENCIÓN: Si necesitas hacer ajustes de última hora,
|
|
53
|
+
**⚠️ ATENCIÓN: Si necesitas hacer ajustes de última hora, TODO EL CÓDIGO DEBE SER CREADO DENTRO DEL WORKTREE!**
|
|
16
54
|
|
|
17
55
|
**✅ CORRECTO** - Trabajar dentro del worktree:
|
|
18
56
|
```
|
|
@@ -41,7 +79,7 @@ Para cada repositorio en el workspace, verifica:
|
|
|
41
79
|
```bash
|
|
42
80
|
cd <repositorio>
|
|
43
81
|
git status
|
|
44
|
-
git log origin/main..HEAD # Ver commits no
|
|
82
|
+
git log origin/main..HEAD # Ver commits no pusheados
|
|
45
83
|
```
|
|
46
84
|
|
|
47
85
|
### 2. Push de las Branches
|
|
@@ -54,7 +92,7 @@ git push origin <branch-name>
|
|
|
54
92
|
|
|
55
93
|
### 3. Crear Pull Requests
|
|
56
94
|
|
|
57
|
-
Para cada repositorio, crea un PR usando
|
|
95
|
+
Para cada repositorio, crea un PR usando GitHub CLI o interfaz web:
|
|
58
96
|
|
|
59
97
|
**Usando GitHub CLI**:
|
|
60
98
|
```bash
|
|
@@ -93,7 +131,7 @@ gh pr create --title "[ISSUE-ID] Título de la Feature" \
|
|
|
93
131
|
- [ ] Pruebas de integración pasando
|
|
94
132
|
- [ ] Documentación actualizada
|
|
95
133
|
- [ ] Sin breaking changes (o documentados)
|
|
96
|
-
- [ ] Revisado por pares (
|
|
134
|
+
- [ ] Revisado por pares (después de crear el PR)
|
|
97
135
|
|
|
98
136
|
## 🧪 Cómo Probar
|
|
99
137
|
|
|
@@ -101,9 +139,9 @@ gh pr create --title "[ISSUE-ID] Título de la Feature" \
|
|
|
101
139
|
2. [Paso 2]
|
|
102
140
|
3. [Resultado esperado]
|
|
103
141
|
|
|
104
|
-
## 📸
|
|
142
|
+
## 📸 Screenshots/Demos
|
|
105
143
|
|
|
106
|
-
[Si aplica, añade capturas o enlaces a demos]
|
|
144
|
+
[Si aplica, añade capturas de pantalla o enlaces a demos]
|
|
107
145
|
|
|
108
146
|
## 🔍 Notas para Revisores
|
|
109
147
|
|
|
@@ -135,12 +173,12 @@ Actualiza `./.sessions/<ISSUE-ID>/pr.md`:
|
|
|
135
173
|
## PRs Creados
|
|
136
174
|
|
|
137
175
|
### <repo-1>
|
|
138
|
-
- **
|
|
176
|
+
- **Link**: <URL del PR>
|
|
139
177
|
- **Estado**: Abierto
|
|
140
178
|
- **Commits**: X commits
|
|
141
179
|
|
|
142
180
|
### <repo-2>
|
|
143
|
-
- **
|
|
181
|
+
- **Link**: <URL del PR>
|
|
144
182
|
- **Estado**: Abierto
|
|
145
183
|
- **Commits**: Y commits
|
|
146
184
|
|