Agent skill · mem0ai

mem0-remember

Stores a memory verbatim from user input with appropriate type classification and metadata. Use when the user says remember this, save this, store this, note that, or explicitly asks to record a decision, preference, convention, or learning.

What it needs

About 1k tokens when loaded.

What this skill does

Mem0 Remember Store a fact or learning directly into mem0. Execution Step 1: Extract the content The user provides the content as an argument: /mem0-remember <text> If no text was provided, ask: "What should I remember?" Step 2: Classify the memory Based on the content, pick the best metadata.type: Content signal Type --- --- "we decided...", "always use...", "never..." decision "X doesn't work because...", "don't try..." antipattern "I prefer...", "use X instead of Y" userpreference "the convention is...", "we always..." convention "learned that...", "figured out..." tasklearning setup, env, tooling, config environmental anything else tasklearning Step 3: Store Call addmemory with: text="<the user's text>" userid=<activeuserid> appid=<activeprojectid> metadata={"type": "<classifiedtype>", "branch": "<activebranch>", "confidence": 1.0, "source": "remembercommand"} infer=False infer=False because the user stated the fact explicitly — no extraction needed. confidence=1.0 because the user explicitly asked to store this. Step 4: Confirm The addmemory response returns eventid (not memoryid) because writes are async. Call geteventstatus(eventid=<eventid>) once. If status is SUCCEEDED: print the memory ID from the result. If status is PENDING or processing: print with the event ID as fallback. Append ... only if content was truncated (longer than 80 chars). Output formatting IMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like bold, ## headers, and table syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.

How to use it

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

@skills mem0ai/mem0-remember--0d9603

View the source on GitHub

Browse the @skills marketplace