Skip to content

Commit 83e3a1f

Browse files
CodeCasterXclaude
andcommitted
docs(agents): 统一 AI 智能体交流语言规范
- 在 Codex 配置中添加 communication_language 字段 - 在 AGENTS.md 和 AGENTS.en.md 中新增"交流语言规范"章节 - 明确 AI 回复语言需与用户输入保持一致(自适应策略) - 修正文档链接:ChatGPT → Codex - 修复集成测试脚本变量命名规范 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c24aece commit 83e3a1f

4 files changed

Lines changed: 32 additions & 4 deletions

File tree

.ai-agents/codex/preferences.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ agent:
55
name: "GPT"
66
role: "Implementation & Testing Specialist"
77
version: "ChatGPT-4 / ChatGPT-4 Turbo"
8+
# 交流语言:跟随用户输入
9+
communication_language: "Adaptive (Match user's language)"
810

911
# 擅长的任务类型
1012
strengths:

.codex/commands/integration-test.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ start_fit_service
4747
**步骤 4:执行所有验证**
4848
```bash timeout=30000
4949
verify_all
50-
TEST_RESULT=$?
50+
test_result=$?
5151
```
5252

5353
**步骤 5:清理测试环境**
5454
```bash
5555
cleanup false
56-
exit $TEST_RESULT
56+
exit $test_result
5757
```
5858

5959
**测试内容包括:**

AGENTS.en.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@ AI handoff: Any AI can take over by reading the task directory.
145145

146146
**Important**: These are recommendations only. Humans decide which AI handles which step.
147147

148+
### Communication Language Guidelines
149+
150+
**All AI agents must follow these language guidelines**:
151+
152+
- **Response language matches input language**: AI should automatically adapt to the user's input language (adaptive strategy)
153+
- User asks in Chinese → AI responds in Chinese
154+
- User asks in English → AI responds in English
155+
- **Project default language**: Chinese
156+
- Code comments: Chinese
157+
- Documentation: Chinese
158+
- Commit messages: Chinese (following Conventional Commits format)
159+
- **Configuration**: Defined via `communication_language: "Adaptive (Match user's language)"` field in each AI's `preferences.yaml`
160+
148161
### Detailed Documentation
149162

150163
- Collaboration Guide: `.ai-agents/README.md`
@@ -153,7 +166,7 @@ AI handoff: Any AI can take over by reading the task directory.
153166
- Claude Config: `.claude/README.md`
154167
- Claude Project Rules: `.claude/project-rules.md` (includes Rule 7: Task Status Management)
155168
- Claude Command Reference: `.claude/commands/`
156-
- ChatGPT Config: `.ai-agents/chatgpt/README.md`
169+
- Codex Config: `.ai-agents/codex/README.md`
157170
- Gemini Config: `.ai-agents/gemini/README.md`
158171

159172
### Based on Standards

AGENTS.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@ AI 切换:任何 AI 都可以通过读取任务目录接手任务。
145145

146146
**重要**:这只是推荐,人类决定使用哪个 AI 执行哪个步骤。
147147

148+
### 交流语言规范
149+
150+
**所有 AI 智能体必须遵循以下语言规范**
151+
152+
- **回复语言与问题保持一致**:AI 应根据用户输入的语言自动调整回复语言(自适应策略)
153+
- 用户使用中文提问 → AI 使用中文回复
154+
- 用户使用英文提问 → AI 使用英文回复
155+
- **项目文档默认语言**:中文
156+
- 代码注释:中文
157+
- 文档生成:中文
158+
- 提交信息:中文(遵循 Conventional Commits 格式)
159+
- **配置说明**:各 AI 的 `preferences.yaml` 中通过 `communication_language: "Adaptive (Match user's language)"` 字段定义
160+
148161
### 详细文档
149162

150163
- 协作总指南:`.ai-agents/README.md`
@@ -153,7 +166,7 @@ AI 切换:任何 AI 都可以通过读取任务目录接手任务。
153166
- Claude 配置:`.claude/README.md`
154167
- Claude 项目规则:`.claude/project-rules.md`(包含规则 7:任务状态管理规范)
155168
- Claude 命令参考:`.claude/commands/`
156-
- ChatGPT 配置:`.ai-agents/chatgpt/README.md`
169+
- Codex 配置:`.ai-agents/codex/README.md`
157170
- Gemini 配置:`.ai-agents/gemini/README.md`
158171

159172
### 基于标准

0 commit comments

Comments
 (0)