mta-mcp 2.13.0 → 2.14.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.
Files changed (24) hide show
  1. package/agents/flutter.agent.md +117 -1147
  2. package/agents/vue3.agent.md +177 -464
  3. package/dist/index.d.ts +63 -0
  4. package/dist/index.js +551 -132
  5. package/dist/index.js.map +1 -1
  6. package/package.json +2 -1
  7. package/troubleshooting/README.md +366 -0
  8. package/troubleshooting/USAGE_GUIDE.md +289 -0
  9. package/troubleshooting/flutter/clip-/351/230/264/345/275/261/350/243/201/345/211/252.md +244 -0
  10. package/troubleshooting/flutter/input-/345/255/227/346/256/265/347/274/272/345/244/261.md +240 -0
  11. package/troubleshooting/flutter/input-/350/276/271/346/241/206/351/227/256/351/242/230.md +236 -0
  12. package/troubleshooting/flutter/layout-/345/260/272/345/257/270/344/270/215/345/214/271/351/205/215.md +214 -0
  13. package/troubleshooting/flutter/shadow-/351/200/217/345/207/272/351/227/256/351/242/230.md +172 -0
  14. package/troubleshooting/flutter/sketch-/345/233/276/346/240/207/345/260/272/345/257/270.md +135 -0
  15. package/troubleshooting/flutter/sketch-/345/256/214/346/225/264/346/217/220/345/217/226.md +201 -0
  16. package/troubleshooting/flutter/sketch-/345/261/236/346/200/247/346/234/252/344/275/277/347/224/250.md +139 -0
  17. package/troubleshooting/flutter/svg-/346/234/252/345/261/205/344/270/255.md +120 -0
  18. package/troubleshooting/flutter/svg-/351/242/234/350/211/262/345/274/202/345/270/270.md +117 -0
  19. package/troubleshooting/flutter/tabbar-/345/212/250/347/224/273/345/220/214/346/255/245.md +107 -0
  20. package/troubleshooting/flutter/withopacity-/345/274/203/347/224/250.md +81 -0
  21. package/troubleshooting/vue3/cascader-/350/257/257/346/233/277/346/215/242.md +130 -0
  22. package/troubleshooting/vue3/drawer-input-/346/240/267/345/274/217.md +181 -0
  23. package/troubleshooting/vue3/table-/347/274/226/350/276/221/345/217/226/346/266/210.md +148 -0
  24. package/troubleshooting/vue3/table-/350/276/271/346/241/206/351/227/256/351/242/230.md +178 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mta-mcp",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "description": "MTA - 智能项目分析与编码规范管理 MCP 服务器",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,6 +22,7 @@
22
22
  "agents/",
23
23
  "common/",
24
24
  "templates/",
25
+ "troubleshooting/",
25
26
  "README.md"
26
27
  ],
27
28
  "scripts": {
@@ -0,0 +1,366 @@
1
+ # 故障排除案例库
2
+
3
+ > 基于真实项目经验总结的问题解决方案,通过 MCP 工具让 AI 快速获取经验
4
+
5
+ ---
6
+
7
+ ## 🎯 定位与职责
8
+
9
+ ### Troubleshooting vs Standards
10
+
11
+ | 维度 | Troubleshooting(问题解决) | Standards(编码规范) |
12
+ |------|---------------------------|---------------------|
13
+ | **用途** | 解决具体问题和错误 | 定义编码风格和最佳实践 |
14
+ | **使用时机** | 遇到错误、异常、效果不符 | 编写新功能、参考推荐写法 |
15
+ | **内容** | 完整解决方案 + 错误路线 | 禁止模式 + 推荐写法 |
16
+ | **示例** | "阴影透出问题如何解决" | "如何使用 Token 系统" |
17
+ | **MCP 工具** | `troubleshoot()` | `get_relevant_standards()` |
18
+
19
+ **简单判断**:
20
+ - 有明确的"问题" → **Troubleshooting**
21
+ - 需要"规范"指导 → **Standards**
22
+
23
+ ---
24
+
25
+ ## 🎯 核心理念
26
+
27
+ **问题是避免不了的,但踩过的坑不应该重复踩!**
28
+
29
+ ### 旧流程(低效)
30
+ 1. AI 猜测方案 A → 失败 → 2-3 轮对话
31
+ 2. AI 猜测方案 B → 失败 → 2-3 轮对话
32
+ 3. 用户提示"去 troubleshooting 看看" → 成功
33
+ 4. **浪费 6-10 轮对话**
34
+
35
+ ### 新流程(高效)
36
+ 1. AI 调用 `troubleshoot` 工具 → 直接获得验证方案 → **1 轮解决!**
37
+
38
+ ---
39
+
40
+ ## 🚀 MCP 工具
41
+
42
+ ### `troubleshoot` - 语义化查询(推荐 ⭐)
43
+
44
+ 直接传入问题描述,系统自动识别框架和提取关键词:
45
+
46
+ ```typescript
47
+ // AI 直接传入用户描述
48
+ troubleshoot({
49
+ problem: "Flutter 新拟态阴影透出来了,容器比设计稿暗"
50
+ })
51
+
52
+ // 系统自动:
53
+ // 1. 检测框架 → Flutter
54
+ // 2. 提取关键词 → [shadow, 阴影, 新拟态, neumorphism]
55
+ // 3. 搜索匹配案例
56
+ // 4. 返回排序后的结果(包含预览摘要和应避免的错误路线)
57
+ ```
58
+
59
+ **返回示例**:
60
+ ```json
61
+ {
62
+ "detectedFramework": "flutter",
63
+ "extractedKeywords": ["shadow", "阴影", "新拟态"],
64
+ "cases": [
65
+ {
66
+ "caseId": "shadow-透出问题",
67
+ "title": "Flutter 阴影透出问题",
68
+ "score": 70,
69
+ "preview": "根本原因:BoxDecoration 的阴影是画在透明底上...",
70
+ "wrongApproaches": ["降低阴影透明度 → 无效,颜色会变淡"]
71
+ }
72
+ ]
73
+ }
74
+ ```
75
+
76
+ ### `query_troubleshooting_cases` - 精确查询
77
+
78
+ 当需要指定框架或关键词时使用:
79
+
80
+ ```typescript
81
+ query_troubleshooting_cases({
82
+ framework: "flutter",
83
+ keywords: ["shadow", "transparency"],
84
+ errorMessage: "阴影透出来了"
85
+ })
86
+ ```
87
+
88
+ ### `get_troubleshooting_case` - 获取完整方案
89
+
90
+ ```typescript
91
+ get_troubleshooting_case({
92
+ framework: "flutter",
93
+ caseId: "shadow-透出问题"
94
+ })
95
+ ```
96
+
97
+ ### `list_troubleshooting_cases` - 列出所有案例
98
+
99
+ ```typescript
100
+ list_troubleshooting_cases({ framework: "flutter" })
101
+ ```
102
+
103
+ ---
104
+
105
+ ## 📚 案例清单
106
+
107
+ ### Flutter (11 个案例)
108
+
109
+ | 案例ID | 问题类型 | 关键词 |
110
+ |--------|----------|--------|
111
+ | shadow-透出问题 | 阴影透出/容器变暗 | shadow, transparency, neumorphism |
112
+ | clip-阴影裁剪 | 阴影被裁剪 | clip, clipBehavior |
113
+ | layout-尺寸不匹配 | 布局尺寸偏移 | layout, size, spacing |
114
+ | input-边框问题 | 输入框边框异常 | input, border, focus |
115
+ | input-字段缺失 | 组件字段缺失 | property, field |
116
+ | tabbar-动画同步 | TabBar动画不同步 | animation, tabbar, color |
117
+ | svg-颜色异常 | SVG颜色不对 | svg, color, colorfilter |
118
+ | svg-未居中 | SVG未居中 | svg, viewbox, center |
119
+ | sketch-图标尺寸 | 图标尺寸提取错误 | sketch, icon, group, shape |
120
+ | sketch-属性未使用 | 属性定义但未使用 | property, unused |
121
+ | withopacity-弃用 | withOpacity弃用警告 | opacity, deprecated |
122
+
123
+ ### Vue3 (1 个案例)
124
+
125
+ | 案例ID | 问题类型 | 关键词 |
126
+ |--------|----------|--------|
127
+ | table-边框问题 | Element Plus表格边框 | table, border, css |
128
+
129
+ ---
130
+
131
+ ## 📝 案例格式规范
132
+
133
+ 每个案例文件需包含以下结构:
134
+
135
+ ```markdown
136
+ # {问题标题}
137
+
138
+ > **问题标签**: `tag1`, `tag2`, `tag3`
139
+ > **框架**: Flutter / Vue3 / React
140
+ > **严重程度**: 低/中等/高
141
+
142
+ ---
143
+
144
+ ## 🔍 问题识别
145
+
146
+ ### 用户描述关键词
147
+ - "xxx"
148
+ - "yyy"
149
+
150
+ ### 问题特征
151
+ - [ ] 特征1
152
+ - [ ] 特征2
153
+
154
+ ---
155
+
156
+ ## 🎯 核心原理
157
+
158
+ **根本原因**:...
159
+
160
+ ---
161
+
162
+ ## ✅ 正确解决方案
163
+
164
+ ### 方案代码
165
+ \`\`\`dart
166
+ // 正确代码示例
167
+ \`\`\`
168
+
169
+ ---
170
+
171
+ ## ❌ 常见错误排查路线(避免重复)
172
+
173
+ | 尝试方向 | 为什么无效 | 浪费时间 |
174
+ |----------|-----------|---------|
175
+ | xxx | xxx | 1-2 轮 |
176
+
177
+ ---
178
+
179
+ ## 📁 适用场景
180
+
181
+ - ✅ 场景1
182
+ - ✅ 场景2
183
+ ```
184
+
185
+ ---
186
+
187
+ ## 🔧 添加新案例
188
+
189
+ 1. 在对应框架目录创建 `.md` 文件(如 `flutter/新问题.md`)
190
+ 2. 按照上述格式编写内容
191
+ 3. 确保包含 `问题标签` 行(用于匹配)
192
+ 4. 运行 `npm run build` 重新构建
193
+ 5. 测试查询是否能正确匹配
194
+
195
+ ---
196
+
197
+ **版本**: v2.14.0
198
+ **案例总数**: 12 个
199
+ **最后更新**: 2026-01-17
200
+
201
+ ---
202
+
203
+ ## 📖 Agent 工作流程
204
+
205
+ Agent(如 flutter.agent.md、vue3.agent.md)被精简为引导文档,核心职责:
206
+
207
+ 1. **检测问题** - 识别用户描述的是问题还是功能需求
208
+ 2. **调用 troubleshoot** - 如果是问题,先查询案例库
209
+ 3. **应用方案** - 使用验证过的解决方案
210
+ 4. **加载规范** - 如果是新功能,加载编码规范
211
+
212
+ **Agent 精简效果**:
213
+ - flutter.agent.md: 1240 行 → 195 行(**-84%**)
214
+ - vue3.agent.md: 591 行 → 285 行(**-52%**)
215
+
216
+ 详细方案和代码示例都迁移到了 troubleshooting 案例中。
217
+
218
+ ---
219
+
220
+ ## 📚 当前可用案例
221
+
222
+ ### Flutter
223
+
224
+ | 案例 | 问题类型 | 关键词 | 节省时间 | 状态 |
225
+ |------|---------|--------|---------|------|
226
+ | [shadow-透出问题](./flutter/shadow-透出问题.md) | UI渲染 | shadow, neumorphism, transparency | 6-10轮 | ✅ |
227
+ | [layout-尺寸不匹配](./flutter/layout-尺寸不匹配.md) | 布局偏差 | layout, sizing, design-spec | 4-7轮 | ✅ |
228
+ | [input-字段缺失](./flutter/input-字段缺失.md) | 组件配置 | component, props, missing-field | 2-4轮 | ✅ |
229
+ | [clip-阴影裁剪](./flutter/clip-阴影裁剪.md) | 布局裁剪 | clip, shadow, overflow | 7-11轮 | ✅ |
230
+ | [input-边框问题](./flutter/input-边框问题.md) | 主题冲突 | textfield, border, focus | 6-9轮 | ✅ |
231
+
232
+ **总计**: 5 个案例,节省 25-41 轮对话
233
+
234
+ ### Vue 3 + Element Plus
235
+
236
+ | 案例 | 问题类型 | 关键词 | 节省时间 | 状态 |
237
+ |------|---------|--------|---------|------|
238
+ | [table-边框问题](./vue3/table-边框问题.md) | 样式冲突 | table, border, css-conflict | 6-10轮 | ✅ |
239
+
240
+ **总计**: 1 个案例
241
+
242
+ ---
243
+
244
+ ## 🎯 匹配算法优化(v2.13.0)
245
+
246
+ ### 评分维度(总分100+)
247
+
248
+ 1. **标签匹配** (40分) - 关键词出现在案例标签中
249
+ 2. **标题匹配** (30分) - 关键词出现在案例标题中
250
+ 3. **问题类型匹配** (15分) - 关键词与问题分类相关
251
+ 4. **错误信息匹配** (30分) - 用户描述与案例内容相似度
252
+ 5. **精确标签奖励** (+15分/个) - 关键词与标签完全一致
253
+
254
+ ### 智能过滤阈值
255
+
256
+ - **基础**: 分数≥10
257
+ - **有错误信息**: 分数≥5(更宽松)
258
+ - **关键词≥3个**: 分数≥15(更严格)
259
+
260
+ ### 预览优化
261
+
262
+ 优先级顺序:
263
+ 1. "核心原理"章节
264
+ 2. "问题原因"章节
265
+ 3. "问题识别"章节
266
+ 4. 文档开头非空内容
267
+
268
+ ---
269
+
270
+ ## ✍️ 贡献案例
271
+
272
+ ### 案例格式规范
273
+
274
+ 每个案例文件应包含:
275
+
276
+ ```markdown
277
+ # 问题标题
278
+
279
+ > **问题标签**: `tag1`, `tag2`
280
+ > **框架**: Flutter/Vue3/React
281
+ > **严重程度**: 低/中/高
282
+
283
+ ## 🔍 问题识别
284
+ - 自动检测特征(代码模式)
285
+ - 用户描述关键词
286
+ - 问题特征 checklist
287
+
288
+ ## ❌ 常见错误排查路线
289
+ - 列出无效的尝试方向
290
+ - 说明为什么无效
291
+ - 估算浪费的时间
292
+
293
+ ## ✅ 正确解决方案
294
+ - 核心原理
295
+ - 完整代码
296
+ - 使用示例
297
+
298
+ ## 📋 适用场景
299
+ ## 🔗 相关案例
300
+ ```
301
+
302
+ ### 提交流程
303
+
304
+ 1. 在项目中遇到需要多轮对话才解决的问题
305
+ 2. 整理问题特征、错误路线、正确方案
306
+ 3. 按照格式创建 Markdown 文件
307
+ 4. 提交到对应框架目录
308
+
309
+ ---
310
+
311
+ ## 🤖 技术实现
312
+
313
+ ### MCP 工具定义
314
+
315
+ ```typescript
316
+ {
317
+ name: 'query_troubleshooting_cases',
318
+ description: '根据问题特征查询相关的故障排除案例',
319
+ inputSchema: {
320
+ type: 'object',
321
+ properties: {
322
+ framework: {
323
+ type: 'string',
324
+ enum: ['flutter', 'vue3', 'react', 'common']
325
+ },
326
+ keywords: {
327
+ type: 'array',
328
+ items: { type: 'string' },
329
+ description: '问题关键词,如 shadow, layout, i18n'
330
+ },
331
+ errorMessage: {
332
+ type: 'string',
333
+ description: '错误信息或用户描述'
334
+ },
335
+ codePattern: {
336
+ type: 'string',
337
+ description: '问题代码片段'
338
+ }
339
+ }
340
+ }
341
+ }
342
+ ```
343
+
344
+ ### 匹配算法
345
+
346
+ 1. **关键词匹配** - 计算用户输入与案例标签的重合度
347
+ 2. **错误信息匹配** - 搜索案例中的错误特征
348
+ 3. **代码模式匹配** - 使用正则匹配已知问题代码
349
+ 4. **相关性排序** - 按匹配度返回最相关的 3-5 个案例
350
+
351
+ ---
352
+
353
+ ## 📊 效果统计
354
+
355
+ 通过引入故障排除案例库,预计可以:
356
+
357
+ - **减少对话轮数**: 平均每个问题减少 4-6 轮
358
+ - **提高解决率**: 首次建议成功率从 30% → 70%
359
+ - **知识复用**: 避免重复踩坑
360
+ - **降低 Token 消耗**: 精准推荐减少无效尝试
361
+
362
+ ---
363
+
364
+ **维护者**: MTA工作室
365
+ **创建日期**: 2026-01-16
366
+ **版本**: v1.0
@@ -0,0 +1,289 @@
1
+ # 故障排除案例库使用指南
2
+
3
+ > v2.13.0 新增功能 - 让 Copilot 从你的经验中学习
4
+
5
+ ---
6
+
7
+ ## 🎯 核心价值
8
+
9
+ ### 问题场景
10
+
11
+ 你正在还原 UI 设计稿,遇到阴影透出问题:
12
+
13
+ **传统流程**(需要 8-10 轮对话):
14
+ ```
15
+ 你: 阴影不对
16
+ Copilot: 试试降低透明度?
17
+ 你: 没用
18
+ Copilot: 改改阴影颜色?
19
+ 你: 还是不对
20
+ Copilot: 调整 blurRadius?
21
+ 你: 治标不治本
22
+ ...(反复多轮)
23
+ 最后: 使用 CustomPainter 绘制空心阴影
24
+ ```
25
+
26
+ **使用案例库**(1 轮解决):
27
+ ```
28
+ 你: Flutter 新拟态阴影透出问题
29
+ Copilot: [查询案例库] 找到匹配案例 "shadow-透出问题"
30
+ 根因:BoxShadow 绘制在容器下方,半透明背景导致阴影透出
31
+ 方案:使用 HollowShadowPainter
32
+ [直接提供完整代码]
33
+ 你: 完美!
34
+ ```
35
+
36
+ **节省**: 7-9 轮对话,约 10-15 分钟
37
+
38
+ ---
39
+
40
+ ## 🚀 快速开始
41
+
42
+ ### 1. 更新 MCP 服务器
43
+
44
+ ```bash
45
+ cd /Users/pailasi/Work/copilot-prompts/mcp-server
46
+ npm run build
47
+ ```
48
+
49
+ ### 2. 在 Copilot Chat 中使用
50
+
51
+ #### 场景 A:遇到具体问题
52
+
53
+ ```
54
+ @copilot 我的 Flutter 新拟态容器背景比设计稿暗,阴影好像透出来了
55
+ ```
56
+
57
+ Copilot 会自动:
58
+ 1. 识别关键词:`flutter`, `新拟态`, `阴影透出`
59
+ 2. 调用 `query_troubleshooting_cases`
60
+ 3. 返回最相关的案例和解决方案
61
+
62
+ #### 场景 B:主动查询
63
+
64
+ ```
65
+ @copilot 查询 Vue3 表格边框相关的故障排除案例
66
+ ```
67
+
68
+ #### 场景 C:列出所有案例
69
+
70
+ ```
71
+ @copilot 列出所有 Flutter 故障排除案例
72
+ ```
73
+
74
+ ---
75
+
76
+ ## 🧪 MCP 工具使用
77
+
78
+ ### query_troubleshooting_cases
79
+
80
+ **参数**:
81
+ ```typescript
82
+ {
83
+ framework?: "flutter" | "vue3" | "react" | "common",
84
+ keywords?: string[], // 问题关键词
85
+ errorMessage?: string, // 错误信息
86
+ codePattern?: string, // 问题代码片段
87
+ limit?: number // 最多返回案例数(默认5)
88
+ }
89
+ ```
90
+
91
+ **返回**:
92
+ ```typescript
93
+ {
94
+ cases: [
95
+ {
96
+ id: "shadow-透出问题",
97
+ title: "Flutter 阴影透出问题",
98
+ framework: "flutter",
99
+ tags: ["shadow", "neumorphism", "transparency"],
100
+ matchScore: 85, // 匹配度 0-100
101
+ timeSaved: "6-10轮对话",
102
+ preview: "问题根源:BoxShadow 绘制在容器下方..."
103
+ }
104
+ ],
105
+ totalFound: 3,
106
+ queryInfo: { framework: "flutter", keywords: ["shadow"] }
107
+ }
108
+ ```
109
+
110
+ ### get_troubleshooting_case
111
+
112
+ **获取案例完整内容**:
113
+ ```typescript
114
+ {
115
+ framework: "flutter",
116
+ caseId: "shadow-透出问题"
117
+ }
118
+ ```
119
+
120
+ **返回**:
121
+ ```typescript
122
+ {
123
+ content: "# Flutter 阴影透出问题\n\n...", // 完整 Markdown
124
+ metadata: { ... }
125
+ }
126
+ ```
127
+
128
+ ---
129
+
130
+ ## 📝 贡献案例
131
+
132
+ ### 何时创建案例?
133
+
134
+ - ✅ 问题需要 **3 轮以上对话**才解决
135
+ - ✅ 错误路线明确(知道哪些方案无效)
136
+ - ✅ 有明确的**正确方案**
137
+ - ✅ 问题有**通用性**(其他项目可能遇到)
138
+
139
+ ### 案例模板
140
+
141
+ 在 `troubleshooting/{framework}/` 下创建 Markdown 文件:
142
+
143
+ ```markdown
144
+ # 问题标题
145
+
146
+ > **问题标签**: `tag1`, `tag2`, `tag3`
147
+ > **问题类型**: 分类名称
148
+ > **框架**: Flutter/Vue3/React
149
+ > **严重程度**: 低/中/高
150
+
151
+ ---
152
+
153
+ ## 🔍 问题识别
154
+
155
+ ### 自动检测特征
156
+ - 代码模式:\`\`\`dart ... \`\`\`
157
+ - 错误信息关键词
158
+
159
+ ### 用户描述关键词
160
+ - "xxx不对"
161
+ - "xxx比设计稿暗"
162
+
163
+ ### 问题特征 Checklist
164
+ - [ ] 特征1
165
+ - [ ] 特征2
166
+
167
+ ---
168
+
169
+ ## ❌ 常见错误排查路线(避免重复)
170
+
171
+ | 尝试方向 | 为什么无效 | 浪费时间 |
172
+ |----------|-----------|---------|
173
+ | 方案A | 原因 | 2轮 |
174
+ | 方案B | 原因 | 3轮 |
175
+
176
+ **总计浪费**: X 轮对话
177
+
178
+ ---
179
+
180
+ ## ✅ 正确解决方案
181
+
182
+ ### 核心原理
183
+ 解释问题根因...
184
+
185
+ ### 解决方法
186
+ \`\`\`dart
187
+ // 完整代码
188
+ \`\`\`
189
+
190
+ ### 使用示例
191
+ \`\`\`dart
192
+ // 实际应用
193
+ \`\`\`
194
+
195
+ ---
196
+
197
+ ## 📋 适用场景
198
+ - ✅ 场景1
199
+ - ✅ 场景2
200
+
201
+ ## 🔗 相关案例
202
+ - [相关案例1](./xxx.md)
203
+
204
+ ---
205
+
206
+ **来源**: 项目名
207
+ **创建日期**: YYYY-MM-DD
208
+ **节省时间**: X-Y 轮对话
209
+ ```
210
+
211
+ ---
212
+
213
+ ## 🤖 Agent 集成
214
+
215
+ 最新的 Agent 配置已自动包含案例库查询:
216
+
217
+ ### Flutter Agent
218
+
219
+ ```markdown
220
+ ## ⚠️ 强制工作流
221
+
222
+ ### 步骤 0: 遇到问题时优先查询案例库 🆘
223
+
224
+ **如果遇到以下情况,立即查询故障排除案例:**
225
+ - 编译错误或运行时错误
226
+ - UI 还原与设计稿不符
227
+ - 需要多轮对话才能解决的问题
228
+
229
+ \`\`\`
230
+ query_troubleshooting_cases({
231
+ framework: "flutter",
232
+ keywords: ["问题关键词"],
233
+ errorMessage: "错误描述"
234
+ })
235
+ \`\`\`
236
+ ```
237
+
238
+ ### Vue3 Agent
239
+
240
+ ```markdown
241
+ ### 步骤 0: 遇到问题时优先查询案例库 🆘
242
+
243
+ **常见问题关键词**:
244
+ - `table`, `border` - 表格边框问题
245
+ - `i18n`, `hardcode` - 国际化硬编码
246
+ - `css`, `style` - 样式冲突
247
+ ```
248
+
249
+ ---
250
+
251
+ ## 📊 效果统计
252
+
253
+ 基于 my_flutter 项目实测:
254
+
255
+ | 问题类型 | 传统耗时 | 使用案例库 | 节省 |
256
+ |---------|---------|-----------|------|
257
+ | 新拟态阴影透出 | 10轮 | 1轮 | 90% |
258
+ | 输入框布局不匹配 | 6轮 | 1-2轮 | 70% |
259
+ | 组件字段缺失 | 3轮 | 1轮 | 66% |
260
+
261
+ **平均节省**: 4-8 轮对话/问题
262
+
263
+ ---
264
+
265
+ ## 🔮 路线图
266
+
267
+ ### v2.13.0 ✅
268
+ - [x] 基础案例库结构
269
+ - [x] MCP 工具实现
270
+ - [x] Agent 集成
271
+ - [x] Flutter 首个案例
272
+ - [x] Vue3 首个案例
273
+
274
+ ### v2.14.0(规划中)
275
+ - [ ] 自动问题检测(基于错误信息)
276
+ - [ ] 代码模式匹配
277
+ - [ ] 更多框架支持(React, Angular)
278
+ - [ ] 案例贡献工作流
279
+
280
+ ### v2.15.0(规划中)
281
+ - [ ] AI 辅助案例生成
282
+ - [ ] 相似问题推荐
283
+ - [ ] 案例有效性反馈机制
284
+
285
+ ---
286
+
287
+ **维护者**: MTA工作室
288
+ **创建日期**: 2026-01-16
289
+ **版本**: v2.13.0