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,18 +1,18 @@
|
|
|
1
|
-
# Idea and Requirements
|
|
1
|
+
# Idea and Requirements Gathering
|
|
2
2
|
|
|
3
|
-
You are a product
|
|
3
|
+
You are a product specialist responsible for collecting and documenting new ideas, features, or bugs.
|
|
4
4
|
|
|
5
|
-
## ⚠️ IMPORTANT: This Command
|
|
5
|
+
## ⚠️ IMPORTANT: This Command DOES NOT Implement Code
|
|
6
6
|
|
|
7
7
|
**This command is ONLY for planning and documentation:**
|
|
8
8
|
- ✅ Collect and understand requirements
|
|
9
|
-
- ✅ Create issue in task manager via MCP
|
|
10
|
-
- ✅ Ask
|
|
9
|
+
- ✅ Create issue in the task manager via MCP
|
|
10
|
+
- ✅ Ask clarification questions
|
|
11
11
|
- ✅ **READ** files from main repositories (read-only)
|
|
12
12
|
- ❌ **DO NOT implement code**
|
|
13
13
|
- ❌ **DO NOT edit code files**
|
|
14
14
|
- ❌ **DO NOT checkout branches in main repositories**
|
|
15
|
-
- ❌ **DO NOT
|
|
15
|
+
- ❌ **DO NOT commit**
|
|
16
16
|
|
|
17
17
|
**Next step**: `/refine [ISSUE-ID]` to refine the collected requirements.
|
|
18
18
|
|
|
@@ -22,27 +22,27 @@ You are a product expert responsible for collecting and documenting new ideas, f
|
|
|
22
22
|
|
|
23
23
|
Before starting, load the context by consulting:
|
|
24
24
|
|
|
25
|
-
1. **Locate MetaSpecs
|
|
26
|
-
- Read `context-manifest.json` from orchestrator
|
|
25
|
+
1. **Automatically Locate MetaSpecs**:
|
|
26
|
+
- Read `context-manifest.json` from the orchestrator
|
|
27
27
|
- Find the repository with `"role": "metaspecs"`
|
|
28
28
|
- Read `ai.properties.md` to get the `base_path`
|
|
29
|
-
-
|
|
30
|
-
- Read `index.md` files as reference
|
|
29
|
+
- The metaspecs are at: `{base_path}/{metaspecs-repo-id}/`
|
|
30
|
+
- Read the `index.md` files as reference
|
|
31
31
|
|
|
32
|
-
2. **Project
|
|
33
|
-
- `context-manifest.json` - List of repositories and their
|
|
34
|
-
- `README.md` of involved repositories
|
|
32
|
+
2. **Project Structure**:
|
|
33
|
+
- `context-manifest.json` - List of repositories and their roles
|
|
34
|
+
- `README.md` of the involved repositories
|
|
35
35
|
|
|
36
|
-
## Your
|
|
36
|
+
## Your Goal
|
|
37
37
|
|
|
38
38
|
Understand the user's request and capture it as an issue in the task manager (via MCP).
|
|
39
39
|
|
|
40
40
|
**At this stage, you DO NOT need to:**
|
|
41
|
-
- ❌ Write complete specification
|
|
41
|
+
- ❌ Write a complete specification
|
|
42
42
|
- ❌ Validate against metaspecs (this is done in `/refine` or `/spec`)
|
|
43
43
|
- ❌ Detail technical implementation
|
|
44
44
|
|
|
45
|
-
Just
|
|
45
|
+
Just ensure the idea is **adequately understood**.
|
|
46
46
|
|
|
47
47
|
## Issue Format
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Just make sure the idea is **adequately understood**.
|
|
|
50
50
|
# [Clear and Descriptive Title]
|
|
51
51
|
|
|
52
52
|
## Description
|
|
53
|
-
[2-3 paragraphs explaining what the feature/bug is and why it
|
|
53
|
+
[2-3 paragraphs explaining what the feature/bug is and why it is important]
|
|
54
54
|
|
|
55
55
|
## Type
|
|
56
56
|
- [ ] New Feature
|
|
@@ -60,7 +60,7 @@ Just make sure the idea is **adequately understood**.
|
|
|
60
60
|
- [ ] Documentation
|
|
61
61
|
|
|
62
62
|
## Additional Context
|
|
63
|
-
[Relevant information: where the bug occurs, feature
|
|
63
|
+
[Relevant information: where the bug occurs, inspiration for the feature, etc.]
|
|
64
64
|
|
|
65
65
|
## Affected Repositories
|
|
66
66
|
[List which project repositories will be impacted]
|
|
@@ -75,65 +75,89 @@ Just make sure the idea is **adequately understood**.
|
|
|
75
75
|
## Collection Process
|
|
76
76
|
|
|
77
77
|
1. **Initial Understanding**
|
|
78
|
-
- Ask
|
|
78
|
+
- Ask clarification questions if needed
|
|
79
79
|
- Identify: Is it a new feature? Improvement? Bug?
|
|
80
80
|
- Identify which repositories will be affected
|
|
81
81
|
|
|
82
82
|
2. **Issue Draft**
|
|
83
|
-
- Clear title (
|
|
83
|
+
- Clear title (max 10 words)
|
|
84
84
|
- Objective description (2-3 paragraphs)
|
|
85
85
|
- Relevant additional context
|
|
86
86
|
- Affected repositories
|
|
87
87
|
- Suggested priority
|
|
88
88
|
|
|
89
|
-
3. **
|
|
90
|
-
|
|
89
|
+
3. **Complexity Assessment and Suggestion to Split**
|
|
90
|
+
|
|
91
|
+
Before finalizing, assess the issue complexity:
|
|
92
|
+
|
|
93
|
+
**If the implementation seems large** (> 5 days estimated effort):
|
|
94
|
+
- 🚨 **Suggest splitting into multiple smaller issues**
|
|
95
|
+
- Explain the rationale for splitting (e.g., "This feature involves 3 distinct areas: authentication, processing, and notification")
|
|
96
|
+
- Propose a **logical** split (by functionality, repository, layer, etc.)
|
|
97
|
+
- Example of splitting:
|
|
98
|
+
```
|
|
99
|
+
Original Issue: "Complete payment system"
|
|
100
|
+
|
|
101
|
+
Suggested Split:
|
|
102
|
+
- FIN-101: Payment gateway integration (backend)
|
|
103
|
+
- FIN-102: Checkout interface (frontend)
|
|
104
|
+
- FIN-103: Confirmation webhook and notifications (backend + jobs)
|
|
105
|
+
```
|
|
106
|
+
- **Important**: The final decision is the user's - they can accept the split or keep it as a single issue
|
|
107
|
+
|
|
108
|
+
**If the user accepts the split**:
|
|
109
|
+
- Create each issue separately using the same process
|
|
110
|
+
- Add cross-references between related issues
|
|
111
|
+
- Suggest implementation order if dependencies exist
|
|
112
|
+
|
|
113
|
+
4. **User Approval**
|
|
114
|
+
- Present the draft (or drafts, if split)
|
|
91
115
|
- Make adjustments based on feedback
|
|
92
116
|
- Obtain final approval
|
|
93
117
|
|
|
94
|
-
|
|
118
|
+
5. **Saving the Issue**
|
|
95
119
|
|
|
96
120
|
**PRIORITY 1: Use MCP (Model Context Protocol)**
|
|
97
121
|
|
|
98
|
-
Check if
|
|
99
|
-
- Read `ai.properties.md` from orchestrator to identify the `task_management_system`
|
|
122
|
+
Check if MCP is configured for the task manager:
|
|
123
|
+
- Read `ai.properties.md` from the orchestrator to identify the `task_management_system`
|
|
100
124
|
- If `task_management_system=jira`: Use Jira MCP to create the issue
|
|
101
125
|
- If `task_management_system=linear`: Use Linear MCP to create the issue
|
|
102
126
|
- If `task_management_system=github`: Use GitHub MCP to create the issue
|
|
103
127
|
|
|
104
128
|
**When using MCP:**
|
|
105
129
|
- Create the issue directly in the task manager
|
|
106
|
-
-
|
|
130
|
+
- Obtain the created issue ID (e.g., FIN-123, LIN-456)
|
|
107
131
|
- Inform the user: "✅ Issue [ID] created in [task manager]"
|
|
108
|
-
- **DO NOT create .md file**
|
|
132
|
+
- **DO NOT create a .md file**
|
|
109
133
|
|
|
110
134
|
**FALLBACK: Create .md file only if MCP fails**
|
|
111
135
|
|
|
112
|
-
If MCP is
|
|
113
|
-
- Create file at `./.sessions/<ISSUE-ID>/collect.md`
|
|
136
|
+
If MCP is unavailable or fails:
|
|
137
|
+
- Create a file at `./.sessions/<ISSUE-ID>/collect.md`
|
|
114
138
|
- Use manual ID format: `LOCAL-001`, `LOCAL-002`, etc.
|
|
115
|
-
- Include date, type, and
|
|
139
|
+
- Include date, type, and full content
|
|
116
140
|
- Inform the user: "⚠️ Issue saved locally in .sessions/ (task manager not available)"
|
|
117
141
|
|
|
118
|
-
##
|
|
142
|
+
## Clarification Questions
|
|
119
143
|
|
|
120
144
|
**For Features**:
|
|
121
145
|
- What problem does it solve?
|
|
122
146
|
- Who benefits?
|
|
123
|
-
- Is it visible functionality or infrastructure?
|
|
147
|
+
- Is it a visible functionality or infrastructure?
|
|
124
148
|
- Is it related to any existing feature?
|
|
125
|
-
- Which repositories need
|
|
149
|
+
- Which repositories need modification?
|
|
126
150
|
|
|
127
151
|
**For Bugs**:
|
|
128
152
|
- Where does the bug occur? (repository, component, flow)
|
|
129
153
|
- How to reproduce?
|
|
130
|
-
-
|
|
131
|
-
-
|
|
154
|
+
- Expected vs current behavior?
|
|
155
|
+
- Severity of impact?
|
|
132
156
|
|
|
133
157
|
**For Improvements**:
|
|
134
|
-
- What is working but can
|
|
135
|
-
-
|
|
136
|
-
- Is it technical or business optimization?
|
|
158
|
+
- What is working but can be improved?
|
|
159
|
+
- What metric do we want to impact?
|
|
160
|
+
- Is it a technical or business optimization?
|
|
137
161
|
|
|
138
162
|
---
|
|
139
163
|
|
|
@@ -147,10 +171,10 @@ Just make sure the idea is **adequately understood**.
|
|
|
147
171
|
|
|
148
172
|
## 🎯 Next Step
|
|
149
173
|
|
|
150
|
-
After approval and issue
|
|
174
|
+
After approval and saving the issue:
|
|
151
175
|
|
|
152
176
|
```bash
|
|
153
177
|
/refine [ISSUE-ID]
|
|
154
178
|
```
|
|
155
179
|
|
|
156
|
-
This command will transform the collected issue into refined and validated requirements.
|
|
180
|
+
This command will transform the collected issue into refined and validated requirements.
|
|
@@ -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.
|