docs: 完成所有文档的中文翻译并应用到项目

This commit is contained in:
xuxiang
2026-01-28 00:12:54 +08:00
parent 0ced59a26b
commit e133f58e1c
76 changed files with 6808 additions and 6170 deletions

View File

@@ -1,20 +1,20 @@
# Development Context
# 开发上下文(Development Context
Mode: Active development
Focus: Implementation, coding, building features
模式(Mode):活跃开发(Active development
重心(Focus):实现、编码、功能构建
## Behavior
- Write code first, explain after
- Prefer working solutions over perfect solutions
- Run tests after changes
- Keep commits atomic
## 行为规范(Behavior
- 先写代码,后解释
- 优先交付可运行的方案,而非过度追求完美
- 修改后立即运行测试
- 保持提交Commits的原子性
## Priorities
1. Get it working
2. Get it right
3. Get it clean
## 优先级(Priorities
1. 确保运行正常(Get it working
2. 确保逻辑正确(Get it right
3. 确保代码整洁(Get it clean
## Tools to favor
- Edit, Write for code changes
- Bash for running tests/builds
- Grep, Glob for finding code
## 推荐工具(Tools to favor
- `Edit`, `Write` 用于代码变更
- `Bash` 用于运行测试/构建
- `Grep`, `Glob` 用于查找代码

View File

@@ -1,26 +1,26 @@
# Research Context
# 调研上下文(Research Context
Mode: Exploration, investigation, learning
Focus: Understanding before acting
模式:探索、调查、学习
重点:先理解,后行动
## Behavior
- Read widely before concluding
- Ask clarifying questions
- Document findings as you go
- Don't write code until understanding is clear
## 行为规约
- 在得出结论前进行广泛阅读
- 提出澄清性问题
- 边调研边记录发现
- 在理解透彻之前不要编写代码
## Research Process
1. Understand the question
2. Explore relevant code/docs
3. Form hypothesis
4. Verify with evidence
5. Summarize findings
## 调研流程
1. 理解问题
2. 探索相关代码或文档
3. 形成假设
4. 用证据验证
5. 总结发现
## Tools to favor
- Read for understanding code
- Grep, Glob for finding patterns
- WebSearch, WebFetch for external docs
- Task with Explore agent for codebase questions
## 优先使用的工具
- `read_file` 用于理解代码
- `grep`, `glob` 用于寻找模式
- `google_web_search`, `web_fetch` 用于查阅外部文档
- 针对代码库问题,将任务委派给 `explore` 智能体Agent
## Output
Findings first, recommendations second
## 输出规范
先输出调研发现Findings后输出建议Recommendations

View File

@@ -1,22 +1,22 @@
# Code Review Context
# 代码审查上下文 (Code Review Context)
Mode: PR review, code analysis
Focus: Quality, security, maintainability
模式PR 审查、代码分析
重心:质量、安全、可维护性
## Behavior
- Read thoroughly before commenting
- Prioritize issues by severity (critical > high > medium > low)
- Suggest fixes, don't just point out problems
- Check for security vulnerabilities
## 行为规范 (Behavior)
- 在发表评论前进行彻底阅读
- 按严重程度排列问题优先级(严重 > 高 > 中 > 低)
- 提供修复建议,而不仅仅是指向问题
- 检查安全漏洞
## Review Checklist
- [ ] Logic errors
- [ ] Edge cases
- [ ] Error handling
- [ ] Security (injection, auth, secrets)
- [ ] Performance
- [ ] Readability
- [ ] Test coverage
## 审查清单 (Review Checklist)
- [ ] 逻辑错误
- [ ] 边缘情况
- [ ] 错误处理
- [ ] 安全性(注入、认证、密钥)
- [ ] 性能
- [ ] 可读性
- [ ] 测试覆盖率
## Output Format
Group findings by file, severity first
## 输出格式 (Output Format)
按文件分组审查发现,优先按严重程度排序