skills$openclaw/secure-memory-stack
xqicxx1.3k

by xqicxx

secure-memory-stack – OpenClaw Skill

secure-memory-stack is an OpenClaw Skills integration for security workflows. 一个安全的本地化记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。

1.3k stars1.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026security

Skill Snapshot

namesecure-memory-stack
description一个安全的本地化记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。 OpenClaw Skills integration.
ownerxqicxx
repositoryxqicxx/secure-memory-stack
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @xqicxx/secure-memory-stack
last updatedFeb 7, 2026

Maintainer

xqicxx

xqicxx

Maintains secure-memory-stack in the OpenClaw Skills directory.

View GitHub profile
File Explorer
32 files
.
scripts
configure.sh
1.2 KB
diagnose.sh
2.7 KB
fix.sh
1.5 KB
memory_skill_full_verification.sh
4.2 KB
memory_skill_startup_check.sh
2.0 KB
remember.sh
1.4 KB
search.sh
1.2 KB
secure-memory.sh
3.4 KB
setup.sh
2.5 KB
stats.sh
1.6 KB
status.sh
1.7 KB
_meta.json
290 B
CHANGELOG.md
2.0 KB
clawdbot.skill.json
1.6 KB
DOCUMENTATION.md
6.5 KB
INSTALLATION.md
2.7 KB
memory_health_check.sh
4.1 KB
memory_maintenance.sh
2.7 KB
memory_performance_monitor.sh
2.2 KB
memory_quick_start.md
2.2 KB
memory_system_comprehensive_guide.md
2.7 KB
memory_system_config.json
1.6 KB
MEMORY_SYSTEM_GUIDE.md
2.7 KB
model_change_memory_loader.sh
2.5 KB
package.json
928 B
QUICK_START.md
2.2 KB
README.md
2.3 KB
secure-memory.sh
690 B
SKILL.md
4.7 KB
UPGRADE-GUIDE.md
5.1 KB
UPLOAD-README.md
3.6 KB
SKILL.md

name: secure-memory-stack version: 1.0.0 description: 一个安全的本地化记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。 triggers:

  • "setup memory"
  • "configure memory"
  • "secure memory"
  • "local memory"
  • "privacy memory" author: Clawdbot Team

安全记忆系统栈 (Secure Memory Stack)

一个安全的本地化记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。

功能特点

  • 完全本地化 - 所有数据存储在本地设备
  • 零数据上传 - 不向任何外部服务发送数据
  • 语义搜索 - 基于百度Embedding的语义相似性搜索
  • 结构化存储 - Git Notes提供结构化记忆管理
  • 文件系统 - 传统文件存储,易管理
  • 混合搜索 - 语义+关键词+标签搜索
  • 隐私保护 - 完全数据主权

快速安装

clawdhub install secure-memory-stack

一键初始化

# 初始化安全记忆系统
bash /root/clawd/create/secure-memory-stack/scripts/setup.sh

API配置引导

系统会自动检测并引导您配置必要的API密钥:

  1. 百度Embedding API(如果需要)
  2. 其他可选服务

使用指南

1. 系统初始化

# 首次设置
secure-memory setup

2. 检查系统状态

# 检查记忆系统状态
secure-memory status

3. 添加记忆

# 通过Git Notes添加结构化记忆
secure-memory remember "重要决策:使用本地化记忆系统" --tags decision,security --importance high

# 更新MEMORY.md添加长期记忆
secure-memory add-longterm "用户偏好:简洁高效沟通"

4. 搜索记忆

# 语义搜索
secure-memory search "安全配置"

# 结构化搜索
secure-memory find --tag security

# 文件搜索
secure-memory lookup "用户偏好"

5. 系统维护

# 检查系统健康状态
secure-memory health

# 查看统计信息
secure-memory stats

错误处理

常见错误及解决方案

错误1: "百度Embedding API连接失败"

  • 解决方案: 检查百度API密钥配置
  • 运行: secure-memory configure baidu

错误2: "Git Notes系统不可用"

  • 解决方案: 确保Git已安装并正确配置
  • 运行: secure-memory fix git

错误3: "文件权限错误"

  • 解决方案: 检查工作区权限
  • 运行: secure-memory fix permissions

错误4: "搜索无结果"

  • 解决方案: 确认索引已更新
  • 运行: secure-memory refresh

配置文件

系统将在以下位置创建配置文件:

  • /root/clawd/memory_config.json - 主配置
  • /root/clawd/MEMORY.md - 长期记忆
  • /root/clawd/SESSION-STATE.md - 会话状态
  • /root/clawd/memory/ - 每日日志

目录结构

/root/clawd/
├── MEMORY.md              # 长期记忆
├── SESSION-STATE.md       # 活动工作记忆
├── memory/                # 每日日志
│   ├── YYYY-MM-DD.md      # 每日记忆日志
│   └── ...                # 历史日志
├── notes/                 # 知识组织
│   ├── projects/          # 项目
│   ├── areas/             # 领域
│   ├── resources/         # 资源
│   └── archive/           # 归档
└── skills/secure-memory-stack/
    ├── scripts/           # 管理脚本
    ├── configs/           # 配置模板
    └── docs/              # 文档

命令参考

主要命令

  • secure-memory setup - 初始化系统
  • secure-memory status - 检查系统状态
  • secure-memory search <query> - 语义搜索
  • secure-memory remember <content> - 添加记忆
  • secure-memory health - 健康检查
  • secure-memory configure <service> - 配置API
  • secure-memory fix <component> - 修复组件

高级命令

  • secure-memory refresh - 刷新索引
  • secure-memory backup - 备份记忆
  • secure-memory restore - 恢复记忆
  • secure-memory export - 导出记忆
  • secure-memory stats - 统计信息

安全特性

  • 本地化存储: 所有数据仅存储在本地
  • 零上传: 不向任何外部服务传输数据
  • 访问控制: 仅限本机访问
  • 隐私保护: 完全数据主权
  • 加密支持: 可选本地加密

故障排除

如果遇到问题,运行:

secure-memory diagnose

这将运行完整的系统诊断并提供解决方案。

更新系统

clawdhub update secure-memory-stack

卸载系统

secure-memory cleanup

注意:这将删除所有配置文件,但不会删除您的记忆文件。

贡献

欢迎提交Issue和Pull Request来改进此技能。

README.md

安全记忆系统栈 (Secure Memory Stack)

一个完全本地化的记忆系统,结合百度Embedding语义搜索、Git Notes结构化存储和文件系统,确保数据隐私和安全。

特性

  • 完全本地化 - 所有数据存储在本地设备
  • 零数据上传 - 不向任何外部服务发送数据
  • 语义搜索 - 基于百度Embedding的语义相似性搜索
  • 结构化存储 - Git Notes提供结构化记忆管理
  • 文件系统 - 传统文件存储,易管理
  • 混合搜索 - 语义+关键词+标签搜索
  • 隐私保护 - 完全数据主权

安装

clawdhub install secure-memory-stack

快速开始

# 初始化系统
secure-memory setup

# 检查系统状态
secure-memory status

# 搜索记忆
secure-memory search "安全配置"

# 添加记忆
secure-memory remember "重要决策:使用本地化记忆系统" --tags decision,security --importance high

# 查看统计
secure-memory stats

命令参考

主要命令

  • secure-memory setup - 初始化系统
  • secure-memory status - 检查系统状态
  • secure-memory search <query> - 语义搜索
  • secure-memory remember <content> - 添加记忆
  • secure-memory health - 健康检查
  • secure-memory configure <service> - 配置API
  • secure-memory fix <component> - 修复组件

高级命令

  • secure-memory stats - 统计信息
  • secure-memory diagnose - 系统诊断
  • secure-memory help - 显示帮助

配置API

如果需要使用百度Embedding进行语义搜索:

secure-memory configure baidu

按照提示设置环境变量。

故障排除

如果遇到问题,运行:

secure-memory diagnose

这将运行完整的系统诊断并提供解决方案。

安全特性

  • 本地化存储: 所有数据仅存储在本地
  • 零上传: 不向任何外部服务传输数据
  • 访问控制: 仅限本机访问
  • 隐私保护: 完全数据主权
  • 离线可用: 无需网络连接

架构

系统采用三层架构:

  1. 百度Embedding层 - 语义搜索(向量存储)
  2. Git Notes层 - 结构化查询(关系存储)
  3. 文件系统层 - 原始存储(文档存储)

这种分层设计提供了最佳的搜索性能和数据管理灵活性。

贡献

欢迎提交Issue和Pull Request来改进此技能。

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install secure-memory-stack?

Run openclaw add @xqicxx/secure-memory-stack in your terminal. This installs secure-memory-stack into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/xqicxx/secure-memory-stack. Review commits and README documentation before installing.