memory-hygiene SKILL.md skillB
memory-hygiene from pr-e/openclaw-master-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add pr-e/openclaw-master-skills/memory-hygiene@git:20260311.3e83ceePins git:20260311.3e83cee in mdr.lock. Pin the fingerprint instead.
- Audit grade
- B, 16 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- pr-e/openclaw-master-skills
- Path
skills/memory-hygiene/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260311.3e83cee, committed Mar 11, 2026
- Size
- 1,970 bytes
- Repository stars
- 4
- License
- MIT
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.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 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
```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
…Read the whole file at its exact version.
How to install
mdr add pr-e/openclaw-master-skills/memory-hygiene@sha256:58d9e56da3f96b41The line at the top of this page pins the label git:20260311.3e83cee, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_lemky43xgszyipk6)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Mar 11, 2026.
Audit of the latest version
- fail: No recursive delete of root, home or parent (matched: rm -rf ~/)
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (1970 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.
Source
pr-e/openclaw-master-skills · 4 stars · license MIT · pushed 2026-10-13 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_lemky43xgszyipk6 GET https://markdownregistry.com/api/v1/resolve?ref=pr-e/openclaw-master-skills/memory-hygiene GET https://markdownregistry.com/api/v1/blob/58d9e56da3f96b4191179d092385ccf06335cec615f44d32d9a593f88b126f44
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from pr-e/openclaw-master-skills
Every file in pr-e/openclaw-master-skills