speccrew 0.1.0

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 (153) hide show
  1. package/.speccrew/agents/speccrew-feature-designer.md +142 -0
  2. package/.speccrew/agents/speccrew-product-manager.md +61 -0
  3. package/.speccrew/agents/speccrew-system-designer.md +200 -0
  4. package/.speccrew/agents/speccrew-system-developer.md +238 -0
  5. package/.speccrew/agents/speccrew-task-worker.md +80 -0
  6. package/.speccrew/agents/speccrew-team-leader.md +92 -0
  7. package/.speccrew/agents/speccrew-test-manager.md +313 -0
  8. package/.speccrew/skills/speccrew-create-agents/SKILL.md +98 -0
  9. package/.speccrew/skills/speccrew-create-agents/templates/agents/designer-agent.md +54 -0
  10. package/.speccrew/skills/speccrew-create-agents/templates/agents/dev-agent.md +79 -0
  11. package/.speccrew/skills/speccrew-create-agents/templates/agents/test-agent.md +80 -0
  12. package/.speccrew/skills/speccrew-dev-backend/SKILL.md +205 -0
  13. package/.speccrew/skills/speccrew-dev-backend/templates/TASK-RECORD-TEMPLATE.md +118 -0
  14. package/.speccrew/skills/speccrew-dev-desktop/SKILL.md +258 -0
  15. package/.speccrew/skills/speccrew-dev-desktop/templates/TASK-RECORD-TEMPLATE.md +161 -0
  16. package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +202 -0
  17. package/.speccrew/skills/speccrew-dev-frontend/templates/TASK-RECORD-TEMPLATE.md +115 -0
  18. package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +200 -0
  19. package/.speccrew/skills/speccrew-dev-mobile/templates/TASK-RECORD-TEMPLATE.md +125 -0
  20. package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +73 -0
  21. package/.speccrew/skills/speccrew-fd-api-contract/templates/API-CONTRACT-TEMPLATE.md +96 -0
  22. package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +395 -0
  23. package/.speccrew/skills/speccrew-fd-feature-design/templates/FEATURE-SPEC-TEMPLATE.md +387 -0
  24. package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +80 -0
  25. package/.speccrew/skills/speccrew-get-timestamp/scripts/get-timestamp.js +35 -0
  26. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +1116 -0
  27. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-FASTAPI.md +462 -0
  28. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-JAVA.md +480 -0
  29. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-NET.md +464 -0
  30. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE.md +480 -0
  31. package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/MODULE-OVERVIEW-TEMPLATE.md +367 -0
  32. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +667 -0
  33. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/STATUS-FORMATS.md +74 -0
  34. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/batch-orchestrator.js +176 -0
  35. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-next-batch.js +150 -0
  36. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-pending-features.js +106 -0
  37. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/mark-stale.js +249 -0
  38. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/process-batch-results.js +848 -0
  39. package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/update-feature-status.js +226 -0
  40. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +264 -0
  41. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/examples/features.json +34 -0
  42. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/generate-inventory.js +867 -0
  43. package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/test-inventory.js +26 -0
  44. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +165 -0
  45. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/apply-module-mapping.js +208 -0
  46. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/extract-module-summary.js +180 -0
  47. package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/reindex-modules.js +358 -0
  48. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +1055 -0
  49. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-DESKTOP.md +303 -0
  50. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-ELECTRON.md +327 -0
  51. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-MINIAPP.md +292 -0
  52. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-MOBILE.md +281 -0
  53. package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI.md +324 -0
  54. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +270 -0
  55. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/COMPONENT-PATTERN-TEMPLATE.md +33 -0
  56. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/LAYOUT-PATTERN-TEMPLATE.md +33 -0
  57. package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/PAGE-TYPE-TEMPLATE.md +33 -0
  58. package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +229 -0
  59. package/.speccrew/skills/speccrew-knowledge-graph-query/scripts/graph-query.js +549 -0
  60. package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +181 -0
  61. package/.speccrew/skills/speccrew-knowledge-graph-write/scripts/graph-write.js +651 -0
  62. package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +305 -0
  63. package/.speccrew/skills/speccrew-knowledge-module-summarize/templates/MODULE-OVERVIEW-TEMPLATE.md +400 -0
  64. package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +351 -0
  65. package/.speccrew/skills/speccrew-knowledge-system-summarize/templates/SYSTEM-OVERVIEW-TEMPLATE.md +294 -0
  66. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +683 -0
  67. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/STATUS-FORMATS.md +550 -0
  68. package/.speccrew/skills/speccrew-knowledge-techs-dispatch/templates/techs-manifest-EXAMPLE.json +35 -0
  69. package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +1087 -0
  70. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/ARCHITECTURE-TEMPLATE.md +240 -0
  71. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/COLOR-SYSTEM-TEMPLATE.md +68 -0
  72. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/COMPONENT-LIBRARY-TEMPLATE.md +86 -0
  73. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-BUILD-TEMPLATE.md +466 -0
  74. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DATA-TEMPLATE.md +432 -0
  75. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DESIGN-TEMPLATE.md +1209 -0
  76. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DEV-TEMPLATE.md +1433 -0
  77. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-SYSTEM-TEST-TEMPLATE.md +1052 -0
  78. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-UNIT-TEST-TEMPLATE.md +946 -0
  79. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/INDEX-TEMPLATE.md +29 -0
  80. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/PAGE-LAYOUTS-TEMPLATE.md +69 -0
  81. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/PAGE-TYPE-SUMMARY-TEMPLATE.md +74 -0
  82. package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/TECH-STACK-TEMPLATE.md +232 -0
  83. package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +628 -0
  84. package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +392 -0
  85. package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +489 -0
  86. package/.speccrew/skills/speccrew-knowledge-techs-index/templates/INDEX-TEMPLATE.md +243 -0
  87. package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +269 -0
  88. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +562 -0
  89. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/BUSINESS-COMPONENTS-TEMPLATE.md +171 -0
  90. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMMON-COMPONENTS-TEMPLATE.md +177 -0
  91. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMPONENT-INDIVIDUAL-TEMPLATE.md +80 -0
  92. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMPONENT-LIBRARY-TEMPLATE.md +118 -0
  93. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/LAYOUT-INDIVIDUAL-TEMPLATE.md +97 -0
  94. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/LAYOUT-PATTERNS-TEMPLATE.md +208 -0
  95. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/NAVIGATION-PATTERNS-TEMPLATE.md +157 -0
  96. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/PAGE-TYPE-INDIVIDUAL-TEMPLATE.md +123 -0
  97. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/PAGE-TYPE-SUMMARY-TEMPLATE.md +58 -0
  98. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/SPACING-TEMPLATE.md +119 -0
  99. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/STYLE-SYSTEM-TEMPLATE.md +117 -0
  100. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/TYPOGRAPHY-TEMPLATE.md +107 -0
  101. package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/UI-STYLE-GUIDE-TEMPLATE.md +171 -0
  102. package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +434 -0
  103. package/.speccrew/skills/speccrew-pm-requirement-analysis/templates/BIZS-MODELING-TEMPLATE.md +332 -0
  104. package/.speccrew/skills/speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md +200 -0
  105. package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +195 -0
  106. package/.speccrew/skills/speccrew-project-diagnosis/SKILL.md +208 -0
  107. package/.speccrew/skills/speccrew-project-diagnosis/templates/DIAGNOSIS-REPORT-TEMPLATE.md +202 -0
  108. package/.speccrew/skills/speccrew-sd-backend/SKILL.md +188 -0
  109. package/.speccrew/skills/speccrew-sd-backend/templates/INDEX-TEMPLATE.md +85 -0
  110. package/.speccrew/skills/speccrew-sd-backend/templates/SD-BACKEND-TEMPLATE.md +269 -0
  111. package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +192 -0
  112. package/.speccrew/skills/speccrew-sd-desktop/templates/INDEX-TEMPLATE.md +271 -0
  113. package/.speccrew/skills/speccrew-sd-desktop/templates/SD-DESKTOP-TEMPLATE.md +673 -0
  114. package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +176 -0
  115. package/.speccrew/skills/speccrew-sd-frontend/templates/INDEX-TEMPLATE.md +184 -0
  116. package/.speccrew/skills/speccrew-sd-frontend/templates/SD-FRONTEND-TEMPLATE.md +382 -0
  117. package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +189 -0
  118. package/.speccrew/skills/speccrew-sd-mobile/templates/INDEX-TEMPLATE.md +219 -0
  119. package/.speccrew/skills/speccrew-sd-mobile/templates/SD-MOBILE-TEMPLATE.md +534 -0
  120. package/.speccrew/skills/speccrew-test-case-design/SKILL.md +284 -0
  121. package/.speccrew/skills/speccrew-test-case-design/templates/TEST-CASE-DESIGN-TEMPLATE.md +263 -0
  122. package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +313 -0
  123. package/.speccrew/skills/speccrew-test-code-gen/templates/TEST-CODE-PLAN-TEMPLATE.md +180 -0
  124. package/.speccrew/skills/speccrew-test-execute/SKILL.md +283 -0
  125. package/.speccrew/skills/speccrew-test-execute/templates/BUG-REPORT-TEMPLATE.md +50 -0
  126. package/.speccrew/skills/speccrew-test-execute/templates/TEST-REPORT-TEMPLATE.md +57 -0
  127. package/.speccrew/skills/speccrew-workflow-diagnose/SKILL.md +155 -0
  128. package/LICENSE +21 -0
  129. package/README.ar.md +318 -0
  130. package/README.en.md +318 -0
  131. package/README.es.md +318 -0
  132. package/README.md +340 -0
  133. package/bin/cli.js +62 -0
  134. package/lib/commands/doctor.js +138 -0
  135. package/lib/commands/init.js +231 -0
  136. package/lib/commands/list.js +114 -0
  137. package/lib/commands/uninstall.js +117 -0
  138. package/lib/commands/update.js +351 -0
  139. package/lib/ide-adapters.js +73 -0
  140. package/lib/utils.js +104 -0
  141. package/package.json +28 -0
  142. package/workspace-template/docs/configs/document-templates.json +667 -0
  143. package/workspace-template/docs/configs/platform-mapping.json +194 -0
  144. package/workspace-template/docs/configs/tech-stack-mappings.json +313 -0
  145. package/workspace-template/docs/configs/validation-rules.json +87 -0
  146. package/workspace-template/docs/rules/mermaid-rule.md +114 -0
  147. package/workspace-template/docs/solutions/Agent/346/212/200/350/203/275/345/256/232/344/271/211+/351/234/200/346/261/202/346/226/207/346/241/243+UML/344/275/277/347/224/250/346/250/241/346/235/277/357/274/210ISA-95/345/205/255/346/256/265/345/274/217/350/236/215/345/220/210/347/211/210/357/274/211.md +586 -0
  148. package/workspace-template/docs/solutions/agent-knowledge-map.md +238 -0
  149. package/workspace-template/docs/solutions/bizs-knowledge-pipeline.md +678 -0
  150. package/workspace-template/docs/solutions/harness.md +410 -0
  151. package/workspace-template/docs/solutions/knowledge-incremental-sync-spec.md +943 -0
  152. package/workspace-template/docs/solutions/techs-knowledge-pipeline.md +803 -0
  153. package/workspace-template/docs/solutions/workspace-structure.md +318 -0
@@ -0,0 +1,332 @@
1
+ # Business Modeling - [Feature/Skill Name]
2
+
3
+ ## Document Info
4
+
5
+ | Item | Value |
6
+ |------|-------|
7
+ | Modeling Target | __________ |
8
+ | Modeling Type | ☐ Agent Skill ☐ Business Feature ☐ System Module |
9
+ | Author | __________ |
10
+ | Date | __________ |
11
+ | Priority | ☐ High ☐ Medium ☐ Low |
12
+ | Version | __________ |
13
+
14
+ ---
15
+
16
+ ## 1. Domain Description
17
+
18
+ <!-- AI-NOTE: Define WHAT the system is and WHERE its boundaries lie. -->
19
+
20
+ ### 1.1 Domain Boundary
21
+
22
+ **Domain**: __________
23
+
24
+ **In-Scope**:
25
+ - __________
26
+ - __________
27
+
28
+ **Out-of-Scope**:
29
+ - __________
30
+ - __________
31
+
32
+ ### 1.2 External Participants
33
+
34
+ | Participant Type | Name | Description |
35
+ |------------------|------|-------------|
36
+ | User | __________ | __________ |
37
+ | System | __________ | __________ |
38
+ | Agent | __________ | __________ |
39
+
40
+ ### 1.3 Domain Glossary
41
+
42
+ | Term | Definition | Related Domain |
43
+ |------|------------|----------------|
44
+ | __________ | __________ | __________ |
45
+
46
+ ### 1.4 System Context Diagram
47
+
48
+ ```mermaid
49
+ graph TD
50
+ A[External Actor 1] --> B[Target System]
51
+ C[External Actor 2] --> B
52
+ D[External System] --> B
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 2. Functions in Domain
58
+
59
+ <!-- AI-NOTE: List ALL functions within domain boundary. Don't filter yet. -->
60
+
61
+ ### 2.1 Function Decomposition (WBS)
62
+
63
+ ```mermaid
64
+ graph TD
65
+ A[Main Function] --> B[Sub Function 1]
66
+ A --> C[Sub Function 2]
67
+ A --> D[Sub Function 3]
68
+ B --> B1[Task 1.1]
69
+ B --> B2[Task 1.2]
70
+ ```
71
+
72
+ ### 2.2 Function-Capability Mapping Table
73
+
74
+ | Function Module | Core Sub-function | Business Capability | UML Visualization |
75
+ |-----------------|-------------------|---------------------|-------------------|
76
+ | __________ | __________ | __________ | Use Case / Activity / State |
77
+
78
+ ### 2.3 UML Visualization (As Needed)
79
+
80
+ <!-- AI-NOTE: Choose: Use Case Diagram (actor-function), Activity Diagram (process flow), State Machine (entity lifecycle only) -->
81
+
82
+ #### 2.3.1 Use Case Diagram
83
+
84
+ ```mermaid
85
+ graph TB
86
+ subgraph Actors
87
+ A1[Actor 1]
88
+ end
89
+ subgraph System
90
+ UC1[Use Case 1]
91
+ UC2[Use Case 2]
92
+ end
93
+ A1 --> UC1
94
+ A1 --> UC2
95
+ ```
96
+
97
+ #### 2.3.2 Activity Diagram
98
+
99
+ ```mermaid
100
+ flowchart TD
101
+ A[Start] --> B[Action 1]
102
+ B --> C{Decision}
103
+ C -->|Path 1| D[Action 2]
104
+ C -->|Path 2| E[Action 3]
105
+ D --> F[End]
106
+ E --> F
107
+ ```
108
+
109
+ #### 2.3.3 State Machine Diagram (Core Entities Only)
110
+
111
+ ```mermaid
112
+ stateDiagram-v2
113
+ [*] --> State1
114
+ State1 --> State2 : Trigger 1
115
+ State2 --> State3 : Trigger 2
116
+ State3 --> [*]
117
+ ```
118
+
119
+ ---
120
+
121
+ ## 3. Functions of Interest
122
+
123
+ <!-- AI-NOTE: Focus on CORE functions for MVP. Use MoSCoW method. -->
124
+
125
+ ### 3.1 Core Function Selection (MoSCoW)
126
+
127
+ | Function Name | Priority | Is Core? | Notes |
128
+ |---------------|----------|----------|-------|
129
+ | __________ | Must have | Yes/No | __________ |
130
+ | __________ | Should have | Yes/No | __________ |
131
+ | __________ | Could have | Yes/No | __________ |
132
+ | __________ | Won't have | Yes/No | __________ |
133
+
134
+ ### 3.2 Core Function Use Case Diagram
135
+
136
+ ```mermaid
137
+ graph TB
138
+ A[Actor]
139
+ subgraph System
140
+ UC1[Core Use Case 1]
141
+ UC2[Core Use Case 2]
142
+ end
143
+ A --> UC1
144
+ A --> UC2
145
+ ```
146
+
147
+ ### 3.3 Non-core Function Notes
148
+
149
+ | Function | Current Status | Planned Iteration |
150
+ |----------|----------------|-------------------|
151
+ | __________ | Deferred | Iteration X |
152
+
153
+ ---
154
+
155
+ ## 4. Information Flows of Interest
156
+
157
+ <!-- AI-NOTE: Document HOW information flows between core functions and external systems. -->
158
+
159
+ ### 4.1 Core Information Flow Description
160
+
161
+ **Description**: __________
162
+
163
+ **Data Sources**: __________
164
+
165
+ **Data Destinations**: __________
166
+
167
+ **Flow Frequency**: __________
168
+
169
+ ### 4.2 Sequence Diagram
170
+
171
+ ```mermaid
172
+ sequenceDiagram
173
+ participant U as User
174
+ participant S as System
175
+ participant D as Database
176
+
177
+ U->>S: Submit request
178
+ S->>D: Query data
179
+ D-->>S: Return result
180
+ S-->>U: Display result
181
+ ```
182
+
183
+ ### 4.3 Data Flow Diagram (DFD)
184
+
185
+ ```mermaid
186
+ graph TD
187
+ subgraph System
188
+ P1[Process 1]
189
+ P2[Process 2]
190
+ end
191
+ E1[External Entity 1] -- Data Flow 1 --> P1
192
+ P1 -- Data Flow 2 --> P2
193
+ P2 -- Data Flow 3 --> E2[External Entity 2]
194
+ ```
195
+
196
+ ### 4.4 Interface Interaction List
197
+
198
+ | Interface Name | Direction | Data Format | Frequency | Core Fields |
199
+ |----------------|-----------|-------------|-----------|-------------|
200
+ | __________ | User→System | JSON/XML | Real-time | __________ |
201
+
202
+ ---
203
+
204
+ ## 5. Categories of Information
205
+
206
+ <!-- AI-NOTE: Define WHAT data entities exist. Focus on business concepts, not implementation. -->
207
+
208
+ ### 5.1 Information Category Directory
209
+
210
+ | Information Category | Core Entity | Related Stage | Description |
211
+ |---------------------|-------------|---------------|-------------|
212
+ | __________ | __________ | Stage X | __________ |
213
+
214
+ ### 5.2 Data Dictionary
215
+
216
+ | Entity Name | Core Attributes | Data Type | Constraints | Description |
217
+ |-------------|-----------------|-----------|-------------|-------------|
218
+ | __________ | __________ | String/Number/Enum | Non-null | __________ |
219
+
220
+ ### 5.3 Conceptual Class Diagram
221
+
222
+ ```mermaid
223
+ classDiagram
224
+ class Entity1 {
225
+ +attribute1
226
+ +attribute2
227
+ }
228
+ class Entity2 {
229
+ +attribute3
230
+ }
231
+ Entity1 "1" -- "*" Entity2 : relates
232
+ ```
233
+
234
+ ---
235
+
236
+ ## 6. Information Descriptions
237
+
238
+ <!-- AI-NOTE: IMPLEMENTATION-READY specifications with technical details. -->
239
+
240
+ ### 6.1 Design Class Diagram
241
+
242
+ ```mermaid
243
+ classDiagram
244
+ class ClassName {
245
+ -privateAttribute: Type
246
+ +publicMethod(): ReturnType
247
+ }
248
+ class InterfaceName {
249
+ +interfaceMethod(): ReturnType
250
+ }
251
+ ClassName ..|> InterfaceName : implements
252
+ ```
253
+
254
+ ### 6.2 Component Diagram
255
+
256
+ ```mermaid
257
+ graph TB
258
+ C1[Component 1] --> C2[Component 2]
259
+ C2 --> C3[Component 3]
260
+ ```
261
+
262
+ ### 6.3 Information Description Standards
263
+
264
+ **Output Format**: __________
265
+
266
+ **Encoding**: UTF-8
267
+
268
+ **Validation Rules**:
269
+ - __________
270
+
271
+ **Storage Requirements**: __________
272
+
273
+ ---
274
+
275
+ ## 7. Acceptance Criteria
276
+
277
+ ### 7.1 Functional Acceptance
278
+
279
+ | Function | Acceptance Condition | Verification Method |
280
+ |----------|---------------------|---------------------|
281
+ | __________ | __________ | Test / Demo / Review |
282
+
283
+ ### 7.2 Performance Acceptance
284
+
285
+ | Metric | Target | Measurement Method |
286
+ |--------|--------|-------------------|
287
+ | Response Time | ≤ X ms | __________ |
288
+ | Accuracy | ≥ X% | __________ |
289
+
290
+ ### 7.3 Interface Acceptance
291
+
292
+ | Interface | Success Rate | Error Handling |
293
+ |-----------|-------------|----------------|
294
+ | __________ | ≥ X% | __________ |
295
+
296
+ ---
297
+
298
+ ## 8. Risks and Constraints
299
+
300
+ ### 8.1 Risks
301
+
302
+ | Risk | Probability | Impact | Mitigation |
303
+ |------|-------------|--------|------------|
304
+ | __________ | High/Medium/Low | High/Medium/Low | __________ |
305
+
306
+ ### 8.2 Constraints
307
+
308
+ | Constraint Type | Description |
309
+ |-----------------|-------------|
310
+ | Technical | __________ |
311
+ | Business | __________ |
312
+
313
+ ---
314
+
315
+ ## 9. References
316
+
317
+ ### 9.1 Related System Modules
318
+
319
+ | Module | Relationship | Document Link |
320
+ |--------|-------------|---------------|
321
+ | __________ | Dependency / Dependent | [Link] |
322
+
323
+ ### 9.2 Reference Documents
324
+
325
+ | Document | Description |
326
+ |----------|-------------|
327
+ | ISA-95 Standard | Business modeling methodology |
328
+ | UML Specification | Visual modeling language |
329
+
330
+ ---
331
+
332
+ > Document generated using ISA-95 six-stage methodology. Mermaid diagrams follow mermaid-rule.md guidelines.
@@ -0,0 +1,200 @@
1
+ # PRD - [Feature Name]
2
+
3
+ ## 1. Background & Goals
4
+
5
+ ### 1.1 Background
6
+ [Describe why this feature is needed and what problem it solves]
7
+
8
+ ### 1.2 Goals
9
+ [Describe the business objectives to be achieved]
10
+
11
+ ## 2. User Stories
12
+
13
+ ### 2.1 Target Users
14
+ [Describe who will use this feature]
15
+
16
+ ### 2.2 User Scenarios
17
+
18
+ **Scenario 1: [Scenario Name]**
19
+ - **As a** [role]
20
+ - **I want** [action]
21
+ - **So that** [value]
22
+
23
+ **Scenario 2: [Scenario Name]**
24
+ ...
25
+
26
+ ## 3. Functional Requirements
27
+
28
+ ### 3.1 Use Case Diagram
29
+
30
+ ```mermaid
31
+ flowchart TB
32
+ %% Actor definitions (stadium shape represents actors)
33
+ U([🧑 User])
34
+ A([🧑 Admin])
35
+
36
+ %% Use case nodes
37
+ UC1(Core Feature 1)
38
+ UC2(Core Feature 2)
39
+ UC3(Core Feature 3)
40
+ UC4(Management Feature)
41
+
42
+ %% Relationships
43
+ U --> UC1
44
+ U --> UC2
45
+ U --> UC3
46
+ A --> UC4
47
+ A --> UC1
48
+
49
+ %% Include relationships
50
+ UC1 -.-> UC2
51
+ ```
52
+
53
+ **Use Case Description:**
54
+
55
+ | Use Case ID | Name | Actor | Description |
56
+ |-------------|------|-------|-------------|
57
+ | UC-001 | Core Feature 1 | User, Admin | [Description] |
58
+ | UC-002 | Core Feature 2 | User | [Description] |
59
+ | UC-003 | Core Feature 3 | User | [Description] |
60
+ | UC-004 | Management Feature | Admin | [Description] |
61
+
62
+ ### 3.2 Business Process Flow
63
+
64
+ ```mermaid
65
+ graph TB
66
+ %% Process stages
67
+ START([Start])
68
+ P1[Stage 1: Input/Preparation]
69
+ P2[Stage 2: Processing]
70
+ P3[Stage 3: Validation]
71
+ P4[Stage 4: Completion]
72
+ END([End])
73
+
74
+ %% Decision points
75
+ D1{Valid?}
76
+ D2{Approved?}
77
+
78
+ %% Flow
79
+ START --> P1
80
+ P1 --> P2
81
+ P2 --> P3
82
+ P3 --> D1
83
+ D1 -->|Yes| D2
84
+ D1 -->|No| P1
85
+ D2 -->|Yes| P4
86
+ D2 -->|No| END
87
+ P4 --> END
88
+ ```
89
+
90
+ **Process Description:**
91
+
92
+ | Stage | Description | Input | Output | Responsible Role |
93
+ |-------|-------------|-------|--------|------------------|
94
+ | Stage 1 | [Description] | [Input data] | [Output data] | [Role] |
95
+ | Stage 2 | [Description] | [Input data] | [Output data] | [Role] |
96
+ | Stage 3 | [Description] | [Input data] | [Output data] | [Role] |
97
+ | Stage 4 | [Description] | [Input data] | [Output data] | [Role] |
98
+
99
+ ### 3.3 Feature List
100
+
101
+ | Feature | Priority | Description | Acceptance Criteria |
102
+ |---------|----------|-------------|---------------------|
103
+ | [Feature 1] | P0 | [Description] | [Acceptance Criteria] |
104
+ | [Feature 2] | P1 | [Description] | [Acceptance Criteria] |
105
+
106
+ ### 3.2 Feature Details
107
+
108
+ #### Feature 1: [Feature Name]
109
+
110
+ **Requirement Description:**
111
+ [Detailed description of this feature's specific requirements]
112
+
113
+ **Interaction Flow:**
114
+ 1. [Step 1]
115
+ 2. [Step 2]
116
+ 3. [Step 3]
117
+
118
+ **Boundary Conditions:**
119
+ | Condition Type | Scenario Description | Expected Handling |
120
+ |----------------|---------------------|-------------------|
121
+ | Edge Cases | [e.g., empty input, too long, special characters] | [Handling method] |
122
+ | Concurrency/Race | [e.g., duplicate submission, concurrent operations] | [Handling method] |
123
+ | Permission Boundary | [e.g., unauthorized access, not logged in] | [Handling method] |
124
+ | Dependency Failure | [e.g., third-party service unavailable] | [Handling method] |
125
+
126
+ **Exception Scenarios:**
127
+ - [Exception 1]: [Handling method]
128
+ - [Exception 2]: [Handling method]
129
+
130
+ **Operation Flow Diagram:**
131
+
132
+ ```mermaid
133
+ graph LR
134
+ %% Operation steps
135
+ S1[Step 1: Action]
136
+ S2[Step 2: Action]
137
+ S3[Step 3: Action]
138
+ S4[Step 4: Action]
139
+
140
+ %% Alternative paths
141
+ ALT1[Alternative Path A]
142
+ ALT2[Alternative Path B]
143
+
144
+ %% Flow
145
+ S1 --> S2
146
+ S2 --> S3
147
+ S3 --> S4
148
+
149
+ %% Alternative flows
150
+ S2 -.-> ALT1
151
+ S3 -.-> ALT2
152
+ ALT1 --> S4
153
+ ALT2 --> S4
154
+ ```
155
+
156
+ **Operation Steps Detail:**
157
+
158
+ | Step | Action | System Response | User Feedback | Exception Handling |
159
+ |------|--------|-----------------|---------------|-------------------|
160
+ | 1 | [User action] | [System behavior] | [UI feedback] | [Error handling] |
161
+ | 2 | [User action] | [System behavior] | [UI feedback] | [Error handling] |
162
+ | 3 | [User action] | [System behavior] | [UI feedback] | [Error handling] |
163
+ | 4 | [User action] | [System behavior] | [UI feedback] | [Error handling] |
164
+
165
+ ## 4. Non-functional Requirements
166
+
167
+ - **Performance**: [Performance requirements]
168
+ - **Security**: [Security requirements]
169
+ - **Compatibility**: [Compatibility requirements]
170
+
171
+ ## 5. Acceptance Criteria
172
+
173
+ ### 5.1 Must Have
174
+ - [ ] [Acceptance Item]
175
+ - [ ] [Acceptance Item]
176
+
177
+ ### 5.2 Should Have
178
+ - [ ] [Acceptance Item]
179
+ - [ ] [Acceptance Item]
180
+
181
+ ## 6. Boundary Description
182
+
183
+ ### 6.1 In Scope
184
+ - [Scope Item]
185
+ - [Scope Item]
186
+
187
+ ### 6.2 Out of Scope
188
+ - [Scope Item]
189
+ - [Scope Item]
190
+
191
+ ## 7. Assumptions & Dependencies
192
+
193
+ - **Assumptions**: [Prerequisites]
194
+ - **Dependencies**: [Other features/systems depended upon]
195
+
196
+ ---
197
+
198
+ **PRD Status:** 📝 Draft / 👀 In Review / ✅ Confirmed
199
+ **Confirmation Date:** [Date]
200
+ **Confirmed By:** [Name]
@@ -0,0 +1,195 @@
1
+ ---
2
+ name: speccrew-pm-requirement-assess
3
+ description: Quick impact assessment for new requirements. Analyzes affected modules, change type, risk level, and cross-module dependencies using system documentation and knowledge graph. Use when PM Agent needs a lightweight evaluation before deciding whether to run full requirement-analysis workflow.
4
+ tools: Read, Glob, Grep
5
+ ---
6
+
7
+ # Requirement Assessment for Product Manager
8
+
9
+ Guide PM Agent to quickly assess new requirements using system documentation, module knowledge, and knowledge graph.
10
+
11
+ ## Trigger Scenarios
12
+
13
+ - "Assess impact scope of new requirement"
14
+ - "Analyze which modules are affected by requirement"
15
+ - "Determine if requirement is new or modification"
16
+ - "Quick requirement assessment"
17
+ - "New requirement impact analysis"
18
+ - "How big is this requirement?"
19
+
20
+ ## User
21
+
22
+ PM Agent (speccrew-product-manager)
23
+
24
+ ## Input
25
+
26
+ - New requirement description
27
+ - system-overview.md (system documentation)
28
+ - Related {name}-overview.md files (if specific modules identified)
29
+ - Knowledge graph (for cross-module dependency analysis)
30
+
31
+ ## Output
32
+
33
+ - Requirement assessment report with:
34
+ - Impact scope (modules affected, direct + indirect)
35
+ - Change type (New/Modify/Mixed/Cross-module/Config)
36
+ - Risk level with specific factors
37
+ - Recommended workflow path (simple PRD vs full ISA-95 modeling)
38
+
39
+ ## Assessment Workflow
40
+
41
+ ### Step 1: Understand the Requirement
42
+
43
+ Analyze the new requirement:
44
+ - What business problem does it solve?
45
+ - What entities are involved?
46
+ - What processes are affected?
47
+
48
+ ### Step 2: Load System Context
49
+
50
+ #### 2.1 Read System Overview
51
+
52
+ ```
53
+ speccrew-workspace/knowledges/bizs/system-overview.md
54
+ ```
55
+
56
+ Identify:
57
+ - Which business domain the requirement belongs to
58
+ - Which modules are potentially related
59
+ - Which business processes are involved
60
+
61
+ #### 2.2 Load Related Module Overviews
62
+
63
+ For each potentially affected module:
64
+ ```
65
+ speccrew-workspace/knowledges/bizs/{module-name}/{module-name}-overview.md
66
+ ```
67
+
68
+ #### 2.3 Query Knowledge Graph (for cross-module analysis)
69
+
70
+ Use `speccrew-knowledge-graph-query` skill to trace dependencies:
71
+
72
+ | Action | Use Case |
73
+ |--------|----------|
74
+ | `search` | Find entities related to requirement keywords |
75
+ | `trace-upstream` | What depends on the affected entities? |
76
+ | `trace-downstream` | What do the affected entities depend on? |
77
+ | `query-nodes` | List all entities in a suspected module |
78
+
79
+ ### Step 3: Determine Change Type
80
+
81
+ Use decision tree:
82
+
83
+ ```
84
+ New Requirement
85
+ |
86
+ +-- Involves new business entity?
87
+ | +-- NEW FEATURE
88
+ |
89
+ +-- Modifies core attributes of existing entity?
90
+ | +-- MODIFICATION
91
+ |
92
+ +-- Adds new process steps but reuses existing entities?
93
+ | +-- MIXED (New + Modify)
94
+ |
95
+ +-- Affects cross-module data flow?
96
+ | +-- CROSS-MODULE CHANGE
97
+ |
98
+ +-- Can be handled by configuration?
99
+ +-- CONFIGURATION
100
+ ```
101
+
102
+ ### Step 4: Identify Impact Scope
103
+
104
+ Check for impact on:
105
+ - **Direct modules**: Modules explicitly mentioned in requirement
106
+ - **Dependency modules**: Upstream/downstream from graph query (Step 2.3)
107
+ - **External integrations**: Third-party systems
108
+ - **Data entities**: New or modified entities
109
+
110
+ ### Step 5: Assess Risk Level
111
+
112
+ | Risk Factor | High Risk Indicators |
113
+ |-------------|---------------------|
114
+ | Scope | Affects 3+ modules |
115
+ | Data | Modifies core entity structure |
116
+ | Integration | Changes external API contracts |
117
+ | Process | Alters critical business flow |
118
+ | State | Modifies entity state machine |
119
+
120
+ ### Step 6: Recommend Workflow Path
121
+
122
+ Based on assessment results, recommend the appropriate next step:
123
+
124
+ | Assessment Result | Recommended Path |
125
+ |-------------------|-----------------|
126
+ | 1 module, low risk, clear domain | Simple PRD (skip ISA-95 modeling) |
127
+ | 2+ modules, medium risk | Full requirement-analysis with ISA-95 modeling |
128
+ | Cross-module, high risk | Full requirement-analysis with ISA-95 modeling + Master-Sub PRD |
129
+ | Configuration only | Direct implementation, PRD optional |
130
+
131
+ ### Step 7: Generate Assessment Report
132
+
133
+ ## Assessment Report Template
134
+
135
+ ```markdown
136
+ # Requirement Assessment Report
137
+
138
+ ## Requirement Summary
139
+ - **Description**: [Brief description]
140
+ - **Source**: [Who requested / Which scenario]
141
+
142
+ ## Assessment Result
143
+
144
+ ### Change Type
145
+ [ ] New Feature [ ] Modification [ ] Mixed [ ] Cross-module [ ] Configuration
146
+
147
+ ### Impact Scope
148
+ | Module | Impact Type | Evidence |
149
+ |--------|-------------|----------|
150
+ | {Module A} | Direct | [from system-overview / graph query] |
151
+ | {Module B} | Indirect | [upstream dependency via graph] |
152
+
153
+ ### Risk Level
154
+ [ ] Low [ ] Medium [ ] High
155
+
156
+ **Risk Factors**:
157
+ - [List specific risks with evidence]
158
+
159
+ ### Recommended Workflow
160
+ - [ ] Simple PRD (speccrew-pm-requirement-analysis, simple path)
161
+ - [ ] Full ISA-95 Modeling + PRD (speccrew-pm-requirement-analysis, complex path)
162
+ - [ ] Full ISA-95 Modeling + Master-Sub PRD (complex path, multi-module)
163
+ - [ ] Configuration change only
164
+
165
+ ### Key Findings from Graph Analysis
166
+ - [Cross-module dependencies discovered]
167
+ - [Upstream/downstream impacts identified]
168
+
169
+ ### Related Documentation
170
+ - [Links to relevant module docs and graph nodes]
171
+ ```
172
+
173
+ ## Quick Reference
174
+
175
+ ### Change Type Quick Guide
176
+
177
+ | Scenario | Change Type | Example |
178
+ |----------|-------------|---------|
179
+ | New entity + new process | New Feature | Add "Refund" entity and refund process |
180
+ | Existing entity, new attribute | Modification | Add "priority" field to Order |
181
+ | Existing entity, new process step | Mixed | Add "approval" step to existing order flow |
182
+ | Changes module interface | Cross-module | Order module needs new API from Inventory |
183
+ | Toggle/feature flag | Configuration | Enable/disable feature per tenant |
184
+
185
+ ## Checklist
186
+
187
+ - [ ] Requirement understood and categorized
188
+ - [ ] System overview and related module overviews loaded
189
+ - [ ] Knowledge graph queried for cross-module dependencies
190
+ - [ ] Change type determined
191
+ - [ ] Impact scope mapped (direct + indirect with graph evidence)
192
+ - [ ] Risk level assessed with specific factors
193
+ - [ ] Workflow path recommended
194
+ - [ ] Assessment report generated
195
+