Search

PythonReactSEOPDF
OpenClaw

smart-memory-manager

Intelligent memory management for agents with short/long-term memory layering, semantic search, auto summarization, RAG enhancement

ayalili0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install ayalili/smart-memory-manager

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

🧠 智能记忆管理器

核心亮点

  1. 📚 分层记忆体系:短期/长期/重要记忆三层架构,自动清理过期记忆,解决上下文溢出问题
  2. 🔍 多模式检索:支持关键词/语义/混合三种检索模式,快速召回相关记忆,提升RAG准确率
  3. 📝 自动摘要能力:一键生成记忆摘要,支持长会话上下文压缩,token占用减少70%
  4. 💾 持久化支持:支持内存/磁盘持久化,重启后记忆不丢失

🎯 适用场景

  • 长会话Agent、聊天机器人
  • RAG应用的记忆层
  • 需要长期记忆的任务型Agent
  • 客服、助理类Agent的上下文管理

📝 参数说明

参数 类型 必填 说明
action string 是 操作类型:add/search/summarize/clear/list/load/save
content string 否 add操作必填,记忆内容
type string 否 add操作可选,记忆类型:short-term/long-term/important,默认short-term
query string 否 search操作必填,搜索关键词
limit number 否 search/list操作可选,返回结果数量,默认5/20
typeFilter string 否 所有操作可选,过滤记忆类型,默认all
persist boolean 否 add操作可选,是否持久化存储,默认false
persistPath string 否 load/save操作可选,持久化文件路径,默认./memory-store.json

💡 开箱即用示例

添加记忆
// 添加长期记忆
await skills.smartMemoryManager({
  action: "add",
  content: "用户喜欢喝咖啡,不加糖,每周三下午喝奶茶",
  type: "long-term",
  persist: true
});
搜索记忆
const result = await skills.smartMemoryManager({
  action: "search",
  query: "用户喜好",
  limit: 3,
  searchMode: "hybrid" // 关键词+语义混合检索
});
生成会话摘要
const summary = await skills.smartMemoryManager({
  action: "summarize",
  typeFilter: "short-term",
  maxTokens: 500
});
持久化与加载
// 保存所有记忆到磁盘
await skills.smartMemoryManager({
  action: "save",
  persistPath: "./my-memory.json"
});

// 从磁盘加载记忆
await skills.smartMemoryManager({
  action: "load",
  persistPath: "./my-memory.json"
});

🔧 技术实现说明

  • 内置记忆自动清理机制,短期记忆最多保留100条,...

Source information

Source
github
Repository
openclaw/skills
Path
skills/ayalili/smart-memory-manager
Version
—
Commit
a9cb5cbde9d8d4d19bb0e3c6dda2694ed9b387ff
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

🧠 智能记忆管理器

核心亮点

  1. 📚 分层记忆体系:短期/长期/重要记忆三层架构,自动清理过期记忆,解决上下文溢出问题
  2. 🔍 多模式检索:支持关键词/语义/混合三种检索模式,快速召回相关记忆,提升RAG准确率
  3. 📝 自动摘要能力:一键生成记忆摘要,支持长会话上下文压缩,token占用减少70%
  4. 💾 持久化支持:支持内存/磁盘持久化,重启后记忆不丢失

🎯 适用场景

  • 长会话Agent、聊天机器人
  • RAG应用的记忆层
  • 需要长期记忆的任务型Agent
  • 客服、助理类Agent的上下文管理

📝 参数说明

参数 类型 必填 说明
action string 是 操作类型:add/search/summarize/clear/list/load/save
content string 否 add操作必填,记忆内容
type string 否 add操作可选,记忆类型:short-term/long-term/important,默认short-term
query string 否 search操作必填,搜索关键词
limit number 否 search/list操作可选,返回结果数量,默认5/20
typeFilter string 否 所有操作可选,过滤记忆类型,默认all
persist boolean 否 add操作可选,是否持久化存储,默认false
persistPath string 否 load/save操作可选,持久化文件路径,默认./memory-store.json

💡 开箱即用示例

添加记忆
// 添加长期记忆
await skills.smartMemoryManager({
  action: "add",
  content: "用户喜欢喝咖啡,不加糖,每周三下午喝奶茶",
  type: "long-term",
  persist: true
});
搜索记忆
const result = await skills.smartMemoryManager({
  action: "search",
  query: "用户喜好",
  limit: 3,
  searchMode: "hybrid" // 关键词+语义混合检索
});
生成会话摘要
const summary = await skills.smartMemoryManager({
  action: "summarize",
  typeFilter: "short-term",
  maxTokens: 500
});
持久化与加载
// 保存所有记忆到磁盘
await skills.smartMemoryManager({
  action: "save",
  persistPath: "./my-memory.json"
});

// 从磁盘加载记忆
await skills.smartMemoryManager({
  action: "load",
  persistPath: "./my-memory.json"
});

🔧 技术实现说明

  • 内置记忆自动清理机制,短期记忆最多保留100条,...

Extracted content

SKILL.md
# 🧠 智能记忆管理器
## 核心亮点
1. 📚 **分层记忆体系**:短期/长期/重要记忆三层架构,自动清理过期记忆,解决上下文溢出问题
2. 🔍 **多模式检索**:支持关键词/语义/混合三种检索模式,快速召回相关记忆,提升RAG准确率
3. 📝 **自动摘要能力**:一键生成记忆摘要,支持长会话上下文压缩,token占用减少70%
4. 💾 **持久化支持**:支持内存/磁盘持久化,重启后记忆不丢失

## 🎯 适用场景
- 长会话Agent、聊天机器人
- RAG应用的记忆层
- 需要长期记忆的任务型Agent
- 客服、助理类Agent的上下文管理

## 📝 参数说明
| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| action | string | 是 | 操作类型:add/search/summarize/clear/list/load/save |
| content | string | 否 | add操作必填,记忆内容 |
| type | string | 否 | add操作可选,记忆类型:short-term/long-term/important,默认short-term |
| query | string | 否 | search操作必填,搜索关键词 |
| limit | number | 否 | search/list操作可选,返回结果数量,默认5/20 |
| typeFilter | string | 否 | 所有操作可选,过滤记忆类型,默认all |
| persist | boolean | 否 | add操作可选,是否持久化存储,默认false |
| persistPath | string | 否 | load/save操作可选,持久化文件路径,默认./memory-store.json |

## 💡 开箱即用示例
### 添加记忆
```typescript
// 添加长期记忆
await skills.smartMemoryManager({
  action: "add",
  content: "用户喜欢喝咖啡,不加糖,每周三下午喝奶茶",
  type: "long-term",
  persist: true
});
```

### 搜索记忆
```typescript
const result = await skills.smartMemoryManager({
  action: "search",
  query: "用户喜好",
  limit: 3,
  searchMode: "hybrid" // 关键词+语义混合检索
});
```

### 生成会话摘要
```typescript
const summary = await skills.smartMemoryManager({
  action: "summarize",
  typeFilter: "short-term",
  maxTokens: 500
});
```

### 持久化与加载
```typescript
// 保存所有记忆到磁盘
await skills.smartMemoryManager({
  action: "save",
  persistPath: "./my-memory.json"
});

// 从磁盘加载记忆
await skills.smartMemoryManager({
  action: "load",
  persistPath: "./my-memory.json"
});
```

## 🔧 技术实现说明
- 内置记忆自动清理机制,短期记忆最多保留100条,...
README
# 🧠 智能记忆管理器
## 核心亮点
1. 📚 **分层记忆体系**:短期/长期/重要记忆三层架构,自动清理过期记忆,解决上下文溢出问题
2. 🔍 **多模式检索**:支持关键词/语义/混合三种检索模式,快速召回相关记忆,提升RAG准确率
3. 📝 **自动摘要能力**:一键生成记忆摘要,支持长会话上下文压缩,token占用减少70%
4. 💾 **持久化支持**:支持内存/磁盘持久化,重启后记忆不丢失

## 🎯 适用场景
- 长会话Agent、聊天机器人
- RAG应用的记忆层
- 需要长期记忆的任务型Agent
- 客服、助理类Agent的上下文管理

## 📝 参数说明
| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| action | string | 是 | 操作类型:add/search/summarize/clear/list/load/save |
| content | string | 否 | add操作必填,记忆内容 |
| type | string | 否 | add操作可选,记忆类型:short-term/long-term/important,默认short-term |
| query | string | 否 | search操作必填,搜索关键词 |
| limit | number | 否 | search/list操作可选,返回结果数量,默认5/20 |
| typeFilter | string | 否 | 所有操作可选,过滤记忆类型,默认all |
| persist | boolean | 否 | add操作可选,是否持久化存储,默认false |
| persistPath | string | 否 | load/save操作可选,持久化文件路径,默认./memory-store.json |

## 💡 开箱即用示例
### 添加记忆
```typescript
// 添加长期记忆
await skills.smartMemoryManager({
  action: "add",
  content: "用户喜欢喝咖啡,不加糖,每周三下午喝奶茶",
  type: "long-term",
  persist: true
});
```

### 搜索记忆
```typescript
const result = await skills.smartMemoryManager({
  action: "search",
  query: "用户喜好",
  limit: 3,
  searchMode: "hybrid" // 关键词+语义混合检索
});
```

### 生成会话摘要
```typescript
const summary = await skills.smartMemoryManager({
  action: "summarize",
  typeFilter: "short-term",
  maxTokens: 500
});
```

### 持久化与加载
```typescript
// 保存所有记忆到磁盘
await skills.smartMemoryManager({
  action: "save",
  persistPath: "./my-memory.json"
});

// 从磁盘加载记忆
await skills.smartMemoryManager({
  action: "load",
  persistPath: "./my-memory.json"
});
```

## 🔧 技术实现说明
- 内置记忆自动清理机制,短期记忆最多保留100条,...

Related skills

OpenClaw

ai-maestro

23blocks-os

AI Agent Orchestrator with Skills System - Give AI Agents superpowers: memory search, code graph queries, agent-to-agent messaging. Manage Claude, Codex or any AI Agent from one dashboard. Move Agents between c...

OpenClaw

registry-broker-skills

hashgraph-online

AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols. Works with Claude, Codex, Cursor, OpenClaw, and any AI assistant.

OpenClaw

skills-manager

rito-w

A cross-platform skills manager for AI IDEs. Search marketplace, download locally, and install to Claude, Cursor, Windsurf, and more with one click.