Agent skill · software engineering · mem0ai

status

Diagnoses Mem0 connectivity, API key validity, and memory read/write functionality. Use when memory operations fail, searches return empty, or to verify the plugin is working correctly.

Why this skill is useful

Adds a diagnostic script for verifying Mem0 plugin functionality and API key validity, which the AI wouldn't reliably generate on its own.

What it needs

Requires mem0_memory installed locally. About 2k tokens when loaded. Last updated 2026-08-06. 62,725 stars on the source repository.

What this skill does

Health Check / Status Run a diagnostic check on the Mem0 plugin. Useful for troubleshooting. Execution Run ALL checks, then display a single summary. Do not stop on the first failure. Check 1: API key Verify the API key is configured. The plugin loads it from MEM0APIKEY env var or ~/.pi/agent/mem0-config.json. If not set: FAIL — "No API key configured" If set: PASS — show first 6 chars followed by ... Check 2: Identity resolution Report the resolved identity: userid: from config, env, or system user projectid: auto-detected from current directory sessionid: current session identifier PASS if userid and projectid are non-empty. WARN if any falls back to defaults. Check 3: Connectivity Use mem0memory tool with action="search", query="health check". If returns successfully (even empty): PASS If errors: FAIL — show the error message Check 4: Memory write capability Use mem0memory tool with action="add", content="Health check probe — safe to delete.". If succeeds: PASS — then clean up by deleting the probe memory. If errors: FAIL — show the error. Display If any check fails, add a ## Troubleshooting section with specific fix steps. Extended mode: Memory Quality Analysis When invoked with --deep (e.g., /mem0-status --deep), run the standard checks above plus a memory quality scan. Quality Check 1: Duplicates Fetch all memories with mem0memory action="getall". Compare pairs within the same category for high textual overlap (shared nouns > 60%). Report: Quality Check 2: Stale memories Flag memories older than 180 days that haven't been accessed recently. Quality Check 3: Contradictions Within each category, flag pairs that assert opposing facts. Quality summary If all counts are 0: Memory quality: clean. If any non-zero, list the affected memory IDs so the user can review them with the normal search and forget commands.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills mem0ai/status

View the source on GitHub

Browse the @skills marketplace