@hupan56/wlkj 2.6.0 → 2.7.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 (125) hide show
  1. package/bin/cli.js +261 -11
  2. package/package.json +1 -1
  3. package/templates/qoder/agents/insight-planning.md +67 -0
  4. package/templates/qoder/agents/insight-research.md +61 -0
  5. package/templates/qoder/agents/prd-reference.md +8 -2
  6. package/templates/qoder/commands/optional/wl-insight.md +275 -0
  7. package/templates/qoder/commands/{wl-report.md → optional/wl-report.md} +13 -5
  8. package/templates/qoder/commands/{wl-spec.md → optional/wl-spec.md} +1 -1
  9. package/templates/qoder/commands/{wl-status.md → optional/wl-status.md} +28 -2
  10. package/templates/qoder/commands/wl-code.md +10 -2
  11. package/templates/qoder/commands/wl-commit.md +1 -1
  12. package/templates/qoder/commands/wl-design-draw.md +78 -0
  13. package/templates/qoder/commands/wl-design-scan.md +108 -0
  14. package/templates/qoder/commands/wl-design-spec.md +154 -0
  15. package/templates/qoder/commands/wl-design.md +32 -0
  16. package/templates/qoder/commands/wl-init.md +24 -3
  17. package/templates/qoder/commands/wl-prd-full.md +226 -0
  18. package/templates/qoder/commands/wl-prd-quick.md +134 -0
  19. package/templates/qoder/commands/wl-prd-review.md +104 -0
  20. package/templates/qoder/commands/wl-prd.md +17 -311
  21. package/templates/qoder/commands/wl-search.md +66 -30
  22. package/templates/qoder/commands/wl-task.md +290 -59
  23. package/templates/qoder/commands/wl-test.md +92 -24
  24. package/templates/qoder/config.yaml +51 -15
  25. package/templates/qoder/hooks/inject-workflow-state.py +2 -2
  26. package/templates/qoder/hooks/session-start.py +82 -51
  27. package/templates/qoder/rules/wl-pipeline.md +216 -105
  28. package/templates/qoder/scripts/__pycache__/search_index.cpython-39.pyc +0 -0
  29. package/templates/qoder/scripts/archive_prd.py +377 -0
  30. package/templates/qoder/scripts/autotest.py +1715 -0
  31. package/templates/qoder/scripts/autotest_batch.py +224 -0
  32. package/templates/qoder/scripts/autotest_run.py +297 -0
  33. package/templates/qoder/scripts/benchmark.py +210 -209
  34. package/templates/qoder/scripts/build_style_index.py +444 -4
  35. package/templates/qoder/scripts/check_carriers.py +238 -0
  36. package/templates/qoder/scripts/check_mcp.py +298 -0
  37. package/templates/qoder/scripts/check_qoderwork_consistency.py +166 -0
  38. package/templates/qoder/scripts/common/events.py +46 -0
  39. package/templates/qoder/scripts/common/extract.py +419 -0
  40. package/templates/qoder/scripts/common/graph_traverse.py +533 -0
  41. package/templates/qoder/scripts/common/paths.py +89 -0
  42. package/templates/qoder/scripts/common/pip_install.py +144 -0
  43. package/templates/qoder/scripts/common/platform_guard.py +61 -0
  44. package/templates/qoder/scripts/common/search_engine.py +205 -205
  45. package/templates/qoder/scripts/common/terms.py +57 -0
  46. package/templates/qoder/scripts/common/ts_extract.py +536 -0
  47. package/templates/qoder/scripts/context_pack.py +73 -13
  48. package/templates/qoder/scripts/enrich_prompt.py +226 -0
  49. package/templates/qoder/scripts/eval_prd.py +318 -231
  50. package/templates/qoder/scripts/export.py +487 -487
  51. package/templates/qoder/scripts/extract_api_params.py +246 -0
  52. package/templates/qoder/scripts/extract_routes.py +54 -0
  53. package/templates/qoder/scripts/extract_routes_tree.py +78 -0
  54. package/templates/qoder/scripts/fill_prototype.py +707 -0
  55. package/templates/qoder/scripts/gen_design_doc.py +394 -0
  56. package/templates/qoder/scripts/git_sync.py +27 -15
  57. package/templates/qoder/scripts/init_doctor.py +292 -40
  58. package/templates/qoder/scripts/install_qoderwork.py +366 -9
  59. package/templates/qoder/scripts/kg.py +708 -0
  60. package/templates/qoder/scripts/kg_auto_login.py +196 -0
  61. package/templates/qoder/scripts/kg_build.py +612 -0
  62. package/templates/qoder/scripts/kg_build_db.py +327 -0
  63. package/templates/qoder/scripts/kg_duckdb.py +549 -0
  64. package/templates/qoder/scripts/kg_incremental.py +393 -0
  65. package/templates/qoder/scripts/kg_link_db.py +224 -0
  66. package/templates/qoder/scripts/kg_mcp_server.py +801 -0
  67. package/templates/qoder/scripts/kg_semantic.py +150 -0
  68. package/templates/qoder/scripts/kg_test_runner.py +241 -0
  69. package/templates/qoder/scripts/lanhu_stdio_wrapper.py +119 -0
  70. package/templates/qoder/scripts/learn.py +118 -39
  71. package/templates/qoder/scripts/learn_aggregate.py +201 -0
  72. package/templates/qoder/scripts/mcp_launcher.py +359 -0
  73. package/templates/qoder/scripts/mysql_mcp_server.py +396 -0
  74. package/templates/qoder/scripts/repo_root.py +106 -0
  75. package/templates/qoder/scripts/role.py +12 -0
  76. package/templates/qoder/scripts/run_weekly_update.bat +5 -0
  77. package/templates/qoder/scripts/run_weekly_update.sh +5 -0
  78. package/templates/qoder/scripts/search_index.py +307 -60
  79. package/templates/qoder/scripts/secure-ls.js +5640 -0
  80. package/templates/qoder/scripts/setup.py +706 -641
  81. package/templates/qoder/scripts/setup_lanhu.py +963 -0
  82. package/templates/qoder/scripts/status.py +250 -11
  83. package/templates/qoder/scripts/sync_carriers.py +259 -0
  84. package/templates/qoder/scripts/syncgate.py +2 -2
  85. package/templates/qoder/scripts/task.py +75 -0
  86. package/templates/qoder/scripts/team_sync.py +60 -4
  87. package/templates/qoder/scripts/workspace_init.py +1 -1
  88. package/templates/qoder/skills/design-import/SKILL.md +226 -0
  89. package/templates/qoder/skills/design-import/figma-workflow.md +81 -0
  90. package/templates/qoder/skills/design-review/SKILL.md +82 -25
  91. package/templates/qoder/skills/prd-generator/SKILL.md +184 -60
  92. package/templates/qoder/skills/prd-review/SKILL.md +18 -1
  93. package/templates/qoder/skills/prompt-enrich/SKILL.md +90 -0
  94. package/templates/qoder/skills/prototype-generator/SKILL.md +256 -141
  95. package/templates/qoder/skills/prototype-generator/SKILL.md.zcode-79180-2af4721f-f9a6-412c-88db-c0af680d211b.tmp +0 -0
  96. package/templates/qoder/skills/spec-coder/SKILL.md +18 -1
  97. package/templates/qoder/skills/spec-generator/SKILL.md +18 -1
  98. package/templates/qoder/skills/test-generator/SKILL.md +15 -2
  99. package/templates/qoder/skills/wl-code/SKILL.md +55 -36
  100. package/templates/qoder/skills/wl-commit/SKILL.md +89 -76
  101. package/templates/qoder/skills/wl-design/SKILL.md +55 -0
  102. package/templates/qoder/skills/wl-init/SKILL.md +76 -67
  103. package/templates/qoder/skills/wl-insight/SKILL.md +201 -81
  104. package/templates/qoder/skills/wl-prd-full/SKILL.md +69 -0
  105. package/templates/qoder/skills/wl-prd-quick/SKILL.md +49 -0
  106. package/templates/qoder/skills/wl-prd-review/SKILL.md +34 -0
  107. package/templates/qoder/skills/wl-report/SKILL.md +131 -107
  108. package/templates/qoder/skills/wl-search/SKILL.md +141 -75
  109. package/templates/qoder/skills/wl-spec/SKILL.md +49 -39
  110. package/templates/qoder/skills/wl-status/SKILL.md +83 -61
  111. package/templates/qoder/skills/wl-task/SKILL.md +132 -58
  112. package/templates/qoder/skills/wl-test/SKILL.md +406 -40
  113. package/templates/qoder/templates/prototype-app.html +13 -8
  114. package/templates/qoder/templates/prototype-web.html +376 -93
  115. package/templates/root/AGENTS.md +89 -34
  116. package/templates/root/requirements.txt +21 -0
  117. package/templates/root//344/275/277/347/224/250/350/257/264/346/230/216.md +259 -259
  118. package/templates/root//346/226/260/346/211/213/346/214/207/345/215/227.md +186 -186
  119. package/templates/qoder/agents/prd-planning.md +0 -57
  120. package/templates/qoder/agents/prd-research.md +0 -34
  121. package/templates/qoder/commands/wl-insight.md +0 -51
  122. package/templates/qoder/scripts/__pycache__/init_doctor.cpython-39.pyc +0 -0
  123. package/templates/qoder/scripts/__pycache__/setup.cpython-39.pyc +0 -0
  124. package/templates/qoder/scripts/common/__pycache__/developer.cpython-39.pyc +0 -0
  125. package/templates/qoder/skills/wl-prd/SKILL.md +0 -92
@@ -1,259 +1,259 @@
1
- # 完整使用说明
2
-
3
- > 从零开始,一步一步来。连 Python 都没有也能跟着做。
4
-
5
- ---
6
-
7
- ## 第一步:装前置环境(10 分钟)
8
-
9
- ### 1.1 装 Node.js(必须)
10
-
11
- Node.js 用来跑 `npx` 安装命令。
12
-
13
- **Windows:**
14
- 1. 打开 https://nodejs.org
15
- 2. 下载 **LTS 版**(左边那个绿色按钮)
16
- 3. 双击安装,一路点"下一步",全部默认
17
- 4. 装完按 `Win + R`,输 `cmd` 回车,在黑窗口里输:
18
- ```
19
- node --version
20
- ```
21
- 看到 `v20.x.x` 之类的就成功了
22
-
23
- **Mac:**
24
- 1. 打开终端(Launchpad → 其他 → 终端)
25
- 2. 输:`brew install node`(没装 brew 的先去 brew.sh 装)
26
- 3. 验证:`node --version`
27
-
28
- ### 1.2 装 Python(必须)
29
-
30
- Python 用来跑工作流的脚本引擎。
31
-
32
- **Windows:**
33
- 1. 打开 https://www.python.org/downloads/
34
- 2. 点黄色大按钮 "Download Python 3.x.x"
35
- 3. 双击安装包,**重要:勾选底部 "Add Python to PATH"**,再点 "Install Now"
36
- 4. 装完在 cmd 里输:
37
- ```
38
- python --version
39
- ```
40
- 看到 `Python 3.9.x` 或更高就成功了
41
-
42
- **Mac:**
43
- 1. 终端输:`brew install python`
44
- 2. 验证:`python3 --version`
45
-
46
- ### 1.3 装 git(推荐,不装也能用大部分功能)
47
-
48
- git 用来团队协作和拉取源码。**没有 git 不影响写 PRD、建任务、出报告。**
49
-
50
- **Windows:**
51
- 1. 打开 https://git-scm.com/download/win
52
- 2. 下载自动安装包,双击安装,全部默认
53
- 3. 验证:`git --version`
54
-
55
- **Mac:**
56
- - 打开终端,第一次输 `git` 时 Mac 会提示安装,点"安装"即可
57
- - 或手动:`brew install git`
58
-
59
- ---
60
-
61
- ## 第二步:创建项目并安装工作流(2 分钟)
62
-
63
- ### 2.1 建项目文件夹
64
-
65
- **Windows:**
66
- ```
67
- mkdir D:\我的项目
68
- cd D:\我的项目
69
- ```
70
-
71
- **Mac:**
72
- ```
73
- mkdir ~/我的项目
74
- cd ~/我的项目
75
- ```
76
-
77
- ### 2.2 一键安装
78
-
79
- ```
80
- npx @hupan56/wlkj init
81
- ```
82
-
83
- 它会自动:
84
- - 下载并安装完整工作流引擎
85
- - 问你叫什么名字(或从 git 配置读)
86
- - 注册你的身份
87
- - 如果有 git,自动配置
88
- - 如果配了源码地址,自动拉取源码并建索引
89
-
90
- 看到这个就成功了:
91
- ```
92
- ✓ 开发者: 你的名字
93
- 安装完成! 现在可以开始了
94
- ```
95
-
96
- > 也可以指定名字:`npx @hupan56/wlkj init 小王`
97
-
98
- ---
99
-
100
- ## 第三步:开始使用
101
-
102
- ### 方式 A:用 Qoder 客户端(推荐)
103
-
104
- 如果你装了 **Qoder IDE / Quest / QoderWork**:
105
-
106
- 1. 用 Qoder 打开你刚创建的项目文件夹
107
- 2. 在对话框里直接说中文:
108
- - "写个保险异常筛选的需求"
109
- - "查一下考勤代码在哪"
110
- - "建个任务:登录优化"
111
- 3. 或输入 `/` 看所有命令(`/wl-prd` `/wl-search` 等)
112
-
113
- **看不到 `/` 命令?**
114
- - Quest 模式:新建一个对话
115
- - QoderWork:跑 `python .qoder/scripts/install_qoderwork.py`,然后重启 QoderWork
116
-
117
- ### 方式 B:用命令行(无 Qoder 时)
118
-
119
- ```
120
- python .qoder/scripts/search_index.py 保险
121
- python .qoder/scripts/task.py create "登录优化"
122
- python .qoder/scripts/report.py daily
123
- ```
124
-
125
- ---
126
-
127
- ## 全部功能速查
128
-
129
- ### 写需求 + 原型
130
-
131
- | 做什么 | 说什么 / 命令 |
132
- |--------|-------------|
133
- | 写完整需求 | "写个 XXX 的需求" 或 `/wl-prd` |
134
- | 写小改动 | "快速写个 XXX" |
135
- | 头脑风暴 | "脑暴一下 XXX" |
136
- | 画原型 | 随需求自动生成 |
137
- | 评审 PRD | "评审这个 PRD" |
138
-
139
- ### 查代码(不懂代码也能查)
140
-
141
- | 做什么 | 说什么 / 命令 |
142
- |--------|-------------|
143
- | 找业务代码 | "保险的代码在哪" 或 `/wl-search 保险` |
144
- | 找 API | `/wl-search --api 考勤` |
145
- | 找字段用法 | `/wl-search --field nickName` |
146
- | 找同类页面 | `/wl-search --style table` |
147
- | 一键全上下文 | `python .qoder/scripts/context_pack.py 保险 --platform web` |
148
-
149
- ### 管任务
150
-
151
- | 做什么 | 说什么 / 命令 |
152
- |--------|-------------|
153
- | 建任务 | "建个任务:登录优化" |
154
- | 设截止日期 | `python .qoder/scripts/task.py set-due 任务名 2026-07-15` |
155
- | 标记依赖 | `python .qoder/scripts/task.py block A B`(A 被 B 阻塞) |
156
- | 看能开始的 | `python .qoder/scripts/task.py list --ready` |
157
- | 看被卡住的 | `python .qoder/scripts/task.py list --blocked` |
158
- | 看甘特图 | `python .qoder/scripts/task.py gantt` |
159
- | 完成任务 | "这个任务做完了" |
160
-
161
- ### 看进度 + 出报告
162
-
163
- | 做什么 | 说什么 / 命令 |
164
- |--------|-------------|
165
- | 看项目健康度 | "项目怎么样" 或 `python .qoder/scripts/status.py` |
166
- | 出日报 | "今天干了啥" 或 `python .qoder/scripts/report.py daily` |
167
- | 出周报 | `python .qoder/scripts/report.py weekly` |
168
-
169
- ### 导出
170
-
171
- | 做什么 | 命令 |
172
- |--------|------|
173
- | 导 Jira CSV | `python .qoder/scripts/export.py jira` |
174
- | 导 OpenAPI | `python .qoder/scripts/export.py openapi --project 你的项目` |
175
- | 查调用图 | `python .qoder/scripts/export.py callgraph --class ClassName` |
176
-
177
- ### 团队协作
178
-
179
- | 做什么 | 说什么 / 命令 |
180
- |--------|-------------|
181
- | 同步给团队 | "同步" 或 `python .qoder/scripts/team_sync.py push` |
182
- | 拉取队友最新 | "拉取最新" 或 `python .qoder/scripts/team_sync.py pull` |
183
- | 看同步状态 | `python .qoder/scripts/team_sync.py status` |
184
-
185
- ---
186
-
187
- ## 团队配置(团队负责人做一次)
188
-
189
- ### 填源码仓库地址
190
-
191
- 打开 `.qoder/config.yaml`,找到这段,改成你们的 git 地址:
192
-
193
- ```yaml
194
- git_sync:
195
- projects:
196
- 你的项目名: # ← 改成你的项目名
197
- url: http://你的git服务器/你的项目.git # ← 改成你的
198
- branch: main # ← 改成你的主分支
199
- ```
200
-
201
- > 不知道填什么?注释掉整段,手动把代码放到 `data/code/项目名/` 也行。
202
-
203
- ### 注册周五自动更新(全队只需一台机器)
204
-
205
- ```
206
- python .qoder/scripts/setup_weekly_cron.bat
207
- ```
208
-
209
- ### 配飞书通知(可选)
210
-
211
- `.qoder/config.yaml` 里:
212
-
213
- ```yaml
214
- feishu:
215
- enabled: true
216
- webhook_url: "https://open.feishu.cn/open-apis/bot/v2/hook/你的token"
217
- ```
218
-
219
- ---
220
-
221
- ## 常见问题
222
-
223
- ### 安装时
224
-
225
- | 问题 | 解决 |
226
- |------|------|
227
- | `npx` 命令找不到 | 先装 Node.js(见第一步) |
228
- | `python` 命令找不到 | 先装 Python(见第一步),**勾选 Add to PATH** |
229
- | setup.py 报错 | 跑 `python .qoder/scripts/init_doctor.py --fix` 自动修复 |
230
-
231
- ### 使用时
232
-
233
- | 问题 | 解决 |
234
- |------|------|
235
- | 搜索没结果 | 先跑 `python .qoder/scripts/setup.py` 建索引 |
236
- | Qoder 里看不到 `/` 命令 | 新建对话 / 重启 QoderWork |
237
- | 命令报错 | `python .qoder/scripts/init_doctor.py --fix` |
238
- | 索引过期 | `python .qoder/scripts/git_sync.py --index-only` |
239
-
240
- ### 速查
241
-
242
- ```
243
- 安装 → npx @hupan56/wlkj init
244
- 环境修复 → python .qoder/scripts/init_doctor.py --fix
245
- 重新初始化 → python .qoder/scripts/setup.py
246
- 性能测试 → python .qoder/scripts/benchmark.py
247
- ```
248
-
249
- ---
250
-
251
- ## 环境要求总结
252
-
253
- | 环境 | 必须? | 版本 |
254
- |------|--------|------|
255
- | **Node.js** | 必须(装工作流用) | 16+ |
256
- | **Python** | 必须(跑引擎) | 3.9+ |
257
- | **git** | 推荐(团队协作用,不装也能用核心功能) | 任意 |
258
- | **Qoder 客户端** | 推荐(AI 对话驱动,不装也能用命令行) | IDE/Quest/QoderWork 任一 |
259
- | **飞书** | 可选(通知推送) | 有群机器人即可 |
1
+ # 完整使用说明
2
+
3
+ > 从零开始,一步一步来。连 Python 都没有也能跟着做。
4
+
5
+ ---
6
+
7
+ ## 第一步:装前置环境(10 分钟)
8
+
9
+ ### 1.1 装 Node.js(必须)
10
+
11
+ Node.js 用来跑 `npx` 安装命令。
12
+
13
+ **Windows:**
14
+ 1. 打开 https://nodejs.org
15
+ 2. 下载 **LTS 版**(左边那个绿色按钮)
16
+ 3. 双击安装,一路点"下一步",全部默认
17
+ 4. 装完按 `Win + R`,输 `cmd` 回车,在黑窗口里输:
18
+ ```
19
+ node --version
20
+ ```
21
+ 看到 `v20.x.x` 之类的就成功了
22
+
23
+ **Mac:**
24
+ 1. 打开终端(Launchpad → 其他 → 终端)
25
+ 2. 输:`brew install node`(没装 brew 的先去 brew.sh 装)
26
+ 3. 验证:`node --version`
27
+
28
+ ### 1.2 装 Python(必须)
29
+
30
+ Python 用来跑工作流的脚本引擎。
31
+
32
+ **Windows:**
33
+ 1. 打开 https://www.python.org/downloads/
34
+ 2. 点黄色大按钮 "Download Python 3.x.x"
35
+ 3. 双击安装包,**重要:勾选底部 "Add Python to PATH"**,再点 "Install Now"
36
+ 4. 装完在 cmd 里输:
37
+ ```
38
+ python --version
39
+ ```
40
+ 看到 `Python 3.9.x` 或更高就成功了
41
+
42
+ **Mac:**
43
+ 1. 终端输:`brew install python`
44
+ 2. 验证:`python3 --version`
45
+
46
+ ### 1.3 装 git(推荐,不装也能用大部分功能)
47
+
48
+ git 用来团队协作和拉取源码。**没有 git 不影响写 PRD、建任务、出报告。**
49
+
50
+ **Windows:**
51
+ 1. 打开 https://git-scm.com/download/win
52
+ 2. 下载自动安装包,双击安装,全部默认
53
+ 3. 验证:`git --version`
54
+
55
+ **Mac:**
56
+ - 打开终端,第一次输 `git` 时 Mac 会提示安装,点"安装"即可
57
+ - 或手动:`brew install git`
58
+
59
+ ---
60
+
61
+ ## 第二步:创建项目并安装工作流(2 分钟)
62
+
63
+ ### 2.1 建项目文件夹
64
+
65
+ **Windows:**
66
+ ```
67
+ mkdir D:\我的项目
68
+ cd D:\我的项目
69
+ ```
70
+
71
+ **Mac:**
72
+ ```
73
+ mkdir ~/我的项目
74
+ cd ~/我的项目
75
+ ```
76
+
77
+ ### 2.2 一键安装
78
+
79
+ ```
80
+ npx @hupan56/wlkj init
81
+ ```
82
+
83
+ 它会自动:
84
+ - 下载并安装完整工作流引擎
85
+ - 问你叫什么名字(或从 git 配置读)
86
+ - 注册你的身份
87
+ - 如果有 git,自动配置
88
+ - 如果配了源码地址,自动拉取源码并建索引
89
+
90
+ 看到这个就成功了:
91
+ ```
92
+ ✓ 开发者: 你的名字
93
+ 安装完成! 现在可以开始了
94
+ ```
95
+
96
+ > 也可以指定名字:`npx @hupan56/wlkj init 小王`
97
+
98
+ ---
99
+
100
+ ## 第三步:开始使用
101
+
102
+ ### 方式 A:用 Qoder 客户端(推荐)
103
+
104
+ 如果你装了 **Qoder IDE / Quest / QoderWork**:
105
+
106
+ 1. 用 Qoder 打开你刚创建的项目文件夹
107
+ 2. 在对话框里直接说中文:
108
+ - "写个保险异常筛选的需求"
109
+ - "查一下考勤代码在哪"
110
+ - "建个任务:登录优化"
111
+ 3. 或输入 `/` 看所有命令(`/wl-prd-full` `/wl-search` 等)
112
+
113
+ **看不到 `/` 命令?**
114
+ - Quest 模式:新建一个对话
115
+ - QoderWork:跑 `python .qoder/scripts/install_qoderwork.py`,然后重启 QoderWork
116
+
117
+ ### 方式 B:用命令行(无 Qoder 时)
118
+
119
+ ```
120
+ python .qoder/scripts/search_index.py 保险
121
+ python .qoder/scripts/task.py create "登录优化"
122
+ python .qoder/scripts/report.py daily
123
+ ```
124
+
125
+ ---
126
+
127
+ ## 全部功能速查
128
+
129
+ ### 写需求 + 原型
130
+
131
+ | 做什么 | 说什么 / 命令 |
132
+ |--------|-------------|
133
+ | 写完整需求 | "写个 XXX 的需求" 或 `/wl-prd-full` |
134
+ | 写小改动 | "快速写个 XXX" |
135
+ | 头脑风暴 | "脑暴一下 XXX" |
136
+ | 画原型 | 随需求自动生成 |
137
+ | 评审 PRD | "评审这个 PRD" |
138
+
139
+ ### 查代码(不懂代码也能查)
140
+
141
+ | 做什么 | 说什么 / 命令 |
142
+ |--------|-------------|
143
+ | 找业务代码 | "保险的代码在哪" 或 `/wl-search 保险` |
144
+ | 找 API | `/wl-search --api 考勤` |
145
+ | 找字段用法 | `/wl-search --field nickName` |
146
+ | 找同类页面 | `/wl-search --style table` |
147
+ | 一键全上下文 | `python .qoder/scripts/context_pack.py 保险 --platform web` |
148
+
149
+ ### 管任务
150
+
151
+ | 做什么 | 说什么 / 命令 |
152
+ |--------|-------------|
153
+ | 建任务 | "建个任务:登录优化" |
154
+ | 设截止日期 | `python .qoder/scripts/task.py set-due 任务名 2026-07-15` |
155
+ | 标记依赖 | `python .qoder/scripts/task.py block A B`(A 被 B 阻塞) |
156
+ | 看能开始的 | `python .qoder/scripts/task.py list --ready` |
157
+ | 看被卡住的 | `python .qoder/scripts/task.py list --blocked` |
158
+ | 看甘特图 | `python .qoder/scripts/task.py gantt` |
159
+ | 完成任务 | "这个任务做完了" |
160
+
161
+ ### 看进度 + 出报告
162
+
163
+ | 做什么 | 说什么 / 命令 |
164
+ |--------|-------------|
165
+ | 看项目健康度 | "项目怎么样" 或 `python .qoder/scripts/status.py` |
166
+ | 出日报 | "今天干了啥" 或 `python .qoder/scripts/report.py daily` |
167
+ | 出周报 | `python .qoder/scripts/report.py weekly` |
168
+
169
+ ### 导出
170
+
171
+ | 做什么 | 命令 |
172
+ |--------|------|
173
+ | 导 Jira CSV | `python .qoder/scripts/export.py jira` |
174
+ | 导 OpenAPI | `python .qoder/scripts/export.py openapi --project 你的项目` |
175
+ | 查调用图 | `python .qoder/scripts/export.py callgraph --class ClassName` |
176
+
177
+ ### 团队协作
178
+
179
+ | 做什么 | 说什么 / 命令 |
180
+ |--------|-------------|
181
+ | 同步给团队 | "同步" 或 `python .qoder/scripts/team_sync.py push` |
182
+ | 拉取队友最新 | "拉取最新" 或 `python .qoder/scripts/team_sync.py pull` |
183
+ | 看同步状态 | `python .qoder/scripts/team_sync.py status` |
184
+
185
+ ---
186
+
187
+ ## 团队配置(团队负责人做一次)
188
+
189
+ ### 填源码仓库地址
190
+
191
+ 打开 `.qoder/config.yaml`,找到这段,改成你们的 git 地址:
192
+
193
+ ```yaml
194
+ git_sync:
195
+ projects:
196
+ 你的项目名: # ← 改成你的项目名
197
+ url: http://你的git服务器/你的项目.git # ← 改成你的
198
+ branch: main # ← 改成你的主分支
199
+ ```
200
+
201
+ > 不知道填什么?注释掉整段,手动把代码放到 `data/code/项目名/` 也行。
202
+
203
+ ### 注册周五自动更新(全队只需一台机器)
204
+
205
+ ```
206
+ python .qoder/scripts/setup_weekly_cron.bat
207
+ ```
208
+
209
+ ### 配飞书通知(可选)
210
+
211
+ `.qoder/config.yaml` 里:
212
+
213
+ ```yaml
214
+ feishu:
215
+ enabled: true
216
+ webhook_url: "https://open.feishu.cn/open-apis/bot/v2/hook/你的token"
217
+ ```
218
+
219
+ ---
220
+
221
+ ## 常见问题
222
+
223
+ ### 安装时
224
+
225
+ | 问题 | 解决 |
226
+ |------|------|
227
+ | `npx` 命令找不到 | 先装 Node.js(见第一步) |
228
+ | `python` 命令找不到 | 先装 Python(见第一步),**勾选 Add to PATH** |
229
+ | setup.py 报错 | 跑 `python .qoder/scripts/init_doctor.py --fix` 自动修复 |
230
+
231
+ ### 使用时
232
+
233
+ | 问题 | 解决 |
234
+ |------|------|
235
+ | 搜索没结果 | 先跑 `python .qoder/scripts/setup.py` 建索引 |
236
+ | Qoder 里看不到 `/` 命令 | 新建对话 / 重启 QoderWork |
237
+ | 命令报错 | `python .qoder/scripts/init_doctor.py --fix` |
238
+ | 索引过期 | `python .qoder/scripts/git_sync.py --index-only` |
239
+
240
+ ### 速查
241
+
242
+ ```
243
+ 安装 → npx @hupan56/wlkj init
244
+ 环境修复 → python .qoder/scripts/init_doctor.py --fix
245
+ 重新初始化 → python .qoder/scripts/setup.py
246
+ 性能测试 → python .qoder/scripts/benchmark.py
247
+ ```
248
+
249
+ ---
250
+
251
+ ## 环境要求总结
252
+
253
+ | 环境 | 必须? | 版本 |
254
+ |------|--------|------|
255
+ | **Node.js** | 必须(装工作流用) | 16+ |
256
+ | **Python** | 必须(跑引擎) | 3.9+ |
257
+ | **git** | 推荐(团队协作用,不装也能用核心功能) | 任意 |
258
+ | **Qoder 客户端** | 推荐(AI 对话驱动,不装也能用命令行) | IDE/Quest/QoderWork 任一 |
259
+ | **飞书** | 可选(通知推送) | 有群机器人即可 |