dylanbaker24

Memory Hygiene

AI 智慧體v1.0.0
作者:dylanbaker24更新於 2026-05-17memory-hygiene@clawhub_dylanbaker24/memory-hygiene
上下文管理記憶增強

據 AlphaMoat 統計,截至 2026-10,Memory Hygiene 累計下載 46,428 次、獲 28 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 540 位,在「AI 智慧體」分類(1,632 個)中排名第 106 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
4.6萬
星標
28
全站下載量排名
#540
全站前 5% · 「AI 智慧體」前 7%
平台累計下載星標評論
ClawHub ↗2.7萬20-
SkillHub ↗4.6萬28—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

針對 LanceDB 裡的向量記憶做審計、清理與最佳化,解決記憶裡堆滿垃圾、自動召回把無關內容帶進上下文、token 消耗偏高的問題。它指出垃圾的主要來源是 autoCapture: true,並區分該留的偏好、關鍵決策與重要事實。

資料釋出於 2026-10-27

可以用來做什麼

  • 刪掉記憶裡重複和無關的條目
  • 把自動捕獲調成有選擇的寫入

什麼時候用

  • 回答質量被無關召回拖累時
  • 上下文開銷明顯上升時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

審計我的記憶庫,列出可以刪的條目
自動捕獲太吵了,幫我收緊寫入規則

月度資料趨勢

累計下載4.6萬
2.3萬3.6萬4.8萬2026-05 · 累計下載 2.5萬2026-07 · 累計下載 2.7萬2026-08 · 累計下載 2.7萬2026-09 · 累計下載 2.9萬2026-10 · 累計下載 4.6萬26-0526-0926-10
星標28
2326282026-05 · 星標 232026-07 · 星標 272026-08 · 星標 282026-09 · 星標 282026-10 · 星標 2826-0526-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-104.6萬—28
2026-092.9萬—28
2026-082.7萬+1.1%28
2026-072.7萬—27
2026-052.5萬—23

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

1.9 KB · ClawHub v1.0.0
---
name: memory-hygiene
description: Audit, clean, and optimize Clawdbot's vector memory (LanceDB). Use when memory is bloated with junk, token usage is high from irrelevant auto-recalls, or setting up memory maintenance automation.
homepage: https://github.com/xdylanbaker/memory-hygiene
---

# Memory Hygiene

Keep vector memory lean. Prevent token waste from junk memories.
展開全部(共 83 行)
## Quick Commands

**Audit:** Check what's in memory
```
memory_recall query="*" limit=50
```

**Wipe:** Clear all vector memory
```bash
rm -rf ~/.clawdbot/memory/lancedb/
```
Then restart gateway: `clawdbot gateway restart`

**Reseed:** After wipe, store key facts from MEMORY.md
```
memory_store text="<fact>" category="preference|fact|decision" importance=0.9
```

## Config: Disable Auto-Capture

The main source of junk is `autoCapture: true`. Disable it:

```json
{
  "plugins": {
    "entries": {
      "memory-lancedb": {
        "config": {
          "autoCapture": false,
          "autoRecall": true
        }
      }
    }
  }
}
```

Use `gateway action=config.patch` to apply.

## What to Store (Intentionally)

✅ Store:
- User preferences (tools, workflows, communication style)
- Key decisions (project choices, architecture)
- Important facts (accounts, credentials locations, contacts)
- Lessons learned

❌ Never store:
- Heartbeat status ("HEARTBEAT_OK", "No new messages")
- Transient info (current time, temp states)
- Raw message logs (already in files)
- OAuth URLs or tokens

## Monthly Maintenance Cron

Set up a monthly wipe + reseed:

```
cron action=add job={
  "name": "memory-maintenance",
  "schedule": "0 4 1 * *",
  "text": "Monthly memory maintenance: 1) Wipe ~/.clawdbot/memory/lancedb/ 2) Parse MEMORY.md 3) Store key facts to fresh LanceDB 4) Report completion"
}
```

## Storage Guidelines

When using memory_store:
- Keep text concise (<100 words)
- Use appropriate category
- Set importance 0.7-1.0 for valuable info
- One concept per memory entry

「AI 智慧體」分類下的熱門技能

dylanbaker24 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。