@codemcp/workflows 6.0.1 → 6.0.2

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.
Files changed (135) hide show
  1. package/package.json +3 -2
  2. package/packages/cli/package.json +1 -1
  3. package/packages/cli/resources/agents/architect.yaml +61 -0
  4. package/packages/cli/resources/agents/business-analyst.yaml +60 -0
  5. package/packages/cli/resources/agents/developer.yaml +61 -0
  6. package/packages/cli/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  7. package/packages/cli/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  8. package/packages/cli/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  9. package/packages/cli/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  10. package/packages/cli/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  11. package/packages/cli/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  12. package/packages/cli/resources/templates/architecture/c4.md +224 -0
  13. package/packages/cli/resources/templates/architecture/freestyle.md +53 -0
  14. package/packages/cli/resources/templates/architecture/game.md +250 -0
  15. package/packages/cli/resources/templates/architecture/none.md +17 -0
  16. package/packages/cli/resources/templates/design/comprehensive.md +207 -0
  17. package/packages/cli/resources/templates/design/freestyle.md +37 -0
  18. package/packages/cli/resources/templates/design/game.md +66 -0
  19. package/packages/cli/resources/templates/design/none.md +17 -0
  20. package/packages/cli/resources/templates/requirements/ears.md +90 -0
  21. package/packages/cli/resources/templates/requirements/freestyle.md +42 -0
  22. package/packages/cli/resources/templates/requirements/game.md +162 -0
  23. package/packages/cli/resources/templates/requirements/none.md +17 -0
  24. package/packages/cli/resources/templates/skills/POWER.md +23 -0
  25. package/packages/cli/resources/templates/skills/SKILL.md +19 -0
  26. package/packages/cli/resources/workflows/adr.yaml +157 -0
  27. package/packages/cli/resources/workflows/big-bang-conversion.yaml +592 -0
  28. package/packages/cli/resources/workflows/boundary-testing.yaml +376 -0
  29. package/packages/cli/resources/workflows/bugfix.yaml +177 -0
  30. package/packages/cli/resources/workflows/business-analysis.yaml +597 -0
  31. package/packages/cli/resources/workflows/c4-analysis.yaml +471 -0
  32. package/packages/cli/resources/workflows/epcc.yaml +183 -0
  33. package/packages/cli/resources/workflows/game-beginner.yaml +434 -0
  34. package/packages/cli/resources/workflows/greenfield.yaml +201 -0
  35. package/packages/cli/resources/workflows/minor.yaml +138 -0
  36. package/packages/cli/resources/workflows/posts.yaml +193 -0
  37. package/packages/cli/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  38. package/packages/cli/resources/workflows/sdd-bugfix.yaml +381 -0
  39. package/packages/cli/resources/workflows/sdd-feature-crowd.yaml +713 -0
  40. package/packages/cli/resources/workflows/sdd-feature.yaml +471 -0
  41. package/packages/cli/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  42. package/packages/cli/resources/workflows/sdd-greenfield.yaml +463 -0
  43. package/packages/cli/resources/workflows/slides.yaml +237 -0
  44. package/packages/cli/resources/workflows/tdd.yaml +160 -0
  45. package/packages/cli/resources/workflows/waterfall.yaml +209 -0
  46. package/packages/core/package.json +1 -1
  47. package/packages/core/resources/agents/architect.yaml +61 -0
  48. package/packages/core/resources/agents/business-analyst.yaml +60 -0
  49. package/packages/core/resources/agents/developer.yaml +61 -0
  50. package/packages/core/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  51. package/packages/core/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  52. package/packages/core/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  53. package/packages/core/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  54. package/packages/core/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  55. package/packages/core/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  56. package/packages/core/resources/templates/architecture/c4.md +224 -0
  57. package/packages/core/resources/templates/architecture/freestyle.md +53 -0
  58. package/packages/core/resources/templates/architecture/game.md +250 -0
  59. package/packages/core/resources/templates/architecture/none.md +17 -0
  60. package/packages/core/resources/templates/design/comprehensive.md +207 -0
  61. package/packages/core/resources/templates/design/freestyle.md +37 -0
  62. package/packages/core/resources/templates/design/game.md +66 -0
  63. package/packages/core/resources/templates/design/none.md +17 -0
  64. package/packages/core/resources/templates/requirements/ears.md +90 -0
  65. package/packages/core/resources/templates/requirements/freestyle.md +42 -0
  66. package/packages/core/resources/templates/requirements/game.md +162 -0
  67. package/packages/core/resources/templates/requirements/none.md +17 -0
  68. package/packages/core/resources/templates/skills/POWER.md +23 -0
  69. package/packages/core/resources/templates/skills/SKILL.md +19 -0
  70. package/packages/core/resources/workflows/adr.yaml +157 -0
  71. package/packages/core/resources/workflows/big-bang-conversion.yaml +592 -0
  72. package/packages/core/resources/workflows/boundary-testing.yaml +376 -0
  73. package/packages/core/resources/workflows/bugfix.yaml +177 -0
  74. package/packages/core/resources/workflows/business-analysis.yaml +597 -0
  75. package/packages/core/resources/workflows/c4-analysis.yaml +471 -0
  76. package/packages/core/resources/workflows/epcc.yaml +183 -0
  77. package/packages/core/resources/workflows/game-beginner.yaml +434 -0
  78. package/packages/core/resources/workflows/greenfield.yaml +201 -0
  79. package/packages/core/resources/workflows/minor.yaml +138 -0
  80. package/packages/core/resources/workflows/posts.yaml +193 -0
  81. package/packages/core/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  82. package/packages/core/resources/workflows/sdd-bugfix.yaml +381 -0
  83. package/packages/core/resources/workflows/sdd-feature-crowd.yaml +713 -0
  84. package/packages/core/resources/workflows/sdd-feature.yaml +471 -0
  85. package/packages/core/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  86. package/packages/core/resources/workflows/sdd-greenfield.yaml +463 -0
  87. package/packages/core/resources/workflows/slides.yaml +237 -0
  88. package/packages/core/resources/workflows/tdd.yaml +160 -0
  89. package/packages/core/resources/workflows/waterfall.yaml +209 -0
  90. package/packages/docs/package.json +1 -1
  91. package/packages/mcp-server/package.json +1 -1
  92. package/packages/mcp-server/resources/agents/architect.yaml +61 -0
  93. package/packages/mcp-server/resources/agents/business-analyst.yaml +60 -0
  94. package/packages/mcp-server/resources/agents/developer.yaml +61 -0
  95. package/packages/mcp-server/resources/templates/architecture/arc42/arc42-template-EN.md +1077 -0
  96. package/packages/mcp-server/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio-2023.png +0 -0
  97. package/packages/mcp-server/resources/templates/architecture/arc42/images/01_2_iso-25010-topics-EN.drawio.png +0 -0
  98. package/packages/mcp-server/resources/templates/architecture/arc42/images/05_building_blocks-EN.png +0 -0
  99. package/packages/mcp-server/resources/templates/architecture/arc42/images/08-concepts-EN.drawio.png +0 -0
  100. package/packages/mcp-server/resources/templates/architecture/arc42/images/arc42-logo.png +0 -0
  101. package/packages/mcp-server/resources/templates/architecture/c4.md +224 -0
  102. package/packages/mcp-server/resources/templates/architecture/freestyle.md +53 -0
  103. package/packages/mcp-server/resources/templates/architecture/game.md +250 -0
  104. package/packages/mcp-server/resources/templates/architecture/none.md +17 -0
  105. package/packages/mcp-server/resources/templates/design/comprehensive.md +207 -0
  106. package/packages/mcp-server/resources/templates/design/freestyle.md +37 -0
  107. package/packages/mcp-server/resources/templates/design/game.md +66 -0
  108. package/packages/mcp-server/resources/templates/design/none.md +17 -0
  109. package/packages/mcp-server/resources/templates/requirements/ears.md +90 -0
  110. package/packages/mcp-server/resources/templates/requirements/freestyle.md +42 -0
  111. package/packages/mcp-server/resources/templates/requirements/game.md +162 -0
  112. package/packages/mcp-server/resources/templates/requirements/none.md +17 -0
  113. package/packages/mcp-server/resources/templates/skills/POWER.md +23 -0
  114. package/packages/mcp-server/resources/templates/skills/SKILL.md +19 -0
  115. package/packages/mcp-server/resources/workflows/adr.yaml +157 -0
  116. package/packages/mcp-server/resources/workflows/big-bang-conversion.yaml +592 -0
  117. package/packages/mcp-server/resources/workflows/boundary-testing.yaml +376 -0
  118. package/packages/mcp-server/resources/workflows/bugfix.yaml +177 -0
  119. package/packages/mcp-server/resources/workflows/business-analysis.yaml +597 -0
  120. package/packages/mcp-server/resources/workflows/c4-analysis.yaml +471 -0
  121. package/packages/mcp-server/resources/workflows/epcc.yaml +183 -0
  122. package/packages/mcp-server/resources/workflows/game-beginner.yaml +434 -0
  123. package/packages/mcp-server/resources/workflows/greenfield.yaml +201 -0
  124. package/packages/mcp-server/resources/workflows/minor.yaml +138 -0
  125. package/packages/mcp-server/resources/workflows/posts.yaml +193 -0
  126. package/packages/mcp-server/resources/workflows/sdd-bugfix-crowd.yaml +608 -0
  127. package/packages/mcp-server/resources/workflows/sdd-bugfix.yaml +381 -0
  128. package/packages/mcp-server/resources/workflows/sdd-feature-crowd.yaml +713 -0
  129. package/packages/mcp-server/resources/workflows/sdd-feature.yaml +471 -0
  130. package/packages/mcp-server/resources/workflows/sdd-greenfield-crowd.yaml +336 -0
  131. package/packages/mcp-server/resources/workflows/sdd-greenfield.yaml +463 -0
  132. package/packages/mcp-server/resources/workflows/slides.yaml +237 -0
  133. package/packages/mcp-server/resources/workflows/tdd.yaml +160 -0
  134. package/packages/mcp-server/resources/workflows/waterfall.yaml +209 -0
  135. package/packages/visualizer/package.json +1 -1
@@ -0,0 +1,597 @@
1
+ # yaml-language-server: $schema=../state-machine-schema.json
2
+ ---
3
+ name: 'business-analysis'
4
+ description: 'Business Capability Modeling workflow that analyzes systems from a pure business perspective. Creates hierarchical business capability maps, service catalogs, and process documentation using industry-standard Business Capability Modeling methodology.'
5
+ initial_state: 'document_discovery'
6
+
7
+ # Enhanced metadata for better discoverability
8
+ metadata:
9
+ domain: 'architecture'
10
+ complexity: 'medium'
11
+ bestFor:
12
+ - 'Business capability modeling'
13
+ - 'Business architecture analysis'
14
+ - 'Business service cataloging'
15
+ - 'Business process documentation'
16
+ useCases:
17
+ - 'Create business capability maps from system documentation'
18
+ - 'Document business services and processes'
19
+ - 'Analyze organizational business functions'
20
+ examples:
21
+ - 'Model business capabilities for legacy system understanding'
22
+ - 'Create business service catalog for domain architects'
23
+ - 'Document business processes and organizational roles'
24
+
25
+ # States with default instructions and transitions
26
+ states:
27
+ document_discovery:
28
+ description: 'Gather business documents and create standardized Business Capability Modeling structure'
29
+ default_instructions: >
30
+ **STEP 1: Gather Business Documents**
31
+ Ask user to identify and provide available documents:
32
+ - Business process documentation
33
+ - Organizational charts
34
+ - System documentation
35
+ - Existing c4-analysis results
36
+ - Business requirements documents
37
+
38
+ IMPORTANT: Do not read the documents yet.
39
+
40
+ **STEP 2: Create Document Processing Tasks**
41
+ For each gathered document, create a processing task:
42
+ `- [ ] Summarize [document-name] using structured chapter-by-chapter approach`
43
+
44
+ Update task progress and create document processing tasks.
45
+ transitions:
46
+ - trigger: 'discovery_complete'
47
+ to: 'documents_consolidation'
48
+ transition_reason: 'Documents gathered and Business Capability Modeling structure created, ready for consolidation'
49
+
50
+ documents_consolidation:
51
+ description: 'Process and consolidate gathered documents using structured summarization'
52
+ default_instructions: >
53
+ **STEP 1: Apply Structured Summarization Technique**
54
+ Process each document using this approach:
55
+ 1. Read document chapter by chapter
56
+ 2. Maintain original hierarchical structure
57
+ 3. Condense content while preserving key information
58
+ 4. Create `[document-name]-processed.md` file
59
+ 5. Update task progress as complete
60
+
61
+ **STEP 2: Follow Summarization Guidelines**
62
+ - Create structured summary based exclusively on source document information
63
+ - Identify chapters and hierarchy levels systematically
64
+ - Summarize level-by-level into `[document-name]-processed.md`
65
+ - Write chapter summaries in natural language (no bullet points)
66
+ - Include information about potential capabilities, services, processes, or actors
67
+ - Maintain folder structure if documents have associated folders
68
+
69
+ **STEP 3: Create Bibliography**
70
+ Create `BIBLIOGRAPHY.md` with:
71
+ - "sources" section listing all processed documents
72
+ - "terms" section with important business terms and their source references
73
+
74
+ IMPORTANT: This phase focuses only on basic document processing. Business analysis happens in the next phase.
75
+ transitions:
76
+ - trigger: 'consolidation_complete'
77
+ to: 'business_content_analysis'
78
+ transition_reason: 'Basic document processing complete, ready for business content analysis'
79
+
80
+ business_content_analysis:
81
+ description: 'Identify and analyze business-relevant content from processed documents'
82
+ default_instructions: >
83
+ **STEP 1: Review Processed Documents**
84
+ Review all `[document-name]-processed.md` files from consolidation phase.
85
+ Identify chapters that contain business-relevant content:
86
+ - Business processes and workflows
87
+ - Organizational roles and responsibilities
88
+ - Business capabilities and functions
89
+ - Services and customer interactions
90
+ - Business rules and policies
91
+
92
+ **STEP 2: Create Business Analysis Tasks**
93
+ For each business-relevant chapter identified, create a task:
94
+ `- [ ] Extract business capabilities from [chapter-name]`
95
+
96
+ IMPORTANT: Create these tasks before proceeding.
97
+
98
+ **STEP 3: Execute Business Analysis Tasks**
99
+ For each business analysis task:
100
+ 1. Read the specific chapter in detail
101
+ 2. Extract business information focusing on:
102
+ - What business capabilities are mentioned
103
+ - What services or processes are described
104
+ - Who (roles/actors) performs the work
105
+ - Why (business value/purpose) it exists
106
+ 3. Create detailed business summary emphasizing WHAT, WHY, WHO (not HOW)
107
+ 4. Update task progress as complete
108
+
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.
114
+
115
+ Example (Document "operations manual" with "payment processing" in Chapter 5.2):
116
+ - Operations Manual `[OPMAN]`
117
+ - payment processing
118
+ - `OPMAN, 5.2`
119
+
120
+ Example (Document "requirements.md" with "payment processing" in Chapter 1.2.1):
121
+ - Requirements `[REQ]`
122
+ - payment processing
123
+ - `REQ, 1.2.1`
124
+
125
+ Process business analysis tasks systematically, one at a time.
126
+ transitions:
127
+ - trigger: 'business_analysis_complete'
128
+ to: 'capability_identification'
129
+ additional_instructions: >
130
+ **Create Standardized Analysis Documentation**
131
+
132
+ Create `BUSINESS_ANALYSIS.md` with the following template content:
133
+ ```markdown
134
+ # Business Analysis Report
135
+
136
+ *This report documents business capabilities using Business Capability Modeling methodology. It provides a hierarchical view of what the business does, how it delivers value, and who performs the work.*
137
+
138
+ ## Methodology
139
+ This analysis uses **Business Capability Modeling**, an industry-standard approach for understanding business architecture:
140
+
141
+ - **Business Domains**: High-level areas of business activity
142
+ - **Business Capabilities**: What the business does (stable, outcome-focused)
143
+ - **Business Services**: How capabilities are delivered to consumers
144
+ - **Business Processes**: Step-by-step activities that deliver services
145
+ - **Business Actors**: Roles and organizational units that perform the work
146
+
147
+ **Hierarchy**: Domain → Capability → Sub-Capability → Service → Process → Actor
148
+
149
+ ## Executive Summary
150
+ <!-- High-level business capability overview -->
151
+
152
+ ## Business Domains Identified
153
+ <!-- Main business domains discovered -->
154
+
155
+ ## Key Business Capabilities
156
+ <!-- Primary capabilities mapped hierarchically -->
157
+
158
+ ## Business Services Catalog
159
+ <!-- Services that deliver capabilities -->
160
+
161
+ ## Business Architecture Insights
162
+ <!-- Important findings and patterns -->
163
+
164
+ ## Recommendations
165
+ <!-- Business capability recommendations -->
166
+ ```
167
+
168
+ Create `business-processes-detailed.md` with template:
169
+ ```markdown
170
+ # Business Processes Detailed
171
+
172
+ ## Overview
173
+ This document details business processes for each capability.
174
+
175
+ ## Process Overview by Capability
176
+ <!-- Process summaries for each capability -->
177
+
178
+ ## Process Flow Diagrams
179
+ <!-- Detailed process flows -->
180
+
181
+ ## Process Actors and Responsibilities
182
+ <!-- Key roles in each process -->
183
+ ```
184
+
185
+ Create `business-functions-mapping.md` with template:
186
+ ```markdown
187
+ # Business Functions Mapping
188
+
189
+ ## Overview
190
+ This document maps organizational functions to business capabilities.
191
+
192
+ ## Organizational Structure
193
+ <!-- High-level org structure -->
194
+
195
+ ## Function-Capability Mappings
196
+ <!-- Which functions support which capabilities -->
197
+
198
+ ## Roles and Responsibilities
199
+ <!-- Key roles and their responsibilities -->
200
+ ```
201
+
202
+ Create `technical-business-mapping.md` with template:
203
+ ```markdown
204
+ # Technical-Business Mapping
205
+
206
+ ## Overview
207
+ This document maps technical components to business capabilities.
208
+
209
+ ## Technical Architecture Overview
210
+ <!-- High-level technical architecture -->
211
+
212
+ ## Component-Capability Mappings
213
+ <!-- Which technical components support which capabilities -->
214
+
215
+ ## Business Value Assessments
216
+ <!-- Business value of each technical component -->
217
+ ```
218
+
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)
224
+
225
+ Begin analyzing processed documents to identify business capabilities and domains.
226
+ Update task progress as you complete business analysis work.
227
+ transition_reason: 'Business content analysis complete, ready for capability identification'
228
+
229
+ capability_identification:
230
+ description: 'Identify business capabilities from processed documents'
231
+ default_instructions: >
232
+ IMPORTANT: Always reference the existing documents.
233
+
234
+ **STEP 1: Analyze Processed Documents**
235
+ Review all `[document-name]-processed.md` files from consolidation phase.
236
+ Look for:
237
+ - Business functions mentioned
238
+ - Activities and processes described
239
+ - Services or offerings referenced
240
+ - Organizational responsibilities
241
+ - System functionalities with business purpose
242
+
243
+ **STEP 2: Extract Potential Capabilities**
244
+ From document analysis, create initial list of business capabilities.
245
+ Group similar activities and functions together.
246
+ Use Business Capability Modeling naming: `[Verb] + [Business Object]` (e.g., "Manage Customers", "Process Orders")
247
+
248
+ **STEP 3: Identify Business Domains**
249
+ Group capabilities into logical business domains:
250
+ - Customer-related capabilities → Customer Management
251
+ - Order-related capabilities → Order Management
252
+ - Financial capabilities → Financial Management
253
+ - etc.
254
+
255
+ **STEP 4: Present Findings to User**
256
+ Show user the identified capabilities and domains:
257
+
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?"
261
+
262
+ **STEP 5: Refine with User Input**
263
+ Adjust the capability model based on user feedback.
264
+ Document final capability list in `business-capabilities.md`.
265
+
266
+ transitions:
267
+ - trigger: 'capabilities_identified'
268
+ to: 'capability_decomposition'
269
+ additional_instructions: >
270
+ For each identified capability, create decomposition tasks:
271
+ `- [ ] Decompose [capability-name] into sub-capabilities using document analysis`
272
+
273
+ Begin systematic decomposition of capabilities one at a time.
274
+ transition_reason: 'Business capabilities identified, ready for detailed decomposition'
275
+
276
+ capability_decomposition:
277
+ description: 'Break down business capabilities into detailed sub-capabilities using document analysis'
278
+ default_instructions: >
279
+ IMPORTANT: Always reference the existing documents.
280
+
281
+ **STEP 1: Analyze Documents for Sub-capabilities**
282
+ Review processed documents for the next unprocessed capability:
283
+ - Look for detailed activities mentioned within this capability
284
+ - Identify specific processes or functions described
285
+ - Find decision points and workflow steps
286
+ - Note different outcomes or deliverables mentioned
287
+
288
+ **STEP 2: Extract Potential Sub-capabilities**
289
+ From document analysis, create initial list of sub-capabilities.
290
+ Use Business Capability Modeling naming: `[Verb] + [Business Object]`
291
+
292
+ Example: For "Customer Management" → "Verify Customer Identity", "Setup Customer Account", "Maintain Customer Data"
293
+
294
+ **STEP 3: Present Findings to User**
295
+ Show user the identified sub-capabilities:
296
+
297
+ "Based on the documents, I identified these sub-capabilities for `[capability]`: [Present structured list]
298
+
299
+ Do these sub-capabilities accurately reflect `[capability]`? Are any activities missing or incorrectly categorized?"
300
+
301
+ **STEP 4: Refine with User Input**
302
+ Adjust the sub-capability model based on user feedback.
303
+ Document refined decomposition in `business-capabilities/` detail folder.
304
+ Mark capability as complete and ask: "Ready for the next capability?"
305
+
306
+ transitions:
307
+ - trigger: 'decomposition_complete'
308
+ to: 'actor_analysis'
309
+ additional_instructions: >
310
+ Create `business-actors.md` with template:
311
+ ```markdown
312
+ # Business Actors
313
+
314
+ ## Overview
315
+ This document maps business actors (roles and organizational units) to capabilities using Business Capability Modeling methodology.
316
+
317
+ ## Actor-Capability Mappings
318
+ <!-- For each capability, document:
319
+ - Primary Owner: Who is accountable for capability outcomes
320
+ - Performing Roles: Which roles actually execute the capability
321
+ - Supporting Units: Which organizational units support the capability
322
+ - Decision Authority: Who has authority to change/approve within this capability -->
323
+
324
+ ## Role Definitions
325
+ <!-- Detailed definitions of key business roles -->
326
+
327
+ ## Organizational Units
328
+ <!-- Key organizational units and their responsibilities -->
329
+ ```
330
+
331
+ For each capability, create actor analysis tasks:
332
+ `- [ ] Analyze business actors for [capability-name] using document analysis`
333
+
334
+ Begin systematic actor analysis one capability at a time.
335
+ Update task progress as you complete decomposition work.
336
+ transition_reason: 'Capability decomposition complete, ready for actor analysis'
337
+
338
+ actor_analysis:
339
+ description: 'Map business actors (roles and organizational units) to capabilities using systematic task-based approach'
340
+ default_instructions: >
341
+ **STEP 1: Select Next Capability for Actor Analysis**
342
+ From current tasks, select the next capability to analyze for business actors.
343
+
344
+ **STEP 2: Analyze Documents for Business Actors**
345
+ Review processed documents to identify:
346
+ - **Business Roles**: Specific job roles (Customer Service Rep, Account Manager, etc.)
347
+ - **Organizational Units**: Teams/departments (Sales Team, Finance Department, etc.)
348
+ - **Decision-making Authority**: Who makes decisions for this capability
349
+ - **Accountability**: Who is responsible for capability outcomes
350
+
351
+ **STEP 3: Map Actors to Capabilities**
352
+ For the selected capability, identify:
353
+ - **Primary Owner**: Who is accountable for capability outcomes
354
+ - **Performing Roles**: Which roles actually execute the capability
355
+ - **Supporting Units**: Which organizational units support the capability
356
+ - **Decision Authority**: Who has authority to change/approve within this capability
357
+
358
+ **STEP 4: Create Actor Analysis Document**
359
+ Document the actor mappings in `business-actors.md`:
360
+ - **Primary Owner**: Who is accountable for capability outcomes
361
+ - **Performing Roles**: Which roles actually execute the capability
362
+ - **Supporting Units**: Which organizational units support the capability
363
+ - **Decision Authority**: Who has authority to change/approve within this capability
364
+
365
+ Then present to user for validation:
366
+ "I documented the business actors for `[capability]`. Please review the actor mappings - do they accurately reflect WHO performs this capability?"
367
+
368
+ **STEP 5: Refine and Document**
369
+ Update `business-actors.md` with capability-actor mappings.
370
+ Update task progress as complete.
371
+
372
+ Focus on capability ownership and role accountability, not just organizational structure.
373
+ Process one capability at a time.
374
+ transitions:
375
+ - trigger: 'actor_analysis_complete'
376
+ to: 'process_analysis'
377
+ additional_instructions: >
378
+ Create `business-processes.md` with template:
379
+ ```markdown
380
+ # Business Processes
381
+
382
+ ## Overview
383
+ This document details business processes that deliver capabilities.
384
+
385
+ ## Process Overview by Capability
386
+ <!-- Process summaries for each capability -->
387
+
388
+ ## Process Flow Diagrams
389
+ <!-- Detailed process flows and decision points -->
390
+
391
+ ## Process-Actor Relationships
392
+ <!-- How processes relate to the actors identified -->
393
+ ```
394
+
395
+ For each capability, create process analysis tasks:
396
+ `- [ ] Analyze business processes for [capability-name] using document analysis and actor context`
397
+
398
+ Begin systematic process analysis one capability at a time.
399
+ Update task progress as you complete actor analysis work.
400
+ transition_reason: 'Actor analysis complete, ready for process analysis'
401
+
402
+ process_analysis:
403
+ description: 'Analyze business processes using systematic task-based approach'
404
+ default_instructions: >
405
+ **STEP 1: Select Next Process Analysis Task**
406
+ From current process analysis tasks, select the next capability to process.
407
+
408
+ **STEP 2: Analyze Documents for Process Information**
409
+ Review processed documents for process information:
410
+ - Look for process steps, workflows, decision points
411
+ - Identify process actors, inputs, outputs
412
+ - Note process triggers and outcomes
413
+ - Find process rules and constraints
414
+
415
+ **STEP 3: Extract Processes**
416
+ Create process flows from document analysis.
417
+ Document process characteristics:
418
+ - Process name and purpose
419
+ - Process steps and sequence
420
+ - Decision points and branches
421
+ - Process actors and responsibilities
422
+ - Inputs, outputs, and deliverables
423
+
424
+ **STEP 4: Present to User**
425
+ Show identified processes and ask for validation:
426
+
427
+ "Based on documents, I identified these processes for `[capability]`: [Present process flows]
428
+
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.
433
+ Update task progress as complete.
434
+
435
+ Process one capability at a time.
436
+ transitions:
437
+ - trigger: 'process_analysis_complete'
438
+ to: 'consistency'
439
+ additional_instructions: >
440
+ Present the Business Capability Consistency Framework to user:
441
+
442
+ "I'll now validate consistency across all analysis documents using this framework:
443
+
444
+ **Business Capability Consistency Framework:**
445
+ - **Capability-Process Alignment**: Do processes actually deliver the stated capabilities?
446
+ - **Actor-Capability Ownership**: Are actors properly assigned to capability outcomes?
447
+ - **Process-Actor Mapping**: Do processes reference the correct performing actors?
448
+ - **Cross-Document Coherence**: Same entities described consistently across documents?
449
+ - **Completeness Validation**: All expected sections present and properly linked?
450
+
451
+ This ensures our business capability model is internally consistent before final summary.
452
+ Ready to proceed with consistency validation?"
453
+ transition_reason: 'Process analysis complete, ready for consistency validation'
454
+
455
+ consistency:
456
+ description: 'Validate consistency across all business capability analysis documents'
457
+ default_instructions: >
458
+ **STEP 1: Discover Analysis Documents**
459
+ Scan workspace for all created analysis documents:
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`
465
+ - Any other analysis artifacts created
466
+
467
+ **STEP 2: Apply Consistency Framework**
468
+ Execute each consistency check:
469
+
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?
474
+
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?
479
+
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?
484
+
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?
489
+
490
+ - **Completeness Validation**:
491
+ - Are all expected document sections present?
492
+ - Do internal links work correctly?
493
+ - Are references to other documents accurate?
494
+
495
+ **STEP 3: Document Issues and Fixes**
496
+ Create `CONSISTENCY_REPORT.md` documenting:
497
+ - Issues found during validation
498
+ - Fixes applied to resolve inconsistencies
499
+ - Remaining gaps or recommendations
500
+
501
+ **STEP 4: Present Findings to User**
502
+ Show consistency validation results and ask for confirmation:
503
+
504
+ "Consistency validation complete. Found `[X]` issues, resolved `[Y]`.
505
+ Key findings: `[summary of major consistency improvements]`
506
+
507
+ Are you satisfied with the consistency of the business capability model?"
508
+
509
+ Focus on ensuring the business capability model is internally coherent before final summary.
510
+ transitions:
511
+ - trigger: 'consistency_complete'
512
+ to: 'summary'
513
+ additional_instructions: >
514
+ Ask user about illustration format preference:
515
+ "How would you like diagrams and illustrations formatted in the final summary?
516
+ - ASCII diagrams (text-based, simple)
517
+ - Mermaid diagrams (code-based, rich formatting)
518
+ - PlantUML diagrams (UML standard, detailed)
519
+ - All three formats (comprehensive)"
520
+
521
+ Begin creating consolidated summaries and illustrations.
522
+ Update task progress as you complete consistency work.
523
+ transition_reason: 'Consistency validation complete, ready for final summary creation'
524
+
525
+ summary:
526
+ description: 'Create consolidated summaries and illustrations for business capability analysis'
527
+ default_instructions: >
528
+ **STEP 1: Create Consolidated Overviews**
529
+ Build comprehensive summary documents:
530
+ - **Executive Summary**: High-level business capability overview for leadership
531
+ - **Capability Map**: Hierarchical view of all business capabilities
532
+ - **Actor-Capability Matrix**: Who owns/performs each capability
533
+ - **Process Overview**: Key processes supporting capabilities
534
+ - **Navigation Guide**: How to use all analysis documents
535
+
536
+ **STEP 2: Generate Illustrations**
537
+ Using user's chosen format(s) (ASCII/Mermaid/PlantUML):
538
+ - Business capability hierarchy diagrams
539
+ - Process flow diagrams
540
+ - Actor-capability relationship maps
541
+ - Cross-functional process flows
542
+ - Organizational responsibility charts
543
+
544
+ **STEP 3: Fix Links and References**
545
+ - Standardize internal document links
546
+ - Create cross-references between related content
547
+ - Build table of contents for navigation
548
+ - Ensure all references are accurate and working
549
+
550
+ **STEP 4: Update BUSINESS_ANALYSIS.md**
551
+ Finalize the main analysis document with:
552
+ - Complete executive summary
553
+ - Key findings and insights
554
+ - Business architecture recommendations
555
+ - Links to all detailed analysis documents
556
+ - Methodology explanation and validation results
557
+
558
+ **STEP 5: Present Final Deliverables**
559
+ Show completed analysis to user:
560
+
561
+ "Business Capability Analysis complete! Final deliverables: [Present overview of all documents, diagrams, and summaries]
562
+
563
+ This provides comprehensive business architecture understanding for domain architects.
564
+ Are you satisfied with the final analysis deliverables?"
565
+
566
+ Focus on creating business-friendly, navigable documentation that serves domain architects.
567
+ transitions:
568
+ - trigger: 'summary_complete'
569
+ to: 'analysis_complete'
570
+ additional_instructions: >
571
+ Summary creation is complete! ✅
572
+
573
+ Final Business Capability Analysis deliverables ready:
574
+ - Consolidated executive summaries
575
+ - Business capability maps and diagrams
576
+ - Actor-capability matrices
577
+ - Process flow documentation
578
+ - Navigation guides and cross-references
579
+
580
+ The analysis provides complete business architecture understanding using Business Capability Modeling methodology.
581
+ Update task progress as you complete summary work.
582
+ transition_reason: 'Summary creation complete, analysis finished'
583
+
584
+ analysis_complete:
585
+ description: 'Business analysis complete'
586
+ default_instructions: >
587
+ Business analysis is complete! The system has been thoroughly analyzed using Business Capability Modeling methodology.
588
+
589
+ **Final Deliverables:**
590
+ - Comprehensive business architecture documentation (Business Capability Modeling-based)
591
+ - `BUSINESS_ANALYSIS.md` with complete analysis findings
592
+ - Business capability maps and process flows
593
+ - Technical-business alignment documentation
594
+ - Business-friendly documentation for domain architects
595
+
596
+ The analysis provides a solid foundation for business architecture decisions and technical-business alignment.
597
+ transitions: []