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,243 @@
|
|
|
1
|
+
# Technology Knowledge Index
|
|
2
|
+
|
|
3
|
+
<cite>
|
|
4
|
+
**Files Referenced in This Document**
|
|
5
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
6
|
+
</cite>
|
|
7
|
+
|
|
8
|
+
> **Target Audience**: devcrew-designer-*, devcrew-dev-*, devcrew-test-*
|
|
9
|
+
|
|
10
|
+
## Table of Contents
|
|
11
|
+
|
|
12
|
+
1. [Introduction](#introduction)
|
|
13
|
+
2. [Project Structure](#project-structure)
|
|
14
|
+
3. [Core Components](#core-components)
|
|
15
|
+
4. [Architecture Overview](#architecture-overview)
|
|
16
|
+
5. [Detailed Component Analysis](#detailed-component-analysis)
|
|
17
|
+
6. [Dependency Analysis](#dependency-analysis)
|
|
18
|
+
7. [Performance Considerations](#performance-considerations)
|
|
19
|
+
8. [Troubleshooting Guide](#troubleshooting-guide)
|
|
20
|
+
9. [Conclusion](#conclusion)
|
|
21
|
+
10. [Appendix](#appendix)
|
|
22
|
+
|
|
23
|
+
## Introduction
|
|
24
|
+
|
|
25
|
+
This technology knowledge index serves all platforms in the project, providing platform overview, document navigation, and Agent usage guidelines.
|
|
26
|
+
|
|
27
|
+
> Generated at: {{generated_at}}
|
|
28
|
+
> Source: {{source_path}}
|
|
29
|
+
> Platforms: {{platform_count}}
|
|
30
|
+
|
|
31
|
+
## Project Structure
|
|
32
|
+
|
|
33
|
+
### Platform Overview
|
|
34
|
+
|
|
35
|
+
Summary table of all platforms:
|
|
36
|
+
|
|
37
|
+
| Platform | Type | Framework | Language | Documents |
|
|
38
|
+
|----------|------|-----------|----------|-----------|
|
|
39
|
+
{{#each platforms}}
|
|
40
|
+
| [{{name}}]({{platform_id}}/INDEX.md) | {{platform_type}} | {{framework}} {{version}} | {{language}} | [Stack]({{platform_id}}/tech-stack.md), [Arch]({{platform_id}}/architecture.md), [Design]({{platform_id}}/conventions-design.md), [Dev]({{platform_id}}/conventions-dev.md), [Test]({{platform_id}}/conventions-test.md) |
|
|
41
|
+
{{/each}}
|
|
42
|
+
|
|
43
|
+
### Directory Structure
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
techs/
|
|
47
|
+
├── INDEX.md # This file (root index)
|
|
48
|
+
{{#each platforms}}
|
|
49
|
+
├── {{platform_id}}/
|
|
50
|
+
│ ├── INDEX.md
|
|
51
|
+
│ ├── tech-stack.md
|
|
52
|
+
│ ├── architecture.md
|
|
53
|
+
│ ├── conventions-design.md
|
|
54
|
+
│ ├── conventions-dev.md
|
|
55
|
+
│ ├── conventions-test.md
|
|
56
|
+
│ └── conventions-data.md (optional)
|
|
57
|
+
{{/each}}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Section Source**
|
|
61
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
62
|
+
|
|
63
|
+
## Core Components
|
|
64
|
+
|
|
65
|
+
### Technology Stacks
|
|
66
|
+
|
|
67
|
+
{{#each platforms}}
|
|
68
|
+
- [{{name}} - {{framework}}]({{platform_id}}/tech-stack.md)
|
|
69
|
+
{{/each}}
|
|
70
|
+
|
|
71
|
+
### Architecture Guidelines
|
|
72
|
+
|
|
73
|
+
{{#each platforms}}
|
|
74
|
+
- [{{name}}]({{platform_id}}/architecture.md)
|
|
75
|
+
{{/each}}
|
|
76
|
+
|
|
77
|
+
### Design Conventions
|
|
78
|
+
|
|
79
|
+
{{#each platforms}}
|
|
80
|
+
- [{{name}}]({{platform_id}}/conventions-design.md)
|
|
81
|
+
{{/each}}
|
|
82
|
+
|
|
83
|
+
### Development Conventions
|
|
84
|
+
|
|
85
|
+
{{#each platforms}}
|
|
86
|
+
- [{{name}}]({{platform_id}}/conventions-dev.md)
|
|
87
|
+
{{/each}}
|
|
88
|
+
|
|
89
|
+
### Testing Conventions
|
|
90
|
+
|
|
91
|
+
{{#each platforms}}
|
|
92
|
+
- [{{name}}]({{platform_id}}/conventions-test.md)
|
|
93
|
+
{{/each}}
|
|
94
|
+
|
|
95
|
+
[This section provides navigation, aggregated from platform documents]
|
|
96
|
+
|
|
97
|
+
## Architecture Overview
|
|
98
|
+
|
|
99
|
+
### Platform Architecture Map
|
|
100
|
+
|
|
101
|
+
```mermaid
|
|
102
|
+
graph TB
|
|
103
|
+
Root["Technology Knowledge Index"]
|
|
104
|
+
{{#each platforms}}
|
|
105
|
+
{{platform_id}}["{{name}}"]
|
|
106
|
+
Root --> {{platform_id}}
|
|
107
|
+
{{/each}}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Diagram Source**
|
|
111
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
112
|
+
|
|
113
|
+
**Section Source**
|
|
114
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
115
|
+
|
|
116
|
+
## Detailed Component Analysis
|
|
117
|
+
|
|
118
|
+
### Agent-to-Platform Mapping
|
|
119
|
+
|
|
120
|
+
This section maps dynamically generated Agents to their respective platform documentation.
|
|
121
|
+
|
|
122
|
+
{{#each platforms}}
|
|
123
|
+
#### {{name}} ({{platform_id}})
|
|
124
|
+
|
|
125
|
+
| Agent Role | Agent Name | Documentation Path |
|
|
126
|
+
|------------|------------|-------------------|
|
|
127
|
+
| Designer | devcrew-designer-{{platform_id}} | [knowledge/techs/{{platform_id}}/]({{platform_id}}/) |
|
|
128
|
+
| Developer | devcrew-dev-{{platform_id}} | [knowledge/techs/{{platform_id}}/]({{platform_id}}/) |
|
|
129
|
+
| Tester | devcrew-test-{{platform_id}} | [knowledge/techs/{{platform_id}}/]({{platform_id}}/) |
|
|
130
|
+
|
|
131
|
+
**Key Documents for {{name}} Agents:**
|
|
132
|
+
- Designer: [architecture.md]({{platform_id}}/architecture.md), [conventions-design.md]({{platform_id}}/conventions-design.md)
|
|
133
|
+
- Developer: [conventions-dev.md]({{platform_id}}/conventions-dev.md)
|
|
134
|
+
- Tester: [conventions-test.md]({{platform_id}}/conventions-test.md)
|
|
135
|
+
|
|
136
|
+
{{/each}}
|
|
137
|
+
|
|
138
|
+
**Section Source**
|
|
139
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
140
|
+
|
|
141
|
+
## Dependency Analysis
|
|
142
|
+
|
|
143
|
+
### Cross-Platform Dependencies
|
|
144
|
+
|
|
145
|
+
{{cross_platform_dependencies}}
|
|
146
|
+
|
|
147
|
+
```mermaid
|
|
148
|
+
graph LR
|
|
149
|
+
{{#each platforms}}
|
|
150
|
+
{{platform_id}}["{{name}}"]
|
|
151
|
+
{{/each}}
|
|
152
|
+
{{#each platform_relations}}
|
|
153
|
+
{{from}} --> {{to}}
|
|
154
|
+
{{/each}}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Diagram Source**
|
|
158
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
159
|
+
|
|
160
|
+
**Section Source**
|
|
161
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
162
|
+
|
|
163
|
+
## Performance Considerations
|
|
164
|
+
|
|
165
|
+
### Platform Performance Characteristics
|
|
166
|
+
|
|
167
|
+
{{performance_considerations}}
|
|
168
|
+
|
|
169
|
+
[This section provides general guidance, no specific file reference required]
|
|
170
|
+
|
|
171
|
+
## Troubleshooting Guide
|
|
172
|
+
|
|
173
|
+
### Common Issues
|
|
174
|
+
|
|
175
|
+
{{#each troubleshooting}}
|
|
176
|
+
#### {{issue}}
|
|
177
|
+
|
|
178
|
+
**Symptoms:**
|
|
179
|
+
{{#each symptoms}}
|
|
180
|
+
- {{this}}
|
|
181
|
+
{{/each}}
|
|
182
|
+
|
|
183
|
+
**Solutions:**
|
|
184
|
+
{{#each solutions}}
|
|
185
|
+
- {{this}}
|
|
186
|
+
{{/each}}
|
|
187
|
+
|
|
188
|
+
{{/each}}
|
|
189
|
+
|
|
190
|
+
**Section Source**
|
|
191
|
+
{{#each troubleshooting_sources}}
|
|
192
|
+
- [{{name}}](file://{{path}}#L{{start}}-L{{end}})
|
|
193
|
+
{{/each}}
|
|
194
|
+
|
|
195
|
+
## Conclusion
|
|
196
|
+
|
|
197
|
+
{{conclusion}}
|
|
198
|
+
|
|
199
|
+
[This section is a summary, no specific file reference required]
|
|
200
|
+
|
|
201
|
+
## Appendix
|
|
202
|
+
|
|
203
|
+
### Document Guide
|
|
204
|
+
|
|
205
|
+
#### INDEX.md (per platform)
|
|
206
|
+
Platform-specific overview and navigation.
|
|
207
|
+
|
|
208
|
+
#### tech-stack.md
|
|
209
|
+
Framework versions, dependencies, build tools, and configuration files.
|
|
210
|
+
|
|
211
|
+
#### architecture.md
|
|
212
|
+
Architecture patterns, layering, component organization, and design patterns.
|
|
213
|
+
|
|
214
|
+
#### conventions-design.md
|
|
215
|
+
Design principles, patterns, and guidelines for detailed design work.
|
|
216
|
+
|
|
217
|
+
#### conventions-dev.md
|
|
218
|
+
Naming conventions, code style, directory structure, and Git conventions.
|
|
219
|
+
|
|
220
|
+
#### conventions-test.md
|
|
221
|
+
Testing frameworks, coverage requirements, and testing patterns.
|
|
222
|
+
|
|
223
|
+
#### conventions-data.md
|
|
224
|
+
Data modeling, ORM usage, and database conventions (if applicable).
|
|
225
|
+
|
|
226
|
+
### Usage Guide
|
|
227
|
+
|
|
228
|
+
#### For Designer Agents
|
|
229
|
+
1. Read [architecture.md] for platform architecture patterns
|
|
230
|
+
2. Read [conventions-design.md] for design principles
|
|
231
|
+
3. Reference [tech-stack.md] for technology capabilities
|
|
232
|
+
|
|
233
|
+
#### For Developer Agents
|
|
234
|
+
1. Read [conventions-dev.md] for coding standards
|
|
235
|
+
2. Read [conventions-test.md] for testing requirements
|
|
236
|
+
3. Reference [architecture.md] when implementation details are unclear
|
|
237
|
+
|
|
238
|
+
#### For Tester Agents
|
|
239
|
+
1. Read [conventions-test.md] for testing standards
|
|
240
|
+
2. Reference [conventions-design.md] to understand design intent
|
|
241
|
+
|
|
242
|
+
**Section Source**
|
|
243
|
+
- [techs-manifest.json](file://{{manifest_path}})
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: speccrew-knowledge-techs-init
|
|
3
|
+
description: Stage 1 of technology knowledge initialization - Scan source code to detect technology platforms and generate techs-manifest.json. Identifies web, mobile, backend, and desktop platforms by analyzing configuration files and project structure. Used by Worker Agent to kick off the techs pipeline.
|
|
4
|
+
tools: Read, Write, Glob, Grep, SearchCodebase, Skill
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Stage 1: Detect Technology Platforms
|
|
8
|
+
|
|
9
|
+
Scan project source code to identify all technology platforms, extract configuration metadata, and generate techs-manifest.json for downstream document generation.
|
|
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 must be in the target language only.**
|
|
20
|
+
|
|
21
|
+
## Trigger Scenarios
|
|
22
|
+
|
|
23
|
+
- "Initialize technology knowledge base"
|
|
24
|
+
- "Scan source code for technology platforms"
|
|
25
|
+
- "Detect tech stacks in project"
|
|
26
|
+
- "Generate techs manifest"
|
|
27
|
+
|
|
28
|
+
## User
|
|
29
|
+
|
|
30
|
+
Worker Agent (speccrew-task-worker)
|
|
31
|
+
|
|
32
|
+
## Input
|
|
33
|
+
|
|
34
|
+
- `source_path`: Source code root directory (default: project root)
|
|
35
|
+
- `output_path`: Output directory for techs-manifest.json (default: `speccrew-workspace/knowledges/base/sync-state/knowledge-techs/`)
|
|
36
|
+
- `language`: Target language for generated content (e.g., "zh", "en") - **REQUIRED**
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
- `{{output_path}}/techs-manifest.json` - Technology platform manifest for pipeline orchestration
|
|
41
|
+
|
|
42
|
+
## Workflow
|
|
43
|
+
|
|
44
|
+
```mermaid
|
|
45
|
+
flowchart TD
|
|
46
|
+
Start([Start]) --> Step1[Step 1: Scan for Platform Indicators]
|
|
47
|
+
Step1 --> Step2[Step 2: Extract Platform Metadata]
|
|
48
|
+
Step2 --> Step3[Step 3: Generate techs-manifest.json]
|
|
49
|
+
Step3 --> Step4[Step 4: Report Results]
|
|
50
|
+
Step4 --> End([End])
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Step 1: Scan for Platform Indicators
|
|
54
|
+
|
|
55
|
+
1. **Read Configuration**:
|
|
56
|
+
- Read `speccrew-workspace/docs/configs/platform-mapping.json` - Get standardized platform identifiers and mapping rules
|
|
57
|
+
|
|
58
|
+
2. **Analyze project structure to detect technology platforms**:
|
|
59
|
+
- Check for platform-specific files and configurations (see [Platform Detection Reference](#platform-detection-reference))
|
|
60
|
+
|
|
61
|
+
#### Web Platform Detection
|
|
62
|
+
|
|
63
|
+
**Indicators:**
|
|
64
|
+
|
|
65
|
+
| Signal | Platform ID | Framework |
|
|
66
|
+
|--------|-------------|-----------|
|
|
67
|
+
| package.json + react dependency | web-react | React |
|
|
68
|
+
| package.json + vue dependency | web-vue | Vue |
|
|
69
|
+
| package.json + @angular/core | web-angular | Angular |
|
|
70
|
+
| package.json + next | web-nextjs | Next.js |
|
|
71
|
+
| package.json + nuxt | web-nuxt | Nuxt |
|
|
72
|
+
| package.json + svelte | web-svelte | Svelte |
|
|
73
|
+
|
|
74
|
+
**Configuration Files to Capture:**
|
|
75
|
+
- package.json
|
|
76
|
+
- tsconfig.json
|
|
77
|
+
- vite.config.* / webpack.config.* / next.config.* / nuxt.config.*
|
|
78
|
+
- tailwind.config.* / postcss.config.*
|
|
79
|
+
- .eslintrc.* / .prettierrc.*
|
|
80
|
+
|
|
81
|
+
#### Mobile Platform Detection
|
|
82
|
+
|
|
83
|
+
**Indicators:**
|
|
84
|
+
|
|
85
|
+
| Signal | Platform ID | Framework |
|
|
86
|
+
|--------|-------------|-----------|
|
|
87
|
+
| pubspec.yaml | mobile-flutter | Flutter |
|
|
88
|
+
| package.json + react-native | mobile-react-native | React Native |
|
|
89
|
+
| .xcodeproj / Package.swift | mobile-ios | iOS (Swift) |
|
|
90
|
+
| build.gradle + AndroidManifest.xml | mobile-android | Android (Kotlin/Java) |
|
|
91
|
+
| manifest.json + pages.json (uni-app) | mobile-uniapp | UniApp |
|
|
92
|
+
| project.config.json + app.json | mobile-miniprogram | Mini Program |
|
|
93
|
+
|
|
94
|
+
**Configuration Files to Capture:**
|
|
95
|
+
- Flutter: pubspec.yaml, analysis_options.yaml
|
|
96
|
+
- React Native: package.json, metro.config.js
|
|
97
|
+
- iOS: Package.swift, Podfile, Info.plist
|
|
98
|
+
- Android: build.gradle, AndroidManifest.xml
|
|
99
|
+
|
|
100
|
+
#### Backend Platform Detection
|
|
101
|
+
|
|
102
|
+
**Indicators:**
|
|
103
|
+
|
|
104
|
+
| Signal | Platform ID | Framework |
|
|
105
|
+
|--------|-------------|-----------|
|
|
106
|
+
| package.json + @nestjs/core | backend-nestjs | NestJS |
|
|
107
|
+
| package.json + express | backend-express | Express |
|
|
108
|
+
| package.json + fastify | backend-fastify | Fastify |
|
|
109
|
+
| pom.xml + spring-boot | backend-spring | Spring Boot |
|
|
110
|
+
| build.gradle + spring-boot | backend-spring | Spring Boot |
|
|
111
|
+
| requirements.txt + django | backend-django | Django |
|
|
112
|
+
| requirements.txt + fastapi | backend-fastapi | FastAPI |
|
|
113
|
+
| go.mod | backend-go | Go |
|
|
114
|
+
| Cargo.toml | backend-rust | Rust (Actix/Rocket) |
|
|
115
|
+
|
|
116
|
+
**Configuration Files to Capture:**
|
|
117
|
+
- Node.js: package.json, tsconfig.json, nest-cli.json
|
|
118
|
+
- Java: pom.xml, build.gradle, application.yml/properties
|
|
119
|
+
- Python: requirements.txt, pyproject.toml
|
|
120
|
+
- Go: go.mod, go.sum
|
|
121
|
+
- Rust: Cargo.toml
|
|
122
|
+
|
|
123
|
+
#### Desktop Platform Detection
|
|
124
|
+
|
|
125
|
+
**Indicators:**
|
|
126
|
+
|
|
127
|
+
| Signal | Platform ID | Framework |
|
|
128
|
+
|--------|-------------|-----------|
|
|
129
|
+
| package.json + electron | desktop-electron | Electron |
|
|
130
|
+
| tauri.conf.json | desktop-tauri | Tauri |
|
|
131
|
+
| .csproj + WPF references | desktop-wpf | WPF |
|
|
132
|
+
| .csproj + WinForms | desktop-winforms | WinForms |
|
|
133
|
+
| .pro file + Qt | desktop-qt | Qt |
|
|
134
|
+
|
|
135
|
+
**Configuration Files to Capture:**
|
|
136
|
+
- Electron: package.json, electron-builder.yml
|
|
137
|
+
- Tauri: tauri.conf.json, Cargo.toml
|
|
138
|
+
- WPF/WinForms: .csproj, App.xaml
|
|
139
|
+
- Qt: .pro, CMakeLists.txt
|
|
140
|
+
|
|
141
|
+
### Step 2: Extract Platform Metadata
|
|
142
|
+
|
|
143
|
+
For each detected platform, extract:
|
|
144
|
+
|
|
145
|
+
| Field | Source | Example |
|
|
146
|
+
|-------|--------|---------|
|
|
147
|
+
| platform_id | `{{platform_type}}-{{framework}}` | web-react, backend-nestjs |
|
|
148
|
+
| platform_type | Platform category | web, mobile, backend, desktop |
|
|
149
|
+
| framework | Primary framework | react, nestjs, flutter |
|
|
150
|
+
| language | Primary language | typescript, kotlin, dart |
|
|
151
|
+
| source_path | Relative source directory | src/web, src/server |
|
|
152
|
+
| config_files | List of config file paths | ["package.json", "tsconfig.json"] |
|
|
153
|
+
| convention_files | Lint/format config files | [".eslintrc.js", ".prettierrc"] |
|
|
154
|
+
|
|
155
|
+
### Step 3: Generate techs-manifest.json
|
|
156
|
+
|
|
157
|
+
1. **Get Timestamp**:
|
|
158
|
+
- **CRITICAL**: Use the Skill tool to invoke `speccrew-get-timestamp` (no format parameter needed, uses default)
|
|
159
|
+
- Store the returned timestamp as `generated_at` value
|
|
160
|
+
|
|
161
|
+
2. **Create JSON file** with detected platforms:
|
|
162
|
+
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"generated_at": "{{timestamp_from_get_timestamp}}",
|
|
166
|
+
"source_path": "/project",
|
|
167
|
+
"language": "zh",
|
|
168
|
+
"platforms": [
|
|
169
|
+
{
|
|
170
|
+
"platform_id": "web-react",
|
|
171
|
+
"platform_type": "web",
|
|
172
|
+
"framework": "react",
|
|
173
|
+
"language": "typescript",
|
|
174
|
+
"source_path": "src/web",
|
|
175
|
+
"config_files": [
|
|
176
|
+
"src/web/package.json",
|
|
177
|
+
"src/web/tsconfig.json",
|
|
178
|
+
"src/web/vite.config.ts"
|
|
179
|
+
],
|
|
180
|
+
"convention_files": [
|
|
181
|
+
"src/web/.eslintrc.js",
|
|
182
|
+
"src/web/.prettierrc"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"platform_id": "backend-nestjs",
|
|
187
|
+
"platform_type": "backend",
|
|
188
|
+
"framework": "nestjs",
|
|
189
|
+
"language": "typescript",
|
|
190
|
+
"source_path": "src/server",
|
|
191
|
+
"config_files": [
|
|
192
|
+
"src/server/package.json",
|
|
193
|
+
"src/server/nest-cli.json",
|
|
194
|
+
"src/server/tsconfig.json"
|
|
195
|
+
],
|
|
196
|
+
"convention_files": [
|
|
197
|
+
"src/server/.eslintrc.js"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Step 4: Report Results
|
|
205
|
+
|
|
206
|
+
```
|
|
207
|
+
Stage 1 completed: Technology Platform Detection
|
|
208
|
+
- Platforms Detected: {{platform_count}}
|
|
209
|
+
- web-react: React 18.2.0, TypeScript 5.3.0
|
|
210
|
+
- backend-nestjs: NestJS 10.0.0, TypeScript 5.3.0
|
|
211
|
+
- Configuration Files Found: {{config_file_count}}
|
|
212
|
+
- Output: {{output_path}}/techs-manifest.json
|
|
213
|
+
- Next: Dispatch parallel tasks for Stage 2 (Tech Document Generation)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Reference Guides
|
|
217
|
+
|
|
218
|
+
### Platform Detection Reference
|
|
219
|
+
|
|
220
|
+
#### Multiple Platforms in Same Project
|
|
221
|
+
|
|
222
|
+
If a project contains multiple platforms (e.g., web + backend + mobile):
|
|
223
|
+
- Detect each platform separately
|
|
224
|
+
- Assign unique platform_id for each
|
|
225
|
+
- Include all platforms in manifest
|
|
226
|
+
|
|
227
|
+
#### Monorepo Structure
|
|
228
|
+
|
|
229
|
+
For monorepos with multiple packages:
|
|
230
|
+
- Detect platforms in each package directory
|
|
231
|
+
- Use relative paths for source_path
|
|
232
|
+
- Example: `packages/web-app` → web-react platform
|
|
233
|
+
|
|
234
|
+
#### Framework Version Detection
|
|
235
|
+
|
|
236
|
+
Extract version information when available:
|
|
237
|
+
- From package.json dependencies
|
|
238
|
+
- From pom.xml version tags
|
|
239
|
+
- Include in report but not in manifest (manifest focuses on structure)
|
|
240
|
+
|
|
241
|
+
#### Platform Mapping to bizs-init
|
|
242
|
+
|
|
243
|
+
Ensure consistency with modules.json by using standardized platform identifiers from `platform-mapping.json`:
|
|
244
|
+
|
|
245
|
+
**Key Rules:**
|
|
246
|
+
- `platform_id` format: `{{platform_type}}-{{framework}}` (e.g., `mobile-uniapp`, `web-vue`)
|
|
247
|
+
- `platform_type` must match between techs-manifest.json and modules.json
|
|
248
|
+
- `framework` maps to `platform_subtype` in modules.json
|
|
249
|
+
|
|
250
|
+
**Example Mapping:**
|
|
251
|
+
| platform_id | platform_type | framework | platform_subtype (for bizs-init) |
|
|
252
|
+
|-------------|---------------|-----------|----------------------------------|
|
|
253
|
+
| web-vue | web | vue | vue |
|
|
254
|
+
| mobile-uniapp | mobile | uniapp | uniapp |
|
|
255
|
+
| backend-spring | backend | spring | spring |
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Checklist
|
|
260
|
+
|
|
261
|
+
- [ ] All platform indicators checked
|
|
262
|
+
- [ ] Platform metadata extracted (platform_id, type, framework, language)
|
|
263
|
+
- [ ] Configuration files identified and paths recorded
|
|
264
|
+
- [ ] Convention files (eslint, prettier) identified
|
|
265
|
+
- [ ] techs-manifest.json generated with valid JSON structure
|
|
266
|
+
- [ ] **Source traceability**: All config_file paths recorded for downstream use
|
|
267
|
+
- [ ] Output path verified
|
|
268
|
+
- [ ] Results reported with platform summary
|
|
269
|
+
|