一个安全的本地化记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。
--- name: secure-memory-stack version: 1.0.0 description: A secure localized memory system integrating Baidu Embedding semantic search, Git Notes structured storage, and the file system to guarantee data privacy and security. triggers: - "setup memory" - "configure memory" - "secure memory" - "local memory" - "privacy memory" author: Clawdbot Team --- # Secure Memory Stack A secure localized memory system integrating Baidu Embedding semantic search, Git Notes structured storage, and the file system to guarantee data privacy and security. ## Features - ✅ **Fully Localized** - All data is stored on local devices - ✅ **Zero Data Upload** - No data is sent to any external services - ✅ **Semantic Search** - Semantic similarity search powered by Baidu Embedding - ✅ **Structured Storage** - Structured memory management provided by Git Notes - ✅ **File System** - Traditional file storage for easy management - ✅ **Hybrid Search** - Semantic + keyword + tag integrated search - ✅ **Privacy Protection** - Full data ownership and sovereignty ## Quick Installation ```bash clawdhub install secure-memory-stack One-Click Initialization bash 运行 # Initialize the secure memory system bash /root/clawd/create/secure-memory-stack/scripts/setup.sh API Configuration Guide The system will automatically detect and guide you to configure required API keys: Baidu Embedding API (optional) Other optional services Usage Guide 1. System Initialization bash 运行 # First-time setup secure-memory setup 2. Check System Status bash 运行 # Check the status of the memory system secure-memory status 3. Add Memories bash 运行 # Add structured memories via Git Notes secure-memory remember "Critical Decision: Adopt a localized memory system" --tags decision,security --importance high # Update MEMORY.md to add long-term memories secure-memory add-longterm "User Preference: Concise and efficient communication" 4. Search Memories bash 运行 # Semantic search secure-memory search "security configuration" # Structured search by tags secure-memory find --tag security # File-based search secure-memory lookup "user preferences" 5. System Maintenance bash 运行 # Check system health status secure-memory health # View statistical information secure-memory stats Error Handling Common Errors and Solutions Error 1: "Failed to connect to Baidu Embedding API" Solution: Verify the configuration of your Baidu API key Run: secure-memory configure baidu Error 2: "Git Notes system unavailable" Solution: Ensure Git is installed and configured correctly Run: secure-memory fix git Error 3: "File permission error" Solution: Check workspace access permissions Run: secure-memory fix permissions Error 4: "No search results found" Solution: Confirm that the index has been updated Run: secure-memory refresh Configuration Files The system will create configuration files at the following paths: /root/clawd/memory_config.json - Main configuration file /root/clawd/MEMORY.md - Long-term memory storage /root/clawd/SESSION-STATE.md - Session state records /root/clawd/memory/ - Daily logs Directory Structure plaintext /root/clawd/ ├── MEMORY.md # Long-term memories ├── SESSION-STATE.md # Active working memory ├── memory/ # Daily logs │ ├── YYYY-MM-DD.md # Daily memory logs │ └── ... # Historical logs ├── notes/ # Knowledge organization │ ├── projects/ # Project records │ ├── areas/ # Domain-specific content │ ├── resources/ # Resource files │ └── archive/ # Archived content └── skills/secure-memory-stack/ ├── scripts/ # Management scripts ├── configs/ # Configuration templates └── docs/ # Documentation Command Reference Core Commands secure-memory setup - Initialize the system secure-memory status - Check system status secure-memory search <query> - Perform semantic search secure-memory remember <content> - Add a new memory secure-memory health - Run system health check secure-memory configure <service> - Configure API for a service secure-memory fix <component> - Repair a system component Advanced Commands secure-memory refresh - Refresh search indexes secure-memory backup - Back up all memory data secure-memory restore - Restore memory data from backup secure-memory export - Export memory data secure-memory stats - View system statistics Security Features Local Storage: All data is stored exclusively on the local machine Zero Upload: No data transmission to external services Access Control: Restricted to local machine access only Privacy Protection: Full user data sovereignty Encryption Support: Optional local data encryption Troubleshooting If you encounter issues, run: bash 运行 secure-memory diagnose This will execute a full system diagnosis and provide targeted solutions. System Update bash 运行 clawdhub update secure-memory-stack System Uninstallation bash 运行 secure-memory cleanup Note: This will delete all configuration files but will not remove your memory files. Contribution Issues and Pull Requests are welcome to help improve this skill. plaintext --- 如果需要,我还可以帮你把这份文档调整为**更适合GitHub发布的README格式**,要不要我帮你优化一下?