@hupan56/wlkj 2.0.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.
- package/bin/cli.js +213 -0
- package/package.json +11 -0
- package/templates/cli.js +198 -0
- package/templates/qoder/commands/wl-code.md +43 -0
- package/templates/qoder/commands/wl-commit.md +30 -0
- package/templates/qoder/commands/wl-init.md +80 -0
- package/templates/qoder/commands/wl-insight.md +51 -0
- package/templates/qoder/commands/wl-prd.md +199 -0
- package/templates/qoder/commands/wl-report.md +166 -0
- package/templates/qoder/commands/wl-search.md +52 -0
- package/templates/qoder/commands/wl-spec.md +18 -0
- package/templates/qoder/commands/wl-status.md +51 -0
- package/templates/qoder/commands/wl-task.md +71 -0
- package/templates/qoder/commands/wl-test.md +42 -0
- package/templates/qoder/config.toml +5 -0
- package/templates/qoder/config.yaml +141 -0
- package/templates/qoder/hooks/inject-workflow-state.py +117 -0
- package/templates/qoder/hooks/session-start.py +204 -0
- package/templates/qoder/rules/wl-pipeline.md +105 -0
- package/templates/qoder/scripts/add_session.py +245 -0
- package/templates/qoder/scripts/benchmark.py +209 -0
- package/templates/qoder/scripts/build_style_index.py +268 -0
- package/templates/qoder/scripts/code_index.py +41 -0
- package/templates/qoder/scripts/collect_prds.py +31 -0
- package/templates/qoder/scripts/common/__init__.py +0 -0
- package/templates/qoder/scripts/common/active_task.py +230 -0
- package/templates/qoder/scripts/common/atomicio.py +172 -0
- package/templates/qoder/scripts/common/developer.py +161 -0
- package/templates/qoder/scripts/common/eval_api.py +144 -0
- package/templates/qoder/scripts/common/feishu.py +278 -0
- package/templates/qoder/scripts/common/filelock.py +211 -0
- package/templates/qoder/scripts/common/identity.py +285 -0
- package/templates/qoder/scripts/common/mentions.py +134 -0
- package/templates/qoder/scripts/common/paths.py +311 -0
- package/templates/qoder/scripts/common/reqid.py +218 -0
- package/templates/qoder/scripts/common/search_engine.py +205 -0
- package/templates/qoder/scripts/common/task_utils.py +342 -0
- package/templates/qoder/scripts/common/terms.py +234 -0
- package/templates/qoder/scripts/common/utf8.py +38 -0
- package/templates/qoder/scripts/context_pack.py +196 -0
- package/templates/qoder/scripts/eval_prd.py +225 -0
- package/templates/qoder/scripts/export.py +487 -0
- package/templates/qoder/scripts/git_sync.py +1087 -0
- package/templates/qoder/scripts/handoff.py +22 -0
- package/templates/qoder/scripts/init_developer.py +76 -0
- package/templates/qoder/scripts/init_doctor.py +527 -0
- package/templates/qoder/scripts/install_qoderwork.py +339 -0
- package/templates/qoder/scripts/learn.py +67 -0
- package/templates/qoder/scripts/notify.py +5 -0
- package/templates/qoder/scripts/parse_prds.py +33 -0
- package/templates/qoder/scripts/report.py +281 -0
- package/templates/qoder/scripts/role.py +39 -0
- package/templates/qoder/scripts/run_weekly_update.bat +17 -0
- package/templates/qoder/scripts/run_weekly_update.sh +20 -0
- package/templates/qoder/scripts/search_index.py +352 -0
- package/templates/qoder/scripts/setup.py +453 -0
- package/templates/qoder/scripts/setup_weekly_cron.bat +22 -0
- package/templates/qoder/scripts/setup_weekly_cron.sh +19 -0
- package/templates/qoder/scripts/status.py +389 -0
- package/templates/qoder/scripts/syncgate.py +330 -0
- package/templates/qoder/scripts/task.py +954 -0
- package/templates/qoder/scripts/team.py +29 -0
- package/templates/qoder/scripts/team_sync.py +419 -0
- package/templates/qoder/scripts/workspace_init.py +102 -0
- package/templates/qoder/settings.json +53 -0
- package/templates/qoder/skills/design-review/SKILL.md +25 -0
- package/templates/qoder/skills/prd-generator/SKILL.md +180 -0
- package/templates/qoder/skills/prd-review/SKILL.md +36 -0
- package/templates/qoder/skills/prototype-generator/SKILL.md +141 -0
- package/templates/qoder/skills/spec-coder/SKILL.md +69 -0
- package/templates/qoder/skills/spec-generator/SKILL.md +67 -0
- package/templates/qoder/skills/test-generator/SKILL.md +72 -0
- package/templates/qoder/skills/wl-commit/SKILL.md +76 -0
- package/templates/qoder/skills/wl-init/SKILL.md +67 -0
- package/templates/qoder/skills/wl-insight/SKILL.md +81 -0
- package/templates/qoder/skills/wl-report/SKILL.md +87 -0
- package/templates/qoder/skills/wl-search/SKILL.md +75 -0
- package/templates/qoder/skills/wl-status/SKILL.md +61 -0
- package/templates/qoder/skills/wl-task/SKILL.md +58 -0
- package/templates/qoder/templates/prd-full-template.md +103 -0
- package/templates/qoder/templates/prd-quick-template.md +69 -0
- package/templates/qoder/templates/prototype-app.html +344 -0
- package/templates/qoder/templates/prototype-web.html +310 -0
- package/templates/root/AGENTS.md +182 -0
- package/templates/root/README-pipeline.md +56 -0
- package/templates/root/ROLES.md +85 -0
- package/templates/root//346/226/260/346/211/213/346/214/207/345/215/227.md +186 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# QODER Pipeline
|
|
2
|
+
|
|
3
|
+
## ⚠️ CRITICAL RULE #1: ALWAYS ASK PLATFORM FIRST
|
|
4
|
+
|
|
5
|
+
**When user asks for PRD or prototype, you MUST ask this question FIRST:**
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
这个需求是针对哪个平台?
|
|
9
|
+
|
|
10
|
+
1. **Web 管理端** (fywl-ui) - Ant Design Vue + VxeGrid 风格
|
|
11
|
+
2. **APP 移动端** (Carmg-H5) - Vant 风格
|
|
12
|
+
3. **两端都要**
|
|
13
|
+
|
|
14
|
+
请选择 (1/2/3):
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**DO NOT skip this question. DO NOT auto-detect. ALWAYS ASK.**
|
|
18
|
+
**Wait for user answer before doing ANYTHING else.**
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## CRITICAL RULE #2: Use /wl-search to find code
|
|
23
|
+
|
|
24
|
+
When user asks about code, business, API, feature:
|
|
25
|
+
1. **ALWAYS** use `/wl-search <keyword>` command first
|
|
26
|
+
2. Then read only the specific files returned
|
|
27
|
+
3. **NEVER** grep the entire codebase directly
|
|
28
|
+
|
|
29
|
+
Examples:
|
|
30
|
+
- "考勤代码在哪" -> /wl-search attendance
|
|
31
|
+
- "保险定时任务" -> /wl-search insurance
|
|
32
|
+
- "薪资API" -> /wl-search --api salary
|
|
33
|
+
|
|
34
|
+
## CRITICAL RULE #2.5: 自然语言 → 技能 路由(Quest / QoderWork 入口)
|
|
35
|
+
|
|
36
|
+
Quest 与 QoderWork 没有斜杠命令,AI 必须按下表把用户自然语言映射到
|
|
37
|
+
`.qoder/skills/` 下的技能(Qoder IDE 编辑器与 CLI 用 `/wl-*` 命令,同样适用):
|
|
38
|
+
|
|
39
|
+
| 用户说什么 | 触发 skill |
|
|
40
|
+
|------------|-----------|
|
|
41
|
+
| "写个需求""生成PRD""做个原型" | prd-generator + prototype-generator |
|
|
42
|
+
| "查一下""代码在哪""搜保险""考勤API" | wl-search |
|
|
43
|
+
| "建任务""排优先级""任务做完了" | wl-task |
|
|
44
|
+
| "项目怎么样""进度""健康度" | wl-status |
|
|
45
|
+
| "写日报""周报""我干了啥" | wl-report |
|
|
46
|
+
| "用户反馈""数据怎么样" | wl-insight |
|
|
47
|
+
| "生成规格""写spec" | spec-generator |
|
|
48
|
+
| "开始写代码""按规格实现" | spec-coder |
|
|
49
|
+
| "写单元测试" | test-generator |
|
|
50
|
+
| "评审PRD" | prd-review |
|
|
51
|
+
| "提交代码""commit""推上去" | wl-commit |
|
|
52
|
+
| "初始化""换开发者""环境检查" | wl-init |
|
|
53
|
+
|
|
54
|
+
找不到明确匹配 → 先问用户意图,不要乱跑。
|
|
55
|
+
注意区分:"同步/保存产出" = team_sync(push);"提交/commit 代码" = wl-commit。
|
|
56
|
+
|
|
57
|
+
## CRITICAL RULE #3: User NEVER touches git
|
|
58
|
+
|
|
59
|
+
PMs on this team do not know git. ALL git operations are invisible:
|
|
60
|
+
- After any publish/save action (/wl-prd publish, /wl-task create/finish,
|
|
61
|
+
/wl-report save), run: `python .qoder/scripts/team_sync.py push`
|
|
62
|
+
- To get teammates' latest work: `python .qoder/scripts/team_sync.py pull`
|
|
63
|
+
- If team_sync prints SYNC_CONFLICT, YOU (the AI) resolve the conflict
|
|
64
|
+
yourself (it tells you the commands). NEVER ask the user to run git.
|
|
65
|
+
- When the user says 同步/保存/提交 in natural language -> team_sync, not raw git.
|
|
66
|
+
|
|
67
|
+
## Platform Filtering
|
|
68
|
+
|
|
69
|
+
After user selects platform, use it for search:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Search by platform
|
|
73
|
+
/wl-search 保险 --platform web # Only fywl-ui (PC)
|
|
74
|
+
/wl-search 保险 --platform app # Only Carmg-H5 (Mobile)
|
|
75
|
+
/wl-search 保险 # Both platforms
|
|
76
|
+
|
|
77
|
+
# Platform shortcuts
|
|
78
|
+
web/pc/管理端 -> fywl-ui
|
|
79
|
+
app/mobile/h5/移动端 -> Carmg-H5
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 11 Commands (All prefixed /wl-)
|
|
83
|
+
|
|
84
|
+
### Pipeline Core
|
|
85
|
+
| Command | Auto | Purpose |
|
|
86
|
+
|---------|------|---------|
|
|
87
|
+
| `/wl-init` | YES | Register/switch developer identity |
|
|
88
|
+
| `/wl-prd` | YES | Generate PRD (ASKS platform first!) |
|
|
89
|
+
| `/wl-spec` | YES | Generate technical Spec from PRD |
|
|
90
|
+
| `/wl-code` | NO | Code implementation (needs confirm) |
|
|
91
|
+
| `/wl-commit` | NO | Git commit + push + sync (needs confirm) |
|
|
92
|
+
|
|
93
|
+
### Product Management
|
|
94
|
+
| Command | Auto | Purpose |
|
|
95
|
+
|---------|------|---------|
|
|
96
|
+
| `/wl-search` | YES | Search code index (supports Chinese, platform filtering) |
|
|
97
|
+
| `/wl-task` | YES | Task management + RICE prioritization |
|
|
98
|
+
| `/wl-status` | YES | Project status + roadmap + health |
|
|
99
|
+
| `/wl-insight` | YES | Feedback analysis + metrics review |
|
|
100
|
+
|
|
101
|
+
### Reporting
|
|
102
|
+
| Command | Auto | Purpose |
|
|
103
|
+
|---------|------|---------|
|
|
104
|
+
| `/wl-report` | YES | Generate daily or weekly work report |
|
|
105
|
+
| `/wl-test` | NO | Generate unit tests (needs confirm) |
|
|
106
|
+
|
|
107
|
+
## Knowledge Index
|
|
108
|
+
|
|
109
|
+
3 projects: Carmg-H5(1378 files), fywl-ics(8973 files, 3903 APIs), fywl-ui(3270 files)
|
|
110
|
+
Search: /wl-search <keyword> returns compact results (~200 bytes)
|
|
111
|
+
Weekly sync: python .qoder/scripts/git_sync.py
|
|
112
|
+
|
|
113
|
+
### Style Index (Prototype Reference)
|
|
114
|
+
UI patterns from Vue files: Tables(718), Forms(301), Detail(129), Dashboard(90)
|
|
115
|
+
Top components: Space(583), Modal(270), Select(172), Input(134)
|
|
116
|
+
Form components: Input(2262), Select(1049), ApiSelect(725), DatePicker(265)
|
|
117
|
+
Field map: 2383 entries
|
|
118
|
+
|
|
119
|
+
Style search:
|
|
120
|
+
python .qoder/scripts/search_index.py --style table/form/modal/dashboard
|
|
121
|
+
python .qoder/scripts/search_index.py --field <field_name>
|
|
122
|
+
python .qoder/scripts/search_index.py --components
|
|
123
|
+
python .qoder/scripts/search_index.py --vben # Vben Admin CSS variables
|
|
124
|
+
|
|
125
|
+
Prototype templates:
|
|
126
|
+
.qoder/templates/prototype-web.html # Web管理端 (Vben Admin + Ant Design)
|
|
127
|
+
.qoder/templates/prototype-app.html # APP移动端 (Vant)
|
|
128
|
+
|
|
129
|
+
Prototype output: workspace/members/{dev}/drafts/prototype-{feature}.html
|
|
130
|
+
Style priority: Code > PDF > Default
|
|
131
|
+
|
|
132
|
+
## Workflow
|
|
133
|
+
|
|
134
|
+
/wl-init -> /wl-prd (ASK PLATFORM!) -> /wl-task -> /wl-spec -> /wl-code -> /wl-test -> /wl-commit -> /wl-report
|
|
135
|
+
|
|
136
|
+
## Cross-platform & Qoder Product Family Compatibility
|
|
137
|
+
|
|
138
|
+
This pipeline works on Windows + macOS, across the whole Qoder family.
|
|
139
|
+
Each product loads rules from a different carrier — keep them in sync:
|
|
140
|
+
|
|
141
|
+
| 产品/模式 | 规则载体 | 命令载体 |
|
|
142
|
+
|-----------|---------|---------|
|
|
143
|
+
| Qoder IDE 默认编辑器 | .qoder/rules/wl-pipeline.md (always_on) | .qoder/commands/wl-*.md |
|
|
144
|
+
| Qoder Quest 模式 | .qoder/rules/ + .qoder/skills/ + .qoder/agents/ | 自然语言 -> skills |
|
|
145
|
+
| Qoder CLI (qodercli) | 本文件 AGENTS.md | 自然语言 -> scripts |
|
|
146
|
+
| QoderWork 桌面 Agent | 安装 .qoder/skills/ 下的技能 | 自然语言 -> skills |
|
|
147
|
+
| Claude Code 等其他工具 | 本文件 AGENTS.md | .qoder/commands/wl-*.md |
|
|
148
|
+
|
|
149
|
+
- THE rule file: `.qoder/rules/wl-pipeline.md` — 修改流程规则时同步更新它和本文件
|
|
150
|
+
- Quest 修改 agents/skills 后需重启 Quest 窗口/新建对话才能生效(Qoder 已知限制)
|
|
151
|
+
- **Repo Wiki** (`.qoder/repowiki/`, Qoder IDE 生成): 存在则作为模块级知识源,
|
|
152
|
+
写 PRD 前优先查相关模块页;可提交 git 团队共享。索引管"定位", Wiki 管"理解"。
|
|
153
|
+
- All scripts are pure Python 3 + git, path-autodetecting (no hardcoded
|
|
154
|
+
drive letters). Invoke as `python` (Windows) or `python3` (macOS).
|
|
155
|
+
- Weekly update: Windows -> scripts/setup_weekly_cron.bat,
|
|
156
|
+
macOS/Linux -> scripts/setup_weekly_cron.sh. Only ONE machine per team
|
|
157
|
+
needs this; everyone else gets the graph via /wl-init's auto pull.
|
|
158
|
+
- Environment problems of any kind -> run:
|
|
159
|
+
`python .qoder/scripts/init_doctor.py` (add --fix to auto-repair).
|
|
160
|
+
|
|
161
|
+
## Fast Path: one call to get all context
|
|
162
|
+
|
|
163
|
+
`python .qoder/scripts/context_pack.py <业务词> --platform <web|app>` returns
|
|
164
|
+
code files + page examples + field specs + PRDs + APIs + style/icon pointers
|
|
165
|
+
in ONE call. Use it FIRST; fall back to search_index.py for drill-down.
|
|
166
|
+
|
|
167
|
+
## Icons: NEVER emoji
|
|
168
|
+
|
|
169
|
+
Prototypes use the projects' real icon systems (data/index/icon-reference.json):
|
|
170
|
+
Web = Ant Design inline SVG, APP = Vant font icons. Emoji in a prototype = FAIL.
|
|
171
|
+
|
|
172
|
+
## Quality Gate (EVA)
|
|
173
|
+
|
|
174
|
+
Before publishing any PRD: `python .qoder/scripts/eval_prd.py <prd> [prototype]`
|
|
175
|
+
must PASS (>=80%). Metrics definition: data/docs/constitution/eva-metrics.md
|
|
176
|
+
|
|
177
|
+
## Permission Model
|
|
178
|
+
|
|
179
|
+
| Level | Commands | Auto |
|
|
180
|
+
|-------|---------|------|
|
|
181
|
+
| SAFE | /wl-init, /wl-prd, /wl-search, /wl-task, /wl-spec, /wl-status, /wl-insight, /wl-report | YES |
|
|
182
|
+
| DANGEROUS | /wl-code, /wl-test, /wl-commit | NO |
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# QODER R&D Pipeline
|
|
2
|
+
|
|
3
|
+
`npx wlkj init zhangsan` 一行搞定。
|
|
4
|
+
|
|
5
|
+
## 目录结构
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
.qoder/ 引擎(配置、脚本、规则) 你不需要直接碰
|
|
9
|
+
workspace/ 工作区(你每天看的东西) 清晰可见
|
|
10
|
+
specs/ 团队共享 Spec(Git 追踪)
|
|
11
|
+
tasks/ 团队共享任务(Git 追踪)
|
|
12
|
+
constitution/ 团队规范约束(Git 追踪)
|
|
13
|
+
members/ 个人工作空间(gitignored)
|
|
14
|
+
{你的名字}/
|
|
15
|
+
journal/ 个人会话日志
|
|
16
|
+
drafts/ 个人草稿
|
|
17
|
+
inbox/ 待处理项
|
|
18
|
+
workspace/specs/
|
|
19
|
+
prd/ PRD 产出
|
|
20
|
+
specs/ Spec 产出
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 四种工作模式
|
|
24
|
+
|
|
25
|
+
| 模式 | 适用场景 | 触发方式 |
|
|
26
|
+
|------|---------|---------|
|
|
27
|
+
| 需求调研 | 大需求/新领域 | "我要做一个XX系统" |
|
|
28
|
+
| 快速需求 | 小功能/Bug fix | "加个字段" / "跳过流程" |
|
|
29
|
+
| 代码对齐 | 现有项目迭代 | "对齐现有代码" |
|
|
30
|
+
| 个人->团队 | 草稿提交 | "推送给团队" |
|
|
31
|
+
|
|
32
|
+
## 命令
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# 初始化
|
|
36
|
+
npx wlkj init zhangsan
|
|
37
|
+
|
|
38
|
+
# 日常
|
|
39
|
+
npx wlkj status
|
|
40
|
+
npx wlkj task create "请假功能" -p P1
|
|
41
|
+
npx wlkj task list --mine
|
|
42
|
+
npx wlkj task start leave
|
|
43
|
+
npx wlkj task finish
|
|
44
|
+
|
|
45
|
+
# Git (中文)
|
|
46
|
+
npx wlkj 提交PRD # git add workspace/specs/ + commit + push
|
|
47
|
+
npx wlkj 拉取最新 # git pull
|
|
48
|
+
npx wlkj 提交代码 # git add src/ + commit + push
|
|
49
|
+
npx wlkj 提交测试 # git add tests/ + commit + push
|
|
50
|
+
npx wlkj 查看状态 # git status
|
|
51
|
+
|
|
52
|
+
# 在 QODER 里说
|
|
53
|
+
"帮我生成PRD,需求是..."
|
|
54
|
+
"按Spec编码"
|
|
55
|
+
"生成单元测试"
|
|
56
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# 三个角色怎么用
|
|
2
|
+
|
|
3
|
+
## 产品经理
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
第1步: 在 Codex 中说
|
|
7
|
+
"帮我生成PRD,需求是员工请假功能"
|
|
8
|
+
|
|
9
|
+
第2步: AI 逐题问你 5 个问题(每次只问一个)
|
|
10
|
+
- 业务场景是什么?
|
|
11
|
+
- 目标用户是谁?
|
|
12
|
+
- 核心功能是什么?
|
|
13
|
+
- 用户故事有哪些?
|
|
14
|
+
- 验收标准是什么?
|
|
15
|
+
|
|
16
|
+
第3步: AI 生成 PRD 到 docs/ai/prd/REQ-002-employee-leave.md
|
|
17
|
+
|
|
18
|
+
第4步: 你审核 PRD,确认后:
|
|
19
|
+
git add docs/ai/prd/
|
|
20
|
+
git commit -m "docs(ai): REQ-002 PRD [ai-generated]"
|
|
21
|
+
git push
|
|
22
|
+
|
|
23
|
+
完成。Spec 会自动生成。
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 开发人员
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
第0步: 初始化(一次性)
|
|
32
|
+
npx wlkj init zhangsan
|
|
33
|
+
|
|
34
|
+
第1步: 收到通知"REQ-002 Spec 已生成"
|
|
35
|
+
打开 docs/ai/specs/REQ-002-attendance-leave.md 审核
|
|
36
|
+
|
|
37
|
+
第2步: 确认无误后,在 Codex 中说
|
|
38
|
+
"按 Spec 编码"
|
|
39
|
+
|
|
40
|
+
第3步: AI 按 Spec 严格实现代码
|
|
41
|
+
Entity -> Mapper -> Service -> Controller
|
|
42
|
+
|
|
43
|
+
第4步: 代码完成后,在 Codex 中说
|
|
44
|
+
"生成单元测试"
|
|
45
|
+
|
|
46
|
+
第5步: 测试通过后提交
|
|
47
|
+
npx wlkj task finish
|
|
48
|
+
npx wlkj task archive leave
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## UI 设计师
|
|
54
|
+
|
|
55
|
+
当前 MVP 阶段 UI 有两条路:
|
|
56
|
+
|
|
57
|
+
### 路线 A:用现有系统(推荐)
|
|
58
|
+
后端接口按 Spec 实现完,前端直接对接。
|
|
59
|
+
UI 在现有的 Vue 3 + Element Plus 页面里加功能。
|
|
60
|
+
|
|
61
|
+
### 路线 B:AI 生成 UI(未来)
|
|
62
|
+
在 Spec 阶段加一个 `ui-spec` 步骤:
|
|
63
|
+
1. Spec 里增加「页面原型」章节
|
|
64
|
+
2. AI 根据接口生成 Element Plus 组件代码
|
|
65
|
+
3. 嵌入现有 Vue 页面
|
|
66
|
+
|
|
67
|
+
### 现在怎么做
|
|
68
|
+
```
|
|
69
|
+
第1步: 在 Spec 审核时,补充页面需求
|
|
70
|
+
"这个接口需要什么页面?表格还是表单?"
|
|
71
|
+
|
|
72
|
+
第2步: 开发实现后端时,AI 同时生成 Vue 组件骨架
|
|
73
|
+
|
|
74
|
+
第3步: UI 设计师调整样式和交互细节
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 一句话总结
|
|
80
|
+
|
|
81
|
+
| 角色 | 做什么 | 用什么 |
|
|
82
|
+
|------|--------|--------|
|
|
83
|
+
| 产品 | 描述需求 -> 审核 PRD -> push | prd-generator skill |
|
|
84
|
+
| 开发 | 审核 Spec -> 说"按Spec编码" -> 测试 | spec-coder + test-generator skill |
|
|
85
|
+
| UI | 后端完成后对接,或在 Spec 阶段参与 | 当前手动,未来 AI 生成 |
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# 新手指南
|
|
2
|
+
|
|
3
|
+
> 不需要懂代码、不需要懂 git。会说中文就能用。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 一、开始前准备
|
|
8
|
+
|
|
9
|
+
### 必须有
|
|
10
|
+
|
|
11
|
+
- 一台电脑(Windows / Mac)
|
|
12
|
+
- 已装 **Node.js 16+**(去 nodejs.org 下载,装了就有 npx)
|
|
13
|
+
- 已装 **Python 3.9+**(去 python.org 下载)
|
|
14
|
+
|
|
15
|
+
### 可选(没有也能用)
|
|
16
|
+
|
|
17
|
+
- **git**:团队协作用。没装也行,自己写 PRD / 查代码 / 建任务都不影响
|
|
18
|
+
- **Qoder 客户端**(IDE / Quest / QoderWork 任一):用 AI 对话驱动。没有也能用命令行
|
|
19
|
+
- **飞书群机器人**:自动推送通知。没有不影响功能
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 二、新项目第一次使用(只做一次)
|
|
24
|
+
|
|
25
|
+
建一个空文件夹,进去,跑一条命令:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
mkdir 我的项目
|
|
29
|
+
cd 我的项目
|
|
30
|
+
npx wlkj init
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
它会自动完成一切:
|
|
34
|
+
1. 安装完整工作流引擎(搜索/PRD/任务/报告/导出 全部就绪)
|
|
35
|
+
2. 探测你的名字(从 git 配置读,或问你"叫什么名字")
|
|
36
|
+
3. 注册你的开发者身份
|
|
37
|
+
4. 装 git(如果没有,会问你要不要自动装)
|
|
38
|
+
5. 拉取源码建索引(如果配了 git 地址)
|
|
39
|
+
6. 注册周五自动更新(询问式)
|
|
40
|
+
7. 装 QoderWork 技能(检测到桌面端时询问)
|
|
41
|
+
|
|
42
|
+
看到下面这样就成功了:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
✓ 开发者: 你的名字
|
|
46
|
+
✓ 知识图谱就绪
|
|
47
|
+
安装完成! 现在可以开始了
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
> 想指定名字?`npx wlkj init 小王`
|
|
51
|
+
> 想指定角色?`npx wlkj init 小王 dev`
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 三、日常使用(3 种方式,任选)
|
|
56
|
+
|
|
57
|
+
### 方式 A:直接说话(推荐)
|
|
58
|
+
|
|
59
|
+
在 Qoder 对话框里直接用中文说:
|
|
60
|
+
|
|
61
|
+
| 你说什么 | 会发生什么 |
|
|
62
|
+
|---------|-----------|
|
|
63
|
+
| "写个保险异常筛选的需求" | 生成 PRD + 原型 |
|
|
64
|
+
| "查一下考勤代码在哪" | 搜索代码 |
|
|
65
|
+
| "建个任务:登录优化" | 建任务 |
|
|
66
|
+
| "今天干了啥" | 出日报 |
|
|
67
|
+
| "项目怎么样" | 看进度健康度 |
|
|
68
|
+
|
|
69
|
+
### 方式 B:斜杠命令(精确)
|
|
70
|
+
|
|
71
|
+
输入 `/` 会列出所有命令。常用的:
|
|
72
|
+
|
|
73
|
+
| 命令 | 作用 |
|
|
74
|
+
|------|------|
|
|
75
|
+
| `/wl-prd` | 写需求 |
|
|
76
|
+
| `/wl-search` | 查代码 |
|
|
77
|
+
| `/wl-task` | 管任务 |
|
|
78
|
+
| `/wl-status` | 看进度 |
|
|
79
|
+
| `/wl-report` | 出报告 |
|
|
80
|
+
| `/wl-init` | 拉取团队最新 |
|
|
81
|
+
|
|
82
|
+
### 方式 C:命令行(兜底,无 Qoder 时)
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
python .qoder/scripts/search_index.py 保险
|
|
86
|
+
python .qoder/scripts/task.py create "登录优化"
|
|
87
|
+
python .qoder/scripts/report.py daily
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 四、你能做什么
|
|
93
|
+
|
|
94
|
+
### 写需求
|
|
95
|
+
|
|
96
|
+
| 想做的事 | 怎么说 |
|
|
97
|
+
|---------|--------|
|
|
98
|
+
| 写完整需求文档 | "写个 XXX 的需求" |
|
|
99
|
+
| 写小改动需求 | "快速写个 XXX" |
|
|
100
|
+
| 头脑风暴 | "脑暴一下 XXX 功能" |
|
|
101
|
+
| 做规划 | "规划 XXX 的路线图" |
|
|
102
|
+
| 画原型 | 随需求自动生成 |
|
|
103
|
+
|
|
104
|
+
### 查代码(不懂代码也能查)
|
|
105
|
+
|
|
106
|
+
| 想做的事 | 怎么说 |
|
|
107
|
+
|---------|--------|
|
|
108
|
+
| 找业务代码 | "保险的代码在哪" |
|
|
109
|
+
| 找 API | "考勤有哪些 API" |
|
|
110
|
+
| 找字段用法 | "nickName 字段在哪用" |
|
|
111
|
+
| 找同类页面 | "系统里有哪些列表页" |
|
|
112
|
+
|
|
113
|
+
### 管任务
|
|
114
|
+
|
|
115
|
+
| 想做的事 | 怎么说 / 命令 |
|
|
116
|
+
|---------|--------------|
|
|
117
|
+
| 建任务 | "建个任务:登录优化" |
|
|
118
|
+
| 设截止日期 | "给登录优化设截止日期 7月15" |
|
|
119
|
+
| 标记依赖 | "登录优化依赖数据库迁移" |
|
|
120
|
+
| 看哪些能开始 | "哪些任务可以开始" |
|
|
121
|
+
| 看哪些被卡住 | "哪些任务被阻塞" |
|
|
122
|
+
| 看甘特图 | "看任务排期" |
|
|
123
|
+
| 完成任务 | "这个任务做完了" |
|
|
124
|
+
|
|
125
|
+
### 看进度 / 出报告
|
|
126
|
+
|
|
127
|
+
| 想做的事 | 怎么说 |
|
|
128
|
+
|---------|--------|
|
|
129
|
+
| 看项目健康度 | "项目怎么样" |
|
|
130
|
+
| 看我的任务 | "我的任务有哪些" |
|
|
131
|
+
| 出日报 | "今天干了啥" |
|
|
132
|
+
| 出周报 | "这周干了啥" |
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 五、团队协作
|
|
137
|
+
|
|
138
|
+
### 团队第一次配置(只做一次)
|
|
139
|
+
|
|
140
|
+
1. **填源码地址**:打开 `.qoder/config.yaml`,找到 `git_sync.projects`,把 `url` 改成你们团队的 git 地址(文件里有 `← 改成你的` 提示)
|
|
141
|
+
2. **注册自动更新**(全队只需一台机器):运行 `python .qoder/scripts/setup_weekly_cron.bat`
|
|
142
|
+
3. **配飞书**(可选):`.qoder/config.yaml` 里 `feishu` 段,填 webhook 地址,设 `enabled: true`
|
|
143
|
+
|
|
144
|
+
### 每个成员加入
|
|
145
|
+
|
|
146
|
+
```
|
|
147
|
+
npx wlkj init 你的名字
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
每人跑一次就行。
|
|
151
|
+
|
|
152
|
+
### 日常协作
|
|
153
|
+
|
|
154
|
+
| 场景 | 你做什么 | 自动发生什么 |
|
|
155
|
+
|------|---------|------------|
|
|
156
|
+
| 写了 PRD 想分享 | 说"同步" | 推到团队仓库 |
|
|
157
|
+
| 想拿队友的最新 | 说"拉取最新" | 自动拉取 |
|
|
158
|
+
| 看全队进度 | "项目怎么样" | 显示全员任务 |
|
|
159
|
+
| 派任务给人 | 建任务时指定负责人 | 任务标记归属 |
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## 六、看不到命令怎么办
|
|
164
|
+
|
|
165
|
+
| 现象 | 解决 |
|
|
166
|
+
|------|------|
|
|
167
|
+
| Quest 里输 `/` 没反应 | **新建一个对话**(改了配置后必须新建对话) |
|
|
168
|
+
| QoderWork 里没命令 | 跑 `python .qoder/scripts/install_qoderwork.py`,然后**重启 QoderWork** |
|
|
169
|
+
| 命令报错 | 跑 `python .qoder/scripts/init_doctor.py --fix` 自动修复 |
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 七、速查表
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
新项目 → mkdir 文件夹 && cd 文件夹 && npx wlkj init
|
|
177
|
+
写需求 → /wl-prd
|
|
178
|
+
查代码 → /wl-search
|
|
179
|
+
建任务 → /wl-task
|
|
180
|
+
看进度 → /wl-status
|
|
181
|
+
出报告 → /wl-report
|
|
182
|
+
拉最新 → /wl-init
|
|
183
|
+
环境坏了 → python .qoder/scripts/init_doctor.py --fix
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
记不住?直接说中文,AI 会自动识别。
|