@codemcp/workflows-core 5.2.1 → 5.2.3
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/conversation-manager.js +3 -2
- package/dist/conversation-manager.js.map +1 -1
- package/dist/path-validation-utils.d.ts +24 -0
- package/dist/path-validation-utils.js +37 -1
- package/dist/path-validation-utils.js.map +1 -1
- package/dist/plan-manager.js +2 -1
- package/dist/plan-manager.js.map +1 -1
- package/package.json +1 -1
- package/resources/workflows/adr.yaml +62 -48
- package/resources/workflows/big-bang-conversion.yaml +231 -172
- package/resources/workflows/boundary-testing.yaml +137 -95
- package/resources/workflows/bugfix.yaml +33 -38
- package/resources/workflows/business-analysis.yaml +130 -172
- package/resources/workflows/c4-analysis.yaml +120 -114
- package/resources/workflows/epcc.yaml +43 -10
- package/resources/workflows/game-beginner.yaml +113 -103
- package/resources/workflows/greenfield.yaml +61 -38
- package/resources/workflows/minor.yaml +51 -28
- package/resources/workflows/posts.yaml +41 -42
- package/resources/workflows/sdd-bugfix-crowd.yaml +181 -206
- package/resources/workflows/sdd-bugfix.yaml +168 -179
- package/resources/workflows/sdd-feature-crowd.yaml +357 -380
- package/resources/workflows/sdd-feature.yaml +162 -155
- package/resources/workflows/sdd-greenfield-crowd.yaml +82 -74
- package/resources/workflows/sdd-greenfield.yaml +153 -147
- package/resources/workflows/slides.yaml +29 -35
- package/resources/workflows/tdd.yaml +59 -48
- package/resources/workflows/waterfall.yaml +64 -44
|
@@ -27,9 +27,7 @@ states:
|
|
|
27
27
|
document_discovery:
|
|
28
28
|
description: 'Gather business documents and create standardized Business Capability Modeling structure'
|
|
29
29
|
default_instructions: >
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
**Step 1: Interactive Document Gathering**
|
|
30
|
+
**STEP 1: Gather Business Documents**
|
|
33
31
|
Ask user to identify and provide available documents:
|
|
34
32
|
- Business process documentation
|
|
35
33
|
- Organizational charts
|
|
@@ -37,11 +35,11 @@ states:
|
|
|
37
35
|
- Existing c4-analysis results
|
|
38
36
|
- Business requirements documents
|
|
39
37
|
|
|
40
|
-
IMPORTANT:
|
|
38
|
+
IMPORTANT: Do not read the documents yet.
|
|
41
39
|
|
|
42
|
-
**
|
|
40
|
+
**STEP 2: Create Document Processing Tasks**
|
|
43
41
|
For each gathered document, create a processing task:
|
|
44
|
-
|
|
42
|
+
`- [ ] Summarize [document-name] using structured chapter-by-chapter approach`
|
|
45
43
|
|
|
46
44
|
Update task progress and create document processing tasks.
|
|
47
45
|
transitions:
|
|
@@ -52,27 +50,24 @@ states:
|
|
|
52
50
|
documents_consolidation:
|
|
53
51
|
description: 'Process and consolidate gathered documents using structured summarization'
|
|
54
52
|
default_instructions: >
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
**Step 1: Apply Structured Summarization Technique**
|
|
58
|
-
For each document, use this approach:
|
|
59
|
-
|
|
53
|
+
**STEP 1: Apply Structured Summarization Technique**
|
|
54
|
+
Process each document using this approach:
|
|
60
55
|
1. Read document chapter by chapter
|
|
61
56
|
2. Maintain original hierarchical structure
|
|
62
57
|
3. Condense content while preserving key information
|
|
63
|
-
4. Create [document-name]-processed.md file
|
|
58
|
+
4. Create `[document-name]-processed.md` file
|
|
64
59
|
5. Update task progress as complete
|
|
65
60
|
|
|
66
|
-
**Summarization Guidelines
|
|
61
|
+
**STEP 2: Follow Summarization Guidelines**
|
|
67
62
|
- Create structured summary based exclusively on source document information
|
|
68
63
|
- Identify chapters and hierarchy levels systematically
|
|
69
|
-
- Summarize level-by-level into [document-name]-processed.md
|
|
64
|
+
- Summarize level-by-level into `[document-name]-processed.md`
|
|
70
65
|
- Write chapter summaries in natural language (no bullet points)
|
|
71
66
|
- Include information about potential capabilities, services, processes, or actors
|
|
72
67
|
- Maintain folder structure if documents have associated folders
|
|
73
68
|
|
|
74
|
-
**
|
|
75
|
-
Create BIBLIOGRAPHY.md with:
|
|
69
|
+
**STEP 3: Create Bibliography**
|
|
70
|
+
Create `BIBLIOGRAPHY.md` with:
|
|
76
71
|
- "sources" section listing all processed documents
|
|
77
72
|
- "terms" section with important business terms and their source references
|
|
78
73
|
|
|
@@ -85,10 +80,8 @@ states:
|
|
|
85
80
|
business_content_analysis:
|
|
86
81
|
description: 'Identify and analyze business-relevant content from processed documents'
|
|
87
82
|
default_instructions: >
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
**Step 1: Review Processed Documents**
|
|
91
|
-
Review all [document-name]-processed.md files from consolidation phase.
|
|
83
|
+
**STEP 1: Review Processed Documents**
|
|
84
|
+
Review all `[document-name]-processed.md` files from consolidation phase.
|
|
92
85
|
Identify chapters that contain business-relevant content:
|
|
93
86
|
- Business processes and workflows
|
|
94
87
|
- Organizational roles and responsibilities
|
|
@@ -96,13 +89,13 @@ states:
|
|
|
96
89
|
- Services and customer interactions
|
|
97
90
|
- Business rules and policies
|
|
98
91
|
|
|
99
|
-
**
|
|
92
|
+
**STEP 2: Create Business Analysis Tasks**
|
|
100
93
|
For each business-relevant chapter identified, create a task:
|
|
101
|
-
|
|
94
|
+
`- [ ] Extract business capabilities from [chapter-name]`
|
|
102
95
|
|
|
103
|
-
IMPORTANT:
|
|
96
|
+
IMPORTANT: Create these tasks before proceeding.
|
|
104
97
|
|
|
105
|
-
**
|
|
98
|
+
**STEP 3: Execute Business Analysis Tasks**
|
|
106
99
|
For each business analysis task:
|
|
107
100
|
1. Read the specific chapter in detail
|
|
108
101
|
2. Extract business information focusing on:
|
|
@@ -113,52 +106,30 @@ states:
|
|
|
113
106
|
3. Create detailed business summary emphasizing WHAT, WHY, WHO (not HOW)
|
|
114
107
|
4. Update task progress as complete
|
|
115
108
|
|
|
116
|
-
**
|
|
117
|
-
Update BIBLIOGRAPHY.md with business terms found during detailed analysis:
|
|
118
|
-
-
|
|
119
|
-
- In the "terms" section, check whether there is an entry for it
|
|
120
|
-
-
|
|
121
|
-
|
|
122
|
-
--- sample 1 ---
|
|
123
|
-
|
|
124
|
-
Document "operations manual" reads about "payment processing" in Chapter 5.2
|
|
125
|
-
|
|
126
|
-
=> in BIBLIOGRAPHY.md
|
|
127
|
-
|
|
128
|
-
# Sources
|
|
129
|
-
|
|
130
|
-
- Operations Manual [OPMAN]
|
|
131
|
-
|
|
132
|
-
# Terms
|
|
109
|
+
**STEP 4: Update Bibliography with Business Terms**
|
|
110
|
+
Update `BIBLIOGRAPHY.md` with business terms found during detailed analysis:
|
|
111
|
+
- Check whether the "sources" section contains an entry. If not: create one (max 5 letters in brackets).
|
|
112
|
+
- In the "terms" section, check whether there is an entry for it. If not, create an entry.
|
|
113
|
+
- Add a reference to the source and chapter.
|
|
133
114
|
|
|
115
|
+
Example (Document "operations manual" with "payment processing" in Chapter 5.2):
|
|
116
|
+
- Operations Manual `[OPMAN]`
|
|
134
117
|
- payment processing
|
|
135
|
-
- OPMAN, 5.2
|
|
136
|
-
|
|
137
|
-
--- end of sample 1 ---
|
|
138
|
-
|
|
139
|
-
--- sample 2 ---
|
|
140
|
-
|
|
141
|
-
Document "requirements.md" reads about "payment processing" in Chapter 1.2.1
|
|
142
|
-
|
|
143
|
-
=> in BIBLIOGRAPHY.md
|
|
144
|
-
|
|
145
|
-
# Sources
|
|
146
|
-
|
|
147
|
-
- Requirements [REQ]
|
|
148
|
-
|
|
149
|
-
# Terms
|
|
118
|
+
- `OPMAN, 5.2`
|
|
150
119
|
|
|
120
|
+
Example (Document "requirements.md" with "payment processing" in Chapter 1.2.1):
|
|
121
|
+
- Requirements `[REQ]`
|
|
151
122
|
- payment processing
|
|
152
|
-
- REQ, 1.2.1
|
|
153
|
-
|
|
154
|
-
--- end of sample 2 ---
|
|
123
|
+
- `REQ, 1.2.1`
|
|
155
124
|
|
|
156
125
|
Process business analysis tasks systematically, one at a time.
|
|
157
126
|
transitions:
|
|
158
127
|
- trigger: 'business_analysis_complete'
|
|
159
128
|
to: 'capability_identification'
|
|
160
129
|
additional_instructions: >
|
|
161
|
-
Create
|
|
130
|
+
**Create Standardized Analysis Documentation**
|
|
131
|
+
|
|
132
|
+
Create `BUSINESS_ANALYSIS.md` with the following template content:
|
|
162
133
|
```markdown
|
|
163
134
|
# Business Analysis Report
|
|
164
135
|
|
|
@@ -194,7 +165,7 @@ states:
|
|
|
194
165
|
<!-- Business capability recommendations -->
|
|
195
166
|
```
|
|
196
167
|
|
|
197
|
-
Create business-processes-detailed.md with template:
|
|
168
|
+
Create `business-processes-detailed.md` with template:
|
|
198
169
|
```markdown
|
|
199
170
|
# Business Processes Detailed
|
|
200
171
|
|
|
@@ -211,7 +182,7 @@ states:
|
|
|
211
182
|
<!-- Key roles in each process -->
|
|
212
183
|
```
|
|
213
184
|
|
|
214
|
-
Create business-functions-mapping.md with template:
|
|
185
|
+
Create `business-functions-mapping.md` with template:
|
|
215
186
|
```markdown
|
|
216
187
|
# Business Functions Mapping
|
|
217
188
|
|
|
@@ -228,7 +199,7 @@ states:
|
|
|
228
199
|
<!-- Key roles and their responsibilities -->
|
|
229
200
|
```
|
|
230
201
|
|
|
231
|
-
Create technical-business-mapping.md with template:
|
|
202
|
+
Create `technical-business-mapping.md` with template:
|
|
232
203
|
```markdown
|
|
233
204
|
# Technical-Business Mapping
|
|
234
205
|
|
|
@@ -245,11 +216,11 @@ states:
|
|
|
245
216
|
<!-- Business value of each technical component -->
|
|
246
217
|
```
|
|
247
218
|
|
|
248
|
-
Create Standardized Business Capability Modeling
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
219
|
+
**Create Standardized Business Capability Modeling Folder Structure**
|
|
220
|
+
- `business-analysis/business-domains/` (folder for details)
|
|
221
|
+
- `business-analysis/business-capabilities/` (folder for details)
|
|
222
|
+
- `business-analysis/business-processes/` (folder for details)
|
|
223
|
+
- `business-analysis/business-actors/` (folder for details)
|
|
253
224
|
|
|
254
225
|
Begin analyzing processed documents to identify business capabilities and domains.
|
|
255
226
|
Update task progress as you complete business analysis work.
|
|
@@ -258,12 +229,10 @@ states:
|
|
|
258
229
|
capability_identification:
|
|
259
230
|
description: 'Identify business capabilities from processed documents'
|
|
260
231
|
default_instructions: >
|
|
261
|
-
|
|
232
|
+
IMPORTANT: Always reference the existing documents.
|
|
262
233
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
**Step 1: Analyze Processed Documents**
|
|
266
|
-
Review all [document-name]-processed.md files from consolidation phase.
|
|
234
|
+
**STEP 1: Analyze Processed Documents**
|
|
235
|
+
Review all `[document-name]-processed.md` files from consolidation phase.
|
|
267
236
|
Look for:
|
|
268
237
|
- Business functions mentioned
|
|
269
238
|
- Activities and processes described
|
|
@@ -271,36 +240,35 @@ states:
|
|
|
271
240
|
- Organizational responsibilities
|
|
272
241
|
- System functionalities with business purpose
|
|
273
242
|
|
|
274
|
-
**
|
|
243
|
+
**STEP 2: Extract Potential Capabilities**
|
|
275
244
|
From document analysis, create initial list of business capabilities.
|
|
276
245
|
Group similar activities and functions together.
|
|
277
|
-
Use Business Capability Modeling naming: [Verb] + [Business Object] (e.g., "Manage Customers", "Process Orders")
|
|
246
|
+
Use Business Capability Modeling naming: `[Verb] + [Business Object]` (e.g., "Manage Customers", "Process Orders")
|
|
278
247
|
|
|
279
|
-
**
|
|
248
|
+
**STEP 3: Identify Business Domains**
|
|
280
249
|
Group capabilities into logical business domains:
|
|
281
250
|
- Customer-related capabilities → Customer Management
|
|
282
251
|
- Order-related capabilities → Order Management
|
|
283
252
|
- Financial capabilities → Financial Management
|
|
284
253
|
- etc.
|
|
285
254
|
|
|
286
|
-
**
|
|
255
|
+
**STEP 4: Present Findings to User**
|
|
287
256
|
Show user the identified capabilities and domains:
|
|
288
|
-
"Based on the documents, I identified these business domains and capabilities:
|
|
289
|
-
[Present structured list]
|
|
290
257
|
|
|
291
|
-
|
|
292
|
-
|
|
258
|
+
"Based on the documents, I identified these business domains and capabilities: [Present structured list]
|
|
259
|
+
|
|
260
|
+
Do these align with your understanding? Are there any capabilities missing or incorrectly categorized?"
|
|
293
261
|
|
|
294
|
-
**
|
|
262
|
+
**STEP 5: Refine with User Input**
|
|
295
263
|
Adjust the capability model based on user feedback.
|
|
296
|
-
Document final capability list in business-capabilities.md
|
|
264
|
+
Document final capability list in `business-capabilities.md`.
|
|
297
265
|
|
|
298
266
|
transitions:
|
|
299
267
|
- trigger: 'capabilities_identified'
|
|
300
268
|
to: 'capability_decomposition'
|
|
301
269
|
additional_instructions: >
|
|
302
270
|
For each identified capability, create decomposition tasks:
|
|
303
|
-
|
|
271
|
+
`- [ ] Decompose [capability-name] into sub-capabilities using document analysis`
|
|
304
272
|
|
|
305
273
|
Begin systematic decomposition of capabilities one at a time.
|
|
306
274
|
transition_reason: 'Business capabilities identified, ready for detailed decomposition'
|
|
@@ -308,40 +276,38 @@ states:
|
|
|
308
276
|
capability_decomposition:
|
|
309
277
|
description: 'Break down business capabilities into detailed sub-capabilities using document analysis'
|
|
310
278
|
default_instructions: >
|
|
311
|
-
|
|
279
|
+
IMPORTANT: Always reference the existing documents.
|
|
312
280
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
**Step 1: Analyze Documents for Sub-capabilities**
|
|
281
|
+
**STEP 1: Analyze Documents for Sub-capabilities**
|
|
316
282
|
Review processed documents for the next unprocessed capability:
|
|
317
283
|
- Look for detailed activities mentioned within this capability
|
|
318
284
|
- Identify specific processes or functions described
|
|
319
285
|
- Find decision points and workflow steps
|
|
320
286
|
- Note different outcomes or deliverables mentioned
|
|
321
287
|
|
|
322
|
-
**
|
|
288
|
+
**STEP 2: Extract Potential Sub-capabilities**
|
|
323
289
|
From document analysis, create initial list of sub-capabilities.
|
|
324
|
-
Use Business Capability Modeling naming: [Verb] + [Business Object]
|
|
290
|
+
Use Business Capability Modeling naming: `[Verb] + [Business Object]`
|
|
291
|
+
|
|
325
292
|
Example: For "Customer Management" → "Verify Customer Identity", "Setup Customer Account", "Maintain Customer Data"
|
|
326
293
|
|
|
327
|
-
**
|
|
294
|
+
**STEP 3: Present Findings to User**
|
|
328
295
|
Show user the identified sub-capabilities:
|
|
329
|
-
"Based on the documents, I identified these sub-capabilities for [capability]:
|
|
330
|
-
[Present structured list]
|
|
331
296
|
|
|
332
|
-
|
|
333
|
-
Are any activities missing or incorrectly categorized?"
|
|
297
|
+
"Based on the documents, I identified these sub-capabilities for `[capability]`: [Present structured list]
|
|
334
298
|
|
|
335
|
-
|
|
299
|
+
Do these sub-capabilities accurately reflect `[capability]`? Are any activities missing or incorrectly categorized?"
|
|
300
|
+
|
|
301
|
+
**STEP 4: Refine with User Input**
|
|
336
302
|
Adjust the sub-capability model based on user feedback.
|
|
337
|
-
Document refined decomposition in business-capabilities
|
|
303
|
+
Document refined decomposition in `business-capabilities/` detail folder.
|
|
338
304
|
Mark capability as complete and ask: "Ready for the next capability?"
|
|
339
305
|
|
|
340
306
|
transitions:
|
|
341
307
|
- trigger: 'decomposition_complete'
|
|
342
308
|
to: 'actor_analysis'
|
|
343
309
|
additional_instructions: >
|
|
344
|
-
Create business-actors.md with template:
|
|
310
|
+
Create `business-actors.md` with template:
|
|
345
311
|
```markdown
|
|
346
312
|
# Business Actors
|
|
347
313
|
|
|
@@ -363,7 +329,7 @@ states:
|
|
|
363
329
|
```
|
|
364
330
|
|
|
365
331
|
For each capability, create actor analysis tasks:
|
|
366
|
-
|
|
332
|
+
`- [ ] Analyze business actors for [capability-name] using document analysis`
|
|
367
333
|
|
|
368
334
|
Begin systematic actor analysis one capability at a time.
|
|
369
335
|
Update task progress as you complete decomposition work.
|
|
@@ -372,47 +338,44 @@ states:
|
|
|
372
338
|
actor_analysis:
|
|
373
339
|
description: 'Map business actors (roles and organizational units) to capabilities using systematic task-based approach'
|
|
374
340
|
default_instructions: >
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
**Step 1: Select Next Capability for Actor Analysis**
|
|
341
|
+
**STEP 1: Select Next Capability for Actor Analysis**
|
|
378
342
|
From current tasks, select the next capability to analyze for business actors.
|
|
379
343
|
|
|
380
|
-
**
|
|
344
|
+
**STEP 2: Analyze Documents for Business Actors**
|
|
381
345
|
Review processed documents to identify:
|
|
382
346
|
- **Business Roles**: Specific job roles (Customer Service Rep, Account Manager, etc.)
|
|
383
347
|
- **Organizational Units**: Teams/departments (Sales Team, Finance Department, etc.)
|
|
384
348
|
- **Decision-making Authority**: Who makes decisions for this capability
|
|
385
349
|
- **Accountability**: Who is responsible for capability outcomes
|
|
386
350
|
|
|
387
|
-
**
|
|
351
|
+
**STEP 3: Map Actors to Capabilities**
|
|
388
352
|
For the selected capability, identify:
|
|
389
353
|
- **Primary Owner**: Who is accountable for capability outcomes
|
|
390
354
|
- **Performing Roles**: Which roles actually execute the capability
|
|
391
355
|
- **Supporting Units**: Which organizational units support the capability
|
|
392
356
|
- **Decision Authority**: Who has authority to change/approve within this capability
|
|
393
357
|
|
|
394
|
-
**
|
|
395
|
-
Document the actor mappings in business-actors.md
|
|
358
|
+
**STEP 4: Create Actor Analysis Document**
|
|
359
|
+
Document the actor mappings in `business-actors.md`:
|
|
396
360
|
- **Primary Owner**: Who is accountable for capability outcomes
|
|
397
361
|
- **Performing Roles**: Which roles actually execute the capability
|
|
398
362
|
- **Supporting Units**: Which organizational units support the capability
|
|
399
363
|
- **Decision Authority**: Who has authority to change/approve within this capability
|
|
400
364
|
|
|
401
365
|
Then present to user for validation:
|
|
402
|
-
"I documented the business actors for [capability]
|
|
366
|
+
"I documented the business actors for `[capability]`. Please review the actor mappings - do they accurately reflect WHO performs this capability?"
|
|
403
367
|
|
|
404
|
-
**
|
|
405
|
-
Update business-actors.md with capability-actor mappings.
|
|
368
|
+
**STEP 5: Refine and Document**
|
|
369
|
+
Update `business-actors.md` with capability-actor mappings.
|
|
406
370
|
Update task progress as complete.
|
|
407
371
|
|
|
408
372
|
Focus on capability ownership and role accountability, not just organizational structure.
|
|
409
|
-
|
|
410
|
-
Process one capability's functions at a time.
|
|
373
|
+
Process one capability at a time.
|
|
411
374
|
transitions:
|
|
412
375
|
- trigger: 'actor_analysis_complete'
|
|
413
376
|
to: 'process_analysis'
|
|
414
377
|
additional_instructions: >
|
|
415
|
-
Create business-processes.md with template:
|
|
378
|
+
Create `business-processes.md` with template:
|
|
416
379
|
```markdown
|
|
417
380
|
# Business Processes
|
|
418
381
|
|
|
@@ -430,7 +393,7 @@ states:
|
|
|
430
393
|
```
|
|
431
394
|
|
|
432
395
|
For each capability, create process analysis tasks:
|
|
433
|
-
|
|
396
|
+
`- [ ] Analyze business processes for [capability-name] using document analysis and actor context`
|
|
434
397
|
|
|
435
398
|
Begin systematic process analysis one capability at a time.
|
|
436
399
|
Update task progress as you complete actor analysis work.
|
|
@@ -439,19 +402,17 @@ states:
|
|
|
439
402
|
process_analysis:
|
|
440
403
|
description: 'Analyze business processes using systematic task-based approach'
|
|
441
404
|
default_instructions: >
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
**Step 1: Select Next Process Analysis Task**
|
|
405
|
+
**STEP 1: Select Next Process Analysis Task**
|
|
445
406
|
From current process analysis tasks, select the next capability to process.
|
|
446
407
|
|
|
447
|
-
**
|
|
408
|
+
**STEP 2: Analyze Documents for Process Information**
|
|
448
409
|
Review processed documents for process information:
|
|
449
410
|
- Look for process steps, workflows, decision points
|
|
450
411
|
- Identify process actors, inputs, outputs
|
|
451
412
|
- Note process triggers and outcomes
|
|
452
413
|
- Find process rules and constraints
|
|
453
414
|
|
|
454
|
-
**
|
|
415
|
+
**STEP 3: Extract Processes**
|
|
455
416
|
Create process flows from document analysis.
|
|
456
417
|
Document process characteristics:
|
|
457
418
|
- Process name and purpose
|
|
@@ -460,24 +421,24 @@ states:
|
|
|
460
421
|
- Process actors and responsibilities
|
|
461
422
|
- Inputs, outputs, and deliverables
|
|
462
423
|
|
|
463
|
-
**
|
|
424
|
+
**STEP 4: Present to User**
|
|
464
425
|
Show identified processes and ask for validation:
|
|
465
|
-
"Based on documents, I identified these processes for [capability]:
|
|
466
|
-
[Present process flows]
|
|
467
426
|
|
|
468
|
-
|
|
469
|
-
Are any process steps missing or incorrectly sequenced?"
|
|
427
|
+
"Based on documents, I identified these processes for `[capability]`: [Present process flows]
|
|
470
428
|
|
|
471
|
-
|
|
472
|
-
|
|
429
|
+
Do these processes accurately reflect how `[capability]` works? Are any process steps missing or incorrectly sequenced?"
|
|
430
|
+
|
|
431
|
+
**STEP 5: Refine and Document**
|
|
432
|
+
Update `business-processes-detailed.md` and detail folder.
|
|
473
433
|
Update task progress as complete.
|
|
474
434
|
|
|
475
|
-
Process one capability
|
|
435
|
+
Process one capability at a time.
|
|
476
436
|
transitions:
|
|
477
437
|
- trigger: 'process_analysis_complete'
|
|
478
438
|
to: 'consistency'
|
|
479
439
|
additional_instructions: >
|
|
480
440
|
Present the Business Capability Consistency Framework to user:
|
|
441
|
+
|
|
481
442
|
"I'll now validate consistency across all analysis documents using this framework:
|
|
482
443
|
|
|
483
444
|
**Business Capability Consistency Framework:**
|
|
@@ -494,55 +455,54 @@ states:
|
|
|
494
455
|
consistency:
|
|
495
456
|
description: 'Validate consistency across all business capability analysis documents'
|
|
496
457
|
default_instructions: >
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
**Step 1: Re-discover Analysis Documents**
|
|
458
|
+
**STEP 1: Discover Analysis Documents**
|
|
500
459
|
Scan workspace for all created analysis documents:
|
|
501
|
-
- business-domains.md and detail folders
|
|
502
|
-
- business-capabilities.md and detail folders
|
|
503
|
-
- business-processes.md and detail folders
|
|
504
|
-
- business-actors.md and detail folders
|
|
505
|
-
- BUSINESS_ANALYSIS.md
|
|
460
|
+
- `business-domains.md` and detail folders
|
|
461
|
+
- `business-capabilities.md` and detail folders
|
|
462
|
+
- `business-processes.md` and detail folders
|
|
463
|
+
- `business-actors.md` and detail folders
|
|
464
|
+
- `BUSINESS_ANALYSIS.md`
|
|
506
465
|
- Any other analysis artifacts created
|
|
507
466
|
|
|
508
|
-
**
|
|
509
|
-
|
|
467
|
+
**STEP 2: Apply Consistency Framework**
|
|
468
|
+
Execute each consistency check:
|
|
510
469
|
|
|
511
|
-
**Capability-Process Alignment Check
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
470
|
+
- **Capability-Process Alignment Check**:
|
|
471
|
+
- Do documented processes actually deliver the stated capabilities?
|
|
472
|
+
- Are there capabilities without supporting processes?
|
|
473
|
+
- Are there processes that don't map to any capability?
|
|
515
474
|
|
|
516
|
-
**Actor-Capability Ownership Check
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
475
|
+
- **Actor-Capability Ownership Check**:
|
|
476
|
+
- Is each capability assigned a clear primary owner (actor)?
|
|
477
|
+
- Are performing roles properly mapped to capabilities?
|
|
478
|
+
- Do actors have decision authority for their assigned capabilities?
|
|
520
479
|
|
|
521
|
-
**Process-Actor Mapping Check
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
480
|
+
- **Process-Actor Mapping Check**:
|
|
481
|
+
- Do processes reference the correct performing actors?
|
|
482
|
+
- Are actor responsibilities aligned with process steps?
|
|
483
|
+
- Is there clear accountability in each process?
|
|
525
484
|
|
|
526
|
-
**Cross-Document Coherence Check
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
485
|
+
- **Cross-Document Coherence Check**:
|
|
486
|
+
- Are capabilities named consistently across documents?
|
|
487
|
+
- Do actor definitions match across process and capability docs?
|
|
488
|
+
- Are business terms used consistently throughout?
|
|
530
489
|
|
|
531
|
-
**Completeness Validation
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
490
|
+
- **Completeness Validation**:
|
|
491
|
+
- Are all expected document sections present?
|
|
492
|
+
- Do internal links work correctly?
|
|
493
|
+
- Are references to other documents accurate?
|
|
535
494
|
|
|
536
|
-
**
|
|
537
|
-
Create CONSISTENCY_REPORT.md documenting:
|
|
495
|
+
**STEP 3: Document Issues and Fixes**
|
|
496
|
+
Create `CONSISTENCY_REPORT.md` documenting:
|
|
538
497
|
- Issues found during validation
|
|
539
498
|
- Fixes applied to resolve inconsistencies
|
|
540
499
|
- Remaining gaps or recommendations
|
|
541
500
|
|
|
542
|
-
**
|
|
501
|
+
**STEP 4: Present Findings to User**
|
|
543
502
|
Show consistency validation results and ask for confirmation:
|
|
544
|
-
|
|
545
|
-
|
|
503
|
+
|
|
504
|
+
"Consistency validation complete. Found `[X]` issues, resolved `[Y]`.
|
|
505
|
+
Key findings: `[summary of major consistency improvements]`
|
|
546
506
|
|
|
547
507
|
Are you satisfied with the consistency of the business capability model?"
|
|
548
508
|
|
|
@@ -565,9 +525,7 @@ states:
|
|
|
565
525
|
summary:
|
|
566
526
|
description: 'Create consolidated summaries and illustrations for business capability analysis'
|
|
567
527
|
default_instructions: >
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
**Step 1: Create Consolidated Overviews**
|
|
528
|
+
**STEP 1: Create Consolidated Overviews**
|
|
571
529
|
Build comprehensive summary documents:
|
|
572
530
|
- **Executive Summary**: High-level business capability overview for leadership
|
|
573
531
|
- **Capability Map**: Hierarchical view of all business capabilities
|
|
@@ -575,7 +533,7 @@ states:
|
|
|
575
533
|
- **Process Overview**: Key processes supporting capabilities
|
|
576
534
|
- **Navigation Guide**: How to use all analysis documents
|
|
577
535
|
|
|
578
|
-
**
|
|
536
|
+
**STEP 2: Generate Illustrations**
|
|
579
537
|
Using user's chosen format(s) (ASCII/Mermaid/PlantUML):
|
|
580
538
|
- Business capability hierarchy diagrams
|
|
581
539
|
- Process flow diagrams
|
|
@@ -583,13 +541,13 @@ states:
|
|
|
583
541
|
- Cross-functional process flows
|
|
584
542
|
- Organizational responsibility charts
|
|
585
543
|
|
|
586
|
-
**
|
|
544
|
+
**STEP 3: Fix Links and References**
|
|
587
545
|
- Standardize internal document links
|
|
588
546
|
- Create cross-references between related content
|
|
589
547
|
- Build table of contents for navigation
|
|
590
548
|
- Ensure all references are accurate and working
|
|
591
549
|
|
|
592
|
-
**
|
|
550
|
+
**STEP 4: Update BUSINESS_ANALYSIS.md**
|
|
593
551
|
Finalize the main analysis document with:
|
|
594
552
|
- Complete executive summary
|
|
595
553
|
- Key findings and insights
|
|
@@ -597,10 +555,10 @@ states:
|
|
|
597
555
|
- Links to all detailed analysis documents
|
|
598
556
|
- Methodology explanation and validation results
|
|
599
557
|
|
|
600
|
-
**
|
|
558
|
+
**STEP 5: Present Final Deliverables**
|
|
601
559
|
Show completed analysis to user:
|
|
602
|
-
|
|
603
|
-
[Present overview of all documents, diagrams, and summaries]
|
|
560
|
+
|
|
561
|
+
"Business Capability Analysis complete! Final deliverables: [Present overview of all documents, diagrams, and summaries]
|
|
604
562
|
|
|
605
563
|
This provides comprehensive business architecture understanding for domain architects.
|
|
606
564
|
Are you satisfied with the final analysis deliverables?"
|
|
@@ -628,9 +586,9 @@ states:
|
|
|
628
586
|
default_instructions: >
|
|
629
587
|
Business analysis is complete! The system has been thoroughly analyzed using Business Capability Modeling methodology.
|
|
630
588
|
|
|
631
|
-
Final
|
|
589
|
+
**Final Deliverables:**
|
|
632
590
|
- Comprehensive business architecture documentation (Business Capability Modeling-based)
|
|
633
|
-
- BUSINESS_ANALYSIS.md with complete analysis findings
|
|
591
|
+
- `BUSINESS_ANALYSIS.md` with complete analysis findings
|
|
634
592
|
- Business capability maps and process flows
|
|
635
593
|
- Technical-business alignment documentation
|
|
636
594
|
- Business-friendly documentation for domain architects
|