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

openclaw-enhanced-memoryOpenClaw enhanced 记忆

Agent Skill

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

总安装

15,031

周安装

614

GitHub Stars

公开资料未说明

下载量

4,814
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install openclaw-enhanced-memory

简介

替换默认单文件 MEMORY.md 的分层目录内存架构系统。

  • 实现按主题、日期或项目分类的记忆文件组织管理。
  • 提升大体积记忆数据的检索速度与上下文相关性。openclaw-enhanced-memory 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 迁移过程会重写原有记忆结构,操作前务必备份 MEMORY.md。
  • 兼容现有工具链,但部分旧脚本可能需要适配新路径格式。

SKILL.md

name
enhanced-memory
description
>

Enhanced Memory

A structured memory system that gives your OpenClaw agent organized, searchable, long-lived memory instead of a single monolithic MEMORY.md.

Why?

The default MEMORY.md approach hits a wall fast:

  • One file grows endlessly → slow to read, expensive on tokens
  • No categorization → food logs mixed with project notes mixed with relationship context
  • No retrieval strategy → agent re-reads everything or misses what matters
  • No lifecycle → old entries clutter active memory forever

Tagged Memory fixes all of this.

Core Features

1. Hierarchical Directory Organization

Memories are stored in purpose-built directories:

memory/
├── current/          # Active memories (last 6 months)
├── archived/         # Auto-archived older memories (permanent, never deleted)
│   └── YYYY-MM/      # Organized by month
├── RELATION/         # One file per person (relationship context)
├── food/             # Meal and food logs
├── training/         # Exercise and workout records
├── connections.md    # Global relationship graph
├── system/           # System config and logs
└── misc/             # Everything else

2. Tag-Based Indexing

Tag any line in any memory file with [category:value] markers:

## 2026-02-20

- Had lunch with Zhang Hao [人物:张浩东] [类型:聚餐] [地点:campus]
- Discussed the new project deadline [项目:openclaw] [类型:会议]
- Yoyo learned a new trick today [宠物:悠悠] [类型:milestone]

Tags support multi-tag AND search — find the exact memory you need:

# Single tag search
python3 scripts/memory_tag_search.py "人物:张浩东"

# Multi-tag AND search (all tags must match)
python3 scripts/memory_tag_search.py "人物:王隆哲" "类型:开票信息"

# List all tags in the system
python3 scripts/memory_tag_search.py --list-tags

# List tags under a specific category
python3 scripts/memory_tag_search.py --list-tags --category 人物

3. Lifecycle Management

Memories age gracefully — never lost, always accessible:

AgeLocationStatus
0–6 monthsmemory/current/Active, auto-retrieved
6–12 monthsmemory/archived/YYYY-MM/Archived, searchable on demand
12+ monthsmemory/archived/Permanent archive, manual query

Run the lifecycle manager manually or via cron:

# Default: archive memories older than 6 months
python3 scripts/memory_lifecycle_manager.py

# Custom threshold (e.g., 90 days)
python3 scripts/memory_lifecycle_manager.py 90

4. Smart Cross-Category Retrieval

The retrieval strategy script auto-classifies queries and searches the right directories:

python3 scripts/memory_retrieval_strategy.py "What did I eat yesterday?"
# → Searches memory/food/ + memory/current/

python3 scripts/memory_retrieval_strategy.py "How is Yoyo doing?"
# → Searches memory/RELATION/悠悠.md + memory/connections.md

python3 scripts/memory_retrieval_strategy.py "Yang Lingxiao"
# → Searches memory/RELATION/ + memory/connections.md

Query type detection covers: food, training, relationships, pets, system, mood, projects, and more.

Scripts

ScriptPurpose
scripts/memory_tag_search.pyTag-based indexing and search (single/multi-tag AND queries, tag listing)
scripts/memory_retrieval_strategy.pySmart retrieval — auto-classifies queries and routes to relevant memory directories
scripts/memory_lifecycle_manager.pyAutomatic archival of old memories (configurable threshold, never deletes)

Integration

AGENTS.md

Add the following to your AGENTS.md memory section:

## Memory

### Directory Structure
- `memory/current/` — active memories (6 months)
- `memory/archived/` — permanent archive
- `memory/RELATION/` — per-person relationship files
- `memory/food/` — meal logs
- `memory/training/` — workout logs

### Retrieval Strategy
- Exact queries (names, dates, codes) → `grep` the file system
- Fuzzy/semantic queries → `python3 scripts/memory_retrieval_strategy.py "<query>"`
- Tag search → `python3 scripts/memory_tag_search.py "<category>:<value>"`

### Tagging Convention
When writing memory entries, tag important lines:
  [人物:name] [类型:type] [地点:place] [项目:project] [情绪:mood]

HEARTBEAT.md

Add periodic memory maintenance to your heartbeat checklist:

## Memory Maintenance (every few days)
- [ ] Run `python3 scripts/memory_lifecycle_manager.py` to archive old memories
- [ ] Run `python3 scripts/memory_tag_search.py --list-tags` to review tag health
- [ ] Check `memory/current/` file count — if growing large, verify archival is running

Cron (optional)

Set up monthly auto-archival:

# Run on the 1st of every month at 03:00
0 3 1 * * cd /path/to/workspace && python3 scripts/memory_lifecycle_manager.py

Customization

  • Archive threshold: Edit ARCHIVE_THRESHOLD_DAYS in memory_lifecycle_manager.py (default: 180 days)
  • Query patterns: Add new regex patterns to QUERY_TYPES in memory_retrieval_strategy.py
  • Memory directories: Add new modules to MODULES_TO_ARCHIVE in memory_lifecycle_manager.py
  • Tag categories: Tags are freeform — just use [category:value] in any .md file

Requirements

  • Python 3.8+
  • No external dependencies (stdlib only)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

75.54%
按下载量换算3,636

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills