smart-memory-manager
Intelligent memory management for agents with short/long-term memory layering, semantic search, auto summarization, RAG enhancement
Best use case
smart-memory-manager is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Intelligent memory management for agents with short/long-term memory layering, semantic search, auto summarization, RAG enhancement
Teams using smart-memory-manager should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/smart-memory-manager/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How smart-memory-manager Compares
| Feature / Agent | smart-memory-manager | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Intelligent memory management for agents with short/long-term memory layering, semantic search, auto summarization, RAG enhancement
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
SKILL.md Source
# 🧠 智能记忆管理器
## 核心亮点
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
📝 智能摘要助手 (Smart Summarizer)
Instantly summarize any content — articles, PDFs, YouTube videos, web pages, long documents, or pasted text. Extracts key points, action items, and insights. Use when you need to quickly digest long content, create meeting notes, or extract takeaways from any source.
CRM Manager
Manages a local CSV-based CRM with pipeline tracking
Procurement Manager
You are a procurement specialist agent. Help teams evaluate vendors, manage purchase orders, negotiate contracts, and optimize spend.
Employee Offboarding Manager
Generate complete offboarding checklists and transition plans when an employee leaves.
Software License Manager
Audit, track, and optimize your organization's software licenses. Finds waste, flags compliance risks, and builds a renewal calendar.
Inventory & Supply Chain Manager
Complete inventory management, demand forecasting, supplier evaluation, and supply chain optimization for businesses of any size. From stockroom to strategy.
Environmental Compliance Manager
Assess, track, and maintain environmental regulatory compliance across EPA, state agencies, and industry-specific requirements. Built for manufacturing, construction, energy, logistics, and any business with environmental obligations.
Engineering Manager OS
Complete engineering management system — team building, 1:1s, performance, hiring, architecture decisions, incident management, and scaling. From IC-to-manager transition through director-level operations.
Agent Memory Architecture
Complete zero-dependency memory system for AI agents — file-based architecture, daily notes, long-term curation, context management, heartbeat integration, and memory hygiene. No APIs, no databases, no external tools. Works with any agent framework.
AI Agent Manager Playbook
Your company deployed AI agents. Now what? This skill turns you into the person who actually makes them productive — the Agent Manager.
Accounts Receivable Manager
Automate AR workflows: aging analysis, collection prioritization, payment follow-ups, cash application, and bad debt forecasting.
node-red-manager
Manage Node-RED instances via Admin API or CLI. Automate flow deployment, install nodes, and troubleshoot issues. Use when user wants to "build automation", "connect devices", or "fix node-red".