mta-mcp 2.13.0 → 2.15.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 (34) hide show
  1. package/agents/_TEMPLATE.md +153 -0
  2. package/agents/flutter.agent.md +62 -1197
  3. package/agents/i18n.agent.md +50 -105
  4. package/agents/logicflow.agent.md +55 -1525
  5. package/agents/vue3.agent.md +102 -553
  6. package/agents/wechat-miniprogram.agent.md +48 -950
  7. package/dist/index.d.ts +63 -0
  8. package/dist/index.js +915 -548
  9. package/dist/index.js.map +1 -1
  10. package/package.json +2 -1
  11. package/standards/core/mandatory-rules.md +103 -0
  12. package/standards/libraries/logicflow.md +1007 -0
  13. package/templates/config-templates/agents-section.md +9 -0
  14. package/templates/config-templates/custom-section.md +6 -0
  15. package/templates/config-templates/header.md +29 -0
  16. package/templates/config-templates/workflow-minimal.md +44 -0
  17. package/troubleshooting/README.md +366 -0
  18. package/troubleshooting/USAGE_GUIDE.md +289 -0
  19. package/troubleshooting/flutter/clip-/351/230/264/345/275/261/350/243/201/345/211/252.md +244 -0
  20. package/troubleshooting/flutter/input-/345/255/227/346/256/265/347/274/272/345/244/261.md +240 -0
  21. package/troubleshooting/flutter/input-/350/276/271/346/241/206/351/227/256/351/242/230.md +236 -0
  22. package/troubleshooting/flutter/layout-/345/260/272/345/257/270/344/270/215/345/214/271/351/205/215.md +214 -0
  23. package/troubleshooting/flutter/shadow-/351/200/217/345/207/272/351/227/256/351/242/230.md +172 -0
  24. package/troubleshooting/flutter/sketch-/345/233/276/346/240/207/345/260/272/345/257/270.md +135 -0
  25. package/troubleshooting/flutter/sketch-/345/256/214/346/225/264/346/217/220/345/217/226.md +201 -0
  26. package/troubleshooting/flutter/sketch-/345/261/236/346/200/247/346/234/252/344/275/277/347/224/250.md +139 -0
  27. package/troubleshooting/flutter/svg-/346/234/252/345/261/205/344/270/255.md +120 -0
  28. package/troubleshooting/flutter/svg-/351/242/234/350/211/262/345/274/202/345/270/270.md +117 -0
  29. package/troubleshooting/flutter/tabbar-/345/212/250/347/224/273/345/220/214/346/255/245.md +107 -0
  30. package/troubleshooting/flutter/withopacity-/345/274/203/347/224/250.md +81 -0
  31. package/troubleshooting/vue3/cascader-/350/257/257/346/233/277/346/215/242.md +130 -0
  32. package/troubleshooting/vue3/drawer-input-/346/240/267/345/274/217.md +181 -0
  33. package/troubleshooting/vue3/table-/347/274/226/350/276/221/345/217/226/346/266/210.md +148 -0
  34. package/troubleshooting/vue3/table-/350/276/271/346/241/206/351/227/256/351/242/230.md +178 -0
@@ -0,0 +1,153 @@
1
+ # Agent 开发模板
2
+
3
+ > 所有 Agent 必须采用"规范获取指引"模式
4
+ > 版本: v1.0.0 | 创建日期: 2026-01-16
5
+
6
+ ---
7
+
8
+ ## 🎯 设计原则
9
+
10
+ **Agent 的职责是引导 AI 获取规范,而不是嵌入完整规范。**
11
+
12
+ | 应该包含 | 不应该包含 |
13
+ |----------|------------|
14
+ | MCP 工具调用示例 | 完整的代码示例 |
15
+ | 规范 ID 列表 | 详细的规则说明 |
16
+ | 简要提示(10-20行) | 大段代码块 |
17
+ | 问题诊断指引 | 常用模式的完整实现 |
18
+
19
+ ---
20
+
21
+ ## 📋 标准结构
22
+
23
+ ```markdown
24
+ # [框架/技术] 开发代理
25
+
26
+ > 此 Agent 引导 AI 通过 MCP 工具获取 npm 包中的详细规范
27
+ > 版本: vX.X.X | 最后更新: YYYY-MM-DD
28
+
29
+ ---
30
+
31
+ ## 🔴 问题诊断优先(最高优先级)
32
+
33
+ **当用户描述任何问题时,必须首先调用:**
34
+
35
+ \`\`\`
36
+ troubleshoot({ problem: "用户描述的问题" })
37
+ \`\`\`
38
+
39
+ ---
40
+
41
+ ## 📚 规范获取指引
42
+
43
+ **⚠️ 核心原则:写代码前,必须先通过 MCP 工具获取规范!**
44
+
45
+ ### 按文件类型获取
46
+
47
+ | 场景 | MCP 调用 |
48
+ |------|----------|
49
+ | xxx 文件 | \`get_standard_by_id({ id: 'xxx-standard' })\` |
50
+
51
+ ### 按使用的库获取
52
+
53
+ | 库 | MCP 调用 |
54
+ |----|----------|
55
+ | xxx-lib | \`get_standard_by_id({ id: 'xxx-lib' })\` |
56
+
57
+ ### 智能获取(推荐)
58
+
59
+ \`\`\`
60
+ get_compact_standards({ currentFile: "当前文件路径" })
61
+ \`\`\`
62
+
63
+ ---
64
+
65
+ ## 🎯 快速提示
66
+
67
+ > 以下是简要提示,**详细规范请通过上述 MCP 工具获取**
68
+
69
+ ### 必须遵守(3-5条)
70
+
71
+ - ✅ 规则1
72
+ - ✅ 规则2
73
+
74
+ ### 禁止(3-5条)
75
+
76
+ - ❌ 禁止1
77
+ - ❌ 禁止2
78
+
79
+ ---
80
+
81
+ ## 📋 可用规范列表
82
+
83
+ 通过 \`get_standard_by_id({ id: 'xxx' })\` 获取:
84
+
85
+ - \`standard-id-1\` - 描述
86
+ - \`standard-id-2\` - 描述
87
+
88
+ ---
89
+
90
+ **维护团队**: MTA工作室
91
+ **设计理念**: Agent 只提供获取指引,详细规范由 MCP 工具从 npm 包动态获取
92
+ ```
93
+
94
+ ---
95
+
96
+ ## ✅ 检查清单
97
+
98
+ 新建 Agent 时,确保:
99
+
100
+ - [ ] 第一节是"问题诊断优先"
101
+ - [ ] 第二节是"规范获取指引"(包含 MCP 调用表格)
102
+ - [ ] "快速提示"不超过 20 行
103
+ - [ ] 没有大段代码示例(超过 10 行的代码块)
104
+ - [ ] 列出了所有可用的规范 ID
105
+ - [ ] 文件总行数不超过 150 行
106
+
107
+ ---
108
+
109
+ ## 🚫 反面示例
110
+
111
+ ```markdown
112
+ # ❌ 错误:嵌入完整规范
113
+
114
+ ## Vue 3 规范
115
+
116
+ ### Composition API
117
+
118
+ \`\`\`vue
119
+ <script setup lang="ts">
120
+ import { ref, computed, onMounted } from 'vue'
121
+
122
+ // 30 行完整代码示例...
123
+ </script>
124
+ \`\`\`
125
+
126
+ ### 表单处理
127
+
128
+ \`\`\`typescript
129
+ // 又是 20 行完整代码...
130
+ \`\`\`
131
+ ```
132
+
133
+ ```markdown
134
+ # ✅ 正确:指引获取
135
+
136
+ ## 📚 规范获取指引
137
+
138
+ | 场景 | MCP 调用 |
139
+ |------|----------|
140
+ | Vue 组件 | \`get_standard_by_id({ id: 'vue3-composition' })\` |
141
+
142
+ ## 🎯 快速提示
143
+
144
+ - ✅ 使用 Composition API
145
+ - ✅ Props 必须定义类型
146
+ - ❌ 禁止 Options API
147
+
148
+ > 详细规范请通过 MCP 工具获取
149
+ ```
150
+
151
+ ---
152
+
153
+ **此模板适用于所有 Agent,包括现有的和未来添加的。**