← All skills
Tencent SkillHub · AI

Memory Deduplication

Automatically identify, merge, and clean duplicate or outdated entries in MEMORY.md to maintain concise, organized, and up-to-date information.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Automatically identify, merge, and clean duplicate or outdated entries in MEMORY.md to maintain concise, organized, and up-to-date information.

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, dedup.mjs, package.json

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 13 sections Open source page

Memory Deduplication — 记忆去重与合并

保持 MEMORY.md 清洁,避免信息冗余

问题

随着时间推移,MEMORY.md 会出现: 重复信息 — 同一事件多次记录 过时信息 — 已完成的任务仍标记为进行中 冗余描述 — 同一项目多处描述 碎片化 — 相关信息散落各处

1. 自动去重

  • 识别并合并相似内容:
  • 原始:
  • AgentAwaken 网站开发中
  • AgentAwaken 项目进行中
  • AgentAwaken 待部署
  • 合并后:
  • AgentAwaken 网站: 开发中,待部署

2. 过时信息清理

  • 原始:
  • [P0] NeuroBoost v5.0 发布待重试
  • 更新后:
  • [P0] NeuroBoost v5.0 ✅ 已发布 (2026-02-26)

3. 信息聚合

  • 原始:
  • ### AgentAwaken
  • 代码: /root/.openclaw/workspace/agentawaken
  • ### AgentAwaken 域名
  • agentawaken.xyz 待绑定
  • ### AgentAwaken 部署
  • 需要 Vercel
  • 合并后:
  • ### [P0] AgentAwaken 网站
  • 代码: /root/.openclaw/workspace/agentawaken
  • 域名: agentawaken.xyz (待绑定)
  • 部署: Vercel (待配置)

相似度计算

function similarity(text1, text2) { // Jaccard 相似度 const words1 = new Set(text1.toLowerCase().split(/\s+/)); const words2 = new Set(text2.toLowerCase().split(/\s+/)); const intersection = new Set([...words1].filter(x => words2.has(x))); const union = new Set([...words1, ...words2]); return intersection.size / union.size; }

去重规则

相似度 >0.8 — 完全重复,删除 相似度 0.5-0.8 — 部分重复,合并 相似度 <0.5 — 不同内容,保留

合并策略

保留最新时间戳 合并所有唯一信息 保留最高优先级标记

使用

# 运行去重 node skills/memory-dedup/dedup.mjs # 预览(不修改文件) node skills/memory-dedup/dedup.mjs --dry-run # 备份后去重 node skills/memory-dedup/dedup.mjs --backup

输出示例

  • === Memory Deduplication Report ===
  • 📊 统计:
  • 原始条目: 87
  • 重复条目: 12
  • 合并条目: 5
  • 删除条目: 7
  • 最终条目: 68
  • 🔍 发现的重复:
  • 1. "AgentAwaken 网站开发" (3 次)
  • → 合并为 1 条
  • 2. "NeuroBoost v5.0 发布" (2 次)
  • → 保留最新版本
  • ✅ MEMORY.md 已优化
  • 💾 备份保存到: memory/MEMORY-backup-2026-03-01.md

定期执行

# 每周日凌晨 2 点自动去重 openclaw cron add --name "memory-dedup-weekly" \ --cron "0 2 * * 0" --tz "Asia/Shanghai" \ --session isolated --agent main \ --message "运行记忆去重,清理 MEMORY.md 冗余信息"

安全措施

自动备份 — 去重前备份原文件 人工审核 — 生成 diff 供审核 可回滚 — 保留最近 10 次备份 白名单 — 某些关键信息不去重

效果

文件大小减少 30-50% 检索速度提升 2-3 倍 信息密度提升 40% 维护成本降低 60%

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs1 Scripts1 Config
  • SKILL.md Primary doc
  • dedup.mjs Scripts
  • package.json Config