@superspec/cli 1.0.0 → 1.1.1
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/dist/cli/index.js +295 -258
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +159 -103
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/prompts/agents.md +51 -9
- package/prompts/{cursor-rules.md → rules.md} +7 -7
- package/templates/en/commands/ss-archive.md +12 -2
- package/templates/en/commands/ss-create.md +91 -8
- package/templates/en/commands/ss-link.md +12 -2
- package/templates/en/commands/ss-search.md +12 -3
- package/templates/en/commands/ss-specs.md +54 -0
- package/templates/en/commands/ss-validate.md +12 -2
- package/templates/en/design.md +126 -0
- package/templates/zh/commands/ss-archive.md +12 -2
- package/templates/zh/commands/ss-create.md +91 -8
- package/templates/zh/commands/ss-link.md +12 -2
- package/templates/zh/commands/ss-search.md +12 -3
- package/templates/zh/commands/ss-specs.md +54 -0
- package/templates/zh/commands/ss-validate.md +12 -2
- package/templates/zh/design.md +126 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: {{name}}
|
|
3
|
+
status: draft
|
|
4
|
+
strategy: {{strategy}}
|
|
5
|
+
depends_on: []
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# 架构设计: {{name}}
|
|
9
|
+
|
|
10
|
+
> 创建日期: {{date}}
|
|
11
|
+
|
|
12
|
+
## 设计目标
|
|
13
|
+
|
|
14
|
+
<!-- 描述本次架构设计要达成的核心目标 -->
|
|
15
|
+
|
|
16
|
+
## 系统范围
|
|
17
|
+
|
|
18
|
+
<!-- 说明本次变更涉及的系统/模块边界 -->
|
|
19
|
+
|
|
20
|
+
- **影响的系统**:
|
|
21
|
+
- **影响的模块**:
|
|
22
|
+
- **不涉及的范围**:
|
|
23
|
+
|
|
24
|
+
## 架构决策
|
|
25
|
+
|
|
26
|
+
### 决策 1: [决策标题]
|
|
27
|
+
|
|
28
|
+
**上下文**: 为什么需要这个决策?
|
|
29
|
+
|
|
30
|
+
**可选方案**:
|
|
31
|
+
- **方案 A**: [描述]
|
|
32
|
+
- 优点:
|
|
33
|
+
- 缺点:
|
|
34
|
+
- **方案 B**: [描述]
|
|
35
|
+
- 优点:
|
|
36
|
+
- 缺点:
|
|
37
|
+
|
|
38
|
+
**最终选择**: [选择的方案]
|
|
39
|
+
|
|
40
|
+
**理由**: [为什么选择这个方案]
|
|
41
|
+
|
|
42
|
+
### 决策 2: [决策标题]
|
|
43
|
+
|
|
44
|
+
**上下文**:
|
|
45
|
+
|
|
46
|
+
**可选方案**:
|
|
47
|
+
- **方案 A**:
|
|
48
|
+
- **方案 B**:
|
|
49
|
+
|
|
50
|
+
**最终选择**:
|
|
51
|
+
|
|
52
|
+
**理由**:
|
|
53
|
+
|
|
54
|
+
## 架构图
|
|
55
|
+
|
|
56
|
+
<!-- 使用 mermaid 或文本描述关键架构 -->
|
|
57
|
+
|
|
58
|
+
```mermaid
|
|
59
|
+
graph TD
|
|
60
|
+
A[组件A] --> B[组件B]
|
|
61
|
+
B --> C[组件C]
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 数据流
|
|
65
|
+
|
|
66
|
+
<!-- 描述关键数据流转路径 -->
|
|
67
|
+
|
|
68
|
+
1. 用户请求 →
|
|
69
|
+
2. 处理层 →
|
|
70
|
+
3. 存储层 →
|
|
71
|
+
4. 响应
|
|
72
|
+
|
|
73
|
+
## 技术栈选型
|
|
74
|
+
|
|
75
|
+
<!-- 如引入新技术栈,说明选择理由 -->
|
|
76
|
+
|
|
77
|
+
| 技术 | 版本 | 用途 | 选择理由 |
|
|
78
|
+
|------|------|------|---------|
|
|
79
|
+
| | | | |
|
|
80
|
+
|
|
81
|
+
## 性能影响
|
|
82
|
+
|
|
83
|
+
- **预期性能变化**:
|
|
84
|
+
- **潜在瓶颈**:
|
|
85
|
+
- **优化策略**:
|
|
86
|
+
|
|
87
|
+
## 安全考量
|
|
88
|
+
|
|
89
|
+
- **身份认证**:
|
|
90
|
+
- **权限控制**:
|
|
91
|
+
- **数据加密**:
|
|
92
|
+
- **审计日志**:
|
|
93
|
+
|
|
94
|
+
## 扩展性考虑
|
|
95
|
+
|
|
96
|
+
- **水平扩展能力**:
|
|
97
|
+
- **垂直扩展能力**:
|
|
98
|
+
- **未来演进路径**:
|
|
99
|
+
|
|
100
|
+
## 迁移策略
|
|
101
|
+
|
|
102
|
+
<!-- 如涉及重大架构变更,描述迁移步骤 -->
|
|
103
|
+
|
|
104
|
+
1. **阶段 1**:
|
|
105
|
+
2. **阶段 2**:
|
|
106
|
+
3. **阶段 3**:
|
|
107
|
+
|
|
108
|
+
**回滚方案**:
|
|
109
|
+
|
|
110
|
+
## 风险与缓解
|
|
111
|
+
|
|
112
|
+
| 风险 | 影响 | 概率 | 缓解措施 |
|
|
113
|
+
|------|------|------|---------|
|
|
114
|
+
| | | | |
|
|
115
|
+
|
|
116
|
+
## 依赖关系
|
|
117
|
+
|
|
118
|
+
<!-- 本架构设计依赖的其他变更或系统 -->
|
|
119
|
+
|
|
120
|
+
- **依赖的变更**:
|
|
121
|
+
- **依赖的外部系统**:
|
|
122
|
+
- **被依赖方**:
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
**状态**: 🟡 草稿
|