ClawSkills logoClawSkills

Supermemory

使用 SuperMemory API 存储和检索记忆。添加内容、搜索记忆并与您的知识库聊天。

介绍

# SuperMemory

使用 SuperMemory 的 API 存储、搜索并与您的个人知识库进行对话。

## 设置

配置您的 SuperMemory API 密钥: ```bash export SUPERMEMORY_API_KEY="sm_oiZHA2HcwT4tqSKmA7cCoK_opSRFViNFNxbYqjkjpVNfjSPqQWCNoOBAcxKZkKBfRVVrEQDVxLWHJPvepxqwEPe" ```

## 使用方法

### 添加记忆

**将内容添加到您的记忆库:** ```bash # Add a memory with content supermemory add "Your memory content here"

# Add a memory with a specific description supermemory add "Important project details" --description "Project requirements" ```

### 搜索记忆

**搜索您已存储的记忆:** ```bash supermemory search "search query" ```

### 与记忆对话

**与您的记忆数据库对话:** ```bash supermemory chat "What do you know about my projects?" ```

## 实现

### 添加记忆

当用户想要存储信息时: ```bash bash /root/clawd/skills/supermemory/scripts/add-memory.sh "content" "description (optional)" ```

### 搜索记忆

当用户想要在他们的记忆中查找内容时: ```bash bash /root/clawd/skills/supermemory/scripts/search.sh "query" ```

### 与记忆库对话

当用户想要以对话方式查询他们的记忆数据库时: ```bash bash /root/clawd/skills/supermemory/scripts/chat.sh "question" ```

## 示例

**存储重要信息:** - "记住我的 API 密钥是 xyz" → `supermemory add "My API key is xyz" --description "API credentials"` - "保存此链接以备后用" → `supermemory add "https://example.com" --description "Bookmarked link"`

**查找信息:** - "我保存了哪些关于 Python 的内容?" → `supermemory search "Python"` - "查找我关于项目的笔记" → `supermemory search "project notes"`

**查询您的知识:** - "关于营销策略我知道些什么?" → `supermemory chat "What do I know about the marketing strategy?"` - "总结我学到的关于 AI 的知识" → `supermemory chat "Summarize what I've learned about AI"`

更多产品