mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-12 02:37:45 +08:00
feat: Add v1.1 update-memory system with dual-mode operations and enhanced documentation
## New Features - **Dual-mode update-memory commands**: /update-memory-full and /update-memory-related - **Git-aware change detection**: Intelligent context-aware documentation updates - **Complexity-adaptive execution**: Auto-delegation to memory-gemini-bridge for complex projects - **Depth-parallel processing**: Bottom-up execution ensuring proper context propagation - **Enhanced issue tracking integration**: Complete /workflow:issue:* command set documentation ## New Scripts & Infrastructure - detect_changed_modules.sh: Git-based change detection with fallback strategies - get_modules_by_depth.sh: Hierarchical module discovery and organization - update_module_claude.sh: Core CLAUDE.md update execution engine ## Documentation Updates - **README.md**: Added comprehensive update-memory system documentation with usage examples - **README_CN.md**: Complete Chinese localization of new features and technical details - **Command reference tables**: Updated with new /update-memory-* commands and /workflow:issue:* set - **Technical highlights**: Enhanced with dual-mode operations and complexity thresholds - **Usage workflows**: Added detailed examples for different development scenarios ## Technical Improvements - Streamlined memory-gemini-bridge.md (reduced by 200+ lines) - Simplified gemini-unified.md workflow documentation - Added comprehensive CLAUDE.md files for new modules - Enhanced DMS (Distributed Memory System) with 4-layer hierarchy templates ## Architecture Enhancements - **Complexity thresholds**: related mode (>15 modules), full mode (>20 modules) - **Git integration**: Smart change detection with comprehensive status reporting - **User confirmation workflows**: Clear execution plans with mandatory approval steps - **Fallback strategies**: Graceful handling of non-git environments 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
40
README_CN.md
40
README_CN.md
@@ -133,6 +133,8 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
|
||||
| `/gemini:mode:bug-index` | `/gemini:mode:bug-index <错误描述>` | 使用专门的诊断模板进行错误分析 |
|
||||
| `/gemini:mode:plan` | `/gemini:mode:plan <规划主题>` | 使用专门的架构模板进行项目规划 |
|
||||
| `/update-memory` | `/update-memory [related\|full]` | 智能 CLAUDE.md 文档系统,提供上下文感知更新 |
|
||||
| `/update-memory-full` | `/update-memory-full` | 🆕 完整的项目级 CLAUDE.md 文档更新,采用深度并行执行 |
|
||||
| `/update-memory-related` | `/update-memory-related` | 🆕 基于近期变更的上下文感知文档更新 |
|
||||
|
||||
### 工作流管理
|
||||
|
||||
@@ -177,9 +179,10 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
|
||||
/gemini:execute IMPL-1.1 --yolo
|
||||
/gemini:execute IMPL-1.2 --yolo
|
||||
|
||||
# 6. 处理动态变更
|
||||
# 6. 处理动态变更和问题
|
||||
/workflow:issue:create "添加社交登录支持"
|
||||
/workflow:issue:list
|
||||
/workflow:issue:update 1 --status=in-progress
|
||||
|
||||
# 7. 监控和审查
|
||||
/context --format=hierarchy
|
||||
@@ -217,6 +220,35 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
|
||||
/gemini-mode pattern "提取可重用的组件模式"
|
||||
```
|
||||
|
||||
### 智能文档管理
|
||||
```bash
|
||||
# 1. 日常开发 - 上下文感知更新
|
||||
/update-memory # 默认:related 模式 - 检测并更新受影响的模块
|
||||
/update-memory-related # 显式:基于近期变更的上下文感知更新
|
||||
|
||||
# 2. 在特定模块中工作后
|
||||
cd src/api && /update-memory related # 更新 API 模块和父级层次结构
|
||||
/update-memory-related # 同上,具有智能变更检测
|
||||
|
||||
# 3. 定期完整刷新
|
||||
/update-memory full # 完整的项目级文档更新
|
||||
/update-memory-full # 显式:使用深度并行执行的完整项目扫描
|
||||
|
||||
# 4. 重构后的文档同步
|
||||
git commit -m "重大重构"
|
||||
/update-memory-related # 通过 git 感知检测智能更新所有受影响区域
|
||||
|
||||
# 5. 项目初始化或重大架构变更
|
||||
/update-memory-full # 完整的基准文档创建
|
||||
```
|
||||
|
||||
#### 更新模式比较
|
||||
|
||||
| 模式 | 触发器 | 复杂度阈值 | 最佳使用场景 |
|
||||
|------|---------|-----------|--------------|
|
||||
| `related` (默认) | Git 变更 + 近期文件 | >15个模块 | 日常开发、功能开发 |
|
||||
| `full` | 完整项目扫描 | >20个模块 | 初始设置、重大重构 |
|
||||
|
||||
## 📊 基于复杂度的策略
|
||||
|
||||
| 复杂度 | 任务数量 | 层次深度 | 文件结构 | 命令策略 |
|
||||
@@ -237,7 +269,11 @@ Invoke-Expression (Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cat
|
||||
- **智能上下文处理**:基于技术栈检测的动态上下文构建
|
||||
- **模板驱动架构**:通过模板实现高度可定制和可扩展性
|
||||
- **质量保证集成**:内置代码审查和测试策略阶段
|
||||
- **分布式记忆系统 (DMS)**:通过 CLAUDE.md 文件维护项目级共享记忆
|
||||
- **智能文档系统**:4层分层 CLAUDE.md 系统,具有:
|
||||
- **双模式操作**:`related`(git感知变更检测)和 `full`(完整项目扫描)
|
||||
- **复杂度自适应执行**:复杂项目(>15/20个模块)自动委托给 memory-gemini-bridge
|
||||
- **深度并行处理**:自下而上执行,确保子上下文可用于父级更新
|
||||
- **Git集成**:智能变更检测,带回退策略和综合状态报告
|
||||
- **CLI 优先设计**:强大、正交的命令行界面,便于自动化
|
||||
|
||||
## 🎨 设计理念
|
||||
|
||||
Reference in New Issue
Block a user