skills$openclaw/memory-hygiene
dylanbaker2421

by dylanbaker24

memory-hygiene – OpenClaw Skill

memory-hygiene is an OpenClaw Skills integration for productivity workflows. 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.

21 stars3.1k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026productivity

Skill Snapshot

namememory-hygiene
descriptionAudit, 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. OpenClaw Skills integration.
ownerdylanbaker24
repositorydylanbaker24/memory-hygiene
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @dylanbaker24/memory-hygiene
last updatedFeb 7, 2026

Maintainer

dylanbaker24

dylanbaker24

Maintains memory-hygiene in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
286 B
SKILL.md
1.9 KB
SKILL.md

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.

Quick Commands

Audit: Check what's in memory

memory_recall query="*" limit=50

Wipe: Clear all vector memory

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:

{
  "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
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

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.

FAQ

How do I install memory-hygiene?

Run openclaw add @dylanbaker24/memory-hygiene in your terminal. This installs memory-hygiene into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/dylanbaker24/memory-hygiene. Review commits and README documentation before installing.