Agent skill

Mem0 Remember Command

by mem0ai in mem0ai/mem0

Saves a fact, decision or preference the user states into mem0 as written, labeled with a memory type such as decision, convention or user_preference.

Apache-2.0Auto-check passedAgent Workflows

Install Mem0 Remember Command

skills CLI
$ npx skills add mem0ai/mem0 --skill mem0-remember -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mem0ai/mem0 mem0-remember --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mem0ai/mem0.git skills-src && mkdir -p .claude/skills && cp -r skills-src/integrations/opencode-plugin/opencode-skills/mem0-remember .claude/skills/mem0-remember && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mem0-remember
GitHub stars
67k
Token cost
~560 tokens
SKILL.md length
229 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
Apache-2.0

At a glance

Saves a fact, decision or preference the user states into mem0 as written, labeled with a memory type such as decision, convention or user_preference.

  • Works in 4 steps: Extract the content → Classify the memory → Store → …
  • Saying remember this about a project convention
  • SKILL.md covers Execution and Output formatting
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Invoked as /mem0-remember followed by some text, this skill stores that text directly in mem0, and asks what to remember if none was given. It sorts the content into a type from wording cues: decision, anti_pattern, user_preference, convention, task_learning or environmental, with task_learning as the fallback for anything else.

It then calls add_memory with the user and project ids, the branch and a metadata block that marks the source as the remember command, with inference switched off because you stated the fact yourself. Writes are asynchronous, so it checks get_event_status once and prints the memory ID, or the event ID if processing is still pending. Output is kept to plain text without markdown, since the OpenCode terminal interface shows it verbatim.

When your agent uses it

  • Saying remember this about a project convention
  • Recording a decision so later sessions know about it
  • Saving a preference such as a favored library or tool
  • Noting an approach that failed so it is not tried again

Example prompts

  • “/mem0-remember We always use pnpm in this repo, never npm.”
  • “Remember that the staging database resets every night.”
  • “Save this: don't try the cached build, it breaks the migration step.”

Requirements

  • The mem0 plugin for OpenCode, with its add_memory and get_event_status tools

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Extract the content
  2. Classify the memory
  3. Store
  4. Confirm

What it can do on your machine

Read from SKILL.md and the folder at commit b7ad69a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mem0 Remember Command loads about 560 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 229 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~560

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mem0ai/mem0 at commit b7ad69a, republished under its Apache-2.0 licence (© mem0ai). 229 words, ~560 tokens.

Download SKILL.mdSave it as .claude/skills/mem0-remember/SKILL.md (or your agent's skills folder).
name
mem0-remember
description
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.

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 signalType
"we decided...", "always use...", "never..."decision
"X doesn't work because...", "don't try..."anti_pattern
"I prefer...", "use X instead of Y"user_preference
"the convention is...", "we always..."convention
"learned that...", "figured out..."task_learning
setup, env, tooling, configenvironmental
anything elsetask_learning
Step 3: Store

Call add_memory with:

  • text="<the user's text>"
  • user_id=<active_user_id>
  • app_id=<active_project_id>
  • metadata={"type": "<classified_type>", "branch": "<active_branch>", "confidence": 1.0, "source": "remember_command"}
  • 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 add_memory response returns event_id (not memory_id) because writes are async. Call get_event_status(event_id=<event_id>) 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.
Remembered as <type>: "<content, first 80 chars>"
Memory ID: <id from event status>

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.

© mem0ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in integrations/opencode-plugin/opencode-skills/mem0-remember of mem0ai/mem0.

Open the folder on GitHubat commit b7ad69a

Compare with similar skills

Mem0 Remember Command next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mem0 Remember Command compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mem0 Remember Command this skillmem0ai/mem067k—~560Automated safety check: PassApache-2.0
Agenticx Memory ArchitectDemonDamon/AgenticX315—~1.1kAutomated safety check: PassApache-2.0
Hyperspacedb MemoryYARlabs/hyperspace-db162—~880Automated safety check: PassMIT
Self Improving Systemsooiyeefei/ccc494—~5.2kAutomated safety check: PassMIT
Mem0Anil-matcha/awesome-muse-connectors1.3k—~867Automated safety check: PassMIT
Mem0 Bridgemomori777/Artemis378—~453Automated safety check: PassCustom licence

Similar skills

  • Agenticx Memory Architect

    DemonDamon/AgenticX

    Guide for setting up and using the AgenticX memory system including Mem0 integration, long-term memory, context management, and memory-enhanced agents.

    315 GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Hyperspacedb Memory

    YARlabs/hyperspace-db

    Zero-overhead cognitive long-term and episodic memory for AI agents (Mem0 drop-in and mcp-hyperspace-memory).

    162 GitHub stars~880 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Decide whether your agent actually needs persistent memory, feedback loops, or closed-loop learning, then design the smallest thing that pays for itself.

    494 GitHub stars~5.2k tokensUpdated 2 mo ago
    Agent WorkflowsAuto-check passed
  • Mem0

    Anil-matcha/awesome-muse-connectors

    Mem0 memory CLI: add memories from messages, semantic search, read or delete memories, poll async events.

    1.3k GitHub stars~867 tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Mem0 Bridge

    momori777/Artemis

    Mem0 memory bridge for AI Girlfriend — search/read/write long-term memories from Qdrant vector DB.

    378 GitHub stars~453 tokensUpdated 8 days ago
    Media & CreativeAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check passed

More from mem0ai/mem0

All 26 skills in this repo
  • Adds persistent memory to AI apps with the Mem0 Python and TypeScript SDKs: store, search, update and delete user memories, with framework integrations.

    67k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.

    67k GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.

    67k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Finds and deletes specific mem0 memories by search query or ID, always asking for confirmation first, and can undo the most recent memories added this session.

    67k GitHub stars~664 tokensUpdated today
    Auto-check passed
  • Shows or changes the default Mem0 memory scope, project, session or global, which decides where memories are saved and searched.

    67k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Looks up stored agent memories by keyword or ID and prints compact one-line results instead of full detail.

    67k GitHub stars~502 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Mem0 Remember Command

What does Mem0 Remember Command do?

Saves a fact, decision or preference the user states into mem0 as written, labeled with a memory type such as decision, convention or user_preference. Invoked as /mem0-remember followed by some text, this skill stores that text directly in mem0, and asks what to remember if none was given. It sorts the content into a type from wording cues: decision, anti_pattern, user_preference, convention, task_learning or environmental, with task_learning as the fallback for anything else.

When should I use Mem0 Remember Command?

Mem0 Remember Command fits situations like: saying remember this about a project convention; recording a decision so later sessions know about it; saving a preference such as a favored library or tool; noting an approach that failed so it is not tried again.

How do I install Mem0 Remember Command in Claude Code?

Run `npx skills add mem0ai/mem0 --skill mem0-remember -a claude-code`. Or copy the skill folder (integrations/opencode-plugin/opencode-skills/mem0-remember in mem0ai/mem0) into .claude/skills/mem0-remember in your project. Claude Code loads it when a task matches its description.

How do I install Mem0 Remember Command in Codex?

Run `npx skills add mem0ai/mem0 --skill mem0-remember -a codex`. Or copy the skill folder (integrations/opencode-plugin/opencode-skills/mem0-remember in mem0ai/mem0) into .agents/skills/mem0-remember in your project. Codex loads it when a task matches its description.

Can I use Mem0 Remember Command in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mem0ai/mem0 --skill mem0-remember -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mem0-remember, .gemini/skills/mem0-remember, .github/skills/mem0-remember and .opencode/skills/mem0-remember in your project.

What does Mem0 Remember Command need to run?

SKILL.md names no scripts, command-line tools or credentials: Mem0 Remember Command is instructions for the agent only. Our summary lists: The mem0 plugin for OpenCode, with its add_memory and get_event_status tools.

Does Mem0 Remember Command access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mem0 Remember Command safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mem0 Remember Command use?

Mem0 Remember Command is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mem0 Remember Command use?

About 560 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mem0 Remember Command?

Skills that share tags, products or a category with Mem0 Remember Command: Agenticx Memory Architect (DemonDamon/AgenticX, 315 stars), Hyperspacedb Memory (YARlabs/hyperspace-db, 162 stars), Self Improving Systems (ooiyeefei/ccc, 494 stars) and Mem0 (Anil-matcha/awesome-muse-connectors, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mem0 Remember Command?

mem0ai (a GitHub organization) maintains it in mem0ai/mem0, which has 66,867 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 9, 2026.

Source: mem0ai/mem0 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.