context-first-cli 2.1.5 → 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 +73 -12
- package/dist/templates/commands/en/engineer/pre-pr.md +69 -8
- 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 +71 -10
- package/dist/templates/commands/es/engineer/pre-pr.md +90 -29
- 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 +61 -0
- package/dist/templates/commands/pt-BR/engineer/pre-pr.md +61 -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 +73 -12
- package/templates/commands/en/engineer/pre-pr.md +69 -8
- 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 +71 -10
- package/templates/commands/es/engineer/pre-pr.md +90 -29
- 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 +61 -0
- package/templates/commands/pt-BR/engineer/pre-pr.md +61 -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
|
@@ -17,6 +17,44 @@ Este comando cria a especificação completa (Product Requirements Document) da
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
+
## 📋 Configuração do Projeto
|
|
21
|
+
|
|
22
|
+
**⚠️ IMPORTANTE: Sempre leia os arquivos de configuração do projeto ANTES de executar este comando!**
|
|
23
|
+
|
|
24
|
+
### Arquivos Obrigatórios
|
|
25
|
+
|
|
26
|
+
1. **`context-manifest.json`** (raiz do orchestrator)
|
|
27
|
+
- Lista de repositórios do projeto
|
|
28
|
+
- Roles de cada repositório (metaspecs, application, etc.)
|
|
29
|
+
- URLs e dependências entre repositórios
|
|
30
|
+
|
|
31
|
+
2. **`ai.properties.md`** (raiz do orchestrator)
|
|
32
|
+
- Configurações do projeto (`project_name`, `base_path`)
|
|
33
|
+
- Sistema de gerenciamento de tarefas (`task_management_system`)
|
|
34
|
+
- Credenciais e configurações específicas
|
|
35
|
+
|
|
36
|
+
### Como Ler
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# 1. Ler context-manifest.json
|
|
40
|
+
cat context-manifest.json
|
|
41
|
+
|
|
42
|
+
# 2. Ler ai.properties.md
|
|
43
|
+
cat ai.properties.md
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Informações Essenciais
|
|
47
|
+
|
|
48
|
+
Após ler os arquivos, você terá:
|
|
49
|
+
- ✅ Lista completa de repositórios do projeto
|
|
50
|
+
- ✅ Localização do repositório de metaspecs
|
|
51
|
+
- ✅ Base path para localizar repositórios
|
|
52
|
+
- ✅ Sistema de task management configurado
|
|
53
|
+
- ✅ Configurações específicas do projeto
|
|
54
|
+
|
|
55
|
+
**🛑 NÃO prossiga sem ler estes arquivos!** Eles contêm informações críticas para a execução correta do comando.
|
|
56
|
+
|
|
57
|
+
|
|
20
58
|
## 📋 Pré-requisitos
|
|
21
59
|
|
|
22
60
|
- Issue refinada via `/refine`
|
|
@@ -11,6 +11,44 @@ Medir e documentar a qualidade da implementação através de métricas objetiva
|
|
|
11
11
|
- Performance
|
|
12
12
|
- Conformidade com padrões
|
|
13
13
|
|
|
14
|
+
## 📋 Configuração do Projeto
|
|
15
|
+
|
|
16
|
+
**⚠️ IMPORTANTE: Sempre leia os arquivos de configuração do projeto ANTES de executar este comando!**
|
|
17
|
+
|
|
18
|
+
### Arquivos Obrigatórios
|
|
19
|
+
|
|
20
|
+
1. **`context-manifest.json`** (raiz do orchestrator)
|
|
21
|
+
- Lista de repositórios do projeto
|
|
22
|
+
- Roles de cada repositório (metaspecs, application, etc.)
|
|
23
|
+
- URLs e dependências entre repositórios
|
|
24
|
+
|
|
25
|
+
2. **`ai.properties.md`** (raiz do orchestrator)
|
|
26
|
+
- Configurações do projeto (`project_name`, `base_path`)
|
|
27
|
+
- Sistema de gerenciamento de tarefas (`task_management_system`)
|
|
28
|
+
- Credenciais e configurações específicas
|
|
29
|
+
|
|
30
|
+
### Como Ler
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# 1. Ler context-manifest.json
|
|
34
|
+
cat context-manifest.json
|
|
35
|
+
|
|
36
|
+
# 2. Ler ai.properties.md
|
|
37
|
+
cat ai.properties.md
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Informações Essenciais
|
|
41
|
+
|
|
42
|
+
Após ler os arquivos, você terá:
|
|
43
|
+
- ✅ Lista completa de repositórios do projeto
|
|
44
|
+
- ✅ Localização do repositório de metaspecs
|
|
45
|
+
- ✅ Base path para localizar repositórios
|
|
46
|
+
- ✅ Sistema de task management configurado
|
|
47
|
+
- ✅ Configurações específicas do projeto
|
|
48
|
+
|
|
49
|
+
**🛑 NÃO prossiga sem ler estes arquivos!** Eles contêm informações críticas para a execução correta do comando.
|
|
50
|
+
|
|
51
|
+
|
|
14
52
|
## 📋 Pré-requisitos
|
|
15
53
|
|
|
16
54
|
- Implementação concluída (após `/work`)
|
|
@@ -12,6 +12,44 @@ Criar registro estruturado de decisões técnicas e de produto, garantindo:
|
|
|
12
12
|
|
|
13
13
|
**IMPORTANTE**: Este comando NÃO gera decisões novas. Ele apenas REGISTRA decisões que já foram tomadas no processo de desenvolvimento.
|
|
14
14
|
|
|
15
|
+
## 📋 Configuração do Projeto
|
|
16
|
+
|
|
17
|
+
**⚠️ IMPORTANTE: Sempre leia os arquivos de configuração do projeto ANTES de executar este comando!**
|
|
18
|
+
|
|
19
|
+
### Arquivos Obrigatórios
|
|
20
|
+
|
|
21
|
+
1. **`context-manifest.json`** (raiz do orchestrator)
|
|
22
|
+
- Lista de repositórios do projeto
|
|
23
|
+
- Roles de cada repositório (metaspecs, application, etc.)
|
|
24
|
+
- URLs e dependências entre repositórios
|
|
25
|
+
|
|
26
|
+
2. **`ai.properties.md`** (raiz do orchestrator)
|
|
27
|
+
- Configurações do projeto (`project_name`, `base_path`)
|
|
28
|
+
- Sistema de gerenciamento de tarefas (`task_management_system`)
|
|
29
|
+
- Credenciais e configurações específicas
|
|
30
|
+
|
|
31
|
+
### Como Ler
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# 1. Ler context-manifest.json
|
|
35
|
+
cat context-manifest.json
|
|
36
|
+
|
|
37
|
+
# 2. Ler ai.properties.md
|
|
38
|
+
cat ai.properties.md
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Informações Essenciais
|
|
42
|
+
|
|
43
|
+
Após ler os arquivos, você terá:
|
|
44
|
+
- ✅ Lista completa de repositórios do projeto
|
|
45
|
+
- ✅ Localização do repositório de metaspecs
|
|
46
|
+
- ✅ Base path para localizar repositórios
|
|
47
|
+
- ✅ Sistema de task management configurado
|
|
48
|
+
- ✅ Configurações específicas do projeto
|
|
49
|
+
|
|
50
|
+
**🛑 NÃO prossiga sem ler estes arquivos!** Eles contêm informações críticas para a execução correta do comando.
|
|
51
|
+
|
|
52
|
+
|
|
15
53
|
## 📋 Pré-requisitos
|
|
16
54
|
|
|
17
55
|
- Executou pelo menos um dos comandos que geram decisões:
|
|
@@ -14,6 +14,44 @@ pwd
|
|
|
14
14
|
|
|
15
15
|
Se não estiver em um workspace, pergunte ao usuário qual workspace usar ou se deve criar um novo com `feature:start`.
|
|
16
16
|
|
|
17
|
+
## 📋 Configuração do Projeto
|
|
18
|
+
|
|
19
|
+
**⚠️ IMPORTANTE: Sempre leia os arquivos de configuração do projeto ANTES de executar este comando!**
|
|
20
|
+
|
|
21
|
+
### Arquivos Obrigatórios
|
|
22
|
+
|
|
23
|
+
1. **`context-manifest.json`** (raiz do orchestrator)
|
|
24
|
+
- Lista de repositórios do projeto
|
|
25
|
+
- Roles de cada repositório (metaspecs, application, etc.)
|
|
26
|
+
- URLs e dependências entre repositórios
|
|
27
|
+
|
|
28
|
+
2. **`ai.properties.md`** (raiz do orchestrator)
|
|
29
|
+
- Configurações do projeto (`project_name`, `base_path`)
|
|
30
|
+
- Sistema de gerenciamento de tarefas (`task_management_system`)
|
|
31
|
+
- Credenciais e configurações específicas
|
|
32
|
+
|
|
33
|
+
### Como Ler
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# 1. Ler context-manifest.json
|
|
37
|
+
cat context-manifest.json
|
|
38
|
+
|
|
39
|
+
# 2. Ler ai.properties.md
|
|
40
|
+
cat ai.properties.md
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Informações Essenciais
|
|
44
|
+
|
|
45
|
+
Após ler os arquivos, você terá:
|
|
46
|
+
- ✅ Lista completa de repositórios do projeto
|
|
47
|
+
- ✅ Localização do repositório de metaspecs
|
|
48
|
+
- ✅ Base path para localizar repositórios
|
|
49
|
+
- ✅ Sistema de task management configurado
|
|
50
|
+
- ✅ Configurações específicas do projeto
|
|
51
|
+
|
|
52
|
+
**🛑 NÃO prossiga sem ler estes arquivos!** Eles contêm informações críticas para a execução correta do comando.
|
|
53
|
+
|
|
54
|
+
|
|
17
55
|
## 2. Carregar Configuração do Projeto
|
|
18
56
|
|
|
19
57
|
Você já está no orchestrator do projeto (raiz do repositório atual).
|
package/package.json
CHANGED
|
@@ -1,12 +1,50 @@
|
|
|
1
1
|
# Technical Planning
|
|
2
2
|
|
|
3
|
-
This command creates the detailed technical plan for feature implementation.
|
|
3
|
+
This command creates the detailed technical plan for the feature implementation.
|
|
4
4
|
|
|
5
5
|
## 📋 Prerequisites
|
|
6
6
|
|
|
7
7
|
- PRD created via `/spec`
|
|
8
8
|
- Initial analysis done via `/start`
|
|
9
|
-
-
|
|
9
|
+
- `context.md` and `architecture.md` files created and approved
|
|
10
|
+
|
|
11
|
+
## 📋 Project Setup
|
|
12
|
+
|
|
13
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
14
|
+
|
|
15
|
+
### Mandatory Files
|
|
16
|
+
|
|
17
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
18
|
+
- List of project repositories
|
|
19
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
20
|
+
- URLs and dependencies between repositories
|
|
21
|
+
|
|
22
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
23
|
+
- Project settings (`project_name`, `base_path`)
|
|
24
|
+
- Task management system (`task_management_system`)
|
|
25
|
+
- Credentials and specific configurations
|
|
26
|
+
|
|
27
|
+
### How to Read
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# 1. Read context-manifest.json
|
|
31
|
+
cat context-manifest.json
|
|
32
|
+
|
|
33
|
+
# 2. Read ai.properties.md
|
|
34
|
+
cat ai.properties.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Essential Information
|
|
38
|
+
|
|
39
|
+
After reading the files, you will have:
|
|
40
|
+
- ✅ Complete list of project repositories
|
|
41
|
+
- ✅ Location of the metaspecs repository
|
|
42
|
+
- ✅ Base path to locate repositories
|
|
43
|
+
- ✅ Configured task management system
|
|
44
|
+
- ✅ Project-specific configurations
|
|
45
|
+
|
|
46
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
47
|
+
|
|
10
48
|
|
|
11
49
|
## 📍 IMPORTANT: Understand the Structure
|
|
12
50
|
|
|
@@ -46,17 +84,17 @@ This command creates the detailed technical plan for feature implementation.
|
|
|
46
84
|
**Automatically locate MetaSpecs**:
|
|
47
85
|
1. Read `context-manifest.json` from the orchestrator
|
|
48
86
|
2. Find the repository with `"role": "metaspecs"`
|
|
49
|
-
3. Read `ai.properties.md` to
|
|
50
|
-
4. The metaspecs are
|
|
87
|
+
3. Read `ai.properties.md` to get the `base_path`
|
|
88
|
+
4. The metaspecs are at: `{base_path}/{metaspecs-repo-id}/`
|
|
51
89
|
5. Read the relevant `index.md` files to ensure compliance with:
|
|
52
90
|
- System architecture
|
|
53
|
-
- Design and code
|
|
91
|
+
- Design and code patterns
|
|
54
92
|
- Folder and file structure
|
|
55
93
|
- Naming conventions
|
|
56
94
|
|
|
57
|
-
## 🎯
|
|
95
|
+
## 🎯 Goal
|
|
58
96
|
|
|
59
|
-
Create a detailed technical plan that will guide the implementation,
|
|
97
|
+
Create a detailed technical plan that will guide the implementation, dividing the work into smaller, sequential units.
|
|
60
98
|
|
|
61
99
|
## 📝 Plan Structure
|
|
62
100
|
|
|
@@ -113,13 +151,13 @@ Create a detailed technical plan that will guide the implementation, breaking th
|
|
|
113
151
|
|
|
114
152
|
### 4. Implementation Plan
|
|
115
153
|
|
|
116
|
-
|
|
154
|
+
Divide the work into small, sequential units:
|
|
117
155
|
|
|
118
156
|
```markdown
|
|
119
157
|
## Implementation Plan
|
|
120
158
|
|
|
121
159
|
### Phase 1: [Phase Name]
|
|
122
|
-
**
|
|
160
|
+
**Goal**: [What will be achieved in this phase]
|
|
123
161
|
**Repositories**: [affected repos]
|
|
124
162
|
|
|
125
163
|
#### Task 1.1: [Description]
|
|
@@ -265,7 +303,7 @@ src/
|
|
|
265
303
|
|
|
266
304
|
## 📄 Saving the Plan
|
|
267
305
|
|
|
268
|
-
Save in `./.sessions/<ISSUE-ID>/plan.md`
|
|
306
|
+
Save it in `./.sessions/<ISSUE-ID>/plan.md`
|
|
269
307
|
|
|
270
308
|
## 🔍 Review
|
|
271
309
|
|
|
@@ -10,32 +10,93 @@ Before creating PRs, make sure that:
|
|
|
10
10
|
- All tests are passing
|
|
11
11
|
- Documentation is up to date
|
|
12
12
|
|
|
13
|
+
## 📋 Project Configuration
|
|
14
|
+
|
|
15
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
16
|
+
|
|
17
|
+
### Required Files
|
|
18
|
+
|
|
19
|
+
1. **`context-manifest.json`** (root of the orchestrator)
|
|
20
|
+
- List of project repositories
|
|
21
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
22
|
+
- URLs and dependencies between repositories
|
|
23
|
+
|
|
24
|
+
2. **`ai.properties.md`** (root of the orchestrator)
|
|
25
|
+
- Project settings (`project_name`, `base_path`)
|
|
26
|
+
- Task management system (`task_management_system`)
|
|
27
|
+
- Credentials and specific configurations
|
|
28
|
+
|
|
29
|
+
### How to Read
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
# 1. Read context-manifest.json
|
|
33
|
+
cat context-manifest.json
|
|
34
|
+
|
|
35
|
+
# 2. Read ai.properties.md
|
|
36
|
+
cat ai.properties.md
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Essential Information
|
|
40
|
+
|
|
41
|
+
After reading the files, you will have:
|
|
42
|
+
- ✅ Complete list of project repositories
|
|
43
|
+
- ✅ Location of the metaspecs repository
|
|
44
|
+
- ✅ Base path to locate repositories
|
|
45
|
+
- ✅ Configured task management system
|
|
46
|
+
- ✅ Specific project configurations
|
|
47
|
+
|
|
48
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## 🛑 CRITICAL: WHERE TO WORK
|
|
52
|
+
|
|
53
|
+
**⚠️ ATTENTION: If you need to make last-minute adjustments, ALL CODE MUST BE CREATED INSIDE THE WORKTREE!**
|
|
54
|
+
|
|
55
|
+
**✅ CORRECT** - Work inside the worktree:
|
|
56
|
+
```
|
|
57
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/src/file.ts ✅
|
|
58
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/README.md ✅
|
|
59
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/CHANGELOG.md ✅
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**❌ WRONG** - NEVER create code outside the worktree:
|
|
63
|
+
```
|
|
64
|
+
<orchestrator>/.sessions/file.ts ❌
|
|
65
|
+
<orchestrator>/.sessions/<ISSUE-ID>/file.ts ❌
|
|
66
|
+
{base_path}/<repo-name>/file.ts ❌ (main repository!)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**ABSOLUTE RULE**:
|
|
70
|
+
- 🛑 **Any code adjustment** (docs, changelog, fixes) **MUST be in** `<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/`
|
|
71
|
+
- 🛑 **NEVER modify** the main repository at `{base_path}/<repo-name>/`
|
|
72
|
+
- ✅ **Work ONLY** inside the worktree of the specific repository
|
|
73
|
+
|
|
13
74
|
## 🎯 PR Creation Process
|
|
14
75
|
|
|
15
76
|
### 1. Identify Modified Repositories
|
|
16
77
|
|
|
17
78
|
For each repository in the workspace, check:
|
|
18
79
|
```bash
|
|
19
|
-
cd <
|
|
80
|
+
cd <repository>
|
|
20
81
|
git status
|
|
21
|
-
git log origin/main..HEAD #
|
|
82
|
+
git log origin/main..HEAD # See unpushed commits
|
|
22
83
|
```
|
|
23
84
|
|
|
24
85
|
### 2. Push Branches
|
|
25
86
|
|
|
26
87
|
For each modified repository:
|
|
27
88
|
```bash
|
|
28
|
-
cd <
|
|
89
|
+
cd <repository>
|
|
29
90
|
git push origin <branch-name>
|
|
30
91
|
```
|
|
31
92
|
|
|
32
93
|
### 3. Create Pull Requests
|
|
33
94
|
|
|
34
|
-
For each repository, create a PR using GitHub CLI or
|
|
95
|
+
For each repository, create a PR using GitHub CLI or web interface:
|
|
35
96
|
|
|
36
97
|
**Using GitHub CLI**:
|
|
37
98
|
```bash
|
|
38
|
-
cd <
|
|
99
|
+
cd <repository>
|
|
39
100
|
gh pr create --title "[ISSUE-ID] Feature Title" \
|
|
40
101
|
--body "$(cat ../.sessions/<ISSUE-ID>/pr-description.md)" \
|
|
41
102
|
--base main
|
|
@@ -50,7 +111,7 @@ gh pr create --title "[ISSUE-ID] Feature Title" \
|
|
|
50
111
|
|
|
51
112
|
## 📝 Changes
|
|
52
113
|
|
|
53
|
-
### Repository: <
|
|
114
|
+
### Repository: <repo-name>
|
|
54
115
|
|
|
55
116
|
- [Change 1]
|
|
56
117
|
- [Change 2]
|
|
@@ -91,15 +152,15 @@ gh pr create --title "[ISSUE-ID] Feature Title" \
|
|
|
91
152
|
### 4. Link PRs
|
|
92
153
|
|
|
93
154
|
If there are multiple PRs (one per repository):
|
|
94
|
-
- Add cross-links between
|
|
155
|
+
- Add cross-links between PRs
|
|
95
156
|
- Document the recommended merge order
|
|
96
157
|
- Indicate dependencies between PRs
|
|
97
158
|
|
|
98
159
|
### 5. Update Issue in Task Manager
|
|
99
160
|
|
|
100
|
-
If
|
|
161
|
+
If task manager is configured:
|
|
101
162
|
- Move the issue to "In Review" or "PR Open"
|
|
102
|
-
- Add PR links
|
|
163
|
+
- Add PR links to the issue
|
|
103
164
|
- Add a comment summarizing the changes
|
|
104
165
|
|
|
105
166
|
### 6. Session Documentation
|
|
@@ -140,13 +201,13 @@ Before requesting review:
|
|
|
140
201
|
- [ ] PRs linked to each other
|
|
141
202
|
- [ ] Issue updated in task manager
|
|
142
203
|
- [ ] Tests passing in CI/CD
|
|
143
|
-
- [ ]
|
|
204
|
+
- [ ] Complete session documentation
|
|
144
205
|
|
|
145
206
|
## 📢 Communication
|
|
146
207
|
|
|
147
208
|
Notify the team about the PRs:
|
|
148
209
|
- Mention relevant reviewers
|
|
149
|
-
- Highlight critical
|
|
210
|
+
- Highlight critical or breaking changes
|
|
150
211
|
- Indicate urgency if applicable
|
|
151
212
|
|
|
152
213
|
---
|
|
@@ -161,7 +222,7 @@ Notify the team about the PRs:
|
|
|
161
222
|
|
|
162
223
|
## 🎯 Next Steps
|
|
163
224
|
|
|
164
|
-
1. Await PR
|
|
225
|
+
1. Await PR reviews
|
|
165
226
|
2. Respond to comments and make adjustments
|
|
166
227
|
3. After approval, merge in the recommended order
|
|
167
228
|
4. Run `context-cli feature:end <ISSUE-ID>` to clean the workspace
|
|
@@ -4,13 +4,74 @@ This command validates that everything is ready to create Pull Requests.
|
|
|
4
4
|
|
|
5
5
|
## 📋 Prerequisites
|
|
6
6
|
|
|
7
|
-
- Complete implementation (all `/plan`
|
|
7
|
+
- Complete implementation (all tasks from `/plan` executed)
|
|
8
8
|
- All commits made
|
|
9
9
|
- Clean and organized workspace
|
|
10
10
|
|
|
11
|
+
## 📋 Project Configuration
|
|
12
|
+
|
|
13
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
14
|
+
|
|
15
|
+
### Required Files
|
|
16
|
+
|
|
17
|
+
1. **`context-manifest.json`** (orchestrator root)
|
|
18
|
+
- List of project repositories
|
|
19
|
+
- Roles of each repository (metaspecs, application, etc.)
|
|
20
|
+
- URLs and dependencies between repositories
|
|
21
|
+
|
|
22
|
+
2. **`ai.properties.md`** (orchestrator root)
|
|
23
|
+
- Project settings (`project_name`, `base_path`)
|
|
24
|
+
- Task management system (`task_management_system`)
|
|
25
|
+
- Credentials and specific configurations
|
|
26
|
+
|
|
27
|
+
### How to Read
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# 1. Read context-manifest.json
|
|
31
|
+
cat context-manifest.json
|
|
32
|
+
|
|
33
|
+
# 2. Read ai.properties.md
|
|
34
|
+
cat ai.properties.md
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Essential Information
|
|
38
|
+
|
|
39
|
+
After reading the files, you will have:
|
|
40
|
+
- ✅ Complete list of project repositories
|
|
41
|
+
- ✅ Location of the metaspecs repository
|
|
42
|
+
- ✅ Base path to locate repositories
|
|
43
|
+
- ✅ Configured task management system
|
|
44
|
+
- ✅ Project-specific configurations
|
|
45
|
+
|
|
46
|
+
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
47
|
+
|
|
48
|
+
|
|
11
49
|
## 🎯 Objective
|
|
12
50
|
|
|
13
|
-
Ensure that the implementation is complete, tested, and ready for review before creating
|
|
51
|
+
Ensure that the implementation is complete, tested, and ready for review before creating PRs.
|
|
52
|
+
|
|
53
|
+
## 🛑 CRITICAL: WHERE TO WORK
|
|
54
|
+
|
|
55
|
+
**⚠️ ATTENTION: ALL CODE (tests, fixes, adjustments) MUST BE CREATED INSIDE THE WORKTREE!**
|
|
56
|
+
|
|
57
|
+
**✅ CORRECT** - Work inside the worktree:
|
|
58
|
+
```
|
|
59
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/src/file.ts ✅
|
|
60
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/tests/test.ts ✅
|
|
61
|
+
<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/.eslintrc.js ✅
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**❌ WRONG** - NEVER create code outside the worktree:
|
|
65
|
+
```
|
|
66
|
+
<orchestrator>/.sessions/test.ts ❌
|
|
67
|
+
<orchestrator>/.sessions/<ISSUE-ID>/test.ts ❌
|
|
68
|
+
{base_path}/<repo-name>/test.ts ❌ (main repository!)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**ABSOLUTE RULE**:
|
|
72
|
+
- 🛑 **ALL code** (tests, fixes, configurations) **MUST be in** `<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/`
|
|
73
|
+
- 🛑 **NEVER modify** the main repository in `{base_path}/<repo-name>/`
|
|
74
|
+
- ✅ **Work ONLY** inside the worktree of the specific repository
|
|
14
75
|
|
|
15
76
|
## ✅ Validation Checklist
|
|
16
77
|
|
|
@@ -22,7 +83,7 @@ Ensure that the implementation is complete, tested, and ready for review before
|
|
|
22
83
|
- [ ] All plan tasks have been executed
|
|
23
84
|
- [ ] All functional requirements from the PRD have been implemented
|
|
24
85
|
- [ ] All acceptance criteria have been met
|
|
25
|
-
- [ ] No functionality is
|
|
86
|
+
- [ ] No functionality is half-done
|
|
26
87
|
```
|
|
27
88
|
|
|
28
89
|
### 2. Code Quality
|
|
@@ -234,16 +295,16 @@ Create `./.sessions/<ISSUE-ID>/pr-description.md`:
|
|
|
234
295
|
3. [Expected result]
|
|
235
296
|
|
|
236
297
|
## 🔍 Notes for Reviewers
|
|
237
|
-
- [
|
|
238
|
-
- [
|
|
298
|
+
- [Point of attention 1]
|
|
299
|
+
- [Point of attention 2]
|
|
239
300
|
```
|
|
240
301
|
|
|
241
302
|
## 🚨 Issues Found
|
|
242
303
|
|
|
243
304
|
If any validation fails:
|
|
244
305
|
1. 🛑 **STOP** the PR creation process
|
|
245
|
-
2. 📝 **DOCUMENT** the
|
|
246
|
-
3. 🔧 **FIX** the
|
|
306
|
+
2. 📝 **DOCUMENT** the problem
|
|
307
|
+
3. 🔧 **FIX** the problem
|
|
247
308
|
4. 🔄 **RUN** `/pre-pr` again
|
|
248
309
|
|
|
249
310
|
## 📊 Validation Report
|
|
@@ -295,4 +356,4 @@ If all validations passed:
|
|
|
295
356
|
/pr
|
|
296
357
|
```
|
|
297
358
|
|
|
298
|
-
This command will create
|
|
359
|
+
This command will create Pull Requests for all modified repositories.
|