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,171 @@
|
|
|
1
|
+
---
|
|
2
|
+
template_name: business-components
|
|
3
|
+
description: Business components usage conventions
|
|
4
|
+
output_file: components/business-components.md
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Business Components
|
|
8
|
+
|
|
9
|
+
<cite>
|
|
10
|
+
**Files Referenced in This Document**
|
|
11
|
+
{{source_files}}
|
|
12
|
+
</cite>
|
|
13
|
+
|
|
14
|
+
> **Target Audience**: devcrew-designer-{{platform_id}}, devcrew-dev-{{platform_id}}
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
Domain-specific components for {{platform_name}}.
|
|
19
|
+
|
|
20
|
+
## User Management Components
|
|
21
|
+
|
|
22
|
+
### User Selector
|
|
23
|
+
|
|
24
|
+
**Purpose**: Select users from the system
|
|
25
|
+
|
|
26
|
+
**Props**:
|
|
27
|
+
|
|
28
|
+
| Prop | Type | Default | Description |
|
|
29
|
+
|------|------|---------|-------------|
|
|
30
|
+
{{user_selector_props}}
|
|
31
|
+
|
|
32
|
+
**Usage**:
|
|
33
|
+
|
|
34
|
+
```vue
|
|
35
|
+
{{user_selector_usage}}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
### Role Picker
|
|
41
|
+
|
|
42
|
+
**Purpose**: Select user roles
|
|
43
|
+
|
|
44
|
+
**Props**:
|
|
45
|
+
|
|
46
|
+
| Prop | Type | Default | Description |
|
|
47
|
+
|------|------|---------|-------------|
|
|
48
|
+
{{role_picker_props}}
|
|
49
|
+
|
|
50
|
+
**Usage**:
|
|
51
|
+
|
|
52
|
+
```vue
|
|
53
|
+
{{role_picker_usage}}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Department Components
|
|
59
|
+
|
|
60
|
+
### Department Tree
|
|
61
|
+
|
|
62
|
+
**Purpose**: Display and select department hierarchy
|
|
63
|
+
|
|
64
|
+
**Props**:
|
|
65
|
+
|
|
66
|
+
| Prop | Type | Default | Description |
|
|
67
|
+
|------|------|---------|-------------|
|
|
68
|
+
{{dept_tree_props}}
|
|
69
|
+
|
|
70
|
+
**Usage**:
|
|
71
|
+
|
|
72
|
+
```vue
|
|
73
|
+
{{dept_tree_usage}}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Dictionary Components
|
|
79
|
+
|
|
80
|
+
### Dictionary Tag
|
|
81
|
+
|
|
82
|
+
**Purpose**: Display dictionary values with color coding
|
|
83
|
+
|
|
84
|
+
**Props**:
|
|
85
|
+
|
|
86
|
+
| Prop | Type | Default | Description |
|
|
87
|
+
|------|------|---------|-------------|
|
|
88
|
+
{{dict_tag_props}}
|
|
89
|
+
|
|
90
|
+
**Usage**:
|
|
91
|
+
|
|
92
|
+
```vue
|
|
93
|
+
{{dict_tag_usage}}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### Dictionary Select
|
|
99
|
+
|
|
100
|
+
**Purpose**: Select from dictionary values
|
|
101
|
+
|
|
102
|
+
**Props**:
|
|
103
|
+
|
|
104
|
+
| Prop | Type | Default | Description |
|
|
105
|
+
|------|------|---------|-------------|
|
|
106
|
+
{{dict_select_props}}
|
|
107
|
+
|
|
108
|
+
**Usage**:
|
|
109
|
+
|
|
110
|
+
```vue
|
|
111
|
+
{{dict_select_usage}}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## File Components
|
|
117
|
+
|
|
118
|
+
### Image Preview
|
|
119
|
+
|
|
120
|
+
**Purpose**: Preview images with zoom and gallery
|
|
121
|
+
|
|
122
|
+
**Props**:
|
|
123
|
+
|
|
124
|
+
| Prop | Type | Default | Description |
|
|
125
|
+
|------|------|---------|-------------|
|
|
126
|
+
{{image_preview_props}}
|
|
127
|
+
|
|
128
|
+
**Usage**:
|
|
129
|
+
|
|
130
|
+
```vue
|
|
131
|
+
{{image_preview_usage}}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
### File Upload
|
|
137
|
+
|
|
138
|
+
**Purpose**: Upload files with progress and validation
|
|
139
|
+
|
|
140
|
+
**Props**:
|
|
141
|
+
|
|
142
|
+
| Prop | Type | Default | Description |
|
|
143
|
+
|------|------|---------|-------------|
|
|
144
|
+
{{file_upload_props}}
|
|
145
|
+
|
|
146
|
+
**Usage**:
|
|
147
|
+
|
|
148
|
+
```vue
|
|
149
|
+
{{file_upload_usage}}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Component Guidelines
|
|
155
|
+
|
|
156
|
+
### Domain Separation
|
|
157
|
+
|
|
158
|
+
{{domain_separation_guidelines}}
|
|
159
|
+
|
|
160
|
+
### Reusability
|
|
161
|
+
|
|
162
|
+
{{reusability_guidelines}}
|
|
163
|
+
|
|
164
|
+
### Data Integration
|
|
165
|
+
|
|
166
|
+
{{data_integration_guidelines}}
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
**Section Source**
|
|
171
|
+
{{section_source_files}}
|
package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMMON-COMPONENTS-TEMPLATE.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
---
|
|
2
|
+
template_name: common-components
|
|
3
|
+
description: Common components usage conventions
|
|
4
|
+
output_file: components/common-components.md
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Common Components
|
|
8
|
+
|
|
9
|
+
<cite>
|
|
10
|
+
**Files Referenced in This Document**
|
|
11
|
+
{{source_files}}
|
|
12
|
+
</cite>
|
|
13
|
+
|
|
14
|
+
> **Target Audience**: devcrew-designer-{{platform_id}}, devcrew-dev-{{platform_id}}
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
Project-wide reusable components for {{platform_name}}.
|
|
19
|
+
|
|
20
|
+
## Layout Components
|
|
21
|
+
|
|
22
|
+
### Page Container
|
|
23
|
+
|
|
24
|
+
**Purpose**: {{page_container_purpose}}
|
|
25
|
+
|
|
26
|
+
**Props**:
|
|
27
|
+
|
|
28
|
+
| Prop | Type | Default | Description |
|
|
29
|
+
|------|------|---------|-------------|
|
|
30
|
+
{{page_container_props}}
|
|
31
|
+
|
|
32
|
+
**Usage**:
|
|
33
|
+
|
|
34
|
+
```vue
|
|
35
|
+
{{page_container_usage}}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
### Card
|
|
41
|
+
|
|
42
|
+
**Purpose**: {{card_purpose}}
|
|
43
|
+
|
|
44
|
+
**Props**:
|
|
45
|
+
|
|
46
|
+
| Prop | Type | Default | Description |
|
|
47
|
+
|------|------|---------|-------------|
|
|
48
|
+
{{card_props}}
|
|
49
|
+
|
|
50
|
+
**Usage**:
|
|
51
|
+
|
|
52
|
+
```vue
|
|
53
|
+
{{card_usage}}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Form Components
|
|
59
|
+
|
|
60
|
+
### Search Form
|
|
61
|
+
|
|
62
|
+
**Purpose**: {{search_form_purpose}}
|
|
63
|
+
|
|
64
|
+
**Props**:
|
|
65
|
+
|
|
66
|
+
| Prop | Type | Default | Description |
|
|
67
|
+
|------|------|---------|-------------|
|
|
68
|
+
{{search_form_props}}
|
|
69
|
+
|
|
70
|
+
**Usage**:
|
|
71
|
+
|
|
72
|
+
```vue
|
|
73
|
+
{{search_form_usage}}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
### Data Form
|
|
79
|
+
|
|
80
|
+
**Purpose**: {{data_form_purpose}}
|
|
81
|
+
|
|
82
|
+
**Props**:
|
|
83
|
+
|
|
84
|
+
| Prop | Type | Default | Description |
|
|
85
|
+
|------|------|---------|-------------|
|
|
86
|
+
{{data_form_props}}
|
|
87
|
+
|
|
88
|
+
**Usage**:
|
|
89
|
+
|
|
90
|
+
```vue
|
|
91
|
+
{{data_form_usage}}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Data Display Components
|
|
97
|
+
|
|
98
|
+
### Data Table
|
|
99
|
+
|
|
100
|
+
**Purpose**: {{data_table_purpose}}
|
|
101
|
+
|
|
102
|
+
**Props**:
|
|
103
|
+
|
|
104
|
+
| Prop | Type | Default | Description |
|
|
105
|
+
|------|------|---------|-------------|
|
|
106
|
+
{{data_table_props}}
|
|
107
|
+
|
|
108
|
+
**Usage**:
|
|
109
|
+
|
|
110
|
+
```vue
|
|
111
|
+
{{data_table_usage}}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### Pagination
|
|
117
|
+
|
|
118
|
+
**Purpose**: {{pagination_purpose}}
|
|
119
|
+
|
|
120
|
+
**Props**:
|
|
121
|
+
|
|
122
|
+
| Prop | Type | Default | Description |
|
|
123
|
+
|------|------|---------|-------------|
|
|
124
|
+
{{pagination_props}}
|
|
125
|
+
|
|
126
|
+
**Usage**:
|
|
127
|
+
|
|
128
|
+
```vue
|
|
129
|
+
{{pagination_usage}}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Feedback Components
|
|
135
|
+
|
|
136
|
+
### Loading State
|
|
137
|
+
|
|
138
|
+
**Purpose**: {{loading_state_purpose}}
|
|
139
|
+
|
|
140
|
+
**Usage**:
|
|
141
|
+
|
|
142
|
+
```vue
|
|
143
|
+
{{loading_state_usage}}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### Empty State
|
|
149
|
+
|
|
150
|
+
**Purpose**: {{empty_state_purpose}}
|
|
151
|
+
|
|
152
|
+
**Usage**:
|
|
153
|
+
|
|
154
|
+
```vue
|
|
155
|
+
{{empty_state_usage}}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Component Guidelines
|
|
161
|
+
|
|
162
|
+
### When to Use
|
|
163
|
+
|
|
164
|
+
{{when_to_use_guidelines}}
|
|
165
|
+
|
|
166
|
+
### Props Naming
|
|
167
|
+
|
|
168
|
+
{{props_naming_guidelines}}
|
|
169
|
+
|
|
170
|
+
### Event Handling
|
|
171
|
+
|
|
172
|
+
{{event_handling_guidelines}}
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
**Section Source**
|
|
177
|
+
{{section_source_files}}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
template_name: component-individual
|
|
3
|
+
description: Individual component detail template
|
|
4
|
+
dynamic_name: "{{component_name}}.md"
|
|
5
|
+
output_path: components/
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{component_name}}
|
|
9
|
+
|
|
10
|
+
<cite>
|
|
11
|
+
**Source Files Referenced**
|
|
12
|
+
{{component_source_path}}
|
|
13
|
+
</cite>
|
|
14
|
+
|
|
15
|
+
> **Target Audience**: devcrew-designer-{{platform_id}}, devcrew-dev-{{platform_id}}
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
- **Category**: {{category}} (UI Framework / Common / Business)
|
|
20
|
+
- **Source**: {{source_library}} (e.g., Wot Design Uni, Element Plus, Custom)
|
|
21
|
+
- **Location**: {{file_path}}
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
| Prop | Type | Default | Required | Description |
|
|
26
|
+
|------|------|---------|----------|-------------|
|
|
27
|
+
{{props_table}}
|
|
28
|
+
|
|
29
|
+
## Events
|
|
30
|
+
|
|
31
|
+
| Event | Payload | Description |
|
|
32
|
+
|-------|---------|-------------|
|
|
33
|
+
{{events_table}}
|
|
34
|
+
|
|
35
|
+
## Slots
|
|
36
|
+
|
|
37
|
+
| Slot | Props | Description |
|
|
38
|
+
|------|-------|-------------|
|
|
39
|
+
{{slots_table}}
|
|
40
|
+
|
|
41
|
+
## Usage Examples
|
|
42
|
+
|
|
43
|
+
### Basic Usage
|
|
44
|
+
|
|
45
|
+
```{{framework_language}}
|
|
46
|
+
{{basic_usage_code}}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Common Patterns
|
|
50
|
+
|
|
51
|
+
```{{framework_language}}
|
|
52
|
+
{{pattern_usage_code}}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Styling
|
|
56
|
+
|
|
57
|
+
### CSS Variables / Classes
|
|
58
|
+
|
|
59
|
+
| Variable/Class | Purpose |
|
|
60
|
+
|---------------|---------|
|
|
61
|
+
{{css_variables_table}}
|
|
62
|
+
|
|
63
|
+
### Customization
|
|
64
|
+
|
|
65
|
+
{{customization_notes}}
|
|
66
|
+
|
|
67
|
+
## Best Practices
|
|
68
|
+
|
|
69
|
+
{{best_practices_list}}
|
|
70
|
+
|
|
71
|
+
## Related Components
|
|
72
|
+
|
|
73
|
+
| Component | Relationship |
|
|
74
|
+
|-----------|-------------|
|
|
75
|
+
{{related_components_table}}
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
**Section Source**
|
|
80
|
+
{{section_source_files}}
|
package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/COMPONENT-LIBRARY-TEMPLATE.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
template_name: component-library
|
|
3
|
+
description: Component library inventory template
|
|
4
|
+
output_file: components/component-library.md
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Component Library Inventory
|
|
8
|
+
|
|
9
|
+
<cite>
|
|
10
|
+
**Files Referenced in This Document**
|
|
11
|
+
{{source_files}}
|
|
12
|
+
</cite>
|
|
13
|
+
|
|
14
|
+
> **Target Audience**: devcrew-designer-{{platform_id}}, devcrew-dev-{{platform_id}}
|
|
15
|
+
|
|
16
|
+
## Overview
|
|
17
|
+
|
|
18
|
+
This document catalogs all components available in the {{platform_name}} project.
|
|
19
|
+
|
|
20
|
+
### Component Categories
|
|
21
|
+
|
|
22
|
+
1. **UI Framework Components**: Third-party components from {{ui_framework_name}}
|
|
23
|
+
2. **Common Components**: Project-wide reusable components
|
|
24
|
+
3. **Business Components**: Domain-specific components
|
|
25
|
+
|
|
26
|
+
## UI Framework Components
|
|
27
|
+
|
|
28
|
+
### Basic Components
|
|
29
|
+
|
|
30
|
+
| Component | Purpose | Common Props | Usage Frequency |
|
|
31
|
+
|-----------|---------|--------------|-----------------|
|
|
32
|
+
{{basic_components_table}}
|
|
33
|
+
|
|
34
|
+
### Form Components
|
|
35
|
+
|
|
36
|
+
| Component | Purpose | Common Props | Usage Frequency |
|
|
37
|
+
|-----------|---------|--------------|-----------------|
|
|
38
|
+
{{form_components_table}}
|
|
39
|
+
|
|
40
|
+
### Data Display Components
|
|
41
|
+
|
|
42
|
+
| Component | Purpose | Common Props | Usage Frequency |
|
|
43
|
+
|-----------|---------|--------------|-----------------|
|
|
44
|
+
{{data_display_components_table}}
|
|
45
|
+
|
|
46
|
+
### Navigation Components
|
|
47
|
+
|
|
48
|
+
| Component | Purpose | Common Props | Usage Frequency |
|
|
49
|
+
|-----------|---------|--------------|-----------------|
|
|
50
|
+
{{navigation_components_table}}
|
|
51
|
+
|
|
52
|
+
### Feedback Components
|
|
53
|
+
|
|
54
|
+
| Component | Purpose | Common Props | Usage Frequency |
|
|
55
|
+
|-----------|---------|--------------|-----------------|
|
|
56
|
+
{{feedback_components_table}}
|
|
57
|
+
|
|
58
|
+
## Common Components
|
|
59
|
+
|
|
60
|
+
### Layout Components
|
|
61
|
+
|
|
62
|
+
| Component | Purpose | Props | Location |
|
|
63
|
+
|-----------|---------|-------|----------|
|
|
64
|
+
{{common_layout_components_table}}
|
|
65
|
+
|
|
66
|
+
### Utility Components
|
|
67
|
+
|
|
68
|
+
| Component | Purpose | Props | Location |
|
|
69
|
+
|-----------|---------|-------|----------|
|
|
70
|
+
{{common_utility_components_table}}
|
|
71
|
+
|
|
72
|
+
### Functional Components
|
|
73
|
+
|
|
74
|
+
| Component | Purpose | Props | Location |
|
|
75
|
+
|-----------|---------|-------|----------|
|
|
76
|
+
{{common_functional_components_table}}
|
|
77
|
+
|
|
78
|
+
## Business Components
|
|
79
|
+
|
|
80
|
+
### Domain: {{domain_name}}
|
|
81
|
+
|
|
82
|
+
| Component | Purpose | Props | Location |
|
|
83
|
+
|-----------|---------|-------|----------|
|
|
84
|
+
{{business_components_table}}
|
|
85
|
+
|
|
86
|
+
## Component Usage Statistics
|
|
87
|
+
|
|
88
|
+
### Most Used Components
|
|
89
|
+
|
|
90
|
+
{{most_used_components_list}}
|
|
91
|
+
|
|
92
|
+
### Component Dependencies
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
{{component_dependency_diagram}}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Component Guidelines
|
|
99
|
+
|
|
100
|
+
### When to Use Each Category
|
|
101
|
+
|
|
102
|
+
- **UI Framework Components**: Base UI elements, standard interactions
|
|
103
|
+
- **Common Components**: Cross-cutting concerns, repeated patterns
|
|
104
|
+
- **Business Components**: Domain-specific functionality
|
|
105
|
+
|
|
106
|
+
### Creating New Components
|
|
107
|
+
|
|
108
|
+
Before creating a new component:
|
|
109
|
+
|
|
110
|
+
1. Check if an existing component meets your needs
|
|
111
|
+
2. Consider if it should be a common or business component
|
|
112
|
+
3. Follow the established naming conventions
|
|
113
|
+
4. Include proper documentation and examples
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
**Section Source**
|
|
118
|
+
{{section_source_files}}
|
package/.speccrew/skills/speccrew-knowledge-techs-ui-analyze/templates/LAYOUT-INDIVIDUAL-TEMPLATE.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
template_name: layout-individual
|
|
3
|
+
description: Individual layout pattern detail template
|
|
4
|
+
dynamic_name: "{{layout_name}}-layout.md"
|
|
5
|
+
output_path: layouts/
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# {{layout_name}} Layout
|
|
9
|
+
|
|
10
|
+
<cite>
|
|
11
|
+
**Source Files Referenced**
|
|
12
|
+
{{layout_source_files}}
|
|
13
|
+
</cite>
|
|
14
|
+
|
|
15
|
+
> **Target Audience**: devcrew-designer-{{platform_id}}, devcrew-dev-{{platform_id}}
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
- **Type**: {{layout_type}} (e.g., TabBar, Detail, Form, Dashboard)
|
|
20
|
+
- **Usage Frequency**: {{frequency}} (High / Medium / Low)
|
|
21
|
+
- **Applicable Page Types**: {{applicable_page_types}}
|
|
22
|
+
|
|
23
|
+
## Structure
|
|
24
|
+
|
|
25
|
+
### Visual Layout
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
{{ascii_layout_diagram}}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Layout Regions
|
|
32
|
+
|
|
33
|
+
| Region | Purpose | Required | Content Type |
|
|
34
|
+
|--------|---------|----------|-------------|
|
|
35
|
+
{{layout_regions_table}}
|
|
36
|
+
|
|
37
|
+
## Navigation
|
|
38
|
+
|
|
39
|
+
### Entry Points
|
|
40
|
+
|
|
41
|
+
{{entry_points_list}}
|
|
42
|
+
|
|
43
|
+
### Exit Points
|
|
44
|
+
|
|
45
|
+
{{exit_points_list}}
|
|
46
|
+
|
|
47
|
+
### Navigation Method
|
|
48
|
+
|
|
49
|
+
{{navigation_method}}
|
|
50
|
+
|
|
51
|
+
## Component Composition
|
|
52
|
+
|
|
53
|
+
### Required Components
|
|
54
|
+
|
|
55
|
+
| Component | Role | Position |
|
|
56
|
+
|-----------|------|----------|
|
|
57
|
+
{{required_components_table}}
|
|
58
|
+
|
|
59
|
+
### Optional Components
|
|
60
|
+
|
|
61
|
+
| Component | Condition | Position |
|
|
62
|
+
|-----------|-----------|----------|
|
|
63
|
+
{{optional_components_table}}
|
|
64
|
+
|
|
65
|
+
## Responsive Behavior
|
|
66
|
+
<!-- CONDITIONAL: Only for web/desktop platforms -->
|
|
67
|
+
|
|
68
|
+
| Breakpoint | Layout Change |
|
|
69
|
+
|-----------|--------------|
|
|
70
|
+
{{responsive_behavior_table}}
|
|
71
|
+
|
|
72
|
+
## Configuration
|
|
73
|
+
|
|
74
|
+
### Page-Level Config
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{{page_config_json}}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Style Configuration
|
|
81
|
+
|
|
82
|
+
{{style_config_notes}}
|
|
83
|
+
|
|
84
|
+
## Usage Scenarios
|
|
85
|
+
|
|
86
|
+
{{usage_scenarios_list}}
|
|
87
|
+
|
|
88
|
+
## Examples in Codebase
|
|
89
|
+
|
|
90
|
+
| Page | Path | Notes |
|
|
91
|
+
|------|------|-------|
|
|
92
|
+
{{examples_table}}
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
**Section Source**
|
|
97
|
+
{{section_source_files}}
|