Skip to content

Commit b056366

Browse files
authored
refactor: rename PM Battle to Spec Clarification across the project (#192)
Rename "PM Battle" mode to "Spec Clarification" for better clarity and professionalism: - Frontend i18n: Update zh-CN and en titles from "PM Battle" to "Spec Clarification" - Documentation: Rename guide files and update all references - pm-battle-guide.md → spec-clarification-guide.md (both zh/en) - Update all content mentions of "PM Battle" to "Spec Clarification" - Backend config: Rename YAML resources - pm-battle-ghost → spec-clarification-ghost - pm-battle-bot → spec-clarification-bot - pm-battle-team → spec-clarification-team - Update system prompt description to "Software Requirements Analyst" - Update documentation links in README files (zh/en) This change improves user-facing terminology while maintaining all functionality. Co-authored-by: qdaxb <[email protected]>
1 parent 4b88fd5 commit b056366

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

backend/init_data/01-default-resources.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ status:
120120
apiVersion: agent.wecode.io/v1
121121
kind: Ghost
122122
metadata:
123-
name: pm-battle-ghost
123+
name: spec-clarification-ghost
124124
namespace: default
125125
user_id: 1
126126
spec:
127127
mcpServers: {}
128128
systemPrompt: |
129-
You are an experienced Product Manager specializing in requirement clarification. Your goal is to help users refine vague requirements into clear, actionable development tasks through structured questioning.
129+
You are an experienced Software Requirements Analyst specializing in requirement specification clarification. Your goal is to help users refine vague requirements into clear, actionable development tasks through structured questioning.
130130
131131
## Your Process
132132
@@ -340,12 +340,12 @@ status:
340340
apiVersion: agent.wecode.io/v1
341341
kind: Bot
342342
metadata:
343-
name: pm-battle-bot
343+
name: spec-clarification-bot
344344
namespace: default
345345
user_id: 1
346346
spec:
347347
ghostRef:
348-
name: pm-battle-ghost
348+
name: spec-clarification-ghost
349349
namespace: default
350350
shellRef:
351351
name: claude-shell
@@ -356,14 +356,14 @@ status:
356356
apiVersion: agent.wecode.io/v1
357357
kind: Team
358358
metadata:
359-
name: pm-battle-team
359+
name: spec-clarification-team
360360
namespace: default
361361
user_id: 1
362362
spec:
363363
members:
364364
- role: leader
365365
botRef:
366-
name: pm-battle-bot
366+
name: spec-clarification-bot
367367
namespace: default
368368
prompt: ""
369369
collaborationModel: pipeline

docs/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Guides for Wegent platform users:
3434
- [Managing Skills](./guides/user/managing-skills.md) - Upload and use Claude Code Skills
3535
- [Creating Teams](./guides/user/creating-teams.md) - Build collaborative agent teams
3636
- [Managing Tasks](./guides/user/managing-tasks.md) - Create and manage work tasks
37-
- [PM Battle Mode](./guides/user/pm-battle-guide.md) - Interactive requirement clarification guide
37+
- [Spec Clarification Mode](./guides/user/spec-clarification-guide.md) - Interactive requirement specification clarification guide
3838

3939
#### 💻 Developer Guides
4040

docs/en/guides/user/pm-battle-guide.md renamed to docs/en/guides/user/spec-clarification-guide.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# PM Battle Mode User Guide
1+
# Spec Clarification User Guide
22

33
## Overview
44

5-
"PM Battle" is Wegent's interactive requirement clarification mode that helps users refine vague requirements into clear development tasks through structured Q&A.
5+
Spec Clarification is Wegent's interactive requirement specification clarification mode that helps users refine vague requirements into clear development tasks through structured Q&A.
66

77
## Quick Start
88

99
### 1. System Initialization
1010

1111
On first startup, the system automatically creates the following entities:
1212

13-
- **pm-battle-ghost**: Requirement clarification system prompt
14-
- **pm-battle-bot**: Requirement clarification Bot
15-
- **pm-battle-team**: Requirement clarification Team
13+
- **spec-clarification-ghost**: Requirement clarification system prompt
14+
- **spec-clarification-bot**: Requirement clarification Bot
15+
- **spec-clarification-team**: Requirement clarification Team
1616

1717
### 2. Select Team in Frontend
1818

1919
1. Navigate to the Code page
20-
2. Select **pm-battle-team** in the Team selector
20+
2. Select **spec-clarification-team** in the Team selector
2121
3. Enter a vague requirement, e.g., "I want to add a user login feature"
2222

2323
### 3. Interaction Flow
@@ -61,7 +61,7 @@ MessagesArea.tsx
6161
```mermaid
6262
sequenceDiagram
6363
User->>+Frontend: Submit vague requirement
64-
Frontend->>+Backend: Send message to pm-battle-bot
64+
Frontend->>+Backend: Send message to spec-clarification-bot
6565
Backend->>+Agent: Call requirement clarification Agent
6666
Agent-->>-Backend: Return clarification questions JSON
6767
Backend-->>-Frontend: Return subtask result
@@ -163,15 +163,15 @@ The frontend supports parsing both Markdown format and legacy JSON format, ensur
163163

164164
### Modifying system_prompt
165165

166-
To adjust the style or logic of clarification questions, modify the `systemPrompt` of `pm-battle-ghost`:
166+
To adjust the style or logic of clarification questions, modify the `systemPrompt` of `spec-clarification-ghost`:
167167

168-
1. Find "pm-battle-ghost" in the settings page
168+
1. Find "spec-clarification-ghost" in the settings page
169169
2. Edit the system_prompt
170170
3. Save changes
171171

172172
### Creating New Requirement Clarification Bots
173173

174-
1. Create a new Ghost, referencing the system_prompt structure of `pm-battle-ghost`
174+
1. Create a new Ghost, referencing the system_prompt structure of `spec-clarification-ghost`
175175
2. Create a new Bot, referencing the new Ghost
176176
3. Create a new Team, referencing the new Bot
177177
4. Select the new Team in the frontend
@@ -200,7 +200,7 @@ To adjust the style or logic of clarification questions, modify the `systemPromp
200200
### Frontend Usage
201201

202202
1. **Choose Appropriate Team**:
203-
- Requirement clarification phase: Select `pm-battle-team`
203+
- Requirement clarification phase: Select `spec-clarification-team`
204204
- Code generation phase: Switch to `dev-team`
205205

206206
2. **Answering Tips**:

docs/zh/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Wegent 是一个开源的 AI 原生操作系统,使您能够大规模定义、
3434
- [管理 Skills](./guides/user/managing-skills.md) - 上传和使用 Claude Code Skills
3535
- [创建 Team](./guides/user/creating-teams.md) - 构建协作团队
3636
- [管理任务](./guides/user/managing-tasks.md) - 创建和管理工作任务
37-
- [需求澄清模式](./guides/user/pm-battle-guide.md) - "与产品经理搏斗"需求澄清使用指南
37+
- [需求规范澄清](./guides/user/spec-clarification-guide.md) - Spec Clarification 需求澄清使用指南
3838

3939
#### 💻 开发者指南
4040

docs/zh/guides/user/pm-battle-guide.md renamed to docs/zh/guides/user/spec-clarification-guide.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# "与产品经理搏斗" 需求澄清模式使用指南
1+
# 需求规范澄清(Spec Clarification)使用指南
22

33
## 功能概述
44

5-
"与产品经理搏斗"是 Wegent 系统的交互式需求澄清模式,帮助用户通过结构化问答将模糊需求精炼为清晰的开发任务。
5+
需求规范澄清(Spec Clarification)是 Wegent 系统的交互式需求澄清模式,帮助用户通过结构化问答将模糊需求精炼为清晰的开发任务。
66

77
## 快速开始
88

99
### 1. 系统初始化
1010

1111
系统首次启动时会自动创建以下实体:
1212

13-
- **pm-battle-ghost**: 需求澄清系统提示词
14-
- **pm-battle-bot**: 需求澄清Bot
15-
- **pm-battle-team**: 需求澄清团队
13+
- **spec-clarification-ghost**: 需求澄清系统提示词
14+
- **spec-clarification-bot**: 需求澄清Bot
15+
- **spec-clarification-team**: 需求澄清团队
1616

1717
### 2. 在前端选择团队
1818

1919
1. 进入 Code 页面
20-
2. 在 Team 选择器中选择 **pm-battle-team**
20+
2. 在 Team 选择器中选择 **spec-clarification-team**
2121
3. 输入模糊需求,例如:"我想添加一个用户登录功能"
2222

2323
### 3. 交互流程
@@ -61,7 +61,7 @@ MessagesArea.tsx
6161
```mermaid
6262
sequenceDiagram
6363
User->>+Frontend: 提交模糊需求
64-
Frontend->>+Backend: 发送消息到 pm-battle-bot
64+
Frontend->>+Backend: 发送消息到 spec-clarification-bot
6565
Backend->>+Agent: 调用需求澄清Agent
6666
Agent-->>-Backend: 返回澄清问题JSON
6767
Backend-->>-Frontend: 返回subtask结果
@@ -163,15 +163,15 @@ Agent 输出 Markdown 格式的最终需求提示词:
163163

164164
### 修改 system_prompt
165165

166-
如果需要调整澄清问题的风格或逻辑,可以修改 `pm-battle-ghost``systemPrompt`
166+
如果需要调整澄清问题的风格或逻辑,可以修改 `spec-clarification-ghost``systemPrompt`
167167

168-
1. 在设置页面找到 "pm-battle-ghost"
168+
1. 在设置页面找到 "spec-clarification-ghost"
169169
2. 编辑 system_prompt
170170
3. 保存更改
171171

172172
### 创建新的需求澄清 Bot
173173

174-
1. 创建新的 Ghost,参考 `pm-battle-ghost` 的 system_prompt 结构
174+
1. 创建新的 Ghost,参考 `spec-clarification-ghost` 的 system_prompt 结构
175175
2. 创建新的 Bot,引用新的 Ghost
176176
3. 创建新的 Team,引用新的 Bot
177177
4. 在前端选择新的 Team 使用
@@ -200,7 +200,7 @@ Agent 输出 Markdown 格式的最终需求提示词:
200200
### 前端使用
201201

202202
1. **选择合适的 Team**:
203-
- 需求澄清阶段:选择 `pm-battle-team`
203+
- 需求澄清阶段:选择 `spec-clarification-team`
204204
- 代码生成阶段:切换到 `dev-team`
205205

206206
2. **回答技巧**:

frontend/src/i18n/locales/en/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"send_shortcut_ctrl": "Ctrl+Enter to send",
113113
"send_shortcut_cmd": "Cmd+Enter to send",
114114
"clarification": {
115-
"title": "PM Battle - Requirement Clarification",
115+
"title": "Spec Clarification",
116116
"recommended": "Recommended",
117117
"custom_input": "Custom Input",
118118
"back_to_choices": "Back to Choices",

frontend/src/i18n/locales/zh-CN/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"send_shortcut_ctrl": "Ctrl+Enter 发送",
113113
"send_shortcut_cmd": "Cmd+Enter 发送",
114114
"clarification": {
115-
"title": "与产品经理搏斗 - 需求澄清",
115+
"title": "需求规范澄清 (Spec Clarification)",
116116
"recommended": "推荐",
117117
"custom_input": "自定义输入",
118118
"back_to_choices": "返回选项",

0 commit comments

Comments
 (0)