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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Start of Development
|
|
2
2
|
|
|
3
|
-
This command
|
|
3
|
+
This command initiates the development of a feature in the current workspace.
|
|
4
4
|
|
|
5
5
|
## 📍 IMPORTANT: Understand the Structure
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ This command starts the development of a feature in the current workspace.
|
|
|
14
14
|
└── plan.md # plan (mutable - created by /plan)
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
**Main
|
|
17
|
+
**Main Repositories** (read-only):
|
|
18
18
|
```
|
|
19
19
|
{base_path}/repo-1/ # main repo (branch main/master)
|
|
20
20
|
{base_path}/repo-2/ # main repo (branch main/master)
|
|
@@ -24,7 +24,44 @@ This command starts the development of a feature in the current workspace.
|
|
|
24
24
|
- ✅ Read metaspecs and code from main repositories (read-only)
|
|
25
25
|
- ✅ Create `context.md` and `architecture.md` in `.sessions/<ISSUE-ID>/`
|
|
26
26
|
- ❌ NEVER checkout main repositories
|
|
27
|
-
- ❌ NEVER modify code in this command (use `/work`
|
|
27
|
+
- ❌ NEVER modify code in this command (use `/work` later)
|
|
28
|
+
|
|
29
|
+
## 📋 Project Configuration
|
|
30
|
+
|
|
31
|
+
**⚠️ IMPORTANT: Always read the project configuration files BEFORE running this command!**
|
|
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.
|
|
28
65
|
|
|
29
66
|
## 📚 Load MetaSpecs
|
|
30
67
|
|
|
@@ -33,7 +70,7 @@ This command starts the development of a feature in the current workspace.
|
|
|
33
70
|
2. Find the repository with `"role": "metaspecs"`
|
|
34
71
|
3. Read `ai.properties.md` to get the `base_path`
|
|
35
72
|
4. The metaspecs are at: `{base_path}/{metaspecs-repo-id}/`
|
|
36
|
-
5. Read
|
|
73
|
+
5. Read relevant `index.md` files:
|
|
37
74
|
- Business context
|
|
38
75
|
- Stack, architecture, and technical patterns
|
|
39
76
|
- Project conventions
|
|
@@ -52,7 +89,7 @@ Before starting, load the context by consulting:
|
|
|
52
89
|
- Confirm you are in the correct workspace (check `workspace directory`)
|
|
53
90
|
- List repositories available in the workspace
|
|
54
91
|
|
|
55
|
-
2. **
|
|
92
|
+
2. **Check Branches**:
|
|
56
93
|
- For each repository in the workspace, check the current branch
|
|
57
94
|
- Confirm all branches are synchronized
|
|
58
95
|
|
|
@@ -73,15 +110,15 @@ Analyze the specification and build a complete understanding by answering:
|
|
|
73
110
|
- **Which** metric do we want to impact?
|
|
74
111
|
|
|
75
112
|
### Functional
|
|
76
|
-
- **What is the expected outcome
|
|
113
|
+
- **What is the expected outcome?** (user behavior, system output)
|
|
77
114
|
- **Which components** will be created/modified in each repository?
|
|
78
115
|
- **Which integrations** between repositories are necessary?
|
|
79
116
|
|
|
80
117
|
### Technical
|
|
81
|
-
- **Approved stack
|
|
82
|
-
- **Architectural patterns
|
|
83
|
-
- **New dependencies
|
|
84
|
-
- **How to test
|
|
118
|
+
- **Approved stack?** Check against technical specifications
|
|
119
|
+
- **Architectural patterns?** Check ADRs (if available)
|
|
120
|
+
- **New dependencies?** Justify and document
|
|
121
|
+
- **How to test?** (according to project standards)
|
|
85
122
|
|
|
86
123
|
### Validation against MetaSpecs
|
|
87
124
|
|
|
@@ -97,16 +134,16 @@ After initial analysis, formulate **3-5 most important clarifications**:
|
|
|
97
134
|
|
|
98
135
|
**Examples of relevant questions**:
|
|
99
136
|
- Which repository should contain the main logic?
|
|
100
|
-
- How should
|
|
137
|
+
- How should repositories communicate?
|
|
101
138
|
- Are there dependencies between changes in different repos?
|
|
102
139
|
- What is the recommended implementation order?
|
|
103
|
-
- Is there
|
|
140
|
+
- Is there impact on APIs or contracts between services?
|
|
104
141
|
|
|
105
142
|
## 💾 Creation of Context.md
|
|
106
143
|
|
|
107
144
|
**IMPORTANT**: This file is **IMMUTABLE** after approval. It must not be modified by subsequent commands.
|
|
108
145
|
|
|
109
|
-
Create
|
|
146
|
+
Create file `./.sessions/<ISSUE-ID>/context.md` with:
|
|
110
147
|
|
|
111
148
|
```markdown
|
|
112
149
|
# Context: [Feature Name]
|
|
@@ -135,7 +172,7 @@ Create the file `./.sessions/<ISSUE-ID>/context.md` with:
|
|
|
135
172
|
[Technical limitations, performance targets, budget]
|
|
136
173
|
|
|
137
174
|
## Tests
|
|
138
|
-
[Critical E2E,
|
|
175
|
+
[Critical E2E, necessary unit tests, expected coverage]
|
|
139
176
|
```
|
|
140
177
|
|
|
141
178
|
**After creating `context.md`, request user review and approval before proceeding.**
|
|
@@ -153,17 +190,17 @@ Create the file `./.sessions/<ISSUE-ID>/context.md` with:
|
|
|
153
190
|
1. **Read ADRs (Architecture Decision Records)**:
|
|
154
191
|
- List ADRs in metaspecs
|
|
155
192
|
- Read ALL ADRs relevant to the feature
|
|
156
|
-
- Identify constraints and
|
|
193
|
+
- Identify mandatory constraints and patterns
|
|
157
194
|
|
|
158
195
|
2. **Consult architectural patterns**:
|
|
159
196
|
- Read project structure guides in metaspecs
|
|
160
|
-
- Read
|
|
197
|
+
- Read coding patterns in metaspecs
|
|
161
198
|
- Identify existing patterns in code (use Glob/Grep to find similar examples)
|
|
162
199
|
|
|
163
200
|
3. **Validate compliance with ADRs**:
|
|
164
|
-
- For each relevant ADR,
|
|
201
|
+
- For each relevant ADR, check if the proposed solution respects the decisions
|
|
165
202
|
- Document compliance in architecture.md
|
|
166
|
-
- If
|
|
203
|
+
- If violation exists, justify or propose correction
|
|
167
204
|
|
|
168
205
|
4. **Analyze existing code**:
|
|
169
206
|
- Use Glob/Grep to find similar components/modules
|
|
@@ -172,7 +209,7 @@ Create the file `./.sessions/<ISSUE-ID>/context.md` with:
|
|
|
172
209
|
|
|
173
210
|
### Architecture Document Structure
|
|
174
211
|
|
|
175
|
-
Create
|
|
212
|
+
Create file `./.sessions/<ISSUE-ID>/architecture.md` with:
|
|
176
213
|
|
|
177
214
|
```markdown
|
|
178
215
|
# Architecture: [Feature Name]
|
|
@@ -204,7 +241,7 @@ repo-1/
|
|
|
204
241
|
```
|
|
205
242
|
|
|
206
243
|
## Patterns and Best Practices
|
|
207
|
-
[Patterns
|
|
244
|
+
[Patterns to be maintained or introduced]
|
|
208
245
|
|
|
209
246
|
## ADR Validation
|
|
210
247
|
[List of consulted ADRs and compliance]
|
|
@@ -213,7 +250,7 @@ repo-1/
|
|
|
213
250
|
- [x] ADR-002: [Name] - Compliant
|
|
214
251
|
|
|
215
252
|
## External Dependencies
|
|
216
|
-
[Libraries
|
|
253
|
+
[Libraries to be used or added]
|
|
217
254
|
|
|
218
255
|
## Technical Decisions
|
|
219
256
|
|
|
@@ -226,7 +263,7 @@ repo-1/
|
|
|
226
263
|
**Justification**: [Why we chose this option]
|
|
227
264
|
|
|
228
265
|
## Constraints and Assumptions
|
|
229
|
-
[Technical limitations and
|
|
266
|
+
[Technical limitations and premises]
|
|
230
267
|
|
|
231
268
|
## Trade-offs
|
|
232
269
|
[Alternatives considered and why they were not chosen]
|
|
@@ -262,7 +299,7 @@ repo-1/
|
|
|
262
299
|
|
|
263
300
|
## 🎯 Next Step
|
|
264
301
|
|
|
265
|
-
**After user approval of
|
|
302
|
+
**After user approval of `context.md` and `architecture.md` files**:
|
|
266
303
|
|
|
267
304
|
```bash
|
|
268
305
|
/plan
|
|
@@ -7,11 +7,49 @@ This command executes a unit of work in the current workspace, implementing part
|
|
|
7
7
|
Before executing, make sure that:
|
|
8
8
|
- You have run `/start` and `/plan` to have the technical plan
|
|
9
9
|
- You are in the correct workspace: `<orchestrator>/.sessions/<ISSUE-ID>/`
|
|
10
|
-
- You have the `.sessions/<ISSUE-ID>/`
|
|
10
|
+
- You have the files `.sessions/<ISSUE-ID>/` available:
|
|
11
11
|
- `context.md` (immutable)
|
|
12
12
|
- `architecture.md` (immutable)
|
|
13
13
|
- `plan.md` (mutable)
|
|
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`** (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.
|
|
51
|
+
|
|
52
|
+
|
|
15
53
|
## 📍 IMPORTANT: Understand the Structure
|
|
16
54
|
|
|
17
55
|
**Workspace** (where you work):
|
|
@@ -32,7 +70,7 @@ Before executing, make sure that:
|
|
|
32
70
|
|
|
33
71
|
**GOLDEN RULE**:
|
|
34
72
|
- ✅ Work ONLY inside `<orchestrator>/.sessions/<ISSUE-ID>/`
|
|
35
|
-
- ✅
|
|
73
|
+
- ✅ Commit in the worktrees inside the workspace
|
|
36
74
|
- ❌ NEVER checkout branches in the main repositories
|
|
37
75
|
- ❌ NEVER navigate to `{base_path}/{repo-id}/`
|
|
38
76
|
|
|
@@ -57,7 +95,7 @@ Before executing, make sure that:
|
|
|
57
95
|
**ABSOLUTE RULE**:
|
|
58
96
|
- 🛑 **EVERY code file** (`.ts`, `.js`, `.py`, `.java`, etc.) **MUST be inside** `<orchestrator>/.sessions/<ISSUE-ID>/<repo-name>/`
|
|
59
97
|
- 🛑 **NEVER create code** directly in `<orchestrator>/.sessions/` or `<orchestrator>/.sessions/<ISSUE-ID>/`
|
|
60
|
-
- ✅ **Only valid place**: Inside the
|
|
98
|
+
- ✅ **Only valid place**: Inside the repository’s worktree
|
|
61
99
|
|
|
62
100
|
## ⚠️ IMPORTANT: Immutable Files
|
|
63
101
|
|
|
@@ -67,8 +105,8 @@ Before executing, make sure that:
|
|
|
67
105
|
- ✅ **UPDATE** `.sessions/<ISSUE-ID>/plan.md` (mark progress)
|
|
68
106
|
- ✅ **IMPLEMENT** code **INSIDE THE WORKTREE**: `.sessions/<ISSUE-ID>/<repo-name>/`
|
|
69
107
|
- ✅ **MAKE COMMITS** in the worktrees: `.sessions/<ISSUE-ID>/<repo-name>/`
|
|
70
|
-
- ❌ **
|
|
71
|
-
- ❌ **
|
|
108
|
+
- ❌ **Do NOT modify `context.md` or `architecture.md`**
|
|
109
|
+
- ❌ **Do NOT checkout branches in the main repositories (outside workspace)**
|
|
72
110
|
- 🛑 **NEVER create code directly in `.sessions/` or `.sessions/<ISSUE-ID>/`**
|
|
73
111
|
|
|
74
112
|
## 📚 Load MetaSpecs
|
|
@@ -83,7 +121,7 @@ Before executing, make sure that:
|
|
|
83
121
|
- Respect defined architecture
|
|
84
122
|
- Use correct conventions
|
|
85
123
|
|
|
86
|
-
## 🎯
|
|
124
|
+
## 🎯 Objective
|
|
87
125
|
|
|
88
126
|
Implement a specific unit of work from the plan, which may involve:
|
|
89
127
|
- Creating new files/components
|
|
@@ -124,7 +162,7 @@ Based on the technical plan (`./.sessions/<ISSUE-ID>/plan.md`), identify:
|
|
|
124
162
|
|
|
125
163
|
|
|
126
164
|
|
|
127
|
-
**IMPORTANT**: Work ONLY inside the workspace
|
|
165
|
+
**IMPORTANT**: Work ONLY inside the workspace `.sessions/<ISSUE-ID>/`
|
|
128
166
|
|
|
129
167
|
For each repository in the workspace:
|
|
130
168
|
|
|
@@ -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
|
---
|