momo-ai 1.0.20 → 1.0.22
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/.claude/skills/algorithmic-art/LICENSE.txt +202 -0
- package/.claude/skills/algorithmic-art/SKILL.md +405 -0
- package/.claude/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/.claude/skills/algorithmic-art/templates/viewer.html +599 -0
- package/.claude/skills/r2mo-rad-lain/SKILL.md +101 -0
- package/.cursor/mcp.json +17 -0
- package/.obsidian/app.json +1 -0
- package/.obsidian/appearance.json +4 -0
- package/.obsidian/community-plugins.json +4 -0
- package/.obsidian/core-plugins.json +33 -0
- package/.obsidian/plugins/ai-agent/main.js +98495 -0
- package/.obsidian/plugins/ai-agent/manifest.json +11 -0
- package/.obsidian/plugins/ai-agent/styles.css +806 -0
- package/.obsidian/plugins/dataview/main.js +20876 -0
- package/.obsidian/plugins/dataview/manifest.json +11 -0
- package/.obsidian/plugins/dataview/styles.css +141 -0
- package/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +10 -0
- package/.obsidian/plugins/obsidian-excalidraw-plugin/manifest.json +12 -0
- package/.obsidian/plugins/obsidian-excalidraw-plugin/styles.css +1 -0
- package/.obsidian/plugins/templater-obsidian/main.js +45 -0
- package/.obsidian/plugins/templater-obsidian/manifest.json +11 -0
- package/.obsidian/plugins/templater-obsidian/styles.css +226 -0
- package/.obsidian/plugins/terminal/main.js +200 -0
- package/.obsidian/plugins/terminal/manifest.json +14 -0
- package/.obsidian/plugins/terminal/styles.css +32 -0
- package/.obsidian/themes/AnuPpuccin/manifest.json +7 -0
- package/.obsidian/themes/AnuPpuccin/theme.css +9080 -0
- package/.obsidian/themes/Things/manifest.json +7 -0
- package/.obsidian/themes/Things/theme.css +1628 -0
- package/.obsidian/workspace.json +196 -0
- package/.trae/skills/algorithmic-art/LICENSE.txt +202 -0
- package/.trae/skills/algorithmic-art/SKILL.md +405 -0
- package/.trae/skills/algorithmic-art/templates/generator_template.js +223 -0
- package/.trae/skills/algorithmic-art/templates/viewer.html +599 -0
- package/.trae/skills/doc-coauthoring/SKILL.md +375 -0
- package/.trae/skills/frontend-design/LICENSE.txt +177 -0
- package/.trae/skills/frontend-design/SKILL.md +42 -0
- package/.trae/skills/r2mo-rad-lain/SKILL.md +101 -0
- package/README.md +12 -148
- package/docs/images/logo.jpeg +0 -0
- package/docs/images/r2mo-lain.png +0 -0
- package/install.sh +1 -0
- package/package.json +15 -11
- package/skills/r2mo-rad-domain/SKILL.md +70 -0
- package/skills/r2mo-rad-lain/SKILL.md +101 -0
- package/src/_mcp/skills-server.mjs +70 -0
- package/src/_skill/repositories.json +22 -0
- package/src/_template/LAIN/.obsidian/app.json +1 -0
- package/src/_template/LAIN/.obsidian/appearance.json +10 -0
- package/src/_template/LAIN/.obsidian/community-plugins.json +7 -0
- package/src/_template/LAIN/.obsidian/core-plugins.json +33 -0
- package/src/_template/LAIN/.obsidian/plugins/dataview/main.js +20876 -0
- package/src/_template/LAIN/.obsidian/plugins/dataview/manifest.json +11 -0
- package/src/_template/LAIN/.obsidian/plugins/dataview/styles.css +141 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +815 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +10 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-excalidraw-plugin/manifest.json +12 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-excalidraw-plugin/styles.css +1 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-kanban/main.js +153 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-kanban/manifest.json +11 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-kanban/styles.css +1 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-plantuml/main.js +7732 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-plantuml/manifest.json +10 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-plantuml/styles.css +38 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-tasks-plugin/main.js +504 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-tasks-plugin/manifest.json +12 -0
- package/src/_template/LAIN/.obsidian/plugins/obsidian-tasks-plugin/styles.css +1 -0
- package/src/_template/LAIN/.obsidian/snippets/body-font.css +27 -0
- package/src/_template/LAIN/.obsidian/themes/Primary/manifest.json +9 -0
- package/src/_template/LAIN/.obsidian/themes/Primary/theme.css +3878 -0
- package/src/_template/LAIN/.obsidian/themes/Retro Windows/manifest.json +7 -0
- package/src/_template/LAIN/.obsidian/themes/Retro Windows/theme.css +582 -0
- package/src/_template/LAIN/.obsidian/themes/RetroOS 98/manifest.json +9 -0
- package/src/_template/LAIN/.obsidian/themes/RetroOS 98/theme.css +2566 -0
- package/src/_template/LAIN/.obsidian/types.json +28 -0
- package/src/_template/LAIN/.obsidian/workspace.json +184 -0
- package/src/_template/LAIN/AGENTS.md +170 -16
- package/src/_template/R2MO/domain-enhance.md +10 -0
- package/src/commander/app.json +13 -0
- package/src/commander/apply.json +13 -0
- package/src/commander/ask.json +6 -0
- package/src/commander/docs.json +13 -0
- package/src/commander/domain.json +19 -0
- package/src/commander/help.json +5 -0
- package/src/commander/init.json +1 -1
- package/src/commander/mcp.json +13 -0
- package/src/commander/mmr0.json +6 -0
- package/src/commander/mmr2.json +6 -0
- package/src/commander/open.json +8 -2
- package/src/executor/executeApp.js +133 -0
- package/src/executor/executeApply.js +611 -0
- package/src/executor/executeAsk.js +274 -0
- package/src/executor/executeDocs.js +498 -0
- package/src/executor/executeDomain.js +293 -0
- package/src/executor/executeEnv.js +48 -38
- package/src/executor/executeHelp.js +77 -16
- package/src/executor/executeInit.js +176 -346
- package/src/executor/executeMcp.js +363 -0
- package/src/executor/executeMmr0.js +488 -0
- package/src/executor/executeMmr2.js +880 -0
- package/src/executor/executeOpen.js +144 -125
- package/src/executor/index.js +17 -39
- package/src/momo.js +2 -1
- package/src/python/r2mo_proto.py +418 -0
- package/src/python/r2mo_proto_database.py +369 -0
- package/src/python/r2mo_proto_domain.py +458 -0
- package/src/utils/momo-args.js +39 -0
- package/src/utils/momo-file-utils.js +75 -0
- package/src/utils/momo-menu.js +84 -0
- package/src/_template/LAIN/.momo/advanced/actor.md +0 -42
- package/src/_template/LAIN/.momo/advanced/refer.json +0 -46
- package/src/_template/LAIN/.momo/scripts/submodule-clean.sh +0 -56
- package/src/_template/LAIN/changes/proposal.md +0 -39
- package/src/_template/LAIN/changes/tasks/task-detail.md +0 -45
- package/src/_template/LAIN/changes/tasks.md +0 -49
- package/src/_template/LAIN/execute/admin-n-f-dashboard.md +0 -53
- package/src/_template/LAIN/execute/admin-n-f-form.md +0 -51
- package/src/_template/LAIN/execute/admin-n-f-home.md +0 -49
- package/src/_template/LAIN/execute/admin-n-f-list.md +0 -52
- package/src/_template/LAIN/execute/admin-n-f-login.md +0 -56
- package/src/_template/LAIN/specification/project-model.md +0 -13
- package/src/_template/LAIN/specification/project.md +0 -73
- package/src/_template/LAIN/specification/requirement.md +0 -25
- package/src/commander/actor.json +0 -12
- package/src/commander/actors.json +0 -6
- package/src/commander/add.json +0 -12
- package/src/commander/agent.json +0 -12
- package/src/commander/agentcfg.json +0 -5
- package/src/commander/archive.json +0 -12
- package/src/commander/commit.json +0 -12
- package/src/commander/console.json +0 -7
- package/src/commander/lain.json +0 -7
- package/src/commander/list.json +0 -7
- package/src/commander/plan.json +0 -12
- package/src/commander/project.json +0 -12
- package/src/commander/pull.json +0 -6
- package/src/commander/push.json +0 -6
- package/src/commander/repo.json +0 -18
- package/src/commander/run.json +0 -18
- package/src/commander/show.json +0 -12
- package/src/commander/tasks.json +0 -18
- package/src/commander/unlock.json +0 -6
- package/src/commander/validate.json +0 -12
- package/src/executor/executeActor.js +0 -133
- package/src/executor/executeActors.js +0 -58
- package/src/executor/executeAdd.js +0 -307
- package/src/executor/executeAgent.js +0 -299
- package/src/executor/executeAgentCfg.js +0 -210
- package/src/executor/executeArchive.js +0 -124
- package/src/executor/executeCommit.js +0 -202
- package/src/executor/executeConsole.js +0 -142
- package/src/executor/executeList.js +0 -133
- package/src/executor/executePlan.js +0 -164
- package/src/executor/executeProject.js +0 -313
- package/src/executor/executePull.js +0 -127
- package/src/executor/executePush.js +0 -243
- package/src/executor/executeRepo.js +0 -238
- package/src/executor/executeRun.js +0 -644
- package/src/executor/executeShow.js +0 -164
- package/src/executor/executeTasks.js +0 -384
- package/src/executor/executeUnlock.js +0 -110
- package/src/executor/executeValidate.js +0 -210
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"types": {
|
|
3
|
+
"aliases": "aliases",
|
|
4
|
+
"cssclasses": "multitext",
|
|
5
|
+
"tags": "tags",
|
|
6
|
+
"TQ_explain": "checkbox",
|
|
7
|
+
"TQ_extra_instructions": "text",
|
|
8
|
+
"TQ_short_mode": "checkbox",
|
|
9
|
+
"TQ_show_backlink": "checkbox",
|
|
10
|
+
"TQ_show_cancelled_date": "checkbox",
|
|
11
|
+
"TQ_show_created_date": "checkbox",
|
|
12
|
+
"TQ_show_depends_on": "checkbox",
|
|
13
|
+
"TQ_show_done_date": "checkbox",
|
|
14
|
+
"TQ_show_due_date": "checkbox",
|
|
15
|
+
"TQ_show_edit_button": "checkbox",
|
|
16
|
+
"TQ_show_id": "checkbox",
|
|
17
|
+
"TQ_show_on_completion": "checkbox",
|
|
18
|
+
"TQ_show_postpone_button": "checkbox",
|
|
19
|
+
"TQ_show_priority": "checkbox",
|
|
20
|
+
"TQ_show_recurrence_rule": "checkbox",
|
|
21
|
+
"TQ_show_scheduled_date": "checkbox",
|
|
22
|
+
"TQ_show_start_date": "checkbox",
|
|
23
|
+
"TQ_show_tags": "checkbox",
|
|
24
|
+
"TQ_show_task_count": "checkbox",
|
|
25
|
+
"TQ_show_tree": "checkbox",
|
|
26
|
+
"TQ_show_urgency": "checkbox"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"main": {
|
|
3
|
+
"id": "655d8fbd3ca8925e",
|
|
4
|
+
"type": "split",
|
|
5
|
+
"children": [
|
|
6
|
+
{
|
|
7
|
+
"id": "53637ba5abb4e2f5",
|
|
8
|
+
"type": "tabs",
|
|
9
|
+
"children": [
|
|
10
|
+
{
|
|
11
|
+
"id": "868bf28c7dfa6b07",
|
|
12
|
+
"type": "leaf",
|
|
13
|
+
"state": {
|
|
14
|
+
"type": "empty",
|
|
15
|
+
"state": {},
|
|
16
|
+
"icon": "lucide-file",
|
|
17
|
+
"title": "新标签页"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"direction": "vertical"
|
|
24
|
+
},
|
|
25
|
+
"left": {
|
|
26
|
+
"id": "241a27cf97cc5c6f",
|
|
27
|
+
"type": "split",
|
|
28
|
+
"children": [
|
|
29
|
+
{
|
|
30
|
+
"id": "448438498df7c61c",
|
|
31
|
+
"type": "tabs",
|
|
32
|
+
"children": [
|
|
33
|
+
{
|
|
34
|
+
"id": "b3ca9eae4f946a44",
|
|
35
|
+
"type": "leaf",
|
|
36
|
+
"state": {
|
|
37
|
+
"type": "file-explorer",
|
|
38
|
+
"state": {
|
|
39
|
+
"sortOrder": "alphabetical",
|
|
40
|
+
"autoReveal": false
|
|
41
|
+
},
|
|
42
|
+
"icon": "lucide-folder-closed",
|
|
43
|
+
"title": "文件列表"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "59ba0ff8a43ff128",
|
|
48
|
+
"type": "leaf",
|
|
49
|
+
"state": {
|
|
50
|
+
"type": "search",
|
|
51
|
+
"state": {
|
|
52
|
+
"query": "",
|
|
53
|
+
"matchingCase": false,
|
|
54
|
+
"explainSearch": false,
|
|
55
|
+
"collapseAll": false,
|
|
56
|
+
"extraContext": false,
|
|
57
|
+
"sortOrder": "alphabetical"
|
|
58
|
+
},
|
|
59
|
+
"icon": "lucide-search",
|
|
60
|
+
"title": "搜索"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "9035846dabb5c961",
|
|
65
|
+
"type": "leaf",
|
|
66
|
+
"state": {
|
|
67
|
+
"type": "bookmarks",
|
|
68
|
+
"state": {},
|
|
69
|
+
"icon": "lucide-bookmark",
|
|
70
|
+
"title": "书签"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"direction": "horizontal",
|
|
77
|
+
"width": 300
|
|
78
|
+
},
|
|
79
|
+
"right": {
|
|
80
|
+
"id": "a57821880c8fbeaf",
|
|
81
|
+
"type": "split",
|
|
82
|
+
"children": [
|
|
83
|
+
{
|
|
84
|
+
"id": "c29c48c827e00b59",
|
|
85
|
+
"type": "tabs",
|
|
86
|
+
"children": [
|
|
87
|
+
{
|
|
88
|
+
"id": "6fc5230bf35729dd",
|
|
89
|
+
"type": "leaf",
|
|
90
|
+
"state": {
|
|
91
|
+
"type": "backlink",
|
|
92
|
+
"state": {
|
|
93
|
+
"collapseAll": false,
|
|
94
|
+
"extraContext": false,
|
|
95
|
+
"sortOrder": "alphabetical",
|
|
96
|
+
"showSearch": false,
|
|
97
|
+
"searchQuery": "",
|
|
98
|
+
"backlinkCollapsed": false,
|
|
99
|
+
"unlinkedCollapsed": true
|
|
100
|
+
},
|
|
101
|
+
"icon": "links-coming-in",
|
|
102
|
+
"title": "反向链接"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "2b62aeacf1c03fe2",
|
|
107
|
+
"type": "leaf",
|
|
108
|
+
"state": {
|
|
109
|
+
"type": "outgoing-link",
|
|
110
|
+
"state": {
|
|
111
|
+
"linksCollapsed": false,
|
|
112
|
+
"unlinkedCollapsed": true
|
|
113
|
+
},
|
|
114
|
+
"icon": "links-going-out",
|
|
115
|
+
"title": "出链"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "5a29c8ef76bdaefe",
|
|
120
|
+
"type": "leaf",
|
|
121
|
+
"state": {
|
|
122
|
+
"type": "tag",
|
|
123
|
+
"state": {
|
|
124
|
+
"sortOrder": "frequency",
|
|
125
|
+
"useHierarchy": true,
|
|
126
|
+
"showSearch": false,
|
|
127
|
+
"searchQuery": ""
|
|
128
|
+
},
|
|
129
|
+
"icon": "lucide-tags",
|
|
130
|
+
"title": "标签"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"id": "9f738fe7c6c4fa1c",
|
|
135
|
+
"type": "leaf",
|
|
136
|
+
"state": {
|
|
137
|
+
"type": "all-properties",
|
|
138
|
+
"state": {
|
|
139
|
+
"sortOrder": "frequency",
|
|
140
|
+
"showSearch": false,
|
|
141
|
+
"searchQuery": ""
|
|
142
|
+
},
|
|
143
|
+
"icon": "lucide-archive",
|
|
144
|
+
"title": "添加笔记属性"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "9e16b53e7c79344f",
|
|
149
|
+
"type": "leaf",
|
|
150
|
+
"state": {
|
|
151
|
+
"type": "outline",
|
|
152
|
+
"state": {
|
|
153
|
+
"followCursor": false,
|
|
154
|
+
"showSearch": false,
|
|
155
|
+
"searchQuery": ""
|
|
156
|
+
},
|
|
157
|
+
"icon": "lucide-list",
|
|
158
|
+
"title": "大纲"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"direction": "horizontal",
|
|
165
|
+
"width": 300,
|
|
166
|
+
"collapsed": true
|
|
167
|
+
},
|
|
168
|
+
"left-ribbon": {
|
|
169
|
+
"hiddenItems": {
|
|
170
|
+
"switcher:打开快速切换": false,
|
|
171
|
+
"graph:查看关系图谱": false,
|
|
172
|
+
"canvas:新建白板": false,
|
|
173
|
+
"daily-notes:打开/创建今天的日记": false,
|
|
174
|
+
"templates:插入模板": false,
|
|
175
|
+
"command-palette:打开命令面板": false,
|
|
176
|
+
"markdown-importer:打开 Markdown 格式转换器": false,
|
|
177
|
+
"workspaces:管理工作区布局": false,
|
|
178
|
+
"publish:发布更改": false,
|
|
179
|
+
"bases:新建数据库": false
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"active": "868bf28c7dfa6b07",
|
|
183
|
+
"lastOpenFiles": []
|
|
184
|
+
}
|
|
@@ -33,6 +33,133 @@
|
|
|
33
33
|
- 用途: 将需求分解为具体可执行的任务
|
|
34
34
|
- id = momo-task, uri = https://s.trae.ai/a/1fdc4e
|
|
35
35
|
|
|
36
|
+
## Momo CLI 命令
|
|
37
|
+
|
|
38
|
+
### 基础命令
|
|
39
|
+
|
|
40
|
+
#### `momo help [-c <command>]`
|
|
41
|
+
显示帮助信息。如果指定 `-c` 参数,则显示特定命令的详细帮助。
|
|
42
|
+
|
|
43
|
+
**示例:**
|
|
44
|
+
```bash
|
|
45
|
+
momo help
|
|
46
|
+
momo help -c init
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### `momo env`
|
|
50
|
+
检查当前环境信息,包括 Node.js 版本、Python 版本等系统依赖。
|
|
51
|
+
|
|
52
|
+
**示例:**
|
|
53
|
+
```bash
|
|
54
|
+
momo env
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
#### `momo init [-d <dir>]`
|
|
58
|
+
初始化 Spec 工程,创建项目目录结构和模板文件。
|
|
59
|
+
|
|
60
|
+
**参数:**
|
|
61
|
+
- `-d, --dir`: 项目目录,如果不提供则使用当前目录
|
|
62
|
+
|
|
63
|
+
**示例:**
|
|
64
|
+
```bash
|
|
65
|
+
momo init
|
|
66
|
+
momo init -d ./my-project
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### 开发工具命令
|
|
70
|
+
|
|
71
|
+
#### `momo open [-d <dir>]`
|
|
72
|
+
使用指定的 AI 工具(Antigravity、Trae、Cursor)打开项目目录。
|
|
73
|
+
|
|
74
|
+
**参数:**
|
|
75
|
+
- `-d, --dir`: 指定要打开的目录路径,默认为当前目录
|
|
76
|
+
|
|
77
|
+
**示例:**
|
|
78
|
+
```bash
|
|
79
|
+
momo open
|
|
80
|
+
momo open -d ./src
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### `momo app -n <name>`
|
|
84
|
+
创建新的 R2MO/Spring 或 ZERO/Vertx 应用。
|
|
85
|
+
|
|
86
|
+
**参数:**
|
|
87
|
+
- `-n, --name`: 应用名称(必填)
|
|
88
|
+
|
|
89
|
+
**示例:**
|
|
90
|
+
```bash
|
|
91
|
+
momo app -n my-app
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
#### `momo domain [-d <dir>]`
|
|
95
|
+
在指定目录中执行 `r2mo_proto.py` 脚本,用于处理 Maven 项目的领域模型。
|
|
96
|
+
|
|
97
|
+
**参数:**
|
|
98
|
+
- `-d, --dir`: 目标目录(默认为当前目录),必须是包含 `pom.xml` 的 Maven 项目根目录
|
|
99
|
+
|
|
100
|
+
**验证要求:**
|
|
101
|
+
- 目录必须包含 `pom.xml` 文件
|
|
102
|
+
- 必须存在 `{artifactId}-domain` 和 `{artifactId}-ui` 子模块
|
|
103
|
+
|
|
104
|
+
**示例:**
|
|
105
|
+
```bash
|
|
106
|
+
momo domain
|
|
107
|
+
momo domain -d ./my-maven-project
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 技能管理命令
|
|
111
|
+
|
|
112
|
+
#### `momo apply -r [repo_name]`
|
|
113
|
+
从远程仓库安装技能到本地项目的指定目录。
|
|
114
|
+
|
|
115
|
+
**参数:**
|
|
116
|
+
- `-r, --remote`: 从远程仓库安装技能(可选指定仓库名)
|
|
117
|
+
|
|
118
|
+
**安装目标选择:**
|
|
119
|
+
- Cursor 默认 (`.claude/skills/`)
|
|
120
|
+
- Antigravity (`.agent/skills/`)
|
|
121
|
+
- Trae CN (`.trae/skills/`)
|
|
122
|
+
- Trae (`.trae/skills/`)
|
|
123
|
+
|
|
124
|
+
**示例:**
|
|
125
|
+
```bash
|
|
126
|
+
momo apply -r
|
|
127
|
+
momo apply -r anthropics/skills
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
#### `momo mcp [-c]`
|
|
131
|
+
配置 MCP Skills Server,整合项目和全局技能,生成 Cursor 的 `mcp.json` 配置文件。
|
|
132
|
+
|
|
133
|
+
**参数:**
|
|
134
|
+
- `-c, --check`: 仅检查依赖,不进行配置
|
|
135
|
+
|
|
136
|
+
**功能:**
|
|
137
|
+
- 自动安装 MCP 依赖包到 `.r2mo/mcpserver` 目录
|
|
138
|
+
- 生成 `.cursor/mcp.json` 配置文件
|
|
139
|
+
- 将配置内容复制到剪切板
|
|
140
|
+
|
|
141
|
+
**示例:**
|
|
142
|
+
```bash
|
|
143
|
+
momo mcp
|
|
144
|
+
momo mcp -c
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 提示词管理命令
|
|
148
|
+
|
|
149
|
+
#### `momo ask`
|
|
150
|
+
从模板目录中选择提示词并复制到剪切板。
|
|
151
|
+
|
|
152
|
+
**功能:**
|
|
153
|
+
- 从主项目的 `src/_template/R2MO/` 目录加载所有提示词模板
|
|
154
|
+
- 以表格形式显示模板的标题和版本
|
|
155
|
+
- 选择后提取 `--- BEGIN` 和 `--- END` 之间的内容
|
|
156
|
+
- 自动复制到剪切板并显示详细信息
|
|
157
|
+
|
|
158
|
+
**示例:**
|
|
159
|
+
```bash
|
|
160
|
+
momo ask
|
|
161
|
+
```
|
|
162
|
+
|
|
36
163
|
## 项目目录结构
|
|
37
164
|
|
|
38
165
|
```
|
|
@@ -42,6 +169,17 @@ project/
|
|
|
42
169
|
│ ├── prompt/
|
|
43
170
|
│ ├── scripts/
|
|
44
171
|
│ └── template/
|
|
172
|
+
├── .claude/
|
|
173
|
+
│ └── skills/ # Cursor 技能目录
|
|
174
|
+
├── .agent/
|
|
175
|
+
│ └── skills/ # Antigravity 技能目录
|
|
176
|
+
├── .trae/
|
|
177
|
+
│ └── skills/ # Trae 技能目录
|
|
178
|
+
├── .r2mo/
|
|
179
|
+
│ ├── repo/ # 远程仓库缓存
|
|
180
|
+
│ └── mcpserver/ # MCP 服务器配置
|
|
181
|
+
├── .cursor/
|
|
182
|
+
│ └── mcp.json # Cursor MCP 配置
|
|
45
183
|
├── integration/
|
|
46
184
|
├── source/
|
|
47
185
|
├── specification/
|
|
@@ -82,29 +220,45 @@ project/
|
|
|
82
220
|
|
|
83
221
|
## 工作流程规范
|
|
84
222
|
|
|
85
|
-
###
|
|
86
|
-
1. 使用 `momo
|
|
87
|
-
2.
|
|
88
|
-
3.
|
|
89
|
-
4.
|
|
223
|
+
### 项目初始化流程
|
|
224
|
+
1. 使用 `momo init [-d <dir>]` 创建新的 Spec 工程
|
|
225
|
+
2. 编辑 `specification/project.md` 定义项目基本信息
|
|
226
|
+
3. 编辑 `specification/project-model.md` 定义领域模型
|
|
227
|
+
4. 编辑 `specification/requirement.md` 定义项目需求
|
|
228
|
+
|
|
229
|
+
### 技能管理流程
|
|
230
|
+
1. 使用 `momo apply -r` 从远程仓库安装技能到项目
|
|
231
|
+
2. 使用 `momo mcp` 配置 MCP Skills Server
|
|
232
|
+
3. 技能会自动整合到 Cursor 的 MCP 工具中
|
|
233
|
+
|
|
234
|
+
### 应用开发流程
|
|
235
|
+
1. 使用 `momo app -n <name>` 创建新的应用项目
|
|
236
|
+
2. 选择应用类型(R2MO/Spring 或 ZERO/Vertx)
|
|
237
|
+
3. 使用 `momo domain -d <dir>` 处理领域模型
|
|
90
238
|
|
|
91
|
-
###
|
|
92
|
-
1. 使用 `momo
|
|
93
|
-
2.
|
|
239
|
+
### 提示词使用流程
|
|
240
|
+
1. 使用 `momo ask` 从模板目录选择提示词
|
|
241
|
+
2. 提示词会自动复制到剪切板
|
|
242
|
+
3. 在 AI 工具中粘贴使用
|
|
94
243
|
|
|
95
|
-
###
|
|
96
|
-
1. 使用 `momo
|
|
97
|
-
2.
|
|
244
|
+
### AI 工具集成流程
|
|
245
|
+
1. 使用 `momo open [-d <dir>]` 打开项目到指定的 AI 工具
|
|
246
|
+
2. 支持的工具:Antigravity、Trae、Cursor
|
|
247
|
+
3. 使用 `momo mcp` 配置 Cursor 的 MCP 服务器
|
|
98
248
|
|
|
99
249
|
## 提示词规范
|
|
100
250
|
|
|
101
|
-
1.
|
|
102
|
-
2. 使用 `momo
|
|
103
|
-
3.
|
|
251
|
+
1. 所有提示词模板存储在 `src/_template/R2MO/` 目录中
|
|
252
|
+
2. 使用 `momo ask` 命令可以快速选择和复制提示词
|
|
253
|
+
3. 提示词模板使用 front-matter 格式,包含 `title` 和 `version` 字段
|
|
254
|
+
4. 提示词内容位于 `--- BEGIN` 和 `--- END` 标记之间
|
|
104
255
|
|
|
105
256
|
## 注意事项
|
|
106
257
|
|
|
107
|
-
1. 请勿直接修改 `specification/changes/`
|
|
258
|
+
1. 请勿直接修改 `specification/changes/` 目录下的文件,应通过规范流程进行管理
|
|
108
259
|
2. 所有需求变更应遵循 OpenSpec 标准流程
|
|
109
260
|
3. 归档的需求存储在 `specification/.archives/` 目录中,可通过时间戳识别
|
|
110
|
-
4. 不同 AI
|
|
261
|
+
4. 不同 AI 工具应使用对应的技能目录进行配置
|
|
262
|
+
5. `momo domain` 命令要求目标目录必须是有效的 Maven 项目,且包含必需的子模块
|
|
263
|
+
6. `momo app` 命令会检查目标目录是否已存在,避免覆盖现有项目
|
|
264
|
+
7. 远程仓库缓存存储在 `.r2mo/repo` 目录中,已自动添加到 `.gitignore`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"executor": "executeDomain",
|
|
3
|
+
"description": "在指定目录执行 r2mo_proto 脚本生成 Protobuf",
|
|
4
|
+
"command": "domain",
|
|
5
|
+
"options": [
|
|
6
|
+
{
|
|
7
|
+
"name": "dir",
|
|
8
|
+
"alias": "d",
|
|
9
|
+
"description": "目标目录(默认为当前目录)",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "entity",
|
|
14
|
+
"alias": "e",
|
|
15
|
+
"description": "从 Entity 生成(true)或从 SQL 生成(false),默认 true",
|
|
16
|
+
"type": "boolean"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/src/commander/help.json
CHANGED
package/src/commander/init.json
CHANGED
package/src/commander/open.json
CHANGED