abhayjb/mem0/SKILL.md
Intelligent memory layer for Clawdbot using Mem0. Provides semantic search and automatic storage of user preferences, patterns, and context across conversations. Use when (1) User explicitly says "remember this", (2) Learning user preferences or patterns during conversation, (3) Searching for past context about user's choices/preferences, (4) Building adaptive responses based on learned user behavior. Complements MEMORY.md (structured facts) with dynamic, conversational memory (learned preferences, patterns, adaptive context).
npx skillsauth add openclaw/skills mem0Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Mem0 adds an intelligent, adaptive memory layer to Clawdbot that automatically learns and recalls user preferences, patterns, and context across all interactions.
Before answering user questions, search mem0 for relevant context:
node scripts/mem0-search.js "user preferences" --limit=3
Use retrieved memories to:
Explicit Storage (when user says "remember this"):
node scripts/mem0-add.js "Abhay prefers concise updates"
Conversation Storage (for context learning):
# Pass messages as JSON
node scripts/mem0-add.js --messages='[{"role":"user","content":"I like brief updates"},{"role":"assistant","content":"Got it!"}]'
node scripts/mem0-search.js "query text" [--limit=3] [--user=abhay]
Searches semantically across stored memories. Returns relevant memories ranked by relevance.
# Simple text
node scripts/mem0-add.js "memory text" [--user=abhay]
# Conversation messages (auto-extracts memories)
node scripts/mem0-add.js --messages='[{...}]' [--user=abhay]
Mem0's LLM automatically extracts, deduplicates, and merges related memories.
node scripts/mem0-list.js [--user=abhay]
Shows all stored memories for the user with IDs and creation dates.
# Delete specific memory
node scripts/mem0-delete.js <memory_id>
# Delete all memories for user
node scripts/mem0-delete.js --all --user=abhay
Clawdbot MEMORY.md (Structured, Deliberate):
Mem0 (Dynamic, Learned):
Use both together: Check MEMORY.md for facts, check mem0 for preferences/patterns.
Located in scripts/mem0-config.js:
{
embedder: "openai/text-embedding-3-small",
llm: "openai/gpt-4o-mini",
vectorStore: "memory" (local),
historyDb: "~/.mem0/history.db",
userId: "abhay"
}
Uses Clawdbot's OpenAI API key from environment (OPENAI_API_KEY).
For detailed workflow patterns, error handling, and best practices, see:
references/integration-patterns.mdAll scripts support JSON_OUTPUT environment variable for programmatic access:
JSON_OUTPUT=1 node scripts/mem0-search.js "query"
Returns JSON after human-readable output (look for ---JSON--- marker).
mem0-config.js - Configuration and instance initializationmem0-search.js - Search memories semanticallymem0-add.js - Add new memoriesmem0-list.js - List all memoriesmem0-delete.js - Delete memoriesintegration-patterns.md - Detailed best practices and patternstools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。