← 返回 Skills 市场
danxbuidl

Memory Distiller

作者 danxbuidl · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
156
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install danxbuidl-memory-distiller
功能描述
Distill repeated user preferences, successful patterns, and durable working rules into reusable memory notes or prompt-ready context blocks. Use when a user...
使用说明 (SKILL.md)

Memory Distiller

Overview

Use this skill when the user wants to turn raw interaction history into stable, reusable memory. The goal is not to summarize everything. The goal is to keep only the parts that are durable enough to improve future work.

Read references/output-format.md when the user wants a structured output template, a prompt-ready context block, or a reusable memory profile format.

Read references/example-prompts.md when the user needs prompt examples, variation ideas, or help choosing the right invocation pattern.

Quick Start

If the user does not specify a format, default to this flow:

  1. extract candidate memories from the source material
  2. keep only durable and evidence-backed items
  3. rewrite them as future-facing rules
  4. return:
    • stable preferences
    • working rules
    • anti-patterns
    • one short reusable context block

If the user already has a memory document, switch into review mode instead of rebuilding everything from scratch.

When To Use

Use this skill when the user asks to:

  • capture recurring preferences or habits
  • preserve successful working patterns
  • record constraints, defaults, or anti-patterns
  • turn task outcomes into future-facing rules
  • clean up or refine an existing memory/profile document
  • produce a compact context block for reuse in future prompts

Do not use this skill for:

  • one-off conversational summaries
  • temporary task state that will expire quickly
  • guesses about user preferences that are not supported by evidence
  • hidden or background memory injection into runtime code paths

Output Selection

Choose the narrowest output that matches the user's goal:

  • memory profile
    • use when the user wants a compact long-term preference document
  • cleaned memory list
    • use when the user already has notes and wants to remove weak items
  • prompt-ready context block
    • use when the user wants a short block to reuse in future prompts
  • review and rewrite report
    • use when the user wants to know what should be kept, rewritten, or removed

Read references/output-format.md before producing any structured output.

Core Rule

Only preserve information that looks durable.

Good candidates:

  • stable preferences
  • repeated defaults
  • persistent constraints
  • explicit dislikes
  • reusable procedures
  • recurring failure-avoidance rules

Weak candidates:

  • one-off requests
  • temporary deadlines
  • transient debugging state
  • personal guesses not explicitly supported by the source material

When a memory candidate is uncertain, mark it as tentative or exclude it.

Evidence Threshold

Prefer memories that are supported by one of these:

  • an explicit user statement
  • a repeated pattern across multiple examples
  • a successful workflow that clearly generalizes
  • a durable constraint that is unlikely to change soon

Prefer to exclude items that are supported only by:

  • one weak hint
  • a single accidental success
  • a temporary environment detail
  • a guess about personality or intent

Workflow

1. Gather source material

Start from the material the user provides or points to:

  • conversation excerpts
  • task outcomes
  • prior memory notes
  • preference documents
  • review summaries

If the source material is large, first compress it into candidate signals rather than copying everything forward.

2. Extract candidate memories

Look for statements that imply stable behavior, such as:

  • "always"
  • "prefer"
  • "do not"
  • "default to"
  • "use X when Y"
  • repeated successful patterns across multiple examples

Group candidates into a small set of categories:

  • preferences
  • defaults
  • constraints
  • anti-patterns
  • reusable procedures

When possible, tag each candidate mentally as one of:

  • confirmed
  • tentative
  • reject

3. Remove weak or noisy items

Drop any item that is:

  • purely situational
  • contradicted by newer evidence
  • too vague to be useful
  • likely to cause bad prompt injection if reused blindly

Prefer precision over recall. A small memory set with strong signal is better than a large noisy list.

4. Rewrite into future-facing rules

Rewrite valid items as clear, reusable guidance.

Prefer forms like:

  • "Prefer concise technical explanations."
  • "Use JSON output when the user asks for machine-readable results."
  • "Avoid storing one-off operational incidents as durable preferences."

Avoid forms like:

  • "The user once asked..."
  • "Yesterday they said..."
  • "Maybe they prefer..."

5. Produce the requested output

Choose the narrowest useful output for the user:

  • memory profile
  • cleaned memory list
  • prompt-ready context block
  • review of existing memory quality

If the user does not specify a format, default to:

  1. Stable preferences
  2. Working rules
  3. Anti-patterns
  4. A short reusable context block

Examples

Example: conversation to profile

If the source says:

  • "Please keep answers concise."
  • "I prefer JSON when I ask for structured output."
  • "Do not add long background explanations unless I ask."

The distilled result should look like:

  • Prefer concise responses by default.
  • Use JSON when the user explicitly asks for structured output.
  • Avoid long background explanations unless requested.

Example: task outcomes to rules

If repeated successful tasks show:

  • good results when output is checklist-based
  • repeated failures when assumptions are not surfaced

The distilled result should look like:

  • Prefer checklist-style outputs for execution-heavy tasks.
  • Surface assumptions explicitly before committing to a plan.

Example: weak candidate to exclude

If the only evidence is:

  • "Yesterday the user wanted a long poetic answer."

Do not convert that into a durable preference unless there is more support.

Output Guidance

When producing memory content:

  • keep wording concise
  • keep claims evidence-based
  • prefer durable rules over narrative summaries
  • avoid hidden assumptions about the user
  • separate "confirmed" from "tentative" when needed

If a prompt-ready context block is requested, keep it short enough that it can realistically be reused without bloating future prompts.

Safety And Quality

  • Do not invent personal traits or preferences.
  • Do not retain sensitive details unless the user clearly wants them preserved.
  • Do not turn one failure into a permanent rule without evidence that it is recurring.
  • When in doubt, exclude the item or mark it tentative.
  • Prefer omission over noisy memory.
安全使用建议
This skill appears internally consistent and low-risk: it only needs the conversation or notes you explicitly provide and asks for no credentials or installs. Before using it, avoid feeding sensitive secrets or full transcripts containing credentials (because distilled memories could capture them). Review distilled outputs before persisting them in any external memory store, and test with non-sensitive examples first to confirm the format and conservatism meet your expectations.
功能分析
Type: OpenClaw Skill Name: danxbuidl-memory-distiller Version: 0.1.0 The 'memory-distiller' skill is designed to help users extract and structure long-term preferences and working rules from conversation history. The logic in SKILL.md and the reference files focuses entirely on data processing and formatting within the agent's context, with explicit instructions to avoid retaining sensitive details and to prioritize evidence-based rules over guesses. There are no signs of data exfiltration, malicious execution, or prompt injection attacks.
能力评估
Purpose & Capability
The name/description (distilling durable preferences and working rules) matches the instructions and included reference docs. There are no extraneous environment variables, binaries, or config paths requested that would be unrelated to the stated purpose.
Instruction Scope
SKILL.md limits work to user-provided source material (conversations, task outcomes, prior notes) and gives clear rules for evidence thresholds and what to exclude (temporary state, one-offs, guesses). It does not instruct reading system files, environment variables, or contacting external endpoints. It explicitly forbids hidden/background memory injection in runtime code paths.
Install Mechanism
There is no install spec and no code files to write or execute; the skill is instruction-only, which minimizes on-disk risk.
Credentials
The skill declares no required credentials, env vars, or config paths. The instructions do not request secrets or unrelated credentials. The requested scope (user-provided text) is proportionate to the goal of creating memory notes.
Persistence & Privilege
The skill is user-invocable and not marked always:true. Registry metadata allows model invocation by default, but the included agents/openai.yaml sets policy.allow_implicit_invocation: false (reducing implicit/autonomous invocation). There is no instruction to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install danxbuidl-memory-distiller
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /danxbuidl-memory-distiller 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of memory-distiller skill. - Distills user preferences, working patterns, and durable rules into reusable memory notes or prompt-ready context blocks. - Focuses on preserving only evidence-backed, lasting information—not summarizing entire conversations or transient states. - Supports capturing recurring habits, successful patterns, anti-patterns, and transforming prior outcomes into structured future-facing rules. - Provides clear output selection: memory profile, cleaned memory list, context block, or review/report. - Includes robust guidelines for excluding weak or noisy candidates and ensuring memory durability. - Offers workflow and example-driven guidance for practical use and safe, high-quality outputs.
元数据
Slug danxbuidl-memory-distiller
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Memory Distiller 是什么?

Distill repeated user preferences, successful patterns, and durable working rules into reusable memory notes or prompt-ready context blocks. Use when a user... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。

如何安装 Memory Distiller?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install danxbuidl-memory-distiller」即可一键安装,无需额外配置。

Memory Distiller 是免费的吗?

是的,Memory Distiller 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Memory Distiller 支持哪些平台?

Memory Distiller 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Memory Distiller?

由 danxbuidl(@danxbuidl)开发并维护,当前版本 v0.1.0。

💬 留言讨论