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.
- package/.speccrew/agents/speccrew-feature-designer.md +142 -0
- package/.speccrew/agents/speccrew-product-manager.md +61 -0
- package/.speccrew/agents/speccrew-system-designer.md +200 -0
- package/.speccrew/agents/speccrew-system-developer.md +238 -0
- package/.speccrew/agents/speccrew-task-worker.md +80 -0
- package/.speccrew/agents/speccrew-team-leader.md +92 -0
- package/.speccrew/agents/speccrew-test-manager.md +313 -0
- package/.speccrew/skills/speccrew-create-agents/SKILL.md +98 -0
- package/.speccrew/skills/speccrew-create-agents/templates/agents/designer-agent.md +54 -0
- package/.speccrew/skills/speccrew-create-agents/templates/agents/dev-agent.md +79 -0
- package/.speccrew/skills/speccrew-create-agents/templates/agents/test-agent.md +80 -0
- package/.speccrew/skills/speccrew-dev-backend/SKILL.md +205 -0
- package/.speccrew/skills/speccrew-dev-backend/templates/TASK-RECORD-TEMPLATE.md +118 -0
- package/.speccrew/skills/speccrew-dev-desktop/SKILL.md +258 -0
- package/.speccrew/skills/speccrew-dev-desktop/templates/TASK-RECORD-TEMPLATE.md +161 -0
- package/.speccrew/skills/speccrew-dev-frontend/SKILL.md +202 -0
- package/.speccrew/skills/speccrew-dev-frontend/templates/TASK-RECORD-TEMPLATE.md +115 -0
- package/.speccrew/skills/speccrew-dev-mobile/SKILL.md +200 -0
- package/.speccrew/skills/speccrew-dev-mobile/templates/TASK-RECORD-TEMPLATE.md +125 -0
- package/.speccrew/skills/speccrew-fd-api-contract/SKILL.md +73 -0
- package/.speccrew/skills/speccrew-fd-api-contract/templates/API-CONTRACT-TEMPLATE.md +96 -0
- package/.speccrew/skills/speccrew-fd-feature-design/SKILL.md +395 -0
- package/.speccrew/skills/speccrew-fd-feature-design/templates/FEATURE-SPEC-TEMPLATE.md +387 -0
- package/.speccrew/skills/speccrew-get-timestamp/SKILL.md +80 -0
- package/.speccrew/skills/speccrew-get-timestamp/scripts/get-timestamp.js +35 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/SKILL.md +1116 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-FASTAPI.md +462 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-JAVA.md +480 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE-NET.md +464 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/FEATURE-DETAIL-TEMPLATE.md +480 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-api-analyze/templates/MODULE-OVERVIEW-TEMPLATE.md +367 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/SKILL.md +667 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/STATUS-FORMATS.md +74 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/batch-orchestrator.js +176 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-next-batch.js +150 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/get-pending-features.js +106 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/mark-stale.js +249 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/process-batch-results.js +848 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-dispatch/scripts/update-feature-status.js +226 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/SKILL.md +264 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/examples/features.json +34 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/generate-inventory.js +867 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-init-features/scripts/test-inventory.js +26 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/SKILL.md +165 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/apply-module-mapping.js +208 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/extract-module-summary.js +180 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-module-classify/scripts/reindex-modules.js +358 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/SKILL.md +1055 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-DESKTOP.md +303 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-ELECTRON.md +327 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-MINIAPP.md +292 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI-MOBILE.md +281 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-analyze/templates/FEATURE-DETAIL-TEMPLATE-UI.md +324 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/SKILL.md +270 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/COMPONENT-PATTERN-TEMPLATE.md +33 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/LAYOUT-PATTERN-TEMPLATE.md +33 -0
- package/.speccrew/skills/speccrew-knowledge-bizs-ui-style-extract/templates/PAGE-TYPE-TEMPLATE.md +33 -0
- package/.speccrew/skills/speccrew-knowledge-graph-query/SKILL.md +229 -0
- package/.speccrew/skills/speccrew-knowledge-graph-query/scripts/graph-query.js +549 -0
- package/.speccrew/skills/speccrew-knowledge-graph-write/SKILL.md +181 -0
- package/.speccrew/skills/speccrew-knowledge-graph-write/scripts/graph-write.js +651 -0
- package/.speccrew/skills/speccrew-knowledge-module-summarize/SKILL.md +305 -0
- package/.speccrew/skills/speccrew-knowledge-module-summarize/templates/MODULE-OVERVIEW-TEMPLATE.md +400 -0
- package/.speccrew/skills/speccrew-knowledge-system-summarize/SKILL.md +351 -0
- package/.speccrew/skills/speccrew-knowledge-system-summarize/templates/SYSTEM-OVERVIEW-TEMPLATE.md +294 -0
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/SKILL.md +683 -0
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/STATUS-FORMATS.md +550 -0
- package/.speccrew/skills/speccrew-knowledge-techs-dispatch/templates/techs-manifest-EXAMPLE.json +35 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/SKILL.md +1087 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/ARCHITECTURE-TEMPLATE.md +240 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/COLOR-SYSTEM-TEMPLATE.md +68 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/COMPONENT-LIBRARY-TEMPLATE.md +86 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-BUILD-TEMPLATE.md +466 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DATA-TEMPLATE.md +432 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DESIGN-TEMPLATE.md +1209 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-DEV-TEMPLATE.md +1433 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-SYSTEM-TEST-TEMPLATE.md +1052 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/CONVENTIONS-UNIT-TEST-TEMPLATE.md +946 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/INDEX-TEMPLATE.md +29 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/PAGE-LAYOUTS-TEMPLATE.md +69 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/PAGE-TYPE-SUMMARY-TEMPLATE.md +74 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate/templates/TECH-STACK-TEMPLATE.md +232 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate-conventions/SKILL.md +628 -0
- package/.speccrew/skills/speccrew-knowledge-techs-generate-ui-style/SKILL.md +392 -0
- package/.speccrew/skills/speccrew-knowledge-techs-index/SKILL.md +489 -0
- package/.speccrew/skills/speccrew-knowledge-techs-index/templates/INDEX-TEMPLATE.md +243 -0
- package/.speccrew/skills/speccrew-knowledge-techs-init/SKILL.md +269 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/SKILL.md +562 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/BUSINESS-COMPONENTS-TEMPLATE.md +171 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMMON-COMPONENTS-TEMPLATE.md +177 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMPONENT-INDIVIDUAL-TEMPLATE.md +80 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMPONENT-LIBRARY-TEMPLATE.md +118 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/LAYOUT-INDIVIDUAL-TEMPLATE.md +97 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/LAYOUT-PATTERNS-TEMPLATE.md +208 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/NAVIGATION-PATTERNS-TEMPLATE.md +157 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/PAGE-TYPE-INDIVIDUAL-TEMPLATE.md +123 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/PAGE-TYPE-SUMMARY-TEMPLATE.md +58 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/SPACING-TEMPLATE.md +119 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/STYLE-SYSTEM-TEMPLATE.md +117 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/TYPOGRAPHY-TEMPLATE.md +107 -0
- package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/UI-STYLE-GUIDE-TEMPLATE.md +171 -0
- package/.speccrew/skills/speccrew-pm-requirement-analysis/SKILL.md +434 -0
- package/.speccrew/skills/speccrew-pm-requirement-analysis/templates/BIZS-MODELING-TEMPLATE.md +332 -0
- package/.speccrew/skills/speccrew-pm-requirement-analysis/templates/PRD-TEMPLATE.md +200 -0
- package/.speccrew/skills/speccrew-pm-requirement-assess/SKILL.md +195 -0
- package/.speccrew/skills/speccrew-project-diagnosis/SKILL.md +208 -0
- package/.speccrew/skills/speccrew-project-diagnosis/templates/DIAGNOSIS-REPORT-TEMPLATE.md +202 -0
- package/.speccrew/skills/speccrew-sd-backend/SKILL.md +188 -0
- package/.speccrew/skills/speccrew-sd-backend/templates/INDEX-TEMPLATE.md +85 -0
- package/.speccrew/skills/speccrew-sd-backend/templates/SD-BACKEND-TEMPLATE.md +269 -0
- package/.speccrew/skills/speccrew-sd-desktop/SKILL.md +192 -0
- package/.speccrew/skills/speccrew-sd-desktop/templates/INDEX-TEMPLATE.md +271 -0
- package/.speccrew/skills/speccrew-sd-desktop/templates/SD-DESKTOP-TEMPLATE.md +673 -0
- package/.speccrew/skills/speccrew-sd-frontend/SKILL.md +176 -0
- package/.speccrew/skills/speccrew-sd-frontend/templates/INDEX-TEMPLATE.md +184 -0
- package/.speccrew/skills/speccrew-sd-frontend/templates/SD-FRONTEND-TEMPLATE.md +382 -0
- package/.speccrew/skills/speccrew-sd-mobile/SKILL.md +189 -0
- package/.speccrew/skills/speccrew-sd-mobile/templates/INDEX-TEMPLATE.md +219 -0
- package/.speccrew/skills/speccrew-sd-mobile/templates/SD-MOBILE-TEMPLATE.md +534 -0
- package/.speccrew/skills/speccrew-test-case-design/SKILL.md +284 -0
- package/.speccrew/skills/speccrew-test-case-design/templates/TEST-CASE-DESIGN-TEMPLATE.md +263 -0
- package/.speccrew/skills/speccrew-test-code-gen/SKILL.md +313 -0
- package/.speccrew/skills/speccrew-test-code-gen/templates/TEST-CODE-PLAN-TEMPLATE.md +180 -0
- package/.speccrew/skills/speccrew-test-execute/SKILL.md +283 -0
- package/.speccrew/skills/speccrew-test-execute/templates/BUG-REPORT-TEMPLATE.md +50 -0
- package/.speccrew/skills/speccrew-test-execute/templates/TEST-REPORT-TEMPLATE.md +57 -0
- package/.speccrew/skills/speccrew-workflow-diagnose/SKILL.md +155 -0
- package/LICENSE +21 -0
- package/README.ar.md +318 -0
- package/README.en.md +318 -0
- package/README.es.md +318 -0
- package/README.md +340 -0
- package/bin/cli.js +62 -0
- package/lib/commands/doctor.js +138 -0
- package/lib/commands/init.js +231 -0
- package/lib/commands/list.js +114 -0
- package/lib/commands/uninstall.js +117 -0
- package/lib/commands/update.js +351 -0
- package/lib/ide-adapters.js +73 -0
- package/lib/utils.js +104 -0
- package/package.json +28 -0
- package/workspace-template/docs/configs/document-templates.json +667 -0
- package/workspace-template/docs/configs/platform-mapping.json +194 -0
- package/workspace-template/docs/configs/tech-stack-mappings.json +313 -0
- package/workspace-template/docs/configs/validation-rules.json +87 -0
- package/workspace-template/docs/rules/mermaid-rule.md +114 -0
- 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
- package/workspace-template/docs/solutions/agent-knowledge-map.md +238 -0
- package/workspace-template/docs/solutions/bizs-knowledge-pipeline.md +678 -0
- package/workspace-template/docs/solutions/harness.md +410 -0
- package/workspace-template/docs/solutions/knowledge-incremental-sync-spec.md +943 -0
- package/workspace-template/docs/solutions/techs-knowledge-pipeline.md +803 -0
- package/workspace-template/docs/solutions/workspace-structure.md +318 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: speccrew-knowledge-system-summarize
|
|
3
|
+
description: Generate complete system-overview.md by reading all {{module_name}}-overview.md files. Aggregates module information, builds dependency graph, and creates system-level documentation. In incremental mode, this skill always regenerates the system overview from the latest module overviews.
|
|
4
|
+
tools: Read, Write, Glob, Skill
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# System Summarize - Complete System Overview
|
|
8
|
+
|
|
9
|
+
Read all {{module_name}}-overview.md files, aggregate information to generate complete system-overview.md with module index, topology, and business flows.
|
|
10
|
+
|
|
11
|
+
## Language Adaptation
|
|
12
|
+
|
|
13
|
+
**CRITICAL**: Generate all content in the language specified by the `language` parameter.
|
|
14
|
+
|
|
15
|
+
- `language: "zh"` → Generate all content in 中文
|
|
16
|
+
- `language: "en"` → Generate all content in English
|
|
17
|
+
- Other languages → Use the specified language
|
|
18
|
+
|
|
19
|
+
**All output content (system description, module summaries, flow descriptions) must be in the target language only.**
|
|
20
|
+
|
|
21
|
+
## Trigger Scenarios
|
|
22
|
+
|
|
23
|
+
- "Generate system overview from modules"
|
|
24
|
+
- "Complete system documentation"
|
|
25
|
+
- "Summarize all modules into system view"
|
|
26
|
+
|
|
27
|
+
## User
|
|
28
|
+
|
|
29
|
+
Worker Agent (speccrew-task-worker)
|
|
30
|
+
|
|
31
|
+
## Input
|
|
32
|
+
|
|
33
|
+
- `modules_path`: Path to modules directory (e.g., `speccrew-workspace/knowledges/bizs/`) containing all {{platform_type}}/{{module_name}}/{{module_name}}-overview.md files
|
|
34
|
+
- `output_path`: Output path for system-overview.md (e.g., `speccrew-workspace/knowledges/bizs/`)
|
|
35
|
+
- `language`: Target language for generated content (e.g., "zh", "en") - **REQUIRED**
|
|
36
|
+
|
|
37
|
+
## Output
|
|
38
|
+
|
|
39
|
+
- `{{output_path}}/system-overview.md` - Complete system overview
|
|
40
|
+
|
|
41
|
+
## Workflow
|
|
42
|
+
|
|
43
|
+
### Prerequisites
|
|
44
|
+
|
|
45
|
+
Before starting, verify:
|
|
46
|
+
|
|
47
|
+
- **Module overviews completed**: `modules_path` contains subdirectories for each platform_type, with module directories containing completed `*-overview.md` files (from Stage 3: module-summarize)
|
|
48
|
+
- **Output location**: `system-overview.md` will be created at `output_path/system-overview.md`
|
|
49
|
+
- **If no modules found**: Proceed with skeleton generation (see Edge Cases)
|
|
50
|
+
|
|
51
|
+
### Edge Cases
|
|
52
|
+
|
|
53
|
+
- **Empty modules directory**: If no `*-overview.md` files found, generate a skeleton system-overview.md with empty statistics and return `status: "warning"`.
|
|
54
|
+
- **Incomplete module overviews**: If a module-overview.md only has Section 1-2 (initial version), use available data and note gaps with `<!-- DATA INCOMPLETE -->`.
|
|
55
|
+
- **Same module name from different platforms**: Treat as separate modules. Use `{module_name} ({platform_type})` for display and `{module_name}_{platform_type}` as internal ID.
|
|
56
|
+
- **Missing timestamp service**: If `speccrew-get-timestamp` is unavailable, use system current time as fallback.
|
|
57
|
+
|
|
58
|
+
```mermaid
|
|
59
|
+
flowchart TD
|
|
60
|
+
Start([Start]) --> Step0[Step 0: Read System Overview Template]
|
|
61
|
+
Step0 --> Step1[Step 1: Discover All Modules]
|
|
62
|
+
Step1 --> Step2[Step 2: Read All Module Overviews]
|
|
63
|
+
Step2 --> Step3[Step 3: Build Module Index]
|
|
64
|
+
Step3 --> Step4[Step 4: Build Dependency Graph]
|
|
65
|
+
Step4 --> Step5[Step 5: Identify Business Domains]
|
|
66
|
+
Step5 --> Step6[Step 6: Identify End-to-End Flows]
|
|
67
|
+
Step6 --> Step7[Step 7: Generate system-overview.md]
|
|
68
|
+
Step7 --> Step8[Step 8: Report Results]
|
|
69
|
+
Step8 --> End([End])
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Step 0: Read System Overview Template
|
|
73
|
+
|
|
74
|
+
Before processing, read the template file to understand the required content structure:
|
|
75
|
+
- **Read**: `templates/SYSTEM-OVERVIEW-TEMPLATE.md`
|
|
76
|
+
- **Purpose**: Understand the template chapters and example content requirements for system overview documents
|
|
77
|
+
- **Key sections to follow**:
|
|
78
|
+
- Index and Overview (Statistics Overview, Module Quick Index)
|
|
79
|
+
- Section 1: System Overview (System Positioning, Business Domain Division with Mermaid diagram)
|
|
80
|
+
- Section 2: Functional Module Topology (Module Hierarchy, Module Dependency Diagram, Module List Index)
|
|
81
|
+
- Section 3: End-to-End Business Processes (Core Business Process List, Process-Module Mapping Matrix, Typical Business Process Diagram)
|
|
82
|
+
- Section 4: System Boundaries and Integration (External System Integration Diagram, Integration Interface List)
|
|
83
|
+
- Section 5: Requirement Assessment Guide
|
|
84
|
+
- Section 6: Change History
|
|
85
|
+
|
|
86
|
+
### Step 1: Discover All Modules
|
|
87
|
+
|
|
88
|
+
Find all `*-overview.md` files recursively under `modules_path`, including nested platform_type directories:
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
modules_path/
|
|
92
|
+
├── platform_type_1/
|
|
93
|
+
│ ├── module_1/
|
|
94
|
+
│ │ └── module_1-overview.md
|
|
95
|
+
│ └── module_2/
|
|
96
|
+
│ └── module_2-overview.md
|
|
97
|
+
└── platform_type_2/
|
|
98
|
+
└── module_3/
|
|
99
|
+
└── module_3-overview.md
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Example** (bizs knowledge):
|
|
103
|
+
```
|
|
104
|
+
knowledges/bizs/
|
|
105
|
+
├── web-vue/
|
|
106
|
+
│ ├── order/order-overview.md
|
|
107
|
+
│ └── payment/payment-overview.md
|
|
108
|
+
└── backend-java/
|
|
109
|
+
├── order/order-overview.md
|
|
110
|
+
└── user/user-overview.md
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Use recursive glob: `**/*-overview.md`
|
|
114
|
+
Extract `platform_type` from the path structure for each discovered module.
|
|
115
|
+
|
|
116
|
+
### Step 2: Read All Module Overviews
|
|
117
|
+
|
|
118
|
+
For each discovered `*-overview.md`, extract:
|
|
119
|
+
- Module name and purpose
|
|
120
|
+
- Business domain
|
|
121
|
+
- Platform type (from path: web-vue, backend-java, etc.)
|
|
122
|
+
- Entity list (backend: DB entities; frontend: State/Props)
|
|
123
|
+
- Dependencies (internal modules and external systems)
|
|
124
|
+
- Feature count and API/Interface count
|
|
125
|
+
|
|
126
|
+
**Multi-Tech Stack Aggregation Rules:**
|
|
127
|
+
|
|
128
|
+
1. **Same-name modules from different platforms**: Treat as SEPARATE entries
|
|
129
|
+
- Display as: `order (web-vue)`, `order (backend-java)` in Module Quick Index
|
|
130
|
+
- Keep separate in all aggregations
|
|
131
|
+
|
|
132
|
+
2. **Cross-platform dependencies**:
|
|
133
|
+
- web-vue/order may consume backend-java/order API
|
|
134
|
+
- backend-java/order may depend on backend-java/payment
|
|
135
|
+
- Show cross-platform dependencies clearly in Section 4
|
|
136
|
+
|
|
137
|
+
3. **Entity aggregation**:
|
|
138
|
+
- Backend entities (DB tables, DTOs) and Frontend entities (Store State, Component Props) listed separately with platform annotation
|
|
139
|
+
|
|
140
|
+
4. **Statistics**:
|
|
141
|
+
- Total modules = COUNT of all *-overview.md files
|
|
142
|
+
- Total entities = SUM across all modules
|
|
143
|
+
- Total APIs = SUM of backend APIs + frontend interfaces
|
|
144
|
+
|
|
145
|
+
### Step 3: Build Module Index
|
|
146
|
+
|
|
147
|
+
Create module index table:
|
|
148
|
+
|
|
149
|
+
| Module | Domain | Purpose | Entities | APIs | Detail Doc |
|
|
150
|
+
|--------|--------|---------|----------|------|------------|
|
|
151
|
+
| order | Sales | Order lifecycle | Order, OrderItem | 8 | [View](order/order-overview.md) |
|
|
152
|
+
| payment | Finance | Payment processing | Payment, Refund | 5 | [View](payment/payment-overview.md) |
|
|
153
|
+
|
|
154
|
+
### Step 4: Build Dependency Graph
|
|
155
|
+
|
|
156
|
+
**Extraction Rules:**
|
|
157
|
+
1. Read Section 4 (Dependencies) from each module-overview.md
|
|
158
|
+
2. Classify dependencies:
|
|
159
|
+
- **Internal**: Module-to-module dependencies within the system
|
|
160
|
+
- **External**: Third-party systems/services (Payment Gateway, ERP, etc.)
|
|
161
|
+
|
|
162
|
+
3. **Internal dependencies** → Build directed graph:
|
|
163
|
+
- Node: module name (with platform_type annotation if multiple platforms)
|
|
164
|
+
- Edge: A → B means A depends on B
|
|
165
|
+
- Include cross-platform dependencies (e.g., web-vue/order → backend-java/order)
|
|
166
|
+
|
|
167
|
+
4. **External dependencies** → Collect separately for Section 4: System Boundaries
|
|
168
|
+
|
|
169
|
+
**Generate Mermaid dependency diagram:**
|
|
170
|
+
- Show internal module dependencies only
|
|
171
|
+
- Use `graph LR` for layout
|
|
172
|
+
- Annotate platform_type if multiple platforms involved
|
|
173
|
+
|
|
174
|
+
### Step 5: Identify Business Domains
|
|
175
|
+
|
|
176
|
+
1. Read "Business Domain" field from each module-overview.md
|
|
177
|
+
2. Collect unique domain names
|
|
178
|
+
3. Group modules by domain (with platform_type):
|
|
179
|
+
|
|
180
|
+
Example:
|
|
181
|
+
- Sales domain: web-vue/order, backend-java/order, backend-java/promotion
|
|
182
|
+
- User Management: web-vue/user, backend-java/user
|
|
183
|
+
|
|
184
|
+
4. Generate domain-based Mermaid diagram with domains as subgraphs
|
|
185
|
+
|
|
186
|
+
### Step 6: Identify End-to-End Flows
|
|
187
|
+
|
|
188
|
+
Analyze cross-module dependencies to identify business flows:
|
|
189
|
+
|
|
190
|
+
**Order-to-Payment Flow:**
|
|
191
|
+
```
|
|
192
|
+
USER → ORDER → INVENTORY → PAYMENT → NOTIFICATION
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Refund Flow:**
|
|
196
|
+
```
|
|
197
|
+
ORDER → PAYMENT → INVENTORY → NOTIFICATION
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Create flow-module mapping matrix:
|
|
201
|
+
|
|
202
|
+
| Flow / Module | ORDER | INVENTORY | PAYMENT | NOTIFICATION |
|
|
203
|
+
|---------------|-------|-----------|---------|--------------|
|
|
204
|
+
| Order-Payment | ✓ | ✓ | ✓ | ✓ |
|
|
205
|
+
| Refund | ✓ | ✓ | ✓ | ✓ |
|
|
206
|
+
|
|
207
|
+
### Step 7: Generate system-overview.md
|
|
208
|
+
|
|
209
|
+
1. **Read Configuration**:
|
|
210
|
+
- Read `speccrew-workspace/docs/configs/tech-stack-mappings.json` → system tech stacks and display names
|
|
211
|
+
- Read `speccrew-workspace/docs/rules/mermaid-rule.md` → Mermaid diagram guidelines
|
|
212
|
+
|
|
213
|
+
2. **Determine Technology Stack**:
|
|
214
|
+
- Extract platform types from discovered module paths
|
|
215
|
+
- Map platform_type to display name via tech-stack-mappings.json
|
|
216
|
+
- Example: `web-vue` → `Vue 3 + TypeScript`; `backend-java` → `Java 17 + Spring Boot`
|
|
217
|
+
|
|
218
|
+
3. **Get Timestamp**:
|
|
219
|
+
- **CRITICAL**: Use the Skill tool to invoke `speccrew-get-timestamp` (no parameters needed, uses default format `YYYY-MM-DD-HHmmss`, returns timestamp string e.g. `2026-03-17-132645`)
|
|
220
|
+
- Use the returned timestamp as generation timestamp in document
|
|
221
|
+
|
|
222
|
+
3. **Use template `templates/SYSTEM-OVERVIEW-TEMPLATE.md`, fill all sections**:
|
|
223
|
+
- Follow [Mermaid Diagram Guide](#mermaid-diagram-guide) for diagram generation
|
|
224
|
+
|
|
225
|
+
**Section: Index and Overview** (NEW)
|
|
226
|
+
- Generation timestamp (from get-timestamp skill)
|
|
227
|
+
- Technology stack (from project config)
|
|
228
|
+
- Statistics: module count, entity count, API count, flow count
|
|
229
|
+
- Module quick index table
|
|
230
|
+
|
|
231
|
+
**Section 1: System Overview**
|
|
232
|
+
- System name from project config
|
|
233
|
+
- Core positioning
|
|
234
|
+
- Target users
|
|
235
|
+
- Deployment type
|
|
236
|
+
|
|
237
|
+
**Section 2: Module Topology**
|
|
238
|
+
- Business domain diagram
|
|
239
|
+
- Module hierarchy diagram
|
|
240
|
+
- Module dependency diagram
|
|
241
|
+
- Module index table (from Step 3)
|
|
242
|
+
|
|
243
|
+
**Section 3: End-to-End Business Flows**
|
|
244
|
+
- Core business process list
|
|
245
|
+
- Flow-module mapping matrix (from Step 6)
|
|
246
|
+
- Typical flow diagrams
|
|
247
|
+
|
|
248
|
+
**Section 4: System Boundaries and Integration**
|
|
249
|
+
- External system integration diagram
|
|
250
|
+
- Integration interface list
|
|
251
|
+
|
|
252
|
+
**Section 5: Requirement Assessment Guide**
|
|
253
|
+
- Reference to `speccrew-pm-requirement-assess` skill
|
|
254
|
+
- Quick location guide (which section to reference)
|
|
255
|
+
|
|
256
|
+
Apply source traceability rules (see [Reference Guides > Source Traceability Guide](#source-traceability-guide))
|
|
257
|
+
|
|
258
|
+
### Step 8: Report Results
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
System summarization completed:
|
|
262
|
+
- Modules Processed: {{module_count}}
|
|
263
|
+
- Entities Aggregated: {{entity_count}}
|
|
264
|
+
- APIs Counted: {{api_count}}
|
|
265
|
+
- Dependencies Mapped: {{dependency_count}}
|
|
266
|
+
- Business Flows Identified: {{flow_count}}
|
|
267
|
+
- Output: system-overview.md (complete)
|
|
268
|
+
- Status: success
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## Reference Guides
|
|
272
|
+
|
|
273
|
+
### Mermaid Diagram Guide
|
|
274
|
+
|
|
275
|
+
When generating Mermaid diagrams, follow these compatibility guidelines:
|
|
276
|
+
|
|
277
|
+
**Key Requirements:**
|
|
278
|
+
- Use only basic node definitions: `A[text content]`
|
|
279
|
+
- No HTML tags (e.g., `<br/>`)
|
|
280
|
+
- No nested subgraphs
|
|
281
|
+
- No `direction` keyword
|
|
282
|
+
- No `style` definitions
|
|
283
|
+
- Use standard `graph TB/LR` syntax only
|
|
284
|
+
|
|
285
|
+
**Diagram Types:**
|
|
286
|
+
|
|
287
|
+
| Diagram Type | Use Case | Example |
|
|
288
|
+
|---------|---------|------|
|
|
289
|
+
| `graph TB/LR` | System structure, module dependencies | System architecture, module dependency graph |
|
|
290
|
+
| `sequenceDiagram` | Cross-module interaction flow | User operation flow, service call chain |
|
|
291
|
+
| `flowchart TD` | Business logic, conditional branches | State transition, exception handling |
|
|
292
|
+
| `classDiagram` | Class structure, entity relationships | Data model, service interface |
|
|
293
|
+
| `erDiagram` | Database table relationships | Entity relationship diagram |
|
|
294
|
+
| `stateDiagram-v2` | State machine | Order status, approval status |
|
|
295
|
+
|
|
296
|
+
### Source Traceability Guide
|
|
297
|
+
|
|
298
|
+
Aggregate source file references from all module overview documents:
|
|
299
|
+
|
|
300
|
+
> **Note**: Use relative paths from the generated document to the source file. Do NOT use `file://` protocol.
|
|
301
|
+
|
|
302
|
+
1. **File Reference Block** (at document start):
|
|
303
|
+
```markdown
|
|
304
|
+
<cite>
|
|
305
|
+
**Referenced Files**
|
|
306
|
+
- Aggregated from all module overview documents
|
|
307
|
+
- [OrderController.java](path/to/source/OrderController.java)
|
|
308
|
+
- [PaymentController.java](path/to/source/PaymentController.java)
|
|
309
|
+
</cite>
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
2. **Diagram Source** (after each Mermaid diagram):
|
|
313
|
+
```markdown
|
|
314
|
+
**Diagram Source**
|
|
315
|
+
- Aggregated from: order-overview.md, payment-overview.md
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
3. **Section Source** (at end of document):
|
|
319
|
+
```markdown
|
|
320
|
+
**Section Source**
|
|
321
|
+
- Aggregated from all module overview documents
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
## Return
|
|
325
|
+
|
|
326
|
+
**Return Value (JSON format):**
|
|
327
|
+
|
|
328
|
+
```json
|
|
329
|
+
{
|
|
330
|
+
"status": "success|failed",
|
|
331
|
+
"output_file": "system-overview.md",
|
|
332
|
+
"message": "System summarization completed with N modules processed"
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## Checklist
|
|
339
|
+
|
|
340
|
+
- [ ] All {{module_name}}-overview.md files discovered
|
|
341
|
+
- [ ] Module information extracted
|
|
342
|
+
- [ ] Source file references aggregated from module documents
|
|
343
|
+
- [ ] Module index table created
|
|
344
|
+
- [ ] Dependency graph built
|
|
345
|
+
- [ ] Business domains identified
|
|
346
|
+
- [ ] End-to-end flows mapped
|
|
347
|
+
- [ ] system-overview.md generated with all sections
|
|
348
|
+
- [ ] Source traceability information included
|
|
349
|
+
- [ ] Mermaid diagrams follow compatibility guidelines
|
|
350
|
+
- [ ] Results reported
|
|
351
|
+
|
package/.speccrew/skills/speccrew-knowledge-system-summarize/templates/SYSTEM-OVERVIEW-TEMPLATE.md
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# System Overview Document - [System Name]
|
|
2
|
+
|
|
3
|
+
> **Applicable Scenario**: Functional panoramic map of ToB software system, for AI Agent (PM Agent / Solution Agent) to read and understand system structure, module relationships, assisting requirement analysis and solution planning
|
|
4
|
+
> **Target Audience**: devcrew-product-manager, devcrew-solution-manager, devcrew-developer
|
|
5
|
+
> **Update Frequency**: Updated with major system iterations
|
|
6
|
+
>
|
|
7
|
+
> <!-- AI-TAG: SYSTEM_OVERVIEW -->
|
|
8
|
+
> <!-- AI-CONTEXT: Read this document to understand overall system structure, module division, business processes, used for requirement impact scope judgment and solution planning -->
|
|
9
|
+
|
|
10
|
+
<cite>
|
|
11
|
+
**Referenced Files**
|
|
12
|
+
- Aggregated from all module overview documents
|
|
13
|
+
- [{Module} Entry Point](../../{sourcePath}/{moduleEntryFile})
|
|
14
|
+
<!-- Examples: Java Backend: OrderController.java, Vue Frontend: OrderView.vue, React Frontend: OrderPage.tsx -->
|
|
15
|
+
</cite>
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Index and Overview
|
|
20
|
+
|
|
21
|
+
> **Generated At**: {{GeneratedAt}}
|
|
22
|
+
> **Tech Stack**: {{TechStack}}
|
|
23
|
+
> **Source Path**: `{{SourceRoot}}`
|
|
24
|
+
|
|
25
|
+
### Statistics Overview
|
|
26
|
+
|
|
27
|
+
| Metric | Count |
|
|
28
|
+
|--------|-------|
|
|
29
|
+
| Business Modules | {{ModuleCount}} |
|
|
30
|
+
| Data Entities | {{EntityCount}} |
|
|
31
|
+
| API Interfaces | {{ApiCount}} |
|
|
32
|
+
| Business Processes | {{FlowCount}} |
|
|
33
|
+
|
|
34
|
+
> **Note**: Data Entities include Backend Entities/Models and Frontend Types/Interfaces; API Interfaces include Backend REST APIs and Frontend Component Props/Events
|
|
35
|
+
|
|
36
|
+
### Module Quick Index
|
|
37
|
+
|
|
38
|
+
| Module Name | Platform | Business Domain | Module Responsibility | Entity Count | API/Interface Count | Detailed Document |
|
|
39
|
+
|---|---|---|---|---|---|---|
|
|
40
|
+
| *{module_name}* | *{platform_type}* | *{domain}* | *{description}* | *{count}* | *{count}* | [{module_name}-overview.md]({platform_type}/{module_name}/{module_name}-overview.md) |
|
|
41
|
+
{{#each modules}}
|
|
42
|
+
| {{name}} | {{platform}} | {{domain}} | {{description}} | {{entityCount}} | {{apiCount}} | [{{name}}-overview.md]({{platform}}/{{name}}/{{name}}-overview.md) |
|
|
43
|
+
{{/each}}
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## 1. System Overview
|
|
48
|
+
|
|
49
|
+
### 1.1 System Positioning
|
|
50
|
+
| Item | Description |
|
|
51
|
+
|------|-------------|
|
|
52
|
+
| System Name | {Fill in system name} |
|
|
53
|
+
| Core Positioning | {One sentence describing what business problem the system solves} |
|
|
54
|
+
| Target Users | {Main user groups, e.g., enterprise procurement staff, warehouse managers} |
|
|
55
|
+
| Deployment Form | {BS/CS/Mobile/Hybrid} |
|
|
56
|
+
|
|
57
|
+
### 1.2 Business Domain Division
|
|
58
|
+
|
|
59
|
+
<!-- AI-TAG: DOMAIN_STRUCTURE -->
|
|
60
|
+
<!-- AI-NOTE: Business domain division helps AI understand system boundaries and module ownership -->
|
|
61
|
+
|
|
62
|
+
```mermaid
|
|
63
|
+
graph TB
|
|
64
|
+
subgraph System["{System Name}"]
|
|
65
|
+
subgraph DA["Domain A - Core Domain Description"]
|
|
66
|
+
A1[Module A1]
|
|
67
|
+
A2[Module A2]
|
|
68
|
+
A3[Module A3]
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
subgraph DB["Domain B - Support Domain Description"]
|
|
72
|
+
B1[Module B1]
|
|
73
|
+
B2[Module B2]
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
subgraph DC["Domain C - Common Domain"]
|
|
77
|
+
UC[User Center]
|
|
78
|
+
PM[Permission Management]
|
|
79
|
+
NM[Notification]
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
subgraph DD["Domain D - Integration Domain"]
|
|
83
|
+
TI[Third-party Interface]
|
|
84
|
+
DS[Data Sync]
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Diagram Source**
|
|
90
|
+
- Aggregated from all module overview documents
|
|
91
|
+
|
|
92
|
+
| Business Domain | Responsibility Description | Core Modules | Business Value |
|
|
93
|
+
|-----------------|---------------------------|--------------|----------------|
|
|
94
|
+
| {Domain A} | {One sentence description} | {Module A1, A2, A3} | {What problem it solves} |
|
|
95
|
+
| {Domain B} | {One sentence description} | {Module B1, B2} | {What problem it solves} |
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## 2. Functional Module Topology
|
|
100
|
+
|
|
101
|
+
### 2.1 Module Hierarchy
|
|
102
|
+
|
|
103
|
+
<!-- AI-TAG: MODULE_HIERARCHY -->
|
|
104
|
+
<!-- AI-NOTE: Module hierarchy helps AI understand functional organization relationships -->
|
|
105
|
+
|
|
106
|
+
```mermaid
|
|
107
|
+
graph TD
|
|
108
|
+
SYS["{System Name}"]
|
|
109
|
+
|
|
110
|
+
DA["Domain A"]
|
|
111
|
+
DB["Domain B"]
|
|
112
|
+
DC["Common Domain"]
|
|
113
|
+
|
|
114
|
+
A1["Module A1 (Core)"]
|
|
115
|
+
A2["Module A2"]
|
|
116
|
+
A3["Module A3"]
|
|
117
|
+
B1["Module B1"]
|
|
118
|
+
B2["Module B2"]
|
|
119
|
+
UC["User Center"]
|
|
120
|
+
PM["Permission Management"]
|
|
121
|
+
|
|
122
|
+
A1_1["Sub-feature A1-1"]
|
|
123
|
+
A1_2["Sub-feature A1-2"]
|
|
124
|
+
|
|
125
|
+
SYS --> DA
|
|
126
|
+
SYS --> DB
|
|
127
|
+
SYS --> DC
|
|
128
|
+
|
|
129
|
+
DA --> A1
|
|
130
|
+
DA --> A2
|
|
131
|
+
DA --> A3
|
|
132
|
+
DB --> B1
|
|
133
|
+
DB --> B2
|
|
134
|
+
DC --> UC
|
|
135
|
+
DC --> PM
|
|
136
|
+
|
|
137
|
+
A1 --> A1_1
|
|
138
|
+
A1 --> A1_2
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Diagram Source**
|
|
142
|
+
- Aggregated from module hierarchy analysis
|
|
143
|
+
|
|
144
|
+
### 2.2 Module Dependency Diagram
|
|
145
|
+
|
|
146
|
+
<!-- AI-TAG: MODULE_DEPENDENCIES -->
|
|
147
|
+
<!-- AI-NOTE: Module dependency relationships are crucial for Solution Agent to plan solutions, affecting module call order and interface design -->
|
|
148
|
+
|
|
149
|
+
```mermaid
|
|
150
|
+
graph LR
|
|
151
|
+
A1["Module A1"] --> B1["Module B1"]
|
|
152
|
+
B1 --> C1["Module C1"]
|
|
153
|
+
A1 --> B2["Module B2"]
|
|
154
|
+
B1 --> B2
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Diagram Source**
|
|
158
|
+
- Aggregated from module dependency analysis
|
|
159
|
+
|
|
160
|
+
**Dependency Description:**
|
|
161
|
+
- Arrow direction indicates dependency (A → B means A depends on B)
|
|
162
|
+
- **Core Modules**: {Module A1, B1} - Business core
|
|
163
|
+
- **External Dependencies**: {Module C1} - External systems
|
|
164
|
+
- **Support Modules**: {Module B2} - Basic services
|
|
165
|
+
|
|
166
|
+
### 2.3 Module List Index
|
|
167
|
+
|
|
168
|
+
| Module Name | Platform | Business Domain | Module Responsibility | Detailed Document | Status |
|
|
169
|
+
|---|---|---|---|---|---|
|
|
170
|
+
| *{Module A1}* | *{backend/frontend}* | *{Domain A}* | *{One sentence responsibility}* | *[Link]({platform}/module-A1/module-A1-overview.md)* | ✅ Released |
|
|
171
|
+
| {Module A1} | Java/Spring | {Domain A} | {One sentence responsibility} | [Link](backend/module-A1/module-A1-overview.md) | ✅ Released |
|
|
172
|
+
| {Module A2} | Vue/React | {Domain A} | {One sentence responsibility} | [Link](frontend/module-A2/module-A2-overview.md) | 🚧 In Development |
|
|
173
|
+
| {Module B1} | Java/Spring | {Domain B} | {One sentence responsibility} | [Link](backend/module-B1/module-B1-overview.md) | ✅ Released |
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 3. End-to-End Business Processes
|
|
178
|
+
|
|
179
|
+
### 3.1 Core Business Process List
|
|
180
|
+
|
|
181
|
+
| Process Name | Involved Modules | Process Description | Key Nodes |
|
|
182
|
+
|--------------|------------------|---------------------|-----------|
|
|
183
|
+
| {Process 1: e.g., Order Fulfillment} | {Module A1→B1→C1} | {Full process from order to delivery} | {Order→Review→Ship→Receive} |
|
|
184
|
+
| {Process 2: e.g., Procurement Approval} | {Module A2→B2} | {From application to procurement completion} | {Apply→Approve→Order→Inbound} |
|
|
185
|
+
|
|
186
|
+
### 3.2 Process-Module Mapping Matrix
|
|
187
|
+
|
|
188
|
+
| Process/Module | Module A1 | Module A2 | Module B1 | Module B2 | Module C1 |
|
|
189
|
+
|----------------|-----------|-----------|-----------|-----------|-----------|
|
|
190
|
+
| Order Fulfillment | ✅ Create | - | ✅ Process | - | ✅ Settle |
|
|
191
|
+
| Procurement Approval | - | ✅ Apply | - | ✅ Approve | - |
|
|
192
|
+
| Inventory Count | ✅ Trigger | - | - | ✅ Execute | - |
|
|
193
|
+
|
|
194
|
+
> ✅ indicates this process involves this module
|
|
195
|
+
|
|
196
|
+
### 3.3 Typical Business Process Diagram
|
|
197
|
+
|
|
198
|
+
<!-- AI-TAG: BUSINESS_FLOW -->
|
|
199
|
+
<!-- AI-NOTE: Business processes help AI understand cross-module collaboration, important for PM Agent to judge requirement impact scope and Solution Agent to design solutions -->
|
|
200
|
+
|
|
201
|
+
**Process Example: {Order Fulfillment Process}**
|
|
202
|
+
|
|
203
|
+
```mermaid
|
|
204
|
+
flowchart LR
|
|
205
|
+
Start([Start: Place Order]) --> A1[Module A1: Order Review]
|
|
206
|
+
A1 -->|Pass| B1[Module B1: Shipment Processing]
|
|
207
|
+
A1 -->|Reject| Reject[Exception Handling: Order Rejected]
|
|
208
|
+
B1 --> C1[Module C1: Settlement Processing]
|
|
209
|
+
C1 --> End([End: Order Complete])
|
|
210
|
+
Reject --> End
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Diagram Source**
|
|
214
|
+
- Aggregated from cross-module flow analysis
|
|
215
|
+
|
|
216
|
+
**Process Description:**
|
|
217
|
+
| Step | Module | Processing Content | Output Status |
|
|
218
|
+
|------|--------|-------------------|---------------|
|
|
219
|
+
| 1 | Module A1 | Order review | Pass/Reject |
|
|
220
|
+
| 2 | Module B1 | Shipment processing | Shipped |
|
|
221
|
+
| 3 | Module C1 | Settlement processing | Settled |
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 4. System Boundaries and Integration
|
|
226
|
+
|
|
227
|
+
### 4.1 External System Integration Diagram
|
|
228
|
+
|
|
229
|
+
<!-- AI-TAG: EXTERNAL_INTEGRATION -->
|
|
230
|
+
<!-- AI-NOTE: External integration information is crucial for Solution Agent to design APIs and integration solutions -->
|
|
231
|
+
|
|
232
|
+
```mermaid
|
|
233
|
+
graph TB
|
|
234
|
+
subgraph ThisSystem["This System"]
|
|
235
|
+
A[Module A]
|
|
236
|
+
B[Module B]
|
|
237
|
+
C[Module C]
|
|
238
|
+
D[Module D]
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
ERP[ERP System]
|
|
242
|
+
PAY[Payment Platform]
|
|
243
|
+
LOG[Logistics Platform]
|
|
244
|
+
MSG[Message Gateway]
|
|
245
|
+
|
|
246
|
+
A -->|Order Sync| ERP
|
|
247
|
+
B -->|Payment Request| PAY
|
|
248
|
+
C -->|Logistics Query| LOG
|
|
249
|
+
D -->|Notification Push| MSG
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Diagram Source**
|
|
253
|
+
- Aggregated from external integration analysis
|
|
254
|
+
|
|
255
|
+
### 4.2 Integration Interface List
|
|
256
|
+
|
|
257
|
+
| Integration Party | Integration Type | Data Flow | Integration Content | Dependent Module |
|
|
258
|
+
|-------------------|------------------|-----------|---------------------|------------------|
|
|
259
|
+
| {ERP System} | {API} | {This System→ERP} | {Order Sync} | {Module A1} |
|
|
260
|
+
| {Payment Platform} | {SDK} | {Bidirectional} | {Payment/Refund} | {Module C1} |
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
## 5. Requirement Assessment Guide
|
|
265
|
+
|
|
266
|
+
> **Note**: For new requirement assessment, please use `devcrew-pm-requirement-assess` skill
|
|
267
|
+
|
|
268
|
+
When PM Agent receives new requirements, should:
|
|
269
|
+
|
|
270
|
+
1. **Read this document** to understand system structure and module relationships
|
|
271
|
+
2. **Use assessment Skill** for standardized requirement analysis
|
|
272
|
+
3. **Refer to the following information** to locate impact scope:
|
|
273
|
+
- Section 1.2: Business Domain Division
|
|
274
|
+
- Section 2.3: Module List Index
|
|
275
|
+
- Section 3.2: Process-Module Mapping Matrix
|
|
276
|
+
- Section 4.2: External Integration Interface List
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## 6. Change History
|
|
281
|
+
|
|
282
|
+
| Date | Version | Change Content | Changed Module | Change Type | Owner |
|
|
283
|
+
|------|---------|----------------|----------------|-------------|-------|
|
|
284
|
+
| {Date} | {v1.1} | {Added inventory alert} | {Module B1} | {New Feature} | {Zhang San} |
|
|
285
|
+
| {Date} | {v1.0} | {System initial version} | {All} | {Initial Release} | {Li Si} |
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
**Document Status:** 📝 Draft / 👀 In Review / ✅ Published
|
|
290
|
+
**Last Updated:** {Date}
|
|
291
|
+
**Maintainer:** {Name}
|
|
292
|
+
|
|
293
|
+
**Section Source**
|
|
294
|
+
- Aggregated from all module overview documents
|