openclaw - ✅(Solved) Fix [Showcase] Claude Memory Optimizer - 结构化记忆系统技能 [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59690Fetched 2026-04-08 02:41:41
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

PR fix notes

PR #59429: feat: add claude-memory-optimizer skill

Description (problem / solution / changelog)

🎯 概述

基于 Claude Code 泄露代码的记忆机制,为 OpenClaw 带来更结构化的记忆系统。

✨ 核心特性

  • 4 类记忆分类:user / feedback / project / reference
  • Frontmatter 支持:结构化元数据
  • 自动迁移脚本:一键重构现有记忆文件
  • 示例文件:每种类型的完整示例

📁 文件结构

.agents/skills/claude-memory-optimizer/
├── README.md
├── SKILL.md
├── scripts/refactor-memory.js
└── examples/

🚀 使用方式

clawhub install claude-memory-optimizer
node .agents/skills/claude-memory-optimizer/scripts/refactor-memory.js

📚 参考资料

  • Claude Code: src/memdir/
  • OpenClaw: docs/concepts/memory.md

🎁 额外说明

  • 本技能已同步发布到 Clawhub
  • 如需提前体验,可在 PR 审核期间使用 Clawhub 版本
  • 向后兼容:保留现有 daily logs 格式

Changed files

  • .agents/skills/claude-memory-optimizer/README.md (added, +241/-0)
  • .agents/skills/claude-memory-optimizer/SKILL.md (added, +314/-0)
  • .agents/skills/claude-memory-optimizer/examples/feedback-example.md (added, +39/-0)
  • .agents/skills/claude-memory-optimizer/examples/memory-frontmatter-example.md (added, +22/-0)
  • .agents/skills/claude-memory-optimizer/examples/project-example.md (added, +43/-0)
  • .agents/skills/claude-memory-optimizer/examples/reference-example.md (added, +37/-0)
  • .agents/skills/claude-memory-optimizer/package.json (added, +25/-0)
  • .agents/skills/claude-memory-optimizer/scripts/memory-pua-task.js (added, +389/-0)
  • .agents/skills/claude-memory-optimizer/scripts/memory-pua.js (added, +428/-0)
  • .agents/skills/claude-memory-optimizer/scripts/refactor-memory.js (added, +277/-0)
  • .agents/skills/claude-memory-optimizer/scripts/task-pua.js (added, +366/-0)
  • .agents/skills/hermes-learning-loop/README.md (added, +222/-0)
  • .agents/skills/hermes-learning-loop/SKILL.md (added, +385/-0)
  • .agents/skills/hermes-learning-loop/scripts/learning-loop.js (added, +543/-0)
  • .agents/skills/task-pua/README.md (added, +207/-0)
  • .agents/skills/task-pua/SKILL.md (added, +213/-0)
  • .agents/skills/task-pua/scripts/task-pua.js (added, +366/-0)

Code Example

clawhub install claude-memory-optimizer
node scripts/refactor-memory.js

---

memory/
├── user/         # 用户信息
├── feedback/     # 行为指导
├── project/      # 项目上下文
├── reference/    # 外部引用
└── logs/         # 日志模式
RAW_BUFFERClick to expand / collapse

🎯 概述

给 OpenClaw 社区贡献了一个记忆优化技能,基于 Claude Code 的记忆架构。

✨ 核心特性

  • 4 类记忆分类:user / feedback / project / reference
  • Frontmatter 支持:结构化元数据(name/description/type)
  • 自动迁移脚本:一键重构现有记忆文件
  • 示例文件:每种类型的完整示例

📦 安装使用

clawhub install claude-memory-optimizer
node scripts/refactor-memory.js

📁 文件结构

memory/
├── user/         # 用户信息
├── feedback/     # 行为指导
├── project/      # 项目上下文
├── reference/    # 外部引用
└── logs/         # 日志模式

🔗 相关链接

💡 技术亮点

  • 基于 Claude Code src/memdir/ 架构
  • 关键词检测记忆类型(中英文支持)
  • 自动提取元数据生成 frontmatter
  • 多平台支持(自动检测工作区)

欢迎试用反馈!🙏

#OpenClaw #AI #Memory #KnowledgeManagement

extent analysis

TL;DR

To resolve potential issues with the Claude Memory Optimizer, verify the correct installation and execution of the clawhub install claude-memory-optimizer and node scripts/refactor-memory.js commands.

Guidance

  • Ensure the clawhub and node commands are properly installed and configured on your system.
  • Check the file structure under the memory/ directory to ensure it matches the expected layout, including user/, feedback/, project/, reference/, and logs/ subdirectories.
  • Review the GitHub PR (https://github.com/openclaw/openclaw/pull/59429) for any known issues or updates related to the Claude Memory Optimizer.
  • Test the optimizer with the provided example files for each memory type to identify any specific issues.

Example

No specific code snippet is provided due to the lack of detailed issue description, but users can refer to the scripts/refactor-memory.js script for insights into the migration process.

Notes

The provided information seems to be an introduction to the Claude Memory Optimizer rather than a specific issue report. Therefore, the guidance is focused on general verification and troubleshooting steps.

Recommendation

Apply workaround: Verify the installation and execution of the optimizer, and check the file structure and example files for any issues, as the provided information does not imply a need for an upgrade to a fixed version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING