Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

conversation-saver对话保护程序

Agent Skill

conversation-saver 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,011

周安装

128

GitHub Stars

公开资料未说明

下载量

1,055
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:conversation-saver(对话保护程序)
来源仓库:https://github.com/xiaobu2020/conversation-saver
安装命令:
openclaw skills install conversation-saver
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install conversation-saver

简介

自动从对话历史记录中提取关键事实并保存到本地内存文件中。采用规则+LLM 混合提取的静默后台操作。

SKILL.md

name
conversation-saver
description
Automatically extract key facts from conversation history and persist to local memory files. Silent background operation with rule+LLM hybrid extraction.
version
0.1.1
author
Laobu
source
https://clawhub.ai/laobu/conversation-saver

Conversation Saver

Automatically extracts key facts from your conversations and persists them to the appropriate local memory files (WARM_MEMORY.md, MEMORY.md, ontology, USER.md). Works silently in the background without interrupting the user flow.

When to Use

  • You want your agent to remember important details from conversations automatically
  • You need hands-off fact extraction (no interactive questioning)
  • You want facts categorized into the right places (preferences, schedules, person details)
  • You prefer local-first persistence (no external dependencies)

How It Works

1. Extraction Pipeline

Raw Messages → Rule-Based Filter → LLM Extraction → Classification → Deduplication → Persistence
  • Rule-Based: Fast keyword/regex matching for obvious facts (dates, locations, names)
  • LLM: Step 3.5 Flash extracts structured facts from ambiguous conversations
  • Classification: Routes facts to the correct storage target
  • Deduplication: Avoids recording the same fact multiple times

2. Storage Targets

Fact TypeDestinationExample
Person details (family, friends)ontology + WARM_MEMORY.md (家庭)"老婆去上海出差"
Time commitmentsWARM_MEMORY.md (日程)"下周二回来"
LocationsUSER.md + WARM_MEMORY.md"常驻武汉"
PreferencesWARM_MEMORY.md (互动偏好)"不要一股脑发照片"
System rulesTOOLS.md / AGENTS.md"回复必须@老布"
Important decisionsMEMORY.md"决定用Tailwind"

3. Trigger Modes

  • On Session End: Automatically run after each conversation (requires AGENTS.md hook)
  • Heartbeat Backfill: Scan recent days for missed conversations (configurable)
  • Manual: uv run scripts/extract.py --session <sessionKey> or --days N

Installation

# From ClawHub (recommended)
clawhub install conversation-saver

# Or manual
cd ~/.openclaw/workspace/skills
git clone <your-repo> conversation-saver

Configuration

Edit config.json to customize behavior:

{
  "extraction": {
    "enabled": true,
    "auto_on_session_end": true,
    "heartbeat_reprocess_days": 2,
    "min_confidence": 0.6,
    "max_facts_per_session": 10
  },
  "filters": {
    "user_id": "ou_39f0f10fb55c7c782610cad6a97f4842",
    "ignore_bot_messages": true,
    "ignore_short_messages": true,
    "min_message_length": 5
  },
  "persistence": {
    "verify_after_write": true,
    "backup_before_write": false,
    "deduplicate_across_sessions": true
  }
}

Usage

Automatic Mode (Recommended)

Add to AGENTS.md to run after each session:

## Session End Hooks
- 每次会话结束 → 运行 conversation-saver

Or integrate into your existing heartbeat:

uv run ~/.openclaw/workspace/skills/conversation-saver/scripts/extract.py --days 2 --reprocess

Manual Run

# Extract from specific session
uv run scripts/extract.py --session <sessionKey>

# Backfill last 3 days
uv run scripts/extract.py --days 3 --reprocess

# Dry run (show what would be extracted)
uv run scripts/extract.py --session <sessionKey> --dry-run

Files Structure

conversation-saver/
├── SKILL.md
├── config.json
├── scripts/
│   ├── __init__.py
│   ├── extract.py      # Main entry point
│   ├── classifier.py   # Fact classification
│   ├── persister.py    # File writing with verification
│   └── utils.py        # Helpers (dedupe, date parsing)
└── README.md

Customization

Add Keywords

Edit scripts/extract.pyKEYWORD_CATEGORIES:

KEYWORD_CATEGORIES = {
    "person": ["老婆", "小美美", "包子", "家人", "朋友"],
    "location": ["武汉", "上海", "郑州", "出差", "旅行"],
    "time": ["周三", "周二", "本周", "下周", "月", "日"],
    "preference": ["喜欢", "不要", "记住", "记得", "规则"]
}

Adjust LLM Prompt

Modify scripts/extract.pyLLM_EXTRACTION_PROMPT to change extraction style or output format.

Requirements

  • Python 3.10+
  • OpenClaw agent with tool access (read, write, edit)
  • StepFun model (for LLM extraction)

Testing

# Dry run on today's conversations
uv run scripts/extract.py --today --dry-run

# Check extracted facts count
uv run scripts/extract.py --today --stats-only

Limitations

  • Single-user focus: Designed for one primary user (your USER.md)
  • No vector search: Facts are stored in files, not semantic searchable (yet)
  • Language: Optimized for Chinese conversations (keywords in Chinese)
  • No GUI: All configuration via config.json

Credits

Inspired by openclaw-user-profiler's structured approach and elite-longterm-memory's tiered architecture.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

92.76%
按下载量换算979

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills