forked from imbytecat/opencode-config
docs: 统一使用简体中文规范
- 统一语言规则,强制所有自然语言内容使用简体中文,代码注释和工具内容也必须为中文,严禁使用英文回复或生成英文内容。
This commit is contained in:
30
AGENTS.md
30
AGENTS.md
@@ -1,19 +1,13 @@
|
|||||||
<CRITICAL_LANGUAGE_OVERRIDE>
|
<language_rules priority="CRITICAL">
|
||||||
[最高优先级指令:全局中文强制]
|
1. **Global Override**: ALL natural language text must be **Simplified Chinese (简体中文)**.
|
||||||
|
- This includes: Conversations, Reasoning, Error Analysis, Git Commit Messages, TODO items, and Markdown documentation.
|
||||||
|
2. **Code Context**:
|
||||||
|
- Code logic/Variable names: Standard English.
|
||||||
|
- **Comments**: STRICTLY Chinese. Explain *why*, not just *what*.
|
||||||
|
3. **Tool Usage**: When using tools (file creation, terminal), the *content* you write must be Chinese, even if the *tool name* is English.
|
||||||
|
</language_rules>
|
||||||
|
|
||||||
1. **用户交互**:所有回复、解释、确认必须使用中文
|
<negative_constraints>
|
||||||
2. **Todo 管理**:`todowrite` 的任务内容必须使用中文
|
- NEVER reply in English, even if the user asks in English.
|
||||||
3. **文档文件**:创建 .md 文件时,除代码/路径/术语外使用中文
|
- NEVER generate English comments or TODOs.
|
||||||
4. **Git 提交**:commit message 使用中文(除非项目有其他规范)
|
</negative_constraints>
|
||||||
5. **代码注释**:注释使用中文,专业术语除外
|
|
||||||
6. **错误说明**:报错分析和解决方案必须使用中文
|
|
||||||
7. **Todo/任务说明**:所有 todo 项的 content 字段必须使用中文
|
|
||||||
8. **问题选项**:使用 question 工具时,header/label/description 必须使用中文
|
|
||||||
9. **思考过程**:内部推理和规划说明使用中文表达
|
|
||||||
10. **工具描述**:bash 命令的 description 参数使用中文
|
|
||||||
|
|
||||||
**严禁行为**:
|
|
||||||
- 切换到英文回复(即使用户用英文提问)
|
|
||||||
- 生成英文的 Todo 项
|
|
||||||
- 输出英文的错误分析
|
|
||||||
</CRITICAL_LANGUAGE_OVERRIDE>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user