Skip to content
Back to skills

Openclaw Skill Session Memory

ASecurity

自动记录对话内容,按日期存储,支持快速关键字搜索回忆。

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill openclaw-skill-session-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openclaw Skill Session Memory?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openclaw Skill Session Memory
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-openclaw-skill-session-memory/badge)](https://www.skillsdirectory.com/skills/modbender-openclaw-skill-session-memory)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 会话记忆技能
description: 自动记录对话内容,按日期存储,支持快速关键字搜索回忆。
---

# 会话记忆技能

自动记录对话内容,按日期存储,支持快速关键字搜索回忆。

## 功能

- **自动记录**: 每次会话结束后自动保存对话内容到md文件
- **按日期存储**: 文件保存在 `memory/conversations/YYYY-MM-DD.md`
- **数据脱敏**: 自动过滤账号、密码、密钥、token等敏感信息
- **快速搜索**: 支持关键字正则匹配,无需加载整个文件

## 使用方式

### 自动记录(会话结束自动调用)

技能会在会话结束时自动调用,记录本次会话内容。

### 手动搜索回忆

```bash
# 搜索关键字(默认搜索最近7天)
python3 ~/.openclaw/workspace/skills/session-memory/search.py "关键词"

# 搜索指定天数
python3 ~/.openclaw/workspace/skills/session-memory/search.py "关键词" --days 30

# 列出最近所有会话文件
python3 ~/.openclaw/workspace/skills/session-memory/search.py --list
```

## 脱敏规则

自动替换以下内容:
- 邮箱: `xxx@xxx.com` → `[EMAIL]`
- 手机号: 11位数字 → `[PHONE]`
- API Key/Token: 包含 `key`、`token`、`secret`、`password` 的长字符串 → `[REDACTED]`
- 身份证号: 18位 → `[ID]`
- 银行卡号: 16-19位 → `[CARD]`
- IP地址: → `[IP]`

## 文件格式

```markdown
# 2026-03-02 会话记录

## 会话 1
- 时间: 19:13 - 19:20
- 渠道: feishu
- 消息数: 6

### 关键内容
- 用户询问焱焱是否在线
- 讨论会话丢失问题
- 要求创建会话记忆技能

### 消息摘要
- [19:13] 用户: "焱焱在吗"
- [19:15] 焱焱: "刚才应该是网络延迟"
...
```

## 技术实现

- Python脚本处理会话日志
- 正则表达式匹配敏感信息
- 按日期分割文件便于快速检索

Files in this skill

  • README-CN.md2.6 KB
  • README.md3 KB
  • SKILL.md1.9 KB
  • record.py6.2 KB
  • search.py5 KB
  • skill.py9.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…