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
us-stock-analysis
Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.
smart-memory-lite-automaton
Lightweight cognitive memory system for AI agents by Automaton. Auto-save conversations, quick recall, session management.
market-analysis-cn
市场分析服务 | Market Analysis Service. 企业市场趋势分析 | Enterprise market trend analysis. 竞品分析 | Competitor analysis. 用户行为洞察 | User behavior insights. 触发词:市场分析、竞品分析、market analysis、趋势.
trading-decision-pro-automaton
AI-powered trading decision assistant by Automaton. Market sentiment analysis, risk assessment, real-time trade recommendations.
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".