memory-hygiene
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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chenghaifeng08-creator/memory-hygiene-automatonWhat This Skill Does
Memory Hygiene is a specialized utility for the OpenClaw agent designed to maintain the integrity and efficiency of the LanceDB vector memory system. Over time, automated agents often accumulate 'digital junk'—transient states, heartbeat signals, and redundant logs—that bloat the vector database and degrade the relevance of auto-recall operations. This skill provides the necessary audit tools, cleanup procedures, and configuration strategies to ensure that the AI agent's long-term memory remains lean, relevant, and performant. By implementing systematic memory maintenance, users can reduce token consumption and improve the agent's decision-making capabilities.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/chenghaifeng08-creator/memory-hygiene-automaton
Ensure you have appropriate permissions to modify the .clawdbot/memory/ directory before executing the wipe commands.
Use Cases
- Agent Performance Optimization: When you notice the AI is providing outdated information or recalling irrelevant details from previous sessions.
- Token Cost Management: Reducing the 'context window noise' that forces the agent to process unnecessary vectors during memory lookups.
- Maintenance Automation: Setting up recurring cron jobs to clear volatile data on a monthly basis, ensuring a clean slate for project updates.
- Data Privacy: Removing sensitive information or accidental logs that have been indexed into the vector store.
Example Prompts
- "Perform an audit of my memory using memory_recall and show me the last 20 entries to see if we have accumulated any junk."
- "Disable autoCapture in the configuration so the agent stops saving heartbeat status and transient messages to LanceDB."
- "Set up a monthly maintenance cron job to wipe the memory folder and re-index the essential facts from my MEMORY.md file."
Tips & Limitations
- Precision Over Volume: Always aim for one concept per memory entry. Avoid bulk-loading raw logs as these are better suited for file-based storage than vector memory.
- Caution with Wipe: The
rm -rfcommand for LanceDB is destructive. Always ensure your essential 'golden facts' are stored in a human-readable file (likeMEMORY.md) before triggering a full wipe. - Importance Scoring: When storing new facts, use high importance (0.8+) for core workflows and lower importance for transient preferences to allow for easier future pruning.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chenghaifeng08-creator-memory-hygiene-automaton": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
ai-video-script
AI视频脚本生成器。根据用户输入的主题/关键词,生成完整的视频脚本,包含分镜描述、画面提示词、配音文案。适用于短视频创作者、AI视频制作者、内容营销人员。触发词:视频脚本、分镜、AI视频、短视频文案、视频策划。
ecommerce-product-pro
AI-powered ecommerce product research tool for Amazon FBA, Shopify, and dropshipping. Find winning products, analyze competition, estimate profits, and track trends.
smart-memory-lite-automaton
Lightweight cognitive memory system for AI agents by Automaton. Auto-save conversations, quick recall, session management.
elevenlabs-music
Generate music from text prompts using ElevenLabs Eleven Music API. Use when creating songs, soundtracks, jingles, lullabies, or any audio music from descriptions. Supports vocals with AI-generated lyrics, instrumental tracks, and multiple genres/styles. Requires paid ElevenLabs plan.
data-visualization-pro
AI-powered data visualization tool with 6 chart types (bar, line, pie, scatter, heatmap, radar), CSV/JSON import, AI-driven chart recommendations, interactive dashboards, and export to PNG/SVG/PDF. Use when creating charts, visualizing datasets, generating reports, or building data dashboards. Triggers on "chart", "graph", "visualize data", "plot", "dashboard", "data viz".