pi-agent-plugin/skills/status/SKILL.md
Run a diagnostic check on the Mem0 plugin. Useful for troubleshooting.
Run ALL checks, then display a single summary. Do not stop on the first failure.
Verify the API key is configured. The plugin loads it from MEM0_API_KEY env var or ~/.pi/agent/mem0-config.json.
...Report the resolved identity:
user_id: from config, env, or system userproject_id: auto-detected from current directorysession_id: current session identifierPASS if user_id and project_id are non-empty. WARN if any falls back to defaults.
Use mem0_memory tool with action="search", query="health check".
Use mem0_memory tool with action="add", content="Health check probe — safe to delete.".
## mem0 health
PASS API Key m0-dVe...
PASS Identity user=kartik, project=my-app, session=abc123
PASS Connectivity 142ms
PASS Write/Read write + delete OK
All checks passed.
If any check fails, add a ## Troubleshooting section with specific fix steps.
When invoked with --deep (e.g., /mem0-status --deep), run the standard checks above plus a memory quality scan.
Fetch all memories with mem0_memory action="get_all". Compare pairs within the same category for high textual overlap (shared nouns > 60%). Report:
Potential duplicates: <N> pairs
[mem0:<id1>] ~ [mem0:<id2>] — both about "<shared topic>"
Flag memories older than 180 days that haven't been accessed recently.
Within each category, flag pairs that assert opposing facts.
## Memory Quality
Duplicates: <N> · Stale: <N> · Contradictions: <N>
If all counts are 0: Memory quality: clean.
If any non-zero: append Run /mem0-dream to fix.