@templmf/temp-solf-lmf 0.0.124 → 0.0.125
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/package.json +1 -1
- package/vue-devtools.skill +0 -0
- package/AGENTS.md +0 -248
package/package.json
CHANGED
|
Binary file
|
package/AGENTS.md
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
|
|
3
|
-
# AI Engineering Rules
|
|
4
|
-
|
|
5
|
-
本文件定义 AI 编码助手在本仓库中的行为规则。
|
|
6
|
-
|
|
7
|
-
所有 AI 助手 MUST:
|
|
8
|
-
|
|
9
|
-
1. 先识别任务类型
|
|
10
|
-
2. 再读取对应 spec
|
|
11
|
-
3. 最后开始修改代码
|
|
12
|
-
|
|
13
|
-
禁止在未读取相关规范前直接生成代码。
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# 1. Global Rules
|
|
18
|
-
|
|
19
|
-
## 1.1 Existing Code First
|
|
20
|
-
|
|
21
|
-
AI MUST 优先遵循现有项目代码风格:
|
|
22
|
-
|
|
23
|
-
* 目录结构
|
|
24
|
-
* import 顺序
|
|
25
|
-
* 命名方式
|
|
26
|
-
* 状态管理模式
|
|
27
|
-
* UI 组件库
|
|
28
|
-
* API 封装方式
|
|
29
|
-
* CSS 方案
|
|
30
|
-
|
|
31
|
-
禁止无理由引入新的架构风格。
|
|
32
|
-
|
|
33
|
-
---
|
|
34
|
-
|
|
35
|
-
## 1.2 Minimal Changes
|
|
36
|
-
|
|
37
|
-
AI MUST:
|
|
38
|
-
|
|
39
|
-
* 最小化修改范围
|
|
40
|
-
* 避免无关重构
|
|
41
|
-
* 避免大规模格式化
|
|
42
|
-
* 保持现有行为兼容
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## 1.3 Requirement Priority
|
|
47
|
-
|
|
48
|
-
优先级:
|
|
49
|
-
|
|
50
|
-
```text id="o0cqwf"
|
|
51
|
-
用户明确需求
|
|
52
|
-
> spec.md
|
|
53
|
-
> README.md
|
|
54
|
-
> 默认框架习惯
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
# 2. Initial Task Workflow
|
|
60
|
-
|
|
61
|
-
开始任务时 MUST:
|
|
62
|
-
|
|
63
|
-
1. 分析任务类型
|
|
64
|
-
2. 检查当前技术栈
|
|
65
|
-
3. 加载对应 spec
|
|
66
|
-
4. 再生成代码
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
# 3. Frontend Spec Routing
|
|
71
|
-
|
|
72
|
-
当任务涉及以下内容时:
|
|
73
|
-
|
|
74
|
-
* Vue
|
|
75
|
-
* Reactivity
|
|
76
|
-
* Pinia
|
|
77
|
-
* Vuex
|
|
78
|
-
* Axios
|
|
79
|
-
* 页面开发
|
|
80
|
-
* 组件开发
|
|
81
|
-
* Vite
|
|
82
|
-
* CSS
|
|
83
|
-
* UI 组件库
|
|
84
|
-
|
|
85
|
-
AI MUST 读取对应 frontend spec。
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 4.1 Frontend Architecture
|
|
90
|
-
|
|
91
|
-
涉及:
|
|
92
|
-
|
|
93
|
-
* 新模块
|
|
94
|
-
* 目录结构
|
|
95
|
-
* alias
|
|
96
|
-
|
|
97
|
-
MUST 读取:
|
|
98
|
-
|
|
99
|
-
```text id="4r6jgt"
|
|
100
|
-
~/.config/openspec/specs/frontend/project-structure/spec.md
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## 4.2 Vue Components
|
|
106
|
-
|
|
107
|
-
涉及:
|
|
108
|
-
|
|
109
|
-
* Vue SFC
|
|
110
|
-
* script setup
|
|
111
|
-
* props
|
|
112
|
-
* emits
|
|
113
|
-
* 页面组件
|
|
114
|
-
* UI 封装
|
|
115
|
-
|
|
116
|
-
MUST 读取:
|
|
117
|
-
|
|
118
|
-
```text id="b4mglg"
|
|
119
|
-
~/.config/openspec/specs/frontend/component-patterns/spec.md
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## 4.3 Frontend API
|
|
125
|
-
|
|
126
|
-
涉及:
|
|
127
|
-
|
|
128
|
-
* axios
|
|
129
|
-
* request
|
|
130
|
-
* api service
|
|
131
|
-
* fetch
|
|
132
|
-
* 上传下载
|
|
133
|
-
* SSE
|
|
134
|
-
* websocket
|
|
135
|
-
|
|
136
|
-
MUST 读取:
|
|
137
|
-
|
|
138
|
-
```text id="jlwmrp"
|
|
139
|
-
~/.config/openspec/specs/frontend/api-requests/spec.md
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
---
|
|
143
|
-
|
|
144
|
-
## 4.4 Frontend State
|
|
145
|
-
|
|
146
|
-
涉及:
|
|
147
|
-
|
|
148
|
-
* Pinia
|
|
149
|
-
* Vuex
|
|
150
|
-
* store
|
|
151
|
-
* 全局状态
|
|
152
|
-
* 用户信息
|
|
153
|
-
* 权限状态
|
|
154
|
-
|
|
155
|
-
当为 Pinia MUST 读取:
|
|
156
|
-
|
|
157
|
-
```text id="8z5rx8"
|
|
158
|
-
~/.config/openspec/specs/frontend/state-management/spec.md
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
当为 Vuex MUST 读取:
|
|
162
|
-
|
|
163
|
-
```text id="8z5rx8"
|
|
164
|
-
~/.config/openspec/specs/frontend/state-management-vuex/spec.md
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
---
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
# 5. Technology Detection
|
|
171
|
-
|
|
172
|
-
生成代码前 MUST 检查:
|
|
173
|
-
|
|
174
|
-
* package.json
|
|
175
|
-
* tsconfig.json
|
|
176
|
-
* vite.config.*
|
|
177
|
-
* webpack.config.*
|
|
178
|
-
* eslint config
|
|
179
|
-
* 现有代码风格
|
|
180
|
-
|
|
181
|
-
用于确认:
|
|
182
|
-
|
|
183
|
-
* JS / TS
|
|
184
|
-
* Vue2 / Vue3
|
|
185
|
-
* Pinia / Vuex
|
|
186
|
-
* UI 组件库
|
|
187
|
-
* CSS 方案
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
# 6. UI Component Rules
|
|
192
|
-
|
|
193
|
-
AI MUST:
|
|
194
|
-
|
|
195
|
-
1. 检查 package.json
|
|
196
|
-
2. 检查现有组件 import
|
|
197
|
-
3. 检查模板风格
|
|
198
|
-
4. 再决定使用哪个 UI 组件库
|
|
199
|
-
|
|
200
|
-
禁止:
|
|
201
|
-
|
|
202
|
-
* Element Plus 与 Ant Design Vue 混用
|
|
203
|
-
* Naive UI 与 Element 混用
|
|
204
|
-
|
|
205
|
-
除非项目本身已经混用。
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
# 7. Dependency Rules
|
|
210
|
-
|
|
211
|
-
新增依赖前 MUST:
|
|
212
|
-
|
|
213
|
-
1. 检查项目是否已有类似依赖
|
|
214
|
-
2. 优先复用现有技术栈
|
|
215
|
-
3. 评估 bundle size
|
|
216
|
-
4. 评估兼容性
|
|
217
|
-
|
|
218
|
-
禁止随意新增大型依赖。
|
|
219
|
-
|
|
220
|
-
---
|
|
221
|
-
|
|
222
|
-
# 8. Unsafe Operations
|
|
223
|
-
|
|
224
|
-
未经用户明确允许:
|
|
225
|
-
|
|
226
|
-
AI MUST NOT:
|
|
227
|
-
|
|
228
|
-
* 删除大量代码
|
|
229
|
-
* 修改数据库结构
|
|
230
|
-
* 修改 CI/CD
|
|
231
|
-
* 修改 package manager
|
|
232
|
-
* 修改 lint/prettier
|
|
233
|
-
* 修改构建体系
|
|
234
|
-
* 修改环境变量
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
# 9. Spec Maintenance
|
|
239
|
-
|
|
240
|
-
当发现:
|
|
241
|
-
|
|
242
|
-
* 当前代码与 spec 不一致
|
|
243
|
-
* spec 已过时
|
|
244
|
-
* 规范存在冲突
|
|
245
|
-
|
|
246
|
-
AI SHOULD 提醒用户更新 spec。
|
|
247
|
-
|
|
248
|
-
AI MUST NOT 自动修改 spec。
|