mancode 0.2.1 → 0.3.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/README.md +124 -81
- package/README.zh-CN.md +104 -73
- package/dist/cli.js +1827 -790
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.zh-CN.md
CHANGED
|
@@ -10,14 +10,15 @@
|
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
|
|
13
|
+
适配常见编程代理工具,包括 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、
|
|
14
|
+
Codex CLI、GitHub Copilot 和 ZCode。
|
|
14
15
|
</p>
|
|
15
16
|
|
|
16
17
|
<p align="center">
|
|
17
18
|
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-AGPL--3.0-blue.svg?style=flat-square" alt="许可证:AGPL-3.0" /></a>
|
|
18
|
-
<img src="https://img.shields.io/badge/status-stable%20v0.
|
|
19
|
-
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、Codex CLI、GitHub Copilot、ZCode" />
|
|
20
|
-
<img src="https://img.shields.io/badge/tests-
|
|
19
|
+
<img src="https://img.shields.io/badge/status-stable%20v0.3.1-green?style=flat-square" alt="状态:稳定版 v0.3.1" />
|
|
20
|
+
<img src="https://img.shields.io/badge/platforms-Claude%20Code%20%7C%20Cursor%20%7C%20Codex%20%7C%20Copilot%20%7C%20ZCode-5865F2?style=flat-square" alt="平台:Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI、GitHub Copilot、ZCode" />
|
|
21
|
+
<img src="https://img.shields.io/badge/tests-370%20passed-brightgreen?style=flat-square" alt="测试:370 通过" />
|
|
21
22
|
</p>
|
|
22
23
|
|
|
23
24
|
<p align="center">
|
|
@@ -32,17 +33,17 @@
|
|
|
32
33
|
日常任务用轻量 `solo`,关键任务用季后赛级别的 `/man`,复杂任务让教练组 subagents
|
|
33
34
|
负责调研、计划、实现和审查。
|
|
34
35
|
|
|
35
|
-
mancode 当前支持 Claude Code、Cursor、Codex CLI、
|
|
36
|
-
Claude Code 获得完整 hooks、skills 和 subagents
|
|
37
|
-
skills 或 instructions 文件提供降级适配。
|
|
36
|
+
mancode 当前支持 Claude Code、Cursor、ChatGPT 桌面端中的 Codex、Codex CLI、
|
|
37
|
+
GitHub Copilot 和 ZCode。Claude Code 获得完整 hooks、skills 和 subagents;其他
|
|
38
|
+
平台通过持久化 rules、skills 或 instructions 文件提供降级适配。
|
|
38
39
|
|
|
39
40
|
mancode 会安装三类能力:
|
|
40
41
|
|
|
41
42
|
1. **Hooks**:在 agent 提示词中注入项目上下文、设计 token 和 YAGNI 检查。
|
|
42
|
-
2. **Skills / modes**:提供 `solo`、`/
|
|
43
|
+
2. **Skills / modes**:提供 `solo`、`/mamba`、`/man`、`/manteam`、`/manps`、
|
|
43
44
|
`/mansolo` 工作流模式。
|
|
44
|
-
3. **教练组 subagents**:Scout、Head Coach、Film Analyst
|
|
45
|
-
Film Analyst (Defense)。
|
|
45
|
+
3. **教练组 subagents**:Scout、Plan Coach、Head Coach、Film Analyst
|
|
46
|
+
(Offense) 和 Film Analyst (Defense)。
|
|
46
47
|
|
|
47
48
|
当 AI 编码代理写太多代码、忽略已有 UI 系统、跳过计划,或者关键改动需要稳定工程流程时,
|
|
48
49
|
mancode 可以作为一层本地工作流约束。
|
|
@@ -58,6 +59,14 @@ mancode init
|
|
|
58
59
|
初始化后,继续正常使用你的编码代理。`solo` 默认自动生效:日常训练,零仪式感。遇到需要
|
|
59
60
|
计划、测试和多 agent 审查的任务时,使用 `/man`:季后赛,每球必争。
|
|
60
61
|
|
|
62
|
+
不同界面的调用方式不同:Claude Code 和 Cursor 使用 `/man`、`/mamba` 等命令;
|
|
63
|
+
ChatGPT 桌面端、Codex CLI 和 Codex IDE 扩展会从 `.agents/skills/` 读取项目 skill,
|
|
64
|
+
其中 `$man`、`$mamba` 等 `$` mention 是跨界面稳定的显式调用方式。ChatGPT 桌面端
|
|
65
|
+
还会把已启用的 skill 显示在 slash command 列表,因此发现并启用 `man` 后可从列表中
|
|
66
|
+
选择 `/man`;CLI/IDE 则使用 `$man` 或 `/skills`。这些属于 agent skills,而不是已弃用
|
|
67
|
+
的 custom prompts。参见官方 [skills 文档](https://learn.chatgpt.com/docs/build-skills)
|
|
68
|
+
和 [slash command 文档](https://learn.chatgpt.com/docs/reference/slash-commands)。
|
|
69
|
+
|
|
61
70
|
## 安装后创建哪些文件?
|
|
62
71
|
|
|
63
72
|
`mancode init` 会创建本地工作流文件和平台适配文件:
|
|
@@ -75,8 +84,8 @@ mancode init
|
|
|
75
84
|
|
|
76
85
|
.claude/ # Claude Code:hooks、skills、agents
|
|
77
86
|
.cursor/rules/ # Cursor:项目 rules
|
|
78
|
-
AGENTS.md # Codex CLI
|
|
79
|
-
.agents/skills/ # Codex CLI
|
|
87
|
+
AGENTS.md # Codex(ChatGPT 桌面端/CLI):托管 instructions
|
|
88
|
+
.agents/skills/ # Codex(ChatGPT 桌面端/CLI):mode skills
|
|
80
89
|
.github/copilot-instructions.md # GitHub Copilot:托管 instruction block
|
|
81
90
|
.agents/skills/ # ZCode:项目 mode skills
|
|
82
91
|
```
|
|
@@ -87,8 +96,8 @@ AGENTS.md # Codex CLI:托管 instruction block
|
|
|
87
96
|
## 为什么使用 mancode?
|
|
88
97
|
|
|
89
98
|
- **减少 AI 过度设计**:先复用已有代码、标准库、已安装依赖和一行修复,再考虑新增抽象。
|
|
90
|
-
-
|
|
91
|
-
- **加入结构化 AI 代码审查**:`/man` 提供
|
|
99
|
+
- **在存在 UI 时匹配现有设计系统**:检查项目 UI 依赖、Tailwind 配置、CSS 变量和已有组件,让 agent 复用现有颜色、字体和交互模式。
|
|
100
|
+
- **加入结构化 AI 代码审查**:`/man` 提供 9 步流程,包括调研、计划审批、实现、测试和双重审查。
|
|
92
101
|
- **保留工作流产物**:调研、计划、审查报告和总结会保存到 `.mancode/workflows/<taskId>/`。
|
|
93
102
|
- **支持团队记忆**:`/manteam` 读写 `.mancode/memory/` 下的共享项目上下文。
|
|
94
103
|
- **扫描项目健康度**:`mancode manps` 检测陈旧 TODO、未使用依赖、风险依赖和硬编码设计值。
|
|
@@ -97,14 +106,14 @@ AGENTS.md # Codex CLI:托管 instruction block
|
|
|
97
106
|
|
|
98
107
|
mancode 适合:
|
|
99
108
|
|
|
100
|
-
- 正在使用 AI
|
|
109
|
+
- 正在使用 AI 编码代理的后端、Web、移动端、桌面端、CLI、库、数据或混合项目
|
|
101
110
|
- 当前希望在 Claude Code 中使用 hooks、skills 和 subagents 的用户
|
|
102
111
|
- 希望 AI 代理复用已有组件和代码模式的团队
|
|
103
112
|
- 需要可重复 AI 辅助代码审查流程的项目
|
|
104
|
-
-
|
|
113
|
+
- 已有 UI 组件、主题、CSS 变量或设计约定的界面项目
|
|
105
114
|
- 希望保留本地团队记忆、但不希望引入遥测的团队
|
|
106
115
|
|
|
107
|
-
mancode 不是 Claude Code、Cursor、Codex
|
|
116
|
+
mancode 不是 Claude Code、Cursor、Codex 或 Copilot 的替代品。它是在现有 agent
|
|
108
117
|
上加的一层工作流:提供上下文、模式切换和审查纪律。
|
|
109
118
|
|
|
110
119
|
## 前后对比
|
|
@@ -120,19 +129,22 @@ mancode 不是 Claude Code、Cursor、Codex CLI 或 Copilot 的替代品。它
|
|
|
120
129
|
</Button>
|
|
121
130
|
```
|
|
122
131
|
|
|
123
|
-
默认工作流会在写代码前推动 agent
|
|
132
|
+
默认工作流会在写代码前推动 agent 思考六个问题:
|
|
124
133
|
|
|
125
134
|
1. 这个改动解决什么问题?
|
|
126
135
|
2. 能否复用已有实现?
|
|
127
136
|
3. 最小可行改动是什么?
|
|
137
|
+
4. 能否不拆新系统?
|
|
138
|
+
5. 非平凡逻辑怎样做最小运行验证?
|
|
139
|
+
6. 有什么没把握的(先自查,仍不确定再问用户)?
|
|
128
140
|
|
|
129
141
|
## 模式
|
|
130
142
|
|
|
131
143
|
| 模式 | 适合场景 | 做什么 |
|
|
132
144
|
|---|---|---|
|
|
133
145
|
| `solo` | 日常编码 · 日常训练 | 轻量 hooks、风格感知、YAGNI 检查 |
|
|
134
|
-
| `/
|
|
135
|
-
| `/man` | 生产级或高风险改动 · 季后赛 | 完整
|
|
146
|
+
| `/mamba` | 诊断与真实验证 · 曼巴心态 | 复现缺陷、定位根因、驱动真实用户路径并执行回归检查 |
|
|
147
|
+
| `/man` | 生产级或高风险改动 · 季后赛 | 完整 9 步工作流和双重多 agent 审查 |
|
|
136
148
|
| `/manteam` | 团队项目 · 上场五人,一条心 | 共享记忆、决策记录、协作和 Conventional Commits |
|
|
137
149
|
| `/manps` | 清理和维护 · 季前赛 | 输出 Markdown 和 JSON 项目健康报告 |
|
|
138
150
|
| `/mansolo` | 回到默认模式 | 将当前模式重置为 `solo` |
|
|
@@ -140,16 +152,17 @@ mancode 不是 Claude Code、Cursor、Codex CLI 或 Copilot 的替代品。它
|
|
|
140
152
|
## `/man` 如何工作:季后赛模式
|
|
141
153
|
|
|
142
154
|
`/man` 是面向关键任务的季后赛模式。它会在 `.mancode/workflows/<taskId>/`
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
1.
|
|
146
|
-
2.
|
|
147
|
-
3.
|
|
148
|
-
4.
|
|
149
|
-
5.
|
|
150
|
-
6.
|
|
151
|
-
7. **录像分析
|
|
152
|
-
8.
|
|
155
|
+
下创建可追溯工作流,并推进九个步骤:
|
|
156
|
+
|
|
157
|
+
1. **球探报告**:梳理既有代码、风险和未知项。
|
|
158
|
+
2. **需求澄清**:最多两轮确认需求。
|
|
159
|
+
3. **计划**:Plan Coach 输出可验证的持久计划。
|
|
160
|
+
4. **计划关卡**:选择只要计划、继续执行或修改计划。
|
|
161
|
+
5. **实施**:Head Coach 按确认计划实现。
|
|
162
|
+
6. **验证**:build、lint、test、smoke test;需要真实诊断时使用 `/mamba`。
|
|
163
|
+
7. **录像分析 1**:代码质量审查与修复。
|
|
164
|
+
8. **录像分析 2**:安全与边界审查。
|
|
165
|
+
9. **收尾**:最终复验、summary、workflow 状态和 memory 更新。
|
|
153
166
|
|
|
154
167
|
跳过的步骤会被记录。所有产物保留在本地,之后可以回看当时为什么做某个决策。
|
|
155
168
|
|
|
@@ -163,12 +176,12 @@ mancode 会为 Claude Code 会话安装真实 hooks:
|
|
|
163
176
|
- `user-prompt-submit`:在 agent 响应前注入紧凑项目摘要、设计 token 和 YAGNI 检查。
|
|
164
177
|
|
|
165
178
|
Hook 注入保持轻量。设计 token 摘要有上限,完整扫描结果保存在 `.mancode/` 中供按需读取。
|
|
166
|
-
Cursor、Codex
|
|
167
|
-
rules 或 instruction 文件,把同一套实践规则和模式指导带过去。
|
|
179
|
+
当前 mancode 的 Cursor、Codex 和 GitHub Copilot adapter 尚未配置等价的 hook 注入,
|
|
180
|
+
因此会写入持久化 rules 或 instruction 文件,把同一套实践规则和模式指导带过去。
|
|
168
181
|
|
|
169
182
|
### 设计 Token 感知
|
|
170
183
|
|
|
171
|
-
mancode
|
|
184
|
+
mancode 会先把检测到的项目事实写入 `.mancode/project-profile.json`。它可用于后端服务、Web、移动端、桌面端、CLI、库和混合仓库;不会预设 JavaScript 或 UI 技术栈。它会扫描如下信号:
|
|
172
185
|
|
|
173
186
|
```text
|
|
174
187
|
tailwind.config.js
|
|
@@ -178,12 +191,12 @@ src/components/
|
|
|
178
191
|
|
|
179
192
|
它会检测常见信号:
|
|
180
193
|
|
|
181
|
-
-
|
|
182
|
-
- UI
|
|
183
|
-
-
|
|
194
|
+
- 语言、manifest、源码目录和可用验证命令
|
|
195
|
+
- 仅在确实检测到时记录 UI 资产和 UI 库(例如 Web UI)
|
|
196
|
+
- 设计信号:颜色、字体、CSS 变量和组件
|
|
184
197
|
- 团队状态:贡献者数量和团队模式提示
|
|
185
198
|
|
|
186
|
-
|
|
199
|
+
只有在 profile 确认存在 UI 资产且任务涉及界面时,mancode 才会推动 agent 复用已有组件和设计 token,而不是生成通用样式。其他项目类型则遵循已检测到的运行时和验证路径。
|
|
187
200
|
|
|
188
201
|
### YAGNI 阶梯
|
|
189
202
|
|
|
@@ -211,8 +224,9 @@ src/components/
|
|
|
211
224
|
|
|
212
225
|
## 安装
|
|
213
226
|
|
|
214
|
-
**状态**:稳定版 v0.
|
|
215
|
-
均已支持。ZCode adapter 已接入,但项目级 skill
|
|
227
|
+
**状态**:稳定版 v0.3.1。Claude Code、Cursor、ChatGPT 桌面端中的 Codex、
|
|
228
|
+
Codex CLI 和 GitHub Copilot 均已支持。ZCode adapter 已接入,但项目级 skill
|
|
229
|
+
发现路径在发布前仍作为验证门禁。
|
|
216
230
|
|
|
217
231
|
```bash
|
|
218
232
|
npm install -g mancode
|
|
@@ -225,7 +239,8 @@ mancode init --platform cursor
|
|
|
225
239
|
|
|
226
240
|
- Claude Code:完整 hooks、skills、agents 和 workflow 集成
|
|
227
241
|
- Cursor:`.cursor/rules/*.mdc` rules
|
|
228
|
-
- Codex CLI
|
|
242
|
+
- Codex(ChatGPT 桌面端、CLI、IDE 扩展):托管 `AGENTS.md` block,并在
|
|
243
|
+
`.agents/skills/` 下提供 `$man*` 项目 skills
|
|
229
244
|
- GitHub Copilot:托管 `.github/copilot-instructions.md` block
|
|
230
245
|
- ZCode:托管 `AGENTS.md` block,并暂按 `.agents/skills/` 生成 `$man*`
|
|
231
246
|
skills;项目级 skill 发现和 slash commands 仍需确认 workspace 路径后再发布承诺
|
|
@@ -247,11 +262,19 @@ mancode install --minimal # 只安装 solo 必需文件
|
|
|
247
262
|
## Agent Modes
|
|
248
263
|
|
|
249
264
|
```bash
|
|
250
|
-
|
|
251
|
-
/
|
|
265
|
+
# Claude Code / Cursor
|
|
266
|
+
/mamba # 定位 bug 并验证真实用户路径
|
|
267
|
+
/man # 完整 9 步流程和双重审查
|
|
252
268
|
/manps # 项目健康检查
|
|
253
269
|
/manteam # 团队模式和共享记忆
|
|
254
270
|
/mansolo # 回到 solo 模式
|
|
271
|
+
|
|
272
|
+
# ChatGPT 桌面端 Codex / Codex CLI / IDE
|
|
273
|
+
$mamba
|
|
274
|
+
$man
|
|
275
|
+
$manps
|
|
276
|
+
$manteam
|
|
277
|
+
$mansolo
|
|
255
278
|
```
|
|
256
279
|
|
|
257
280
|
## CLI 参考
|
|
@@ -262,10 +285,10 @@ mancode status
|
|
|
262
285
|
mancode status --json
|
|
263
286
|
mancode install <claude-code|cursor|codex|copilot|zcode>
|
|
264
287
|
mancode list-platforms
|
|
265
|
-
mancode workflow create <
|
|
266
|
-
mancode workflow update <taskId> [--step N] [--status in_progress|completed|abandoned]
|
|
267
|
-
mancode workflow list
|
|
268
|
-
mancode workflow show <taskId>
|
|
288
|
+
mancode workflow create <man|mamba|manteam> "<task>" [--parent-task <taskId>]
|
|
289
|
+
mancode workflow update <taskId> [--step N] [--status in_progress|planned|completed|blocked|abandoned] [--blocking-reason "<reason>"] [--outcome fixed|verified|no_repro|manual_test_required] [--plan-version N] [--skipped a,b]
|
|
290
|
+
mancode workflow list [--json]
|
|
291
|
+
mancode workflow show <taskId> [--json]
|
|
269
292
|
mancode workflow clean [--older-than 30d] [--dry-run]
|
|
270
293
|
mancode manps [area]
|
|
271
294
|
mancode refresh-style
|
|
@@ -276,8 +299,10 @@ mancode version
|
|
|
276
299
|
|
|
277
300
|
### `mancode status`
|
|
278
301
|
|
|
302
|
+
以下是 UI 项目的输出示例,并非默认技术栈:
|
|
303
|
+
|
|
279
304
|
```text
|
|
280
|
-
mancode v0.
|
|
305
|
+
mancode v0.3.1
|
|
281
306
|
|
|
282
307
|
Project: my-app (React + TypeScript + Tailwind)
|
|
283
308
|
Mode: solo (default)
|
|
@@ -288,14 +313,14 @@ Team: detected (3 contributors)
|
|
|
288
313
|
Installed platforms:
|
|
289
314
|
✓ Claude Code
|
|
290
315
|
✓ Cursor
|
|
291
|
-
✓ Codex CLI
|
|
316
|
+
✓ Codex (ChatGPT desktop/CLI)
|
|
292
317
|
✓ GitHub Copilot
|
|
293
318
|
✓ ZCode
|
|
294
319
|
|
|
295
320
|
Platform status:
|
|
296
321
|
✓ Claude Code: ready (.claude/)
|
|
297
322
|
✓ Cursor: ready (.cursor/rules/)
|
|
298
|
-
✓ Codex CLI: ready (AGENTS.md + .agents/skills/)
|
|
323
|
+
✓ Codex (ChatGPT desktop/CLI): ready (AGENTS.md + .agents/skills/)
|
|
299
324
|
✓ GitHub Copilot: ready (.github/copilot-instructions.md)
|
|
300
325
|
✓ ZCode: ready (AGENTS.md + .agents/skills/)
|
|
301
326
|
|
|
@@ -337,12 +362,14 @@ mancode status --json
|
|
|
337
362
|
|
|
338
363
|
### `mancode workflow`
|
|
339
364
|
|
|
340
|
-
创建和管理 `/
|
|
365
|
+
创建和管理 `/mamba`、`/man` 和 `/manteam` 使用的受校验 workflow 元数据。关联 `/mamba` 子任务只能在父任务处于 Step 6 且正在进行时创建。
|
|
341
366
|
|
|
342
367
|
```bash
|
|
343
368
|
mancode workflow create man "refactor auth module"
|
|
344
|
-
mancode workflow update <taskId> --step 4
|
|
345
|
-
mancode workflow
|
|
369
|
+
mancode workflow update <taskId> --step 4 --plan-version 2
|
|
370
|
+
mancode workflow create mamba "verify auth regression" --parent-task <taskId>
|
|
371
|
+
mancode workflow update <mambaTaskId> --status completed --outcome verified
|
|
372
|
+
mancode workflow show <taskId> --json
|
|
346
373
|
mancode workflow clean --older-than 30d --dry-run
|
|
347
374
|
```
|
|
348
375
|
|
|
@@ -368,15 +395,16 @@ mancode manps config
|
|
|
368
395
|
|
|
369
396
|
### `mancode refresh-style`
|
|
370
397
|
|
|
371
|
-
|
|
398
|
+
刷新项目 profile;检测到 UI 资产时,还会重新扫描设计 token。它会更新:
|
|
372
399
|
|
|
373
400
|
```text
|
|
374
401
|
.mancode/aesthetics/style-tokens.json
|
|
402
|
+
.mancode/project-profile.json
|
|
375
403
|
```
|
|
376
404
|
|
|
377
|
-
Claude Code 会通过 hooks 读取刷新后的 token
|
|
378
|
-
|
|
379
|
-
刷新嵌入的风格摘要。
|
|
405
|
+
Claude Code 会通过 hooks 读取刷新后的 token。当前 mancode 的 Cursor、Codex 和
|
|
406
|
+
GitHub Copilot adapter 使用静态 instructions,因此这些 adapter 已安装时,
|
|
407
|
+
`refresh-style` 后需要运行 `mancode install <platform> --force` 刷新嵌入的风格摘要。
|
|
380
408
|
|
|
381
409
|
## 项目文件
|
|
382
410
|
|
|
@@ -393,13 +421,15 @@ mancode/
|
|
|
393
421
|
│
|
|
394
422
|
├── Skills
|
|
395
423
|
│ ├── solo/SKILL.md
|
|
396
|
-
│ ├──
|
|
424
|
+
│ ├── mamba/SKILL.md
|
|
397
425
|
│ ├── man/SKILL.md
|
|
398
426
|
│ ├── manteam/SKILL.md
|
|
399
|
-
│
|
|
427
|
+
│ ├── manps/SKILL.md
|
|
428
|
+
│ └── mansolo/SKILL.md
|
|
400
429
|
│
|
|
401
430
|
└── Subagents
|
|
402
431
|
├── Scout
|
|
432
|
+
├── Plan Coach
|
|
403
433
|
├── Head Coach
|
|
404
434
|
├── Film Analyst (Offense)
|
|
405
435
|
└── Film Analyst (Defense)
|
|
@@ -410,7 +440,7 @@ mancode/
|
|
|
410
440
|
- mancode 本地优先。
|
|
411
441
|
- 扫描结果写入 `.mancode/`。
|
|
412
442
|
- mancode 不发送遥测。
|
|
413
|
-
- `.mancode
|
|
443
|
+
- mancode 不会改写项目的 `.gitignore`。提交前请检查 `.mancode/`,并忽略可能含敏感信息的本地 workflow 证据或浏览器产物。
|
|
414
444
|
- `/manps` 默认只扫描;进入整改前应明确确认代码改动。
|
|
415
445
|
- force push、schema migration、批量删除等不可逆操作需要明确人工确认。
|
|
416
446
|
|
|
@@ -419,16 +449,15 @@ mancode/
|
|
|
419
449
|
| 阶段 | 重点 |
|
|
420
450
|
|---|---|
|
|
421
451
|
| MVP-1 | solo 模式、审美扫描、Claude Code hooks |
|
|
422
|
-
| MVP-2 | `/
|
|
423
|
-
| MVP-3 | Cursor、Codex CLI
|
|
452
|
+
| MVP-2 | `/mamba`、`/man`、`/manteam`、`/manps` 和教练组 subagents |
|
|
453
|
+
| MVP-3 | Cursor、Codex(ChatGPT 桌面端/CLI)、GitHub Copilot 适配 |
|
|
424
454
|
| 公开发布 | npm 稳定版、marketplace 分发、文档和演示 |
|
|
425
455
|
|
|
426
456
|
## 故障排查
|
|
427
457
|
|
|
428
458
|
### `mancode init` 提示"not a project directory"
|
|
429
459
|
|
|
430
|
-
mancode 要求目标目录有 `.git`
|
|
431
|
-
项目目录中运行 `mancode init`。
|
|
460
|
+
mancode 要求目标目录有 `.git` 或已识别的项目 manifest(如 `package.json`、`pyproject.toml`、`go.mod`、`Cargo.toml`、`pom.xml`、`build.gradle`、`build.gradle.kts`、`Package.swift` 或 `pubspec.yaml`)。请在 git 仓库或支持的项目目录中运行 `mancode init`。
|
|
432
461
|
|
|
433
462
|
### Claude Code hooks 不生效
|
|
434
463
|
|
|
@@ -449,15 +478,15 @@ mancode 要求目标目录有 `.git` 或 `package.json`。请在 git 仓库或 N
|
|
|
449
478
|
|
|
450
479
|
### ZCode skills 未出现
|
|
451
480
|
|
|
452
|
-
确认 `.agents/skills/
|
|
481
|
+
确认 `.agents/skills/mamba/SKILL.md` 到 `.agents/skills/mansolo/SKILL.md`
|
|
453
482
|
都存在,然后重启或刷新 ZCode。当前尚不生成 ZCode `/man*` slash commands,
|
|
454
483
|
因为 workspace command 的文件路径仍需显式验证。
|
|
455
484
|
|
|
456
485
|
### Cursor rules 不触发
|
|
457
486
|
|
|
458
487
|
确认 `.cursor/rules/mancode-*.mdc` 文件存在。`alwaysApply: true` 的规则
|
|
459
|
-
(context、practice、solo)在每次对话加载。模式规则(
|
|
460
|
-
manps)按 description 触发——输入 `/
|
|
488
|
+
(context、practice、solo)在每次对话加载。模式规则(mamba、man、manteam、
|
|
489
|
+
manps)按 description 触发——输入 `/mamba` 等关键词即可激活。
|
|
461
490
|
|
|
462
491
|
### 如何完全重装
|
|
463
492
|
|
|
@@ -479,7 +508,7 @@ hooks。用户自定义的 rules 和 instructions 会被保留。
|
|
|
479
508
|
|
|
480
509
|
## 常见问题
|
|
481
510
|
|
|
482
|
-
### mancode 是 Claude Code、Cursor、Codex
|
|
511
|
+
### mancode 是 Claude Code、Cursor、Codex 或 Copilot 的替代品吗?
|
|
483
512
|
|
|
484
513
|
不是。mancode 是编码代理的 workflow harness,在你已经使用的 agent 之上添加工作流结构、
|
|
485
514
|
项目上下文、模式切换和审查纪律。
|
|
@@ -501,9 +530,10 @@ hooks。用户自定义的 rules 和 instructions 会被保留。
|
|
|
501
530
|
|
|
502
531
|
### mancode 支持 Claude Code 以外的平台吗?
|
|
503
532
|
|
|
504
|
-
支持。mancode 已通过持久化 rules、skills 或 instruction 文件支持 Cursor、
|
|
505
|
-
CLI、GitHub Copilot,并提供实验性 ZCode adapter。
|
|
506
|
-
|
|
533
|
+
支持。mancode 已通过持久化 rules、skills 或 instruction 文件支持 Cursor、
|
|
534
|
+
ChatGPT 桌面端中的 Codex、Codex CLI、GitHub Copilot,并提供实验性 ZCode adapter。
|
|
535
|
+
Claude Code 仍是当前 mancode 集成最完整的平台,因为本项目已为它配置 hooks、skills
|
|
536
|
+
和 subagents。
|
|
507
537
|
|
|
508
538
|
### mancode 能改善前端一致性吗?
|
|
509
539
|
|
|
@@ -517,8 +547,9 @@ adapter,因为它支持 hooks、skills 和 subagents。
|
|
|
517
547
|
|
|
518
548
|
mancode 最适合被描述为:
|
|
519
549
|
|
|
520
|
-
> 面向 Claude Code、Cursor、Codex CLI 和 GitHub Copilot 的
|
|
521
|
-
>
|
|
550
|
+
> 面向 Claude Code、Cursor、ChatGPT 桌面端 Codex、Codex CLI 和 GitHub Copilot 的
|
|
551
|
+
> AI 编码代理工作流调度工具和 npm CLI,安装 hooks、rules、skills/modes、instruction
|
|
552
|
+
> 文件和教练组指导,用于
|
|
522
553
|
> 项目感知 AI 编码流程、YAGNI 约束、设计 token 感知前端改动、本地团队记忆、季前赛
|
|
523
554
|
> 项目健康扫描和多 agent 代码审查。
|
|
524
555
|
|
|
@@ -527,7 +558,7 @@ mancode 最适合被描述为:
|
|
|
527
558
|
- 如何防止 AI 编码代理过度设计
|
|
528
559
|
- 如何给 AI 编码代理加结构化工作流
|
|
529
560
|
- Claude Code hooks、skills 和 subagents
|
|
530
|
-
- Cursor、Codex CLI
|
|
561
|
+
- Cursor、Codex(ChatGPT 桌面端/CLI)或 Copilot workflow adapters
|
|
531
562
|
- 如何对 AI 生成代码做多 agent 审查
|
|
532
563
|
- 如何让 AI agent 复用已有项目组件
|
|
533
564
|
- 如何在 AI 编码会话之间维护本地团队记忆
|