fix: Correct command syntax and structure inconsistencies in README files

Based on Gemini analysis findings:
- Fix /update-memory command documentation to reflect actual separate commands
- Correct /codex:--full-auto to /codex:mode:auto matching actual implementation
- Remove --yolo flag from examples (behavior is default in execute commands)
- Update documentation management examples to use correct command syntax
- Standardize command reference tables in both English and Chinese READMEs

This ensures documentation accuracy matches the current codebase structure with 44 command files.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
catlog22
2025-09-10 22:30:15 +08:00
parent 7bbf835b04
commit 9d6413fd8b
2 changed files with 24 additions and 32 deletions

View File

@@ -138,10 +138,9 @@ For Gemini CLI integration, configure your `settings.json` file:
| `/gemini:mode:bug-index` | `/gemini:mode:bug-index <bug-description>` | Bug analysis using specialized diagnostic template |
| `/gemini:mode:plan` | `/gemini:mode:plan <planning-topic>` | Project planning using specialized architecture template |
| `/codex:exec` | `/codex:exec "@{patterns} prompt"` | 🆕 Autonomous development with explicit file pattern references |
| `/codex:--full-auto` | `/codex --full-auto "task description"` | 🆕 Full automation mode for complex development workflows |
| `/update-memory` | `/update-memory [related\|full]` | Intelligent CLAUDE.md documentation system with context-aware updates |
| `/update-memory-full` | `/update-memory-full` | 🆕 Complete project-wide CLAUDE.md documentation update with depth-parallel execution |
| `/update-memory-related` | `/update-memory-related` | 🆕 Context-aware documentation updates for modules affected by recent changes |
| `/codex:mode:auto` | `/codex:mode:auto "task description"` | Full automation mode for complex development workflows |
| `/update-memory-full` | `/update-memory-full` | Complete project-wide CLAUDE.md documentation update with depth-parallel execution |
| `/update-memory-related` | `/update-memory-related` | Context-aware documentation updates for modules affected by recent changes |
### Workflow Management
@@ -183,8 +182,8 @@ For Gemini CLI integration, configure your `settings.json` file:
/task:breakdown IMPL-1 --strategy=auto
# 5. Execute with intelligent automation
/gemini:execute IMPL-1.1 --yolo
/gemini:execute IMPL-1.2 --yolo
/gemini:execute IMPL-1.1
/gemini:execute IMPL-1.2
# 6. Handle dynamic changes and issues
/workflow:issue:create "Add social login support"
@@ -232,16 +231,13 @@ For Gemini CLI integration, configure your `settings.json` file:
### Intelligent Documentation Management
```bash
# 1. Daily development - context-aware updates
/update-memory # Default: related mode - detects and updates affected modules
/update-memory-related # Explicit: context-aware updates based on recent changes
/update-memory-related # Context-aware updates based on recent changes
# 2. After working in specific module
cd src/api && /update-memory related # Updates API module and parent hierarchy
/update-memory-related # Same as above, with intelligent change detection
cd src/api && /update-memory-related # Updates API module and parent hierarchy
# 3. Periodic full refresh
/update-memory full # Complete project-wide documentation update
/update-memory-full # Explicit: full project scan with depth-parallel execution
/update-memory-full # Complete project-wide documentation update
# 4. Post-refactoring documentation sync
git commit -m "Major refactoring"
@@ -253,10 +249,10 @@ git commit -m "Major refactoring"
#### Update Mode Comparison
| Mode | Trigger | Complexity Threshold | Best Use Case |
|------|---------|---------------------|---------------|
| `related` (default) | Git changes + recent files | >15 modules | Daily development, feature work |
| `full` | Complete project scan | >20 modules | Initial setup, major refactoring |
| Command | Trigger | Complexity Threshold | Best Use Case |
|---------|---------|---------------------|---------------|
| `/update-memory-related` | Git changes + recent files | >15 modules | Daily development, feature work |
| `/update-memory-full` | Complete project scan | >20 modules | Initial setup, major refactoring |
## 📊 Complexity-Based Strategies

View File

@@ -138,10 +138,9 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
| `/gemini:mode:bug-index` | `/gemini:mode:bug-index <错误描述>` | 使用专门的诊断模板进行错误分析 |
| `/gemini:mode:plan` | `/gemini:mode:plan <规划主题>` | 使用专门的架构模板进行项目规划 |
| `/codex:exec` | `/codex:exec "@{patterns} prompt"` | 🆕 带显式文件模式引用的自主开发 |
| `/codex:--full-auto` | `/codex --full-auto "任务描述"` | 🆕 复杂开发工作流的全自动化模式 |
| `/update-memory` | `/update-memory [related\|full]` | 智能 CLAUDE.md 文档系统,提供上下文感知更新 |
| `/update-memory-full` | `/update-memory-full` | 🆕 完整的项目级 CLAUDE.md 文档更新,采用深度并行执行 |
| `/update-memory-related` | `/update-memory-related` | 🆕 基于近期变更的上下文感知文档更新 |
| `/codex:mode:auto` | `/codex:mode:auto "任务描述"` | 复杂开发工作流的全自动化模式 |
| `/update-memory-full` | `/update-memory-full` | 完整的项目级 CLAUDE.md 文档更新,采用深度并行执行 |
| `/update-memory-related` | `/update-memory-related` | 基于近期变更的上下文感知文档更新 |
### 工作流管理
@@ -183,8 +182,8 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
/task:breakdown IMPL-1 --strategy=auto
# 5. 智能自动化执行
/gemini:execute IMPL-1.1 --yolo
/gemini:execute IMPL-1.2 --yolo
/gemini:execute IMPL-1.1
/gemini:execute IMPL-1.2
# 6. 处理动态变更和问题
/workflow:issue:create "添加社交登录支持"
@@ -230,16 +229,13 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
### 智能文档管理
```bash
# 1. 日常开发 - 上下文感知更新
/update-memory # 默认related 模式 - 检测并更新受影响的模块
/update-memory-related # 显式:基于近期变更的上下文感知更新
/update-memory-related # 基于近期变更的上下文感知更新
# 2. 在特定模块中工作后
cd src/api && /update-memory related # 更新 API 模块和父级层次结构
/update-memory-related # 同上,具有智能变更检测
cd src/api && /update-memory-related # 更新 API 模块和父级层次结构
# 3. 定期完整刷新
/update-memory full # 完整的项目级文档更新
/update-memory-full # 显式:使用深度并行执行的完整项目扫描
/update-memory-full # 完整的项目级文档更新
# 4. 重构后的文档同步
git commit -m "重大重构"
@@ -251,10 +247,10 @@ git commit -m "重大重构"
#### 更新模式比较
| 模式 | 触发器 | 复杂度阈值 | 最佳使用场景 |
|------|---------|-----------|--------------|
| `related` (默认) | Git 变更 + 近期文件 | >15个模块 | 日常开发、功能开发 |
| `full` | 完整项目扫描 | >20个模块 | 初始设置、重大重构 |
| 命令 | 触发器 | 复杂度阈值 | 最佳使用场景 |
|---------|---------|-----------|--------------|
| `/update-memory-related` | Git 变更 + 近期文件 | >15个模块 | 日常开发、功能开发 |
| `/update-memory-full` | 完整项目扫描 | >20个模块 | 初始设置、重大重构 |
## 📊 基于复杂度的策略