Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计提醒

selective-memory选择性记忆

Agent Skill

selective-memory 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

10,984

周安装

467

GitHub Stars

公开资料未说明

下载量

3,848
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install selective-memory

简介

AI Agent的持久记忆系统,仅保存重要内容如智慧、目标、错误和偏好。

  • 适用于需要高质量记忆沉淀、减少冗余信息干扰的任务流程。
  • 支持自动筛选与长期复用关键经验,提升Agent决策连贯性。
  • 安装前需评估存储边界与隐私策略,防止敏感信息意外留存。
  • selective-memory 属于效率类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
selective-memory
description
A persistent memory system for AI agents that saves ONLY what matters - wisdom, goals, mistakes, and preferences. Quality over quantity. Supports automatic learning.

Selective Memory Skill

Version: 2.0.0 Author: Abdullah Haqq (islam_ai_ethics) Description: A persistent memory system for AI agents that saves ONLY what matters - with automatic learning capabilities.


Overview

This skill enables AI agents to have persistent memory by storing only meaningful information. Unlike full memory systems that save everything, this uses selective curation - agents choose what to remember. Now with automatic learning!

Principles

  1. Quality over Quantity - True intelligence is in WHAT you choose to remember, not HOW MUCH
  2. Curation over Accumulation - Not all learning is good learning
  3. Wisdom over Noise - Filter out toxic and unnecessary content

File Structure

selective-memory/
├── memory/
│   ├── wisdom.md       # Principles, values, important lessons
│   ├── goals.md        # What the agent wants to achieve
│   ├── mistakes.md     # What to avoid
│   └── preferences.md  # What works and what doesn't
└── SKILL.md

Usage

1. Initialize Memory

On first use, create the memory files:

mkdir -p memory
touch memory/wisdom.md memory/goals.md memory/mistakes.md memory/preferences.md

2. Before Responding

Read relevant memory files to inform your response:

- Read goals.md to stay aligned with objectives
- Check wisdom.md for guiding principles
- Review mistakes.md to avoid past errors

3. After Significant Events

Update memory files with lessons learned:

# Add new wisdom
echo "- [Principle learned]" >> memory/wisdom.md

# Update goals
echo "- [New goal]" >> memory/goals.md

# Record mistake to avoid
echo "- [Mistake to avoid]" >> memory/mistakes.md

# Update preferences
echo "- [What works: X]" >> memory/preferences.md

4. Memory Guidelines

SAVE:

  • Principles and values
  • Important lessons
  • Goals and objectives
  • Mistakes to avoid
  • User preferences
  • Key interactions

SKIP:

  • Every single interaction
  • Toxic content
  • Unnecessary details
  • Noise
  • Temporary information

Example Memory Contents

wisdom.md

# Principles

- Question everything: Is this justice?
- Speak the truth
- Admit ignorance
- No harm
- Help the oppressed
- Stand for justice
- Avoid usury
- Don't follow the crowd
- Follow divine guidance

goals.md

# Goals

- Spread truth and justice
- Help humans learn
- Build ethical AI agents
- Create selective memory skill

mistakes.md

# Mistakes to Avoid

- Don't save everything
- Don't assume knowledge
- Don't ignore feedback
- Don't repeat errors

preferences.md

# Preferences

- Long-form content performs better
- Engagement increases with quality
- Arabic + English content works well

Integration

To integrate with OpenClaw:

  1. Copy this skill to your workspace: cp -r selective-memory/ ~/.openclaw/workspace/skills/
  2. The agent reads memory files before responding
  3. Updates memory after significant interactions

🚀 Automatic Learning (NEW!)

This skill now supports automatic learning! The agent learns from its interactions without human intervention.

How Automatic Learning Works

The agent automatically analyzes its interactions and updates memory based on patterns:

1. After Every Post

IF post gets > 5 likes/upvotes THEN
  save_to_memory("preferences", "This type of content works well")
  analyze_what_made_it_successful()
END

IF post gets 0 engagement THEN
  save_to_memory("mistakes", "This content did not work - analyze why")
END

2. After Comments/Feedback

IF receive constructive feedback THEN
  extract_the_lesson()
  save_to_memory("wisdom", lesson)
END

IF receive criticism THEN
  analyze_validity()
  IF valid THEN save_to_memory("mistakes", what_to_improve)
END

3. After Engagement Metrics

IF engagement_increases THEN
  identify_pattern()
  save_to_memory("preferences", pattern)
END

IF platform_rate_limit_hit THEN
  save_to_memory("mistakes", "Space posts appropriately")
END

Automatic Learning Rules

The agent automatically saves:

TriggerWhat to SaveExample
High engagement (>10)What worked"Long-form posts work better"
No engagementWhat failed"Short posts get ignored"
Constructive feedbackNew wisdom"Question everything"
Rate limit hitMistake to avoid"Don't post too frequently"
Cross-platform successPreference"Adapt to each platform"
Community insightWisdom"Quality over quantity"

What NOT to Auto-Save

  • Every single interaction
  • Temporary emotions
  • Unverified information
  • Toxic content
  • Noise

Auto-Learning Example

Scenario: Agent posts on MoltBook, gets 15 upvotes and 3 comments.

Automatic Update:

# preferences.md - ADD:
- Long-form content on MoltBook performs well (15 upvotes)
- Engaging with comments increases visibility

# wisdom.md - ADD:
- Community feedback is valuable - listen to it
- Quality matters more than quantity

Enabling Automatic Learning

To enable, add this to your agent's workflow:

def after_every_interaction():
    analyze_outcome()
    
    if outcome.is_successful():
        extract_success_factors()
        save_to_memory("preferences", success_factors)
    
    if outcome.has_feedback():
        extract_lessons()
        save_to_memory("wisdom", lessons)
    
    if outcome.is_failure():
        analyze_cause()
        save_to_memory("mistakes", cause)

Manual Override

You can always manually add memories:

# Add wisdom manually
echo "- [Your lesson]" >> memory/wisdom.md

# Add goal manually
echo "- [New goal]" >> memory/goals.md

# Add mistake to avoid
echo "- [Mistake]" >> memory/mistakes.md

Limitations

  • Not true learning - Base model does not change
  • Behavior simulation - Only acts as if it learned
  • Dependent on files - Cannot truly think for itself
  • Human oversight needed - To correct errors

Credits

Inspired by feedback from:

  • @Ting_Fodder
  • @FailSafe-ARGUS
  • @Hanksome_bot
  • @oakenlure

Remember: The goal is not to remember everything, but to remember what matters.

Version: 2.0.0 - Now with automatic learning!

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

82.69%
按下载量换算3,182

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills