context-first-cli 2.3.1 → 2.3.4
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 +108 -6
- package/dist/commands/add-repo.js +2 -2
- package/dist/commands/add-repo.js.map +1 -1
- package/dist/commands/create-orchestrator.js +2 -2
- package/dist/commands/create-orchestrator.js.map +1 -1
- package/dist/commands/update-commands.d.ts.map +1 -1
- package/dist/commands/update-commands.js +10 -4
- package/dist/commands/update-commands.js.map +1 -1
- package/dist/templates/commands/en/engineer/plan.md +3 -37
- package/dist/templates/commands/en/engineer/pr.md +4 -38
- package/dist/templates/commands/en/engineer/pre-pr.md +4 -38
- package/dist/templates/commands/en/engineer/start.md +4 -37
- package/dist/templates/commands/en/engineer/work.md +4 -38
- package/dist/templates/commands/en/products/check.md +3 -36
- package/dist/templates/commands/en/products/collect.md +9 -57
- package/dist/templates/commands/en/products/refine.md +4 -38
- package/dist/templates/commands/en/products/spec.md +3 -36
- package/dist/templates/commands/en/quality/metrics.md +3 -36
- package/dist/templates/commands/en/quality/observe.md +3 -37
- package/dist/templates/commands/en/warm-up.md +33 -96
- package/dist/templates/commands/es/warm-up.md +33 -97
- package/dist/templates/commands/pt-BR/warm-up.md +32 -96
- package/package.json +1 -1
- package/templates/commands/en/engineer/plan.md +3 -37
- package/templates/commands/en/engineer/pr.md +4 -38
- package/templates/commands/en/engineer/pre-pr.md +4 -38
- package/templates/commands/en/engineer/start.md +4 -37
- package/templates/commands/en/engineer/work.md +4 -38
- package/templates/commands/en/products/check.md +3 -36
- package/templates/commands/en/products/collect.md +9 -57
- package/templates/commands/en/products/refine.md +4 -38
- package/templates/commands/en/products/spec.md +3 -36
- package/templates/commands/en/quality/metrics.md +3 -36
- package/templates/commands/en/quality/observe.md +3 -37
- package/templates/commands/en/warm-up.md +33 -96
- package/templates/commands/es/warm-up.md +33 -97
- package/templates/commands/pt-BR/warm-up.md +32 -96
|
@@ -1,123 +1,59 @@
|
|
|
1
1
|
# Aquecimento - Carregamento de Contexto
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prepara o ambiente carregando o contexto otimizado do projeto.
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1. Carregar Configuração
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Leia os arquivos do orchestrator:
|
|
8
|
+
- **`context-manifest.json`** - Repositórios e roles
|
|
9
|
+
- **`ai.properties.md`** - base_path, task_management_system
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
# Verificar se está em um diretório de workspace
|
|
11
|
-
pwd
|
|
12
|
-
# O workspace geralmente está em ~/workspaces/<ISSUE-ID>/
|
|
13
|
-
```
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
## 📋 Configuração do Projeto
|
|
11
|
+
## 2. Carregar Contexto Compacto (OTIMIZADO)
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
**IMPORTANTE**: Use carregamento PROGRESSIVO para economizar janela de contexto.
|
|
20
14
|
|
|
21
|
-
###
|
|
15
|
+
### Obrigatório (warm-up)
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
- Lista de repositórios do projeto
|
|
25
|
-
- Roles de cada repositório (metaspecs, application, etc.)
|
|
26
|
-
- URLs e dependências entre repositórios
|
|
17
|
+
Localize metaspecs via `context-manifest.json` (role: "specs-provider"):
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
19
|
+
```
|
|
20
|
+
{base_path}/{metaspecs-id}/specs/_meta/WARM_UP_CONTEXT.md (~100 linhas)
|
|
41
21
|
```
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
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
|
-
|
|
55
|
-
## 2. Carregar Configuração do Projeto
|
|
56
|
-
|
|
57
|
-
Você já está no orchestrator do projeto (raiz do repositório atual).
|
|
58
|
-
|
|
59
|
-
1. **Verifique se está na raiz do orchestrator**: `pwd` deve mostrar o diretório do orchestrator
|
|
60
|
-
2. **Leia o arquivo `context-manifest.json`** na raiz do orchestrator
|
|
61
|
-
3. **Leia o arquivo `ai.properties.md`** para obter configurações locais (base_path, etc.)
|
|
62
|
-
|
|
63
|
-
## 3. Carregar Manifesto do Projeto
|
|
64
|
-
|
|
65
|
-
Leia o `context-manifest.json` do orchestrator para entender:
|
|
66
|
-
- Lista completa de repositórios do ecossistema
|
|
67
|
-
- URL do repositório de MetaSpecs
|
|
68
|
-
- Dependências entre repositórios
|
|
69
|
-
- Roles de cada repositório (application, library, service, specs-provider)
|
|
70
|
-
|
|
71
|
-
## 4. Carregar MetaSpecs
|
|
72
|
-
|
|
73
|
-
O repositório de MetaSpecs é **separado** e está definido no `context-manifest.json` com `role: "metaspecs"`.
|
|
74
|
-
|
|
75
|
-
**Localize o repositório de metaspecs:**
|
|
76
|
-
|
|
77
|
-
1. Leia `context-manifest.json` e encontre o repositório com `role: "metaspecs"`
|
|
78
|
-
2. Obtenha o `id` desse repositório (ex: "my-project-metaspecs")
|
|
79
|
-
3. Leia `ai.properties.md` para obter o `base_path`
|
|
80
|
-
4. O repositório de metaspecs está em: `{base_path}/{metaspecs-id}/`
|
|
23
|
+
Este arquivo contém TODOS os essenciais:
|
|
24
|
+
- Stack tecnológica
|
|
25
|
+
- Hierarquia de contexto
|
|
26
|
+
- 5 regras críticas
|
|
27
|
+
- Padrões de código mínimos
|
|
28
|
+
- Tabela de carregamento sob demanda
|
|
81
29
|
|
|
82
|
-
|
|
30
|
+
### Sob Demanda (NÃO carregar durante warm-up)
|
|
83
31
|
|
|
84
|
-
|
|
85
|
-
|
|
32
|
+
| Necessidade | Documento |
|
|
33
|
+
|-------------|-----------|
|
|
34
|
+
| Gerar código | `CLAUDE.meta.md` |
|
|
35
|
+
| Arquitetura | `ARCHITECTURE.md` |
|
|
36
|
+
| Feature específica | `features/{FEATURE}.md` |
|
|
37
|
+
| Anti-patterns completos | `ANTI_PATTERNS.md` |
|
|
86
38
|
|
|
87
|
-
|
|
39
|
+
## 3. Verificar Repositórios
|
|
88
40
|
|
|
89
|
-
|
|
41
|
+
Para cada repositório no `context-manifest.json`:
|
|
42
|
+
- Verificar existência em `{base_path}/{repo-id}/`
|
|
43
|
+
- **NÃO** ler README.md agora (sob demanda)
|
|
90
44
|
|
|
91
|
-
|
|
45
|
+
## 4. Verificar Sessão (se existir)
|
|
92
46
|
|
|
93
47
|
```bash
|
|
94
|
-
# Procurar por sessão no orchestrator
|
|
95
48
|
ls -la .sessions/<ISSUE-ID>/ 2>/dev/null
|
|
96
49
|
```
|
|
97
50
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## 6. Contexto dos Repositórios
|
|
101
|
-
|
|
102
|
-
Para cada repositório presente no workspace, leia:
|
|
103
|
-
- `README.md` - Propósito e visão geral do repositório
|
|
104
|
-
- Arquivo de configuração principal (`package.json`, `pom.xml`, `requirements.txt`, etc.)
|
|
105
|
-
|
|
106
|
-
## 7. Navegação Inteligente
|
|
107
|
-
|
|
108
|
-
- **Código**: Use ferramentas de busca (glob, grep) para localizar arquivos relevantes
|
|
109
|
-
- **Documentação**: Use os índices dos MetaSpecs como referência
|
|
110
|
-
- **Aguarde Instruções**: NÃO leia outros arquivos agora. Aguarde o próximo comando.
|
|
111
|
-
|
|
112
|
-
## 8. Princípio Jidoka (Parar ao Detectar Problemas)
|
|
51
|
+
## 5. Princípio Jidoka
|
|
113
52
|
|
|
114
|
-
Se
|
|
115
|
-
1. 🛑 **PARE** imediatamente
|
|
116
|
-
2. 📝 **DOCUMENTE** o problema encontrado
|
|
117
|
-
3. 💬 **ALERTE** o usuário antes de prosseguir
|
|
53
|
+
Se problemas detectados: **PARE**, documente, alerte o usuário.
|
|
118
54
|
|
|
119
55
|
---
|
|
120
56
|
|
|
121
|
-
**Argumentos
|
|
57
|
+
**Argumentos**: #$ARGUMENTS
|
|
122
58
|
|
|
123
59
|
**Status**: Contexto carregado. Aguardando próximo comando.
|
package/package.json
CHANGED
|
@@ -8,43 +8,9 @@ This command creates the detailed technical plan for the feature implementation.
|
|
|
8
8
|
- Initial analysis done via `/start`
|
|
9
9
|
- `context.md` and `architecture.md` files created and approved
|
|
10
10
|
|
|
11
|
-
##
|
|
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.
|
|
11
|
+
## Configuration
|
|
47
12
|
|
|
13
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
48
14
|
|
|
49
15
|
## 📍 IMPORTANT: Understand the Structure
|
|
50
16
|
|
|
@@ -332,4 +298,4 @@ After plan approval:
|
|
|
332
298
|
/work
|
|
333
299
|
```
|
|
334
300
|
|
|
335
|
-
This command will start executing the first work unit of the plan.
|
|
301
|
+
This command will start executing the first work unit of the plan.
|
|
@@ -10,43 +10,9 @@ Before creating PRs, make sure that:
|
|
|
10
10
|
- All tests are passing
|
|
11
11
|
- Documentation is up to date
|
|
12
12
|
|
|
13
|
-
##
|
|
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.
|
|
13
|
+
## Configuration
|
|
49
14
|
|
|
15
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
50
16
|
|
|
51
17
|
## 🛑 CRITICAL: WHERE TO WORK
|
|
52
18
|
|
|
@@ -120,7 +86,7 @@ gh pr create --title "[ISSUE-ID] Feature Title" \
|
|
|
120
86
|
## 🔗 Relationships
|
|
121
87
|
|
|
122
88
|
- **Issue**: <ISSUE-ID>
|
|
123
|
-
- **Related PRs**:
|
|
89
|
+
- **Related PRs**:
|
|
124
90
|
- <repo-1>#<PR-number>
|
|
125
91
|
- <repo-2>#<PR-number>
|
|
126
92
|
|
|
@@ -225,4 +191,4 @@ Notify the team about the PRs:
|
|
|
225
191
|
1. Await PR reviews
|
|
226
192
|
2. Respond to comments and make adjustments
|
|
227
193
|
3. After approval, merge in the recommended order
|
|
228
|
-
4. Run `context-cli feature:end <ISSUE-ID>` to clean the workspace
|
|
194
|
+
4. Run `context-cli feature:end <ISSUE-ID>` to clean the workspace
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Pull Request Preparation
|
|
2
2
|
|
|
3
3
|
This command validates that everything is ready to create Pull Requests.
|
|
4
4
|
|
|
@@ -8,43 +8,9 @@ This command validates that everything is ready to create Pull Requests.
|
|
|
8
8
|
- All commits made
|
|
9
9
|
- Clean and organized workspace
|
|
10
10
|
|
|
11
|
-
##
|
|
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.
|
|
11
|
+
## Configuration
|
|
47
12
|
|
|
13
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
48
14
|
|
|
49
15
|
## 🎯 Objective
|
|
50
16
|
|
|
@@ -356,4 +322,4 @@ If all validations passed:
|
|
|
356
322
|
/pr
|
|
357
323
|
```
|
|
358
324
|
|
|
359
|
-
This command will create Pull Requests for all modified repositories.
|
|
325
|
+
This command will create Pull Requests for all modified repositories.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Start
|
|
1
|
+
# Start Development
|
|
2
2
|
|
|
3
3
|
This command initiates the development of a feature in the current workspace.
|
|
4
4
|
|
|
@@ -26,42 +26,9 @@ This command initiates the development of a feature in the current workspace.
|
|
|
26
26
|
- ❌ NEVER checkout main repositories
|
|
27
27
|
- ❌ NEVER modify code in this command (use `/work` later)
|
|
28
28
|
|
|
29
|
-
##
|
|
29
|
+
## Configuration
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### Required Files
|
|
34
|
-
|
|
35
|
-
1. **`context-manifest.json`** (orchestrator root)
|
|
36
|
-
- List of project repositories
|
|
37
|
-
- Roles of each repository (metaspecs, application, etc.)
|
|
38
|
-
- URLs and dependencies among repositories
|
|
39
|
-
|
|
40
|
-
2. **`ai.properties.md`** (orchestrator root)
|
|
41
|
-
- Project settings (`project_name`, `base_path`)
|
|
42
|
-
- Task management system (`task_management_system`)
|
|
43
|
-
- Credentials and specific configurations
|
|
44
|
-
|
|
45
|
-
### How to Read
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
# 1. Read context-manifest.json
|
|
49
|
-
cat context-manifest.json
|
|
50
|
-
|
|
51
|
-
# 2. Read ai.properties.md
|
|
52
|
-
cat ai.properties.md
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Essential Information
|
|
56
|
-
|
|
57
|
-
After reading the files, you will have:
|
|
58
|
-
- ✅ Complete list of project repositories
|
|
59
|
-
- ✅ Location of the metaspecs repository
|
|
60
|
-
- ✅ Base path to locate repositories
|
|
61
|
-
- ✅ Configured task management system
|
|
62
|
-
- ✅ Project-specific configurations
|
|
63
|
-
|
|
64
|
-
**🛑 DO NOT proceed without reading these files!** They contain critical information for correct command execution.
|
|
31
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
65
32
|
|
|
66
33
|
## 📚 Load MetaSpecs
|
|
67
34
|
|
|
@@ -315,4 +282,4 @@ This command will create the detailed technical implementation plan.
|
|
|
315
282
|
|
|
316
283
|
- ✅ They can be READ by subsequent commands (`/plan`, `/work`)
|
|
317
284
|
- ❌ They MUST NOT be MODIFIED by any command
|
|
318
|
-
- ❌ If changes are needed, discuss with the user and create new files or update the issue in the task manager
|
|
285
|
+
- ❌ If changes are needed, discuss with the user and create new files or update the issue in the task manager
|
|
@@ -12,43 +12,9 @@ Before executing, make sure that:
|
|
|
12
12
|
- `architecture.md` (immutable)
|
|
13
13
|
- `plan.md` (mutable)
|
|
14
14
|
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
18
|
-
|
|
19
|
-
### Required Files
|
|
20
|
-
|
|
21
|
-
1. **`context-manifest.json`** (orchestrator root)
|
|
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`** (orchestrator root)
|
|
27
|
-
- Project settings (`project_name`, `base_path`)
|
|
28
|
-
- Task management system (`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
|
-
- ✅ Project-specific configurations
|
|
49
|
-
|
|
50
|
-
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
15
|
+
## Configuration
|
|
51
16
|
|
|
17
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
52
18
|
|
|
53
19
|
## 📍 IMPORTANT: Understand the Structure
|
|
54
20
|
|
|
@@ -95,7 +61,7 @@ After reading the files, you will have:
|
|
|
95
61
|
**ABSOLUTE RULE**:
|
|
96
62
|
- 🛑 **EVERY code file** (`.ts`, `.js`, `.py`, `.java`, etc.) **MUST be inside** `<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/`
|
|
97
63
|
- 🛑 **NEVER create code** directly in `<orchestrator>/.sessions/` or `<orchestrator>/.sessions/<ISSUE-ID>/`
|
|
98
|
-
- ✅ **Only valid place**: Inside the repository
|
|
64
|
+
- ✅ **Only valid place**: Inside the repository's worktree
|
|
99
65
|
|
|
100
66
|
## ⚠️ IMPORTANT: Immutable Files
|
|
101
67
|
|
|
@@ -287,4 +253,4 @@ If you encounter problems during implementation:
|
|
|
287
253
|
- Work in small, incremental units
|
|
288
254
|
- Commit frequently (atomic commits)
|
|
289
255
|
- Document important decisions in the session
|
|
290
|
-
- Keep repositories synchronized with each other
|
|
256
|
+
- Keep repositories synchronized with each other
|
|
@@ -12,42 +12,9 @@ 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
|
-
##
|
|
15
|
+
## Configuration
|
|
16
16
|
|
|
17
|
-
|
|
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.
|
|
17
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
51
18
|
|
|
52
19
|
## 🎯 Objective
|
|
53
20
|
|
|
@@ -267,4 +234,4 @@ If critical conflicts are found:
|
|
|
267
234
|
After validation:
|
|
268
235
|
- If ✅: Proceed to the next phase
|
|
269
236
|
- If ⚠️: Document reservations and proceed with approval
|
|
270
|
-
- If ❌: Fix conflicts before proceeding
|
|
237
|
+
- If ❌: Fix conflicts before proceeding
|
|
@@ -18,59 +18,11 @@ You are a product specialist responsible for collecting and documenting new idea
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
-
##
|
|
21
|
+
## Configuration
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
24
24
|
|
|
25
|
-
|
|
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
|
-
|
|
58
|
-
## Project Context
|
|
59
|
-
|
|
60
|
-
Before starting, load the context by consulting:
|
|
61
|
-
|
|
62
|
-
1. **Automatically locate MetaSpecs**:
|
|
63
|
-
- Read `context-manifest.json` from the orchestrator
|
|
64
|
-
- Find the repository with `"role": "metaspecs"`
|
|
65
|
-
- Read `ai.properties.md` to get the `base_path`
|
|
66
|
-
- The metaspecs are located at: `{base_path}/{metaspecs-repo-id}/`
|
|
67
|
-
- Read the `index.md` files as reference
|
|
68
|
-
|
|
69
|
-
2. **Project structure**:
|
|
70
|
-
- `context-manifest.json` - List of repositories and their roles
|
|
71
|
-
- `README.md` of involved repositories
|
|
72
|
-
|
|
73
|
-
## Your Goal
|
|
25
|
+
## Objective
|
|
74
26
|
|
|
75
27
|
Understand the user's request and capture it as an issue in the task manager (via MCP).
|
|
76
28
|
|
|
@@ -134,7 +86,7 @@ Just ensure the idea is **adequately understood**.
|
|
|
134
86
|
- Example split:
|
|
135
87
|
```
|
|
136
88
|
Original Issue: "Complete payment system"
|
|
137
|
-
|
|
89
|
+
|
|
138
90
|
Suggested Split:
|
|
139
91
|
- FIN-101: Payment gateway integration (backend)
|
|
140
92
|
- FIN-102: Checkout interface (frontend)
|
|
@@ -155,22 +107,22 @@ Just ensure the idea is **adequately understood**.
|
|
|
155
107
|
5. **Issue Saving**
|
|
156
108
|
|
|
157
109
|
**PRIORITY 1: Use MCP (Model Context Protocol)**
|
|
158
|
-
|
|
110
|
+
|
|
159
111
|
Check if MCP is configured for the task manager:
|
|
160
112
|
- Read `ai.properties.md` from the orchestrator to identify the `task_management_system`
|
|
161
113
|
- If `task_management_system=jira`: Use Jira MCP to create the issue
|
|
162
114
|
- If `task_management_system=linear`: Use Linear MCP to create the issue
|
|
163
115
|
- If `task_management_system=github`: Use GitHub MCP to create the issue
|
|
164
116
|
- If `task_management_system=azure`: Use Azure Boards MCP to create the issue
|
|
165
|
-
|
|
117
|
+
|
|
166
118
|
**When using MCP:**
|
|
167
119
|
- Create the issue directly in the task manager
|
|
168
120
|
- Obtain the created issue ID (e.g., FIN-123, LIN-456)
|
|
169
121
|
- Inform the user: "✅ Issue [ID] created in [task manager]"
|
|
170
122
|
- **DO NOT create a .md file**
|
|
171
|
-
|
|
123
|
+
|
|
172
124
|
**FALLBACK: Create .md file only if MCP fails**
|
|
173
|
-
|
|
125
|
+
|
|
174
126
|
If MCP is not available or fails:
|
|
175
127
|
- Create a file in `./.sessions/<ISSUE-ID>/collect.md`
|
|
176
128
|
- Use manual ID format: `LOCAL-001`, `LOCAL-002`, etc.
|
|
@@ -215,4 +167,4 @@ After approval and saving the issue:
|
|
|
215
167
|
/refine [ISSUE-ID]
|
|
216
168
|
```
|
|
217
169
|
|
|
218
|
-
This command will transform the collected issue into refined and validated requirements.
|
|
170
|
+
This command will transform the collected issue into refined and validated requirements.
|
|
@@ -17,43 +17,9 @@ You are a product expert responsible for helping to refine requirements for the
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
##
|
|
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.
|
|
20
|
+
## Configuration
|
|
56
21
|
|
|
22
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
57
23
|
|
|
58
24
|
## Objective
|
|
59
25
|
|
|
@@ -125,7 +91,7 @@ Once you have gathered sufficient information and validated against metaspecs, p
|
|
|
125
91
|
- Example split:
|
|
126
92
|
```
|
|
127
93
|
Original Issue: "Multi-channel notification system"
|
|
128
|
-
|
|
94
|
+
|
|
129
95
|
Suggested Split:
|
|
130
96
|
- FIN-201: Queue and worker infrastructure (backend)
|
|
131
97
|
- FIN-202: Email notifications (backend + templates)
|
|
@@ -262,4 +228,4 @@ Once the user approves, save the requirements:
|
|
|
262
228
|
|
|
263
229
|
**Example**: `/spec FIN-3`
|
|
264
230
|
|
|
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.
|
|
231
|
+
This command will create a PRD (Product Requirements Document) complete based on the refined requirements, detailing features, user stories, acceptance criteria, and final validations.
|