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
|
@@ -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.
|
|
@@ -17,42 +17,9 @@ This command creates the complete specification (Product Requirements Document)
|
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## Configuration
|
|
21
21
|
|
|
22
|
-
|
|
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.
|
|
22
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
56
23
|
|
|
57
24
|
## 📋 Prerequisites
|
|
58
25
|
|
|
@@ -301,4 +268,4 @@ After PRD approval:
|
|
|
301
268
|
/start
|
|
302
269
|
```
|
|
303
270
|
|
|
304
|
-
This command will start feature development.
|
|
271
|
+
This command will start feature development.
|
|
@@ -11,42 +11,9 @@ Measure and document the quality of the implementation through objective metrics
|
|
|
11
11
|
- Performance
|
|
12
12
|
- Compliance with standards
|
|
13
13
|
|
|
14
|
-
##
|
|
14
|
+
## Configuration
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Required Files
|
|
19
|
-
|
|
20
|
-
1. **`context-manifest.json`** (orchestrator root)
|
|
21
|
-
- List of project repositories
|
|
22
|
-
- Roles of each repository (metaspecs, application, etc.)
|
|
23
|
-
- URLs and dependencies between repositories
|
|
24
|
-
|
|
25
|
-
2. **`ai.properties.md`** (orchestrator root)
|
|
26
|
-
- Project settings (`project_name`, `base_path`)
|
|
27
|
-
- Task management system (`task_management_system`)
|
|
28
|
-
- Credentials and specific configurations
|
|
29
|
-
|
|
30
|
-
### How to Read
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
# 1. Read context-manifest.json
|
|
34
|
-
cat context-manifest.json
|
|
35
|
-
|
|
36
|
-
# 2. Read ai.properties.md
|
|
37
|
-
cat ai.properties.md
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Essential Information
|
|
41
|
-
|
|
42
|
-
After reading the files, you will have:
|
|
43
|
-
- ✅ Complete list of project repositories
|
|
44
|
-
- ✅ Location of the metaspecs repository
|
|
45
|
-
- ✅ Base path to locate repositories
|
|
46
|
-
- ✅ Configured task management system
|
|
47
|
-
- ✅ Project-specific configurations
|
|
48
|
-
|
|
49
|
-
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
16
|
+
Read `context-manifest.json` and `ai.properties.md` from the orchestrator to get repositories, base_path, and task_management_system.
|
|
50
17
|
|
|
51
18
|
## 📋 Prerequisites
|
|
52
19
|
|
|
@@ -296,4 +263,4 @@ After running this command, you will have:
|
|
|
296
263
|
- Comparison with baseline and goals
|
|
297
264
|
- Identification of quality issues
|
|
298
265
|
- Recommendations for actions
|
|
299
|
-
- Objective basis for merge approval
|
|
266
|
+
- Objective basis for merge approval
|
|
@@ -12,43 +12,9 @@ Create a structured record of technical and product decisions, ensuring:
|
|
|
12
12
|
|
|
13
13
|
**IMPORTANT**: This command DOES NOT generate new decisions. It only RECORDS decisions that have already been made during the development process.
|
|
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
|
## 📋 Prerequisites
|
|
54
20
|
|
|
@@ -203,4 +169,4 @@ After running this command, you will have:
|
|
|
203
169
|
- Complete decision log in `./.sessions/<ISSUE-ID>/decisions.md`
|
|
204
170
|
- Traceability of every choice made
|
|
205
171
|
- Documentation for future reference
|
|
206
|
-
- Basis for ADRs (if decisions are architectural)
|
|
172
|
+
- Basis for ADRs (if decisions are architectural)
|
|
@@ -1,122 +1,59 @@
|
|
|
1
1
|
# Warm-up - Context Loading
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prepares the environment by loading optimized project context.
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1. Load Configuration
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Read the orchestrator files:
|
|
8
|
+
- **`context-manifest.json`** - Repositories and roles
|
|
9
|
+
- **`ai.properties.md`** - base_path, task_management_system
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
# Check if you are in a workspace directory
|
|
11
|
-
pwd
|
|
12
|
-
# The workspace is usually located at ~/workspaces/<ISSUE-ID>/
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
If you are not in a workspace, ask the user which workspace to use or if a new one should be created with `feature:start`.
|
|
16
|
-
|
|
17
|
-
## 📋 Project Configuration
|
|
11
|
+
## 2. Load Compact Context (OPTIMIZED)
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
**IMPORTANT**: Use PROGRESSIVE loading to save context window.
|
|
20
14
|
|
|
21
|
-
### Required
|
|
15
|
+
### Required (warm-up)
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
- List of project repositories
|
|
25
|
-
- Roles of each repository (metaspecs, application, etc.)
|
|
26
|
-
- URLs and dependencies between repositories
|
|
17
|
+
Locate metaspecs via `context-manifest.json` (role: "specs-provider"):
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- Task management system (`task_management_system`)
|
|
31
|
-
- Credentials and specific configurations
|
|
32
|
-
|
|
33
|
-
### How to Read
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# 1. Read context-manifest.json
|
|
37
|
-
cat context-manifest.json
|
|
38
|
-
|
|
39
|
-
# 2. Read ai.properties.md
|
|
40
|
-
cat ai.properties.md
|
|
19
|
+
```
|
|
20
|
+
{base_path}/{metaspecs-id}/specs/_meta/WARM_UP_CONTEXT.md (~100 lines)
|
|
41
21
|
```
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- ✅ Configured task management system
|
|
50
|
-
- ✅ Project-specific configurations
|
|
51
|
-
|
|
52
|
-
**🛑 DO NOT proceed without reading these files!** They contain critical information for the correct execution of the command.
|
|
53
|
-
|
|
54
|
-
## 2. Load Project Configuration
|
|
55
|
-
|
|
56
|
-
You are already in the project orchestrator (root of the current repository).
|
|
57
|
-
|
|
58
|
-
1. **Verify you are at the orchestrator root**: `pwd` should show the orchestrator directory
|
|
59
|
-
2. **Read the `context-manifest.json` file** at the orchestrator root
|
|
60
|
-
3. **Read the `ai.properties.md` file** to obtain local configurations (base_path, etc.)
|
|
61
|
-
|
|
62
|
-
## 3. Load Project Manifest
|
|
63
|
-
|
|
64
|
-
Read the `context-manifest.json` from the orchestrator to understand:
|
|
65
|
-
- Complete list of ecosystem repositories
|
|
66
|
-
- URL of the MetaSpecs repository
|
|
67
|
-
- Dependencies between repositories
|
|
68
|
-
- Roles of each repository (application, library, service, specs-provider)
|
|
69
|
-
|
|
70
|
-
## 4. Load MetaSpecs
|
|
71
|
-
|
|
72
|
-
The MetaSpecs repository is **separate** and defined in `context-manifest.json` with `role: "metaspecs"`.
|
|
73
|
-
|
|
74
|
-
**Locate the metaspecs repository:**
|
|
75
|
-
|
|
76
|
-
1. Read `context-manifest.json` and find the repository with `role: "metaspecs"`
|
|
77
|
-
2. Obtain the `id` of that repository (e.g., "my-project-metaspecs")
|
|
78
|
-
3. Read `ai.properties.md` to get the `base_path`
|
|
79
|
-
4. The metaspecs repository is located at: `{base_path}/{metaspecs-id}/`
|
|
23
|
+
This file contains ALL essentials:
|
|
24
|
+
- Technology stack
|
|
25
|
+
- Context hierarchy
|
|
26
|
+
- 5 critical rules
|
|
27
|
+
- Minimal code patterns
|
|
28
|
+
- On-demand loading table
|
|
80
29
|
|
|
81
|
-
|
|
30
|
+
### On Demand (DO NOT load during warm-up)
|
|
82
31
|
|
|
83
|
-
|
|
84
|
-
|
|
32
|
+
| Need | Document |
|
|
33
|
+
|------|----------|
|
|
34
|
+
| Generate code | `CLAUDE.meta.md` |
|
|
35
|
+
| Architecture | `ARCHITECTURE.md` |
|
|
36
|
+
| Specific feature | `features/{FEATURE}.md` |
|
|
37
|
+
| Complete anti-patterns | `ANTI_PATTERNS.md` |
|
|
85
38
|
|
|
86
|
-
|
|
39
|
+
## 3. Verify Repositories
|
|
87
40
|
|
|
88
|
-
|
|
41
|
+
For each repository in `context-manifest.json`:
|
|
42
|
+
- Verify existence at `{base_path}/{repo-id}/`
|
|
43
|
+
- **DO NOT** read README.md now (on demand)
|
|
89
44
|
|
|
90
|
-
|
|
45
|
+
## 4. Verify Session (if exists)
|
|
91
46
|
|
|
92
47
|
```bash
|
|
93
|
-
# Look for session in the orchestrator
|
|
94
48
|
ls -la .sessions/<ISSUE-ID>/ 2>/dev/null
|
|
95
49
|
```
|
|
96
50
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## 6. Repository Context
|
|
100
|
-
|
|
101
|
-
For each repository present in the workspace, read:
|
|
102
|
-
- `README.md` - Purpose and overview of the repository
|
|
103
|
-
- Main configuration file (`package.json`, `pom.xml`, `requirements.txt`, etc.)
|
|
104
|
-
|
|
105
|
-
## 7. Smart Navigation
|
|
106
|
-
|
|
107
|
-
- **Code**: Use search tools (glob, grep) to locate relevant files
|
|
108
|
-
- **Documentation**: Use MetaSpecs indexes as reference
|
|
109
|
-
- **Wait for Instructions**: DO NOT read other files now. Wait for the next command.
|
|
110
|
-
|
|
111
|
-
## 8. Jidoka Principle (Stop Upon Detecting Problems)
|
|
51
|
+
## 5. Jidoka Principle
|
|
112
52
|
|
|
113
|
-
If
|
|
114
|
-
1. 🛑 **STOP** immediately
|
|
115
|
-
2. 📝 **DOCUMENT** the problem found
|
|
116
|
-
3. 💬 **ALERT** the user before proceeding
|
|
53
|
+
If problems detected: **STOP**, document, alert the user.
|
|
117
54
|
|
|
118
55
|
---
|
|
119
56
|
|
|
120
|
-
**
|
|
57
|
+
**Arguments**: #$ARGUMENTS
|
|
121
58
|
|
|
122
|
-
**Status**: Context loaded. Awaiting next command.
|
|
59
|
+
**Status**: Context loaded. Awaiting next command.
|
|
@@ -1,123 +1,59 @@
|
|
|
1
1
|
# Calentamiento - Carga de Contexto
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prepara el entorno cargando el contexto optimizado del proyecto.
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1. Cargar Configuración
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Lee los archivos del orquestador:
|
|
8
|
+
- **`context-manifest.json`** - Repositorios y roles
|
|
9
|
+
- **`ai.properties.md`** - base_path, task_management_system
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
# Verificar si está en un directorio de workspace
|
|
11
|
-
pwd
|
|
12
|
-
# El workspace generalmente está en ~/workspaces/<ISSUE-ID>/
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Si no está en un workspace, pregunte al usuario qué workspace usar o si debe crear uno nuevo con `feature:start`.
|
|
16
|
-
|
|
17
|
-
## 📋 Configuración del Proyecto
|
|
11
|
+
## 2. Cargar Contexto Compacto (OPTIMIZADO)
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
**IMPORTANTE**: Usa carga PROGRESIVA para economizar la ventana de contexto.
|
|
20
14
|
|
|
21
|
-
###
|
|
15
|
+
### Obligatorio (warm-up)
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
- Lista de repositorios del proyecto
|
|
25
|
-
- Roles de cada repositorio (metaspecs, application, etc.)
|
|
26
|
-
- URLs y dependencias entre repositorios
|
|
17
|
+
Localiza metaspecs vía `context-manifest.json` (role: "specs-provider"):
|
|
27
18
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- Sistema de gestión de tareas (`task_management_system`)
|
|
31
|
-
- Credenciales y configuraciones específicas
|
|
32
|
-
|
|
33
|
-
### Cómo Leer
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
# 1. Leer context-manifest.json
|
|
37
|
-
cat context-manifest.json
|
|
38
|
-
|
|
39
|
-
# 2. Leer ai.properties.md
|
|
40
|
-
cat ai.properties.md
|
|
19
|
+
```
|
|
20
|
+
{base_path}/{metaspecs-id}/specs/_meta/WARM_UP_CONTEXT.md (~100 líneas)
|
|
41
21
|
```
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- ✅ Sistema de gestión de tareas configurado
|
|
50
|
-
- ✅ Configuraciones específicas del proyecto
|
|
51
|
-
|
|
52
|
-
**🛑 NO continúe sin leer estos archivos!** Contienen información crítica para la correcta ejecución del comando.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
## 2. Cargar Configuración del Proyecto
|
|
56
|
-
|
|
57
|
-
Ya está en el orchestrator del proyecto (raíz del repositorio actual).
|
|
58
|
-
|
|
59
|
-
1. **Verifique que está en la raíz del orchestrator**: `pwd` debe mostrar el directorio del orchestrator
|
|
60
|
-
2. **Lea el archivo `context-manifest.json`** en la raíz del orchestrator
|
|
61
|
-
3. **Lea el archivo `ai.properties.md`** para obtener configuraciones locales (base_path, etc.)
|
|
62
|
-
|
|
63
|
-
## 3. Cargar Manifiesto del Proyecto
|
|
64
|
-
|
|
65
|
-
Lea el `context-manifest.json` del orchestrator para entender:
|
|
66
|
-
- Lista completa de repositorios del ecosistema
|
|
67
|
-
- URL del repositorio de MetaSpecs
|
|
68
|
-
- Dependencias entre repositorios
|
|
69
|
-
- Roles de cada repositorio (application, library, service, specs-provider)
|
|
70
|
-
|
|
71
|
-
## 4. Cargar MetaSpecs
|
|
72
|
-
|
|
73
|
-
El repositorio de MetaSpecs es **separado** y está definido en el `context-manifest.json` con `role: "metaspecs"`.
|
|
74
|
-
|
|
75
|
-
**Localice el repositorio de metaspecs:**
|
|
76
|
-
|
|
77
|
-
1. Lea `context-manifest.json` y encuentre el repositorio con `role: "metaspecs"`
|
|
78
|
-
2. Obtenga el `id` de ese repositorio (ej: "my-project-metaspecs")
|
|
79
|
-
3. Lea `ai.properties.md` para obtener el `base_path`
|
|
80
|
-
4. El repositorio de metaspecs está en: `{base_path}/{metaspecs-id}/`
|
|
23
|
+
Este archivo contiene TODOS los esenciales:
|
|
24
|
+
- Stack tecnológico
|
|
25
|
+
- Jerarquía de contexto
|
|
26
|
+
- 5 reglas críticas
|
|
27
|
+
- Patrones de código mínimos
|
|
28
|
+
- Tabla de carga bajo demanda
|
|
81
29
|
|
|
82
|
-
|
|
30
|
+
### Bajo Demanda (NO cargar durante warm-up)
|
|
83
31
|
|
|
84
|
-
|
|
85
|
-
|
|
32
|
+
| Necesidad | Documento |
|
|
33
|
+
|-----------|-----------|
|
|
34
|
+
| Generar código | `CLAUDE.meta.md` |
|
|
35
|
+
| Arquitectura | `ARCHITECTURE.md` |
|
|
36
|
+
| Feature específica | `features/{FEATURE}.md` |
|
|
37
|
+
| Anti-patrones completos | `ANTI_PATTERNS.md` |
|
|
86
38
|
|
|
87
|
-
|
|
39
|
+
## 3. Verificar Repositorios
|
|
88
40
|
|
|
89
|
-
|
|
41
|
+
Para cada repositorio en `context-manifest.json`:
|
|
42
|
+
- Verificar existencia en `{base_path}/{repo-id}/`
|
|
43
|
+
- **NO** leer README.md ahora (bajo demanda)
|
|
90
44
|
|
|
91
|
-
|
|
45
|
+
## 4. Verificar Sesión (si existe)
|
|
92
46
|
|
|
93
47
|
```bash
|
|
94
|
-
# Buscar sesión en el orchestrator
|
|
95
48
|
ls -la .sessions/<ISSUE-ID>/ 2>/dev/null
|
|
96
49
|
```
|
|
97
50
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
## 6. Contexto de los Repositorios
|
|
101
|
-
|
|
102
|
-
Para cada repositorio presente en el workspace, lea:
|
|
103
|
-
- `README.md` - Propósito y visión general del repositorio
|
|
104
|
-
- Archivo de configuración principal (`package.json`, `pom.xml`, `requirements.txt`, etc.)
|
|
105
|
-
|
|
106
|
-
## 7. Navegación Inteligente
|
|
107
|
-
|
|
108
|
-
- **Código**: Use herramientas de búsqueda (glob, grep) para localizar archivos relevantes
|
|
109
|
-
- **Documentación**: Use los índices de los MetaSpecs como referencia
|
|
110
|
-
- **Espere Instrucciones**: NO lea otros archivos ahora. Espere el próximo comando.
|
|
111
|
-
|
|
112
|
-
## 8. Principio Jidoka (Parar al Detectar Problemas)
|
|
51
|
+
## 5. Principio Jidoka
|
|
113
52
|
|
|
114
|
-
Si
|
|
115
|
-
1. 🛑 **PARE** inmediatamente
|
|
116
|
-
2. 📝 **DOCUMENTE** el problema encontrado
|
|
117
|
-
3. 💬 **ALERTE** al usuario antes de continuar
|
|
53
|
+
Si se detectan problemas: **PARA**, documenta, alerta al usuario.
|
|
118
54
|
|
|
119
55
|
---
|
|
120
56
|
|
|
121
|
-
**Argumentos
|
|
57
|
+
**Argumentos**: #$ARGUMENTS
|
|
122
58
|
|
|
123
|
-
**Estado**: Contexto cargado. Esperando próximo comando.
|
|
59
|
+
**Estado**: Contexto cargado. Esperando próximo comando.
|