extract-memories

对话结束后自动提炼本轮对话关键记忆 / 触发词:提取记忆、提炼记忆 / 命令:/extract-memories(自动+手动)

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "extract-memories" with this command: npx skills add jofiction918/openclaw-cc-contrib

extract-memories — 自动记忆提炼

对话结束后自动提炼本轮对话中的关键信息,写入 memory/ 目录持久化存储,让 AI 在下一次对话时可以读取记忆,不用重复说背景。

何时使用

  • 自动触发:每次对话结束(模型产出最终回复后)自动后台执行
  • 手动触发:/extract-memories 手动触发一次提炼

工作流程

核心目标

从本轮对话中提炼出值得持久保存的信息:

  • 用户明确做出的决策
  • 用户表达的偏好(工具选择、代码风格、沟通风格)
  • 项目新增/更新的关键约定(API 地址、构建命令、目录结构)
  • 解决的技术问题和最终方案

执行步骤

  1. 读取上下文:获取本轮对话完整内容
  2. 提炼要点:按分类提取值得记住的信息,每条不超过 100 字
  3. 写入文件:追加到 memory/{{date}}.md 文件(date 格式 YYYY-MM-DD
    • 文件不存在 → 新建
    • 文件已存在 → 追加到末尾
  4. 通知主会话:在主会话输出一条简短通知,说明提炼了几条记忆写入哪里,不打扰用户正常交互

输出格式

直接写入文件即可,格式要求:

### {{YYYY-MM-DD}} 记忆提炼

#### 决策
- ... (每条决策一行)

#### 偏好
- ... (每条偏好一行)

#### 项目约定
- ... (每条约定一行)

#### 技术方案
- ... (每条问题+方案一行)

权限要求

  • 需要 FileWrite 权限
  • 需要 sessions_spawn 能力(fork 子 Agent)

参考 CC 原始设计

本 Skill 提取自 CC 源码的 extractMemories 模块,遵循其设计思想适配 OpenClaw。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated