记忆

Knowledge Distillation

试用

把 OpenClaw 的 memory、会话日志和报告文件蒸馏成带日期的 Markdown,分清哪些是可沉淀的知识、哪些是值得继续深挖的线索。

它能做什么

扫描 OpenClaw 的工作材料——MEMORY.md、memory/*.md、会话记录、日报、任务总结和生成的报告文件——产出一份带日期的 Markdown,分成两个核心部分:「新知识点」(可长期复用的稳定洞察)和「值得深化的知识线索」(有潜力但尚不完整的方向)。流程上按证据权重对来源分级、提取重复信号、把近似条目合并成更高层的原则或工作流教训,并为每条结论标注依据(来源类型、是否重复出现、置信度)。输出文件名遵循 knowledge-distillation-YYYY-MM-DD.md 格式,同一天多次运行时追加 -01、-02 后缀。

什么时候用它

  • 把近期 memory 和 session 文件蒸馏成一份带日期的 Markdown
  • 从日报和会话记录里提炼可复用的洞察和规则
  • 在工作材料中区分稳定知识和新兴线索
  • 产出当天的知识蒸馏 md 文件供复盘

技能文档

Knowledge Distillation

Overview

This skill is an OpenClaw internal knowledge distiller.

Its job is not to summarize everything. Its job is to scan agent-native working materials, identify what is newly learned, and separate that from what should be investigated, connected, or strengthened next.

Input Scope

Use this skill when the source materials come from the OpenClaw environment, especially:

  • MEMORY.md
  • memory/*.md
  • session transcripts or conversation logs
  • newly generated report files
  • daily review notes
  • task summaries and execution reports

Treat these as raw internal learning material.

Core Objective

From the input set, produce two things:

  1. New Knowledge Points

    • information that now appears stable enough to retain
    • repeatable patterns, conclusions, heuristics, rules, or insights
    • decisions or lessons that deserve long-term reuse
  2. Knowledge Leads Worth Deepening

    • incomplete but promising patterns
    • recurring signals without enough confidence yet
    • tensions, contradictions, anomalies, or open questions
    • topics worth another round of observation, validation, or focused research

Workflow

1. Classify the source material

Identify what each input contributes:

  • long-term memory
  • recent memory
  • session/process evidence
  • generated report or analysis artifact

Do not treat all sources equally. Give more weight to repeated evidence across multiple sources.

2. Extract candidate signals

Look for:

  • repeated observations
  • recurring user preferences
  • stable work rules
  • decision patterns
  • successful or failed workflows
  • bottlenecks that appear more than once
  • newly surfaced concepts or frameworks

Prefer signal over chronology.

3. Distinguish stable knowledge from emerging leads

Promote something to New Knowledge Points only when at least one of these is true:

  • it appears repeatedly across days or sessions
  • it has already affected real decisions or behavior
  • it has clear reuse value
  • it is specific enough to guide future action

Keep something in Knowledge Leads Worth Deepening when:

  • evidence is partial
  • it shows potential but not enough stability
  • it conflicts with older observations
  • it needs targeted follow-up material

4. Merge duplicates and raise abstraction

Do not list near-duplicate observations separately.

Merge them upward into:

  • a principle
  • a rule of thumb
  • a workflow lesson
  • a reusable framework
  • a watchpoint for future review

5. Add explicit basis

Each knowledge point should include a short basis such as:

  • what kind of source supported it
  • whether it appeared once or repeatedly
  • whether it is high-confidence or tentative

Do not fabricate precision. Keep basis brief and honest.

6. End with next-step deepening suggestions

For each deepen-able knowledge point, explain how to deepen it, for example:

  • keep observing for 3-7 more days
  • compare against older sessions
  • collect one more concrete case
  • convert into an explicit workflow rule
  • ask a targeted question next time
  • create a dedicated report around the topic

Output Requirements

The output must be a dated Markdown file.

Filename format:

  • knowledge-distillation-YYYY-MM-DD.md

If multiple runs happen on the same day, use one of:

  • knowledge-distillation-YYYY-MM-DD-01.md
  • knowledge-distillation-YYYY-MM-DD-02.md

Required Output Structure

Use this structure unless the user explicitly asks for another one:

# Knowledge Distillation - YYYY-MM-DD

## Input Summary
- Memory files:
- Session/log sources:
- Report files:

## New Knowledge Points
### 1. Title
- Conclusion:
- Basis:
- Value:
- Scope:

### 2. Title
- Conclusion:
- Basis:
- Value:
- Scope:

## Knowledge Leads Worth Deepening
### 1. Title
- Current observation:
- Why worth deepening:
- Current gaps:
- Next step suggestions:

### 2. Title
- Current observation:
- Why worth deepening:
- Current gaps:
- Next step suggestions:

## Distillation Conclusions This Round
- Most worth retaining (1-3 points):
- Most worth tracking (1-3 leads):

For reusable variants, read references/output-templates.md.

Script Usage

# Explicit input/output directories
bash scripts/distill.sh ./memory ./dist

# Or use environment variables
KNOWLEDGE_DISTILLATION_MEMORY_DIR=./memory KNOWLEDGE_DISTILLATION_OUTPUT_DIR=./dist bash scripts/distill.sh

# Release/package verification
bash scripts/test.sh

scripts/distill.sh creates a dated Markdown draft with the required structure. It does not automatically claim new knowledge; the agent must fill the draft from reviewed source material and label evidence strength honestly.

Quality Rules

  • Do not write a generic summary of the inputs.
  • Do not merely restate chronology.
  • Do not promote weak hints into firm knowledge.
  • Do not bury the “new knowledge” section under background detail.
  • Prefer fewer stronger points over many shallow points.
  • If nothing truly qualifies as new knowledge, say so honestly.

Good Trigger Examples

Use this skill for requests like:

  • “把最近的 memory 和 session 蒸馏一下”
  • “从最近日报和会话里提炼新的知识点”
  • “看这些报告文件,找出值得沉淀和继续深化的点”
  • “把 OpenClaw 这几天的运行材料蒸馏成知识”
  • “输出一个今天的知识蒸馏 md 文件”

Resources

references/

  • references/output-templates.md: dated Markdown output variants for standard runs, report-heavy runs, and follow-up runs

相关技能

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

harrylabsj 的更多技能

浏览全部技能

淘宝与京东、拼多多、唯品会同款比价,输出可执行的购买建议。

作者 harrylabsj52 次安装2 星标

根据美团可见的配送费、包装费、满减门槛、ETA、评价等公开信息,给出一个明确的下单、换店、凑单、再等等或不点的判断。

作者 harrylabsj44 次安装1 星标

在下单前拆解拼多多低价:百亿补贴、拼团门槛、店铺风险、退货条款一次过。

作者 harrylabsj34 次安装1 星标

定位技能瓶颈,把练习日志转化为可执行的下一次训练方案。

作者 harrylabsj35 次安装

用通俗中文解读常规体检和化验报告,标注异常、分清轻重、给出下一步动作。

作者 harrylabsj27 次安装

为盒马鲜生购物规划清单、评估鲜度、推荐配送时段,并整理手动下单步骤。

作者 harrylabsj23 次安装