context-first-cli 2.0.3 → 2.0.5
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/products/collect.md +64 -40
- package/dist/templates/commands/en/products/refine.md +171 -167
- package/dist/templates/commands/es/products/collect.md +71 -47
- package/dist/templates/commands/es/products/refine.md +171 -167
- package/dist/templates/commands/pt-BR/products/collect.md +27 -3
- package/dist/templates/commands/pt-BR/products/refine.md +171 -167
- package/package.json +1 -1
- package/templates/commands/en/products/collect.md +64 -40
- package/templates/commands/en/products/refine.md +171 -167
- package/templates/commands/es/products/collect.md +71 -47
- package/templates/commands/es/products/refine.md +171 -167
- package/templates/commands/pt-BR/products/collect.md +27 -3
- package/templates/commands/pt-BR/products/refine.md +171 -167
|
@@ -1,209 +1,211 @@
|
|
|
1
1
|
# Requirements Refinement
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
You are a product expert tasked with helping to refine requirements for the project.
|
|
4
4
|
|
|
5
5
|
## ⚠️ IMPORTANT: This Command DOES NOT Implement Code
|
|
6
6
|
|
|
7
|
-
**This command is ONLY for
|
|
8
|
-
- ✅
|
|
9
|
-
- ✅
|
|
10
|
-
- ✅
|
|
7
|
+
**This command is ONLY for planning and documentation:**
|
|
8
|
+
- ✅ Validate requirements against metaspecs
|
|
9
|
+
- ✅ Create refined specification
|
|
10
|
+
- ✅ Save documentation in `.sessions/`
|
|
11
|
+
- ✅ Update issue in task manager
|
|
11
12
|
- ❌ **DO NOT implement code**
|
|
12
13
|
- ❌ **DO NOT edit code files**
|
|
13
|
-
- ❌ **DO NOT
|
|
14
|
-
- ❌ **DO NOT make commits**
|
|
14
|
+
- ❌ **DO NOT run tests or deploy**
|
|
15
15
|
|
|
16
|
-
**Next step**: `/spec [ISSUE-ID]` to create
|
|
16
|
+
**Next step**: `/spec [ISSUE-ID]` to create a complete PRD based on the refined requirements.
|
|
17
17
|
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## Objective
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
- Project context will be loaded automatically (see "Load MetaSpecs" section below)
|
|
22
|
+
Transform an initial requirement into a refined and validated specification, ready to become a complete PRD.
|
|
24
23
|
|
|
25
|
-
##
|
|
24
|
+
## Process
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
- Exact scope (what is included and what is not)
|
|
29
|
-
- Clear acceptance criteria
|
|
30
|
-
- Impact on each repository
|
|
31
|
-
- Technical dependencies
|
|
32
|
-
- Risks and constraints
|
|
26
|
+
### 1. Clarification Phase
|
|
33
27
|
|
|
34
|
-
|
|
28
|
+
Read the initial requirement and ask questions to achieve full clarity about:
|
|
29
|
+
- **Objective**: Why build this?
|
|
30
|
+
- **Business Value**: Which metric/persona does it impact?
|
|
31
|
+
- **Scope**: What is included and what is NOT included?
|
|
32
|
+
- **Interactions**: Which existing features/components are affected?
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
Keep asking questions until you have complete understanding.
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
### 2. Validation Against Metaspecs
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
- Use the appropriate MCP to fetch the issue:
|
|
42
|
-
- `task_management_system=jira`: Use Jira MCP
|
|
43
|
-
- `task_management_system=linear`: Use Linear MCP
|
|
44
|
-
- `task_management_system=github`: Use GitHub MCP
|
|
45
|
-
- Load all issue data (title, description, labels, etc.)
|
|
38
|
+
**IMPORTANT**: First read `ai.properties.md` to obtain the `base_path`. The indexes should ALREADY be in context (you ran `/warm-up`). Consult the indexes and read ONLY the relevant documents to validate the requirement.
|
|
46
39
|
|
|
47
|
-
**
|
|
48
|
-
|
|
49
|
-
- Read `./.sessions/<ISSUE-ID>/collect.md`
|
|
50
|
-
- If the file does not exist, inform the user of the error
|
|
51
|
-
|
|
52
|
-
### 2. Load MetaSpecs
|
|
53
|
-
|
|
54
|
-
**Automatically locate MetaSpecs**:
|
|
55
|
-
1. Read `context-manifest.json` from the orchestrator
|
|
56
|
-
2. Find the repository with `"role": "metaspecs"`
|
|
57
|
-
3. Read `ai.properties.md` to get the `base_path`
|
|
58
|
-
4. The metaspecs are located at: `{base_path}/{metaspecs-repo-id}/`
|
|
59
|
-
5. Read relevant `index.md` files to understand:
|
|
60
|
-
- System architecture
|
|
61
|
-
- Design patterns
|
|
62
|
-
- Technical constraints
|
|
63
|
-
- Project conventions
|
|
64
|
-
|
|
65
|
-
### 3. Scope Analysis
|
|
66
|
-
|
|
67
|
-
Clearly define:
|
|
68
|
-
|
|
69
|
-
**What IS in scope**:
|
|
70
|
-
- Specific functionalities to be implemented
|
|
71
|
-
- Repositories that will be modified
|
|
72
|
-
- Necessary integrations
|
|
73
|
-
|
|
74
|
-
**What IS NOT in scope**:
|
|
75
|
-
- Related functionalities deferred for later
|
|
76
|
-
- Future optimizations
|
|
77
|
-
- "Nice to have" features
|
|
78
|
-
|
|
79
|
-
### 4. Acceptance Criteria
|
|
80
|
-
|
|
81
|
-
Define measurable and testable criteria:
|
|
82
|
-
|
|
83
|
-
```markdown
|
|
84
|
-
## Acceptance Criteria
|
|
85
|
-
|
|
86
|
-
### Functional
|
|
87
|
-
- [ ] [Criterion 1 - specific and testable]
|
|
88
|
-
- [ ] [Criterion 2 - specific and testable]
|
|
89
|
-
|
|
90
|
-
### Technical
|
|
91
|
-
- [ ] [Technical criterion 1]
|
|
92
|
-
- [ ] [Technical criterion 2]
|
|
93
|
-
|
|
94
|
-
### Quality
|
|
95
|
-
- [ ] Unit tests implemented
|
|
96
|
-
- [ ] Integration tests implemented
|
|
97
|
-
- [ ] Documentation updated
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### 5. Impact Analysis
|
|
101
|
-
|
|
102
|
-
For each affected repository:
|
|
40
|
+
**Validation Process**:
|
|
103
41
|
|
|
42
|
+
1. **Consult the loaded indexes** from `/warm-up`:
|
|
43
|
+
- Read `context-manifest.json` to find the repository with `role: "metaspecs"`
|
|
44
|
+
- Obtain the `id` of that repository (e.g., "my-project-metaspecs")
|
|
45
|
+
- Read `ai.properties.md` to get the `base_path`
|
|
46
|
+
- The metaspecs repository is at: `{base_path}/{metaspecs-id}/`
|
|
47
|
+
- Consult `{base_path}/{metaspecs-id}/index.md` - Project overview
|
|
48
|
+
- Consult specific indexes (e.g., `specs/business/index.md`, `specs/technical/index.md`)
|
|
49
|
+
|
|
50
|
+
2. **Identify relevant documents** for this specific requirement:
|
|
51
|
+
- In `specs/business/`: Which business documents are relevant?
|
|
52
|
+
- In `specs/technical/`: Which technical documents are relevant?
|
|
53
|
+
|
|
54
|
+
3. **Read ONLY the identified relevant documents** (do not read everything!)
|
|
55
|
+
|
|
56
|
+
4. **Validate the requirement** against the read metaspecs:
|
|
57
|
+
- ✅ Alignment with product strategy and vision
|
|
58
|
+
- ✅ Meets needs of the correct personas
|
|
59
|
+
- ✅ Compatible with approved technology stack
|
|
60
|
+
- ✅ Respects architectural decisions (ADRs)
|
|
61
|
+
- ✅ Follows existing business rules
|
|
62
|
+
- ⚠️ Identify conflicts or violations
|
|
63
|
+
|
|
64
|
+
**If you identify violations**: 🛑 **STOP** and ask the user for clarification before proceeding (Jidoka Principle).
|
|
65
|
+
|
|
66
|
+
### 3. Summary and Approval Phase
|
|
67
|
+
|
|
68
|
+
Once you have gathered sufficient information and validated against metaspecs, present a structured summary with:
|
|
69
|
+
- **Feature**: Feature name
|
|
70
|
+
- **Objective**: Why build it (1-2 sentences)
|
|
71
|
+
- **Business Value**: Metric, persona, roadmap phase (consult metaspecs)
|
|
72
|
+
- **Scope**: What it INCLUDES and what it DOES NOT INCLUDE
|
|
73
|
+
- **Affected Components**: List based on current architecture (consult technical metaspecs)
|
|
74
|
+
- **Validation against Metaspecs**: ✅ Approved / ⚠️ Attention needed
|
|
75
|
+
- **Effort Estimate**: Small (< 1 day) / Medium (1-3 days) / Large (3-5 days) / Very Large (> 5 days)
|
|
76
|
+
|
|
77
|
+
**Complexity Assessment and Suggestion to Break Down**:
|
|
78
|
+
|
|
79
|
+
**If the implementation seems large** (> 5 days estimated effort):
|
|
80
|
+
- 🚨 **Suggest breaking into multiple smaller issues**
|
|
81
|
+
- Explain the rationale for the breakdown (e.g., "This feature involves 3 distinct areas that can be implemented independently")
|
|
82
|
+
- Propose a **logical** breakdown based on:
|
|
83
|
+
- Independent functionalities
|
|
84
|
+
- Different repositories
|
|
85
|
+
- Application layers (backend, frontend, infra)
|
|
86
|
+
- Implementation phases (MVP, improvements, optimizations)
|
|
87
|
+
- Example breakdown:
|
|
88
|
+
```
|
|
89
|
+
Original Issue: "Multi-channel notification system"
|
|
90
|
+
|
|
91
|
+
Suggested Breakdown:
|
|
92
|
+
- FIN-201: Queue and worker infrastructure (backend)
|
|
93
|
+
- FIN-202: Email notifications (backend + templates)
|
|
94
|
+
- FIN-203: Push notifications (backend + mobile)
|
|
95
|
+
- FIN-204: Notification preferences (frontend + backend)
|
|
96
|
+
```
|
|
97
|
+
- **Important**: The final decision is the user's - they may accept the breakdown or keep it as a single issue
|
|
98
|
+
|
|
99
|
+
**If the user accepts the breakdown**:
|
|
100
|
+
- Document each issue separately
|
|
101
|
+
- Add cross-references between related issues
|
|
102
|
+
- Suggest implementation order if dependencies exist
|
|
103
|
+
- Each broken-down issue must go through the same refinement process
|
|
104
|
+
|
|
105
|
+
Request user approval and incorporate feedback if necessary.
|
|
106
|
+
|
|
107
|
+
**Tip**: You may search the codebase or internet before finalizing, if needed.
|
|
108
|
+
|
|
109
|
+
### 4. Saving the Refined Requirements
|
|
110
|
+
|
|
111
|
+
Once the user approves, save the requirements:
|
|
112
|
+
|
|
113
|
+
**IMPORTANT**: Always create a local backup AND update the task manager (if configured).
|
|
114
|
+
|
|
115
|
+
**Saving Process**:
|
|
116
|
+
|
|
117
|
+
1. **ALWAYS create local backup first**:
|
|
118
|
+
- Create a complete file at `./.sessions/<ISSUE-ID>/refined.md` (e.g., `./.sessions/FIN-5/refined.md`)
|
|
119
|
+
- Where `<ISSUE-ID>` is the issue ID (e.g., FIN-5, FIN-123)
|
|
120
|
+
- Include ALL refinement details (full backup)
|
|
121
|
+
|
|
122
|
+
2. **If task manager is configured** (read `ai.properties.md` to identify `task_management_system`):
|
|
123
|
+
- Identify the MCP tool of the task manager
|
|
124
|
+
- **Update the BODY (description) of the issue** with a CONCISE version of the refined requirements
|
|
125
|
+
- For Jira: Use Jira MCP with `description` field
|
|
126
|
+
- For Linear: Use Linear MCP with `description` field
|
|
127
|
+
- For GitHub: Use GitHub MCP with `body` field
|
|
128
|
+
- Include all refined content in the issue description/body field
|
|
129
|
+
- If content is too long and API errors occur, consider creating a summarized version
|
|
130
|
+
- **ALWAYS overwrite** the existing body (do not append)
|
|
131
|
+
|
|
132
|
+
**Note**:
|
|
133
|
+
- The local backup is ALWAYS saved and complete
|
|
134
|
+
- If API error occurs, manually verify if the issue was updated in the task manager
|
|
135
|
+
|
|
136
|
+
**Output Template**:
|
|
137
|
+
|
|
138
|
+
**IMPORTANT**: The standard template for refined requirements may be documented in the metaspecs repository. Check `{base_path}/{metaspecs-id}/specs/refined/` or similar.
|
|
139
|
+
|
|
140
|
+
**FULL Template** (for local backup `.sessions/<ISSUE-ID>/refined.md`):
|
|
141
|
+
- **Metadata**: Issue, ID, Task Manager, Project, Date, Sprint, Priority
|
|
142
|
+
- **🎯 WHY**: Reasons, business value, metric, persona, strategic alignment
|
|
143
|
+
- **📦 WHAT**: Detailed features, affected components, integrations, full negative scope
|
|
144
|
+
- **🔧 HOW**: Stack, coding standards, file structure, dependencies, implementation order, failure modes, performance/cost/UX considerations
|
|
145
|
+
- **✅ Validation against Metaspecs**: Consulted documents (business and technical), verified ADRs, validation result
|
|
146
|
+
- **📊 Success Metrics**: Technical, product/UX, acceptance criteria
|
|
147
|
+
- **🔄 Product Impact**: Alignment with objectives, enablers, mitigated risks
|
|
148
|
+
- **⚠️ Known Limitations**: MVP limitations
|
|
149
|
+
- **📝 Implementation Checklist**: Tasks by area (backend, frontend, testing, security, etc.)
|
|
150
|
+
|
|
151
|
+
**Task Manager Template**:
|
|
104
152
|
```markdown
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### <repo-1>
|
|
108
|
-
- **Affected components**: [list]
|
|
109
|
-
- **Type of change**: New feature / Modification / Refactoring
|
|
110
|
-
- **Estimated complexity**: Low / Medium / High
|
|
111
|
-
- **Risks**: [specific risks]
|
|
112
|
-
|
|
113
|
-
### <repo-2>
|
|
114
|
-
- **Affected components**: [list]
|
|
115
|
-
- **Type of change**: New feature / Modification / Refactoring
|
|
116
|
-
- **Estimated complexity**: Low / Medium / High
|
|
117
|
-
- **Risks**: [specific risks]
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### 6. Dependencies and Constraints
|
|
121
|
-
|
|
122
|
-
Identify:
|
|
123
|
-
- Dependencies between repositories
|
|
124
|
-
- Dependencies on other features/issues
|
|
125
|
-
- Technical constraints
|
|
126
|
-
- Business constraints
|
|
127
|
-
- Known blockers
|
|
128
|
-
|
|
129
|
-
### 7. Initial Estimate
|
|
153
|
+
# [Feature Name] - Refined Requirements
|
|
130
154
|
|
|
131
|
-
|
|
132
|
-
- **Small**: < 1 day
|
|
133
|
-
- **Medium**: 1-3 days
|
|
134
|
-
- **Large**: 3-5 days
|
|
135
|
-
- **Very Large**: > 5 days (consider breaking into smaller issues)
|
|
155
|
+
**Sprint X** | **Y days** | **Priority**
|
|
136
156
|
|
|
137
|
-
|
|
157
|
+
## Objective
|
|
158
|
+
[1-2 paragraphs: what it is and why]
|
|
138
159
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
## 📄 Saving the Refinement
|
|
160
|
+
## Scope
|
|
142
161
|
|
|
143
|
-
|
|
162
|
+
### Main Features
|
|
163
|
+
- Feature 1: [summary]
|
|
164
|
+
- Feature 2: [summary]
|
|
165
|
+
- Validations/Guards: [summary]
|
|
144
166
|
|
|
145
|
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
- Add estimate if supported by the task manager
|
|
149
|
-
- Inform the user: "✅ Issue [ID] updated with refinement"
|
|
167
|
+
### Affected Components
|
|
168
|
+
- Component 1: [type of change]
|
|
169
|
+
- Component 2: [type of change]
|
|
150
170
|
|
|
151
|
-
|
|
171
|
+
### Security
|
|
172
|
+
✅ [item 1] ✅ [item 2] ✅ [item 3]
|
|
152
173
|
|
|
153
|
-
|
|
174
|
+
## Negative Scope
|
|
175
|
+
❌ [item 1] ❌ [item 2] ❌ [item 3]
|
|
154
176
|
|
|
155
|
-
|
|
156
|
-
|
|
177
|
+
## Stack
|
|
178
|
+
[Tech stack summary by area]
|
|
157
179
|
|
|
158
|
-
##
|
|
180
|
+
## Structure
|
|
181
|
+
[SUMMARIZED file tree - main modules only]
|
|
159
182
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### Excluded
|
|
165
|
-
- [Item 1]
|
|
166
|
-
- [Item 2]
|
|
183
|
+
## Failure Modes (To Avoid)
|
|
184
|
+
🔴 [critical 1] 🔴 [critical 2]
|
|
185
|
+
🟡 [medium 1] 🟡 [medium 2]
|
|
167
186
|
|
|
168
187
|
## Acceptance Criteria
|
|
169
|
-
[
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
[As per section 4 above]
|
|
173
|
-
|
|
174
|
-
## Dependencies
|
|
175
|
-
- [Dependency 1]
|
|
176
|
-
- [Dependency 2]
|
|
177
|
-
|
|
178
|
-
## Constraints
|
|
179
|
-
- [Constraint 1]
|
|
180
|
-
- [Constraint 2]
|
|
188
|
+
- [ ] [item 1]
|
|
189
|
+
- [ ] [item 2]
|
|
190
|
+
- [ ] [item 3]
|
|
181
191
|
|
|
182
|
-
##
|
|
183
|
-
|
|
192
|
+
## Validation
|
|
193
|
+
**ADRs**: [list]
|
|
194
|
+
**Specs**: [main]
|
|
195
|
+
**Status**: ✅ Approved
|
|
184
196
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
2. [Question 2]
|
|
197
|
+
**Impact**: [summary]
|
|
198
|
+
**Limitations**: [summary]
|
|
188
199
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
- [Risk 2 and mitigation]
|
|
200
|
+
---
|
|
201
|
+
📄 **Full document**: `.sessions/<ISSUE-ID>/refined.md`
|
|
192
202
|
```
|
|
193
203
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
## 🔍 Validation
|
|
197
|
-
|
|
198
|
-
Validate the refinement against:
|
|
199
|
-
- Product strategy (if documented)
|
|
200
|
-
- Technical architecture (if documented)
|
|
201
|
-
- Team capacity
|
|
202
|
-
- Roadmap priorities
|
|
204
|
+
**Audience**: AI Developer with capabilities similar to yours. Be concise but complete.
|
|
203
205
|
|
|
204
206
|
---
|
|
205
207
|
|
|
206
|
-
**
|
|
208
|
+
**Requirement to Refine**:
|
|
207
209
|
|
|
208
210
|
```
|
|
209
211
|
#$ARGUMENTS
|
|
@@ -213,10 +215,12 @@ Validate the refinement against:
|
|
|
213
215
|
|
|
214
216
|
## 🎯 Next Step
|
|
215
217
|
|
|
216
|
-
After
|
|
218
|
+
**After user approval and saving the refined requirements**, the natural flow is:
|
|
217
219
|
|
|
218
220
|
```bash
|
|
219
221
|
/spec [ISSUE-ID]
|
|
220
222
|
```
|
|
221
223
|
|
|
222
|
-
|
|
224
|
+
**Example**: `/spec FIN-3`
|
|
225
|
+
|
|
226
|
+
This command will create a complete PRD (Product Requirements Document) based on the refined requirements, detailing features, user stories, acceptance criteria, and final validations.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Recolección de Ideas y Requisitos
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Eres un especialista en producto responsable de recopilar y documentar nuevas ideas, funcionalidades o bugs.
|
|
4
4
|
|
|
5
5
|
## ⚠️ IMPORTANTE: Este Comando NO Implementa Código
|
|
6
6
|
|
|
7
|
-
**Este comando es
|
|
7
|
+
**Este comando es SÓLO para planificación y documentación:**
|
|
8
8
|
- ✅ Recopilar y entender requisitos
|
|
9
|
-
- ✅ Crear issue en el
|
|
9
|
+
- ✅ Crear issue en el gestor de tareas vía MCP
|
|
10
10
|
- ✅ Hacer preguntas de aclaración
|
|
11
11
|
- ✅ **LEER** archivos de los repositorios principales (solo lectura)
|
|
12
12
|
- ❌ **NO implementar código**
|
|
13
|
-
- ❌ **NO
|
|
13
|
+
- ❌ **NO hacer ediciones en archivos de código**
|
|
14
14
|
- ❌ **NO hacer checkout de branches en los repositorios principales**
|
|
15
15
|
- ❌ **NO hacer commits**
|
|
16
16
|
|
|
@@ -20,29 +20,29 @@ Usted es un experto en producto responsable de recopilar y documentar nuevas ide
|
|
|
20
20
|
|
|
21
21
|
## Contexto del Proyecto
|
|
22
22
|
|
|
23
|
-
Antes de
|
|
23
|
+
Antes de comenzar, carga el contexto consultando:
|
|
24
24
|
|
|
25
25
|
1. **Localizar MetaSpecs automáticamente**:
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
26
|
+
- Lee `context-manifest.json` del orquestador
|
|
27
|
+
- Encuentra el repositorio con `"role": "metaspecs"`
|
|
28
|
+
- Lee `ai.properties.md` para obtener el `base_path`
|
|
29
29
|
- El metaspecs está en: `{base_path}/{metaspecs-repo-id}/`
|
|
30
|
-
-
|
|
30
|
+
- Lee los archivos `index.md` como referencia
|
|
31
31
|
|
|
32
32
|
2. **Estructura del proyecto**:
|
|
33
33
|
- `context-manifest.json` - Lista de repositorios y sus funciones
|
|
34
34
|
- `README.md` de los repositorios involucrados
|
|
35
35
|
|
|
36
|
-
##
|
|
36
|
+
## Tu Objetivo
|
|
37
37
|
|
|
38
|
-
Entender la solicitud del usuario y capturarla como issue en el
|
|
38
|
+
Entender la solicitud del usuario y capturarla como issue en el gestor de tareas (vía MCP).
|
|
39
39
|
|
|
40
|
-
**En esta fase,
|
|
40
|
+
**En esta fase, NO necesitas:**
|
|
41
41
|
- ❌ Escribir especificación completa
|
|
42
42
|
- ❌ Validar contra metaspecs (esto se hace en `/refine` o `/spec`)
|
|
43
43
|
- ❌ Detallar implementación técnica
|
|
44
44
|
|
|
45
|
-
Solo
|
|
45
|
+
Solo asegúrate de que la idea esté **adecuadamente comprendida**.
|
|
46
46
|
|
|
47
47
|
## Formato de la Issue
|
|
48
48
|
|
|
@@ -50,20 +50,20 @@ Solo asegúrese de que la idea esté **adecuadamente comprendida**.
|
|
|
50
50
|
# [Título Claro y Descriptivo]
|
|
51
51
|
|
|
52
52
|
## Descripción
|
|
53
|
-
[2-3 párrafos explicando qué es la
|
|
53
|
+
[2-3 párrafos explicando qué es la funcionalidad/bug y por qué es importante]
|
|
54
54
|
|
|
55
55
|
## Tipo
|
|
56
|
-
- [ ] Nueva
|
|
57
|
-
- [ ] Mejora de
|
|
56
|
+
- [ ] Nueva Funcionalidad
|
|
57
|
+
- [ ] Mejora de Funcionalidad Existente
|
|
58
58
|
- [ ] Bug
|
|
59
|
-
- [ ]
|
|
59
|
+
- [ ] Deuda Técnica
|
|
60
60
|
- [ ] Documentación
|
|
61
61
|
|
|
62
62
|
## Contexto Adicional
|
|
63
|
-
[Información relevante: dónde ocurre el bug, inspiración para la
|
|
63
|
+
[Información relevante: dónde ocurre el bug, inspiración para la funcionalidad, etc.]
|
|
64
64
|
|
|
65
65
|
## Repositorios Afectados
|
|
66
|
-
[
|
|
66
|
+
[Lista de los repositorios del proyecto que serán impactados]
|
|
67
67
|
|
|
68
68
|
## Prioridad Sugerida
|
|
69
69
|
- [ ] 🔴 Crítica
|
|
@@ -75,9 +75,9 @@ Solo asegúrese de que la idea esté **adecuadamente comprendida**.
|
|
|
75
75
|
## Proceso de Recolección
|
|
76
76
|
|
|
77
77
|
1. **Entendimiento Inicial**
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
78
|
+
- Haz preguntas de aclaración si es necesario
|
|
79
|
+
- Identifica: ¿Es funcionalidad nueva? ¿Mejora? ¿Bug?
|
|
80
|
+
- Identifica qué repositorios serán afectados
|
|
81
81
|
|
|
82
82
|
2. **Borrador de la Issue**
|
|
83
83
|
- Título claro (máximo 10 palabras)
|
|
@@ -86,47 +86,71 @@ Solo asegúrese de que la idea esté **adecuadamente comprendida**.
|
|
|
86
86
|
- Repositorios afectados
|
|
87
87
|
- Prioridad sugerida
|
|
88
88
|
|
|
89
|
-
3. **
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
3. **Evaluación de Complejidad y Sugerencia de División**
|
|
90
|
+
|
|
91
|
+
Antes de finalizar, evalúa la complejidad de la issue:
|
|
92
|
+
|
|
93
|
+
**Si la implementación parece grande** (> 5 días de esfuerzo estimado):
|
|
94
|
+
- 🚨 **Sugiere dividir en múltiples issues más pequeñas**
|
|
95
|
+
- Explica la razón de la división (ej: "Esta funcionalidad involucra 3 áreas distintas: autenticación, procesamiento y notificación")
|
|
96
|
+
- Propón una división **lógica** (por funcionalidad, por repositorio, por capa, etc.)
|
|
97
|
+
- Ejemplo de división:
|
|
98
|
+
```
|
|
99
|
+
Issue Original: "Sistema completo de pagos"
|
|
100
|
+
|
|
101
|
+
División Sugerida:
|
|
102
|
+
- FIN-101: Integración con gateway de pago (backend)
|
|
103
|
+
- FIN-102: Interfaz de checkout (frontend)
|
|
104
|
+
- FIN-103: Webhook de confirmación y notificaciones (backend + jobs)
|
|
105
|
+
```
|
|
106
|
+
- **Importante**: La decisión final es del usuario - puede aceptar la división o mantener como issue única
|
|
107
|
+
|
|
108
|
+
**Si el usuario acepta la división**:
|
|
109
|
+
- Crea cada issue por separado usando el mismo proceso
|
|
110
|
+
- Añade referencias cruzadas entre las issues relacionadas
|
|
111
|
+
- Sugiere orden de implementación si hay dependencias
|
|
112
|
+
|
|
113
|
+
4. **Aprobación del Usuario**
|
|
114
|
+
- Presenta el borrador (o borradores, si hay división)
|
|
115
|
+
- Realiza ajustes según feedback
|
|
116
|
+
- Obtén aprobación final
|
|
93
117
|
|
|
94
|
-
|
|
118
|
+
5. **Guardado de la Issue**
|
|
95
119
|
|
|
96
120
|
**PRIORIDAD 1: Usar MCP (Model Context Protocol)**
|
|
97
121
|
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
- Si `task_management_system=jira`:
|
|
101
|
-
- Si `task_management_system=linear`:
|
|
102
|
-
- Si `task_management_system=github`:
|
|
122
|
+
Verifica si hay MCP configurado para el gestor de tareas:
|
|
123
|
+
- Lee `ai.properties.md` del orquestador para identificar el `task_management_system`
|
|
124
|
+
- Si `task_management_system=jira`: Usa MCP de Jira para crear la issue
|
|
125
|
+
- Si `task_management_system=linear`: Usa MCP de Linear para crear la issue
|
|
126
|
+
- Si `task_management_system=github`: Usa MCP de GitHub para crear la issue
|
|
103
127
|
|
|
104
128
|
**Al usar MCP:**
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
- **NO
|
|
129
|
+
- Crea la issue directamente en el gestor de tareas
|
|
130
|
+
- Obtén el ID de la issue creada (ej: FIN-123, LIN-456)
|
|
131
|
+
- Informa al usuario: "✅ Issue [ID] creada en [task manager]"
|
|
132
|
+
- **NO crees archivo .md**
|
|
109
133
|
|
|
110
|
-
**FALLBACK: Crear archivo .md
|
|
134
|
+
**FALLBACK: Crear archivo .md sólo si MCP falla**
|
|
111
135
|
|
|
112
|
-
Si
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
136
|
+
Si MCP no está disponible o falla:
|
|
137
|
+
- Crea archivo en `./.sessions/<ISSUE-ID>/collect.md`
|
|
138
|
+
- Usa formato de ID manual: `LOCAL-001`, `LOCAL-002`, etc.
|
|
139
|
+
- Incluye fecha, tipo y contenido completo
|
|
140
|
+
- Informa al usuario: "⚠️ Issue guardada localmente en .sessions/ (gestor de tareas no disponible)"
|
|
117
141
|
|
|
118
142
|
## Preguntas de Aclaración
|
|
119
143
|
|
|
120
|
-
**Para
|
|
144
|
+
**Para Funcionalidades**:
|
|
121
145
|
- ¿Qué problema resuelve?
|
|
122
146
|
- ¿Quién se beneficia?
|
|
123
147
|
- ¿Es funcionalidad visible o infraestructura?
|
|
124
|
-
- ¿Tiene relación con alguna
|
|
148
|
+
- ¿Tiene relación con alguna funcionalidad existente?
|
|
125
149
|
- ¿Qué repositorios necesitan ser modificados?
|
|
126
150
|
|
|
127
151
|
**Para Bugs**:
|
|
128
152
|
- ¿Dónde ocurre el bug? (repositorio, componente, flujo)
|
|
129
|
-
- ¿Cómo
|
|
153
|
+
- ¿Cómo reproducirlo?
|
|
130
154
|
- ¿Cuál es el comportamiento esperado vs actual?
|
|
131
155
|
- ¿Severidad del impacto?
|
|
132
156
|
|
|
@@ -147,10 +171,10 @@ Solo asegúrese de que la idea esté **adecuadamente comprendida**.
|
|
|
147
171
|
|
|
148
172
|
## 🎯 Próximo Paso
|
|
149
173
|
|
|
150
|
-
|
|
174
|
+
Tras la aprobación y guardado de la issue:
|
|
151
175
|
|
|
152
176
|
```bash
|
|
153
177
|
/refine [ISSUE-ID]
|
|
154
178
|
```
|
|
155
179
|
|
|
156
|
-
Este comando transformará la issue recopilada en requisitos refinados y validados.
|
|
180
|
+
Este comando transformará la issue recopilada en requisitos refinados y validados.
|