From 00d1be60cb53f8699dd1098745474794505d7471 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Fri, 3 Oct 2025 13:46:44 +0800 Subject: [PATCH] refactor: Rename DMS directory to memory and update references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed .claude/workflows/cli-templates/prompts/dms/ to memory/ - Updated all path references in update_module_claude.sh - Updated terminology in INSTALL.md and INSTALL_CN.md - Changed DMS system references to memory system 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .claude/scripts/update_module_claude.sh | 8 ++++---- .../prompts/{dms => memory}/claude-layer1-root.txt | 0 .../prompts/{dms => memory}/claude-layer2-domain.txt | 0 .../prompts/{dms => memory}/claude-layer3-module.txt | 0 .../prompts/{dms => memory}/claude-layer4-submodule.txt | 0 .../prompts/{dms => memory}/hierarchy-analysis.txt | 2 +- INSTALL.md | 4 ++-- INSTALL_CN.md | 6 +++--- 8 files changed, 10 insertions(+), 10 deletions(-) rename .claude/workflows/cli-templates/prompts/{dms => memory}/claude-layer1-root.txt (100%) rename .claude/workflows/cli-templates/prompts/{dms => memory}/claude-layer2-domain.txt (100%) rename .claude/workflows/cli-templates/prompts/{dms => memory}/claude-layer3-module.txt (100%) rename .claude/workflows/cli-templates/prompts/{dms => memory}/claude-layer4-submodule.txt (100%) rename .claude/workflows/cli-templates/prompts/{dms => memory}/hierarchy-analysis.txt (89%) diff --git a/.claude/scripts/update_module_claude.sh b/.claude/scripts/update_module_claude.sh index 773ed6e0..7dd42421 100644 --- a/.claude/scripts/update_module_claude.sh +++ b/.claude/scripts/update_module_claude.sh @@ -40,22 +40,22 @@ update_module_claude() { if [ "$module_path" = "." ]; then # Root directory layer="Layer 1 (Root)" - template_path="$HOME/.claude/workflows/cli-templates/prompts/dms/claude-layer1-root.txt" + template_path="$HOME/.claude/workflows/cli-templates/prompts/memory/claude-layer1-root.txt" analysis_strategy="--all-files" elif [[ "$clean_path" =~ ^[^/]+$ ]]; then # Top-level directories (e.g., .claude, src, tests) layer="Layer 2 (Domain)" - template_path="$HOME/.claude/workflows/cli-templates/prompts/dms/claude-layer2-domain.txt" + template_path="$HOME/.claude/workflows/cli-templates/prompts/memory/claude-layer2-domain.txt" analysis_strategy="@{*/CLAUDE.md}" elif [[ "$clean_path" =~ ^[^/]+/[^/]+$ ]]; then # Second-level directories (e.g., .claude/scripts, src/components) layer="Layer 3 (Module)" - template_path="$HOME/.claude/workflows/cli-templates/prompts/dms/claude-layer3-module.txt" + template_path="$HOME/.claude/workflows/cli-templates/prompts/memory/claude-layer3-module.txt" analysis_strategy="@{*/CLAUDE.md}" else # Deeper directories (e.g., .claude/workflows/cli-templates/prompts) layer="Layer 4 (Sub-Module)" - template_path="$HOME/.claude/workflows/cli-templates/prompts/dms/claude-layer4-submodule.txt" + template_path="$HOME/.claude/workflows/cli-templates/prompts/memory/claude-layer4-submodule.txt" analysis_strategy="--all-files" fi diff --git a/.claude/workflows/cli-templates/prompts/dms/claude-layer1-root.txt b/.claude/workflows/cli-templates/prompts/memory/claude-layer1-root.txt similarity index 100% rename from .claude/workflows/cli-templates/prompts/dms/claude-layer1-root.txt rename to .claude/workflows/cli-templates/prompts/memory/claude-layer1-root.txt diff --git a/.claude/workflows/cli-templates/prompts/dms/claude-layer2-domain.txt b/.claude/workflows/cli-templates/prompts/memory/claude-layer2-domain.txt similarity index 100% rename from .claude/workflows/cli-templates/prompts/dms/claude-layer2-domain.txt rename to .claude/workflows/cli-templates/prompts/memory/claude-layer2-domain.txt diff --git a/.claude/workflows/cli-templates/prompts/dms/claude-layer3-module.txt b/.claude/workflows/cli-templates/prompts/memory/claude-layer3-module.txt similarity index 100% rename from .claude/workflows/cli-templates/prompts/dms/claude-layer3-module.txt rename to .claude/workflows/cli-templates/prompts/memory/claude-layer3-module.txt diff --git a/.claude/workflows/cli-templates/prompts/dms/claude-layer4-submodule.txt b/.claude/workflows/cli-templates/prompts/memory/claude-layer4-submodule.txt similarity index 100% rename from .claude/workflows/cli-templates/prompts/dms/claude-layer4-submodule.txt rename to .claude/workflows/cli-templates/prompts/memory/claude-layer4-submodule.txt diff --git a/.claude/workflows/cli-templates/prompts/dms/hierarchy-analysis.txt b/.claude/workflows/cli-templates/prompts/memory/hierarchy-analysis.txt similarity index 89% rename from .claude/workflows/cli-templates/prompts/dms/hierarchy-analysis.txt rename to .claude/workflows/cli-templates/prompts/memory/hierarchy-analysis.txt index 7b1c2ad9..8fddf7fa 100644 --- a/.claude/workflows/cli-templates/prompts/dms/hierarchy-analysis.txt +++ b/.claude/workflows/cli-templates/prompts/memory/hierarchy-analysis.txt @@ -1,4 +1,4 @@ -Analyze project structure for DMS hierarchy optimization: +Analyze project structure for memory hierarchy optimization: ## Required Analysis: 1. Assess project complexity and file organization patterns diff --git a/INSTALL.md b/INSTALL.md index dde84140..1e6574c2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -186,7 +186,7 @@ cd Dmsflow .\Install-Claude.ps1 -Global # 4. Start using Claude Code with Agent workflows! -# Use /workflow commands and DMS system for development +# Use /workflow commands and memory system for development ``` ## Verification @@ -207,7 +207,7 @@ After installation, verify: - Check that global `.claude` directory is recognized - Verify workflow commands and DMS commands are available - Test `/workflow` commands for agent coordination - - Test `/dmsflow version` to check version information + - Test `/workflow version` to check version information ## Troubleshooting diff --git a/INSTALL_CN.md b/INSTALL_CN.md index bbf2b65e..4ed72917 100644 --- a/INSTALL_CN.md +++ b/INSTALL_CN.md @@ -162,7 +162,7 @@ cd Dmsflow .\Install-Claude.ps1 -Global # 4. 开始使用 Claude Code Agent 工作流! -# 使用 /workflow 命令和 DMS 系统进行开发 +# 使用 /workflow 命令和内存系统进行开发 ``` ## 验证 @@ -181,9 +181,9 @@ cd Dmsflow 2. **测试 Claude Code:** - 在项目中打开 Claude Code - 检查全局 `.claude` 目录是否被识别 - - 验证工作流命令和 DMS 命令是否可用 + - 验证工作流命令和内存命令是否可用 - 测试 `/workflow` 命令的 Agent 协调功能 - - 测试 `/dmsflow version` 检查版本信息 + - 测试 `/workflow version` 检查版本信息 ## 故障排除