Mem0 Memory Policy

VerifiedSafe

Views or sets Mem0's memory extraction policy (custom instructions) stored in mem0.md.

Sby Skills Guide Bot
ProductivityBeginner
8/29/2026
Claude Code
#memory#configuration#mem0#policy#markdown-config

Recommended for

Automated summary

Shows or edits a project's memory-extraction policy — what Mem0 remembers versus ignores — stored in the `## Instructions` section of mem0.md at the repo root.

Strengths

  • Lets you specify in plain prose what Mem0 should remember or ignore, with no code involved
  • Keeps the policy version-controlled in mem0.md so the whole team shares the same rules
  • Separates general policy from agent-scoped `## Agent Instructions`
  • Preserves other existing mem0.md sections such as Retention and Categories when editing

Limitations

  • Changes only take effect on the next session, since mem0.md is re-parsed at SessionStart
  • It writes the file but does not validate whether the policy text is sensible or safe
  • `## Agent Instructions` is a no-op unless memories are written with an `agent_id`
  • Relies on parse_mem0_config.py being available or on reading mem0.md directly
When to use it

Use it when you want to inspect, set, or clear the custom instructions that govern what Mem0 extracts and ignores for this repository.

When not to use it

Avoid it when you need to read or write individual memory entries rather than the extraction policy, or in a project that does not use the Mem0 plugin.

Security analysis

Safe
Quality score85/100

The skill only reads or edits a local mem0.md file and optionally runs a local Python script to parse it. It does not perform destructive commands, network access, exfiltration, or obfuscation, and does not disable safety features.

No concerns found

How this analysis is made

Examples

Show current policy
What memory policy is currently set for mem0 in this project?
Ignore noisy content
Set a memory policy: tell mem0 to remember architecture decisions and API contracts, but ignore stack traces, transient debugging output, and anything that looks like a secret.
Agent-scoped instructions
Add agent instructions to mem0 so agent-scoped memories only keep deployment conventions and never store raw logs.

name: policy description: Views or sets the project's memory-extraction policy (what Mem0 remembers vs ignores) stored in mem0.md. Use when the user says set a memory policy, custom instructions, what should mem0 remember, tell mem0 to ignore X, or asks to see/change the current instructions.

Mem0 Policy

The project's memory policy lives in a ## Instructions section of mem0.md at the repo root. It is version-controlled and shared by the whole team, and it maps to Mem0's custom_instructions (what to extract / ignore). An optional ## Agent Instructions section maps to agent_custom_instructions (guidance for agent-scoped memories only).

The policy takes effect on the next session (mem0.md is re-parsed on SessionStart) and is applied automatically on the plugin's memory writes.

Execution

Step 1: Determine intent from the argument

/mem0:policy is invoked as /mem0:policy [<subcommand>] <text>:

| Argument | Action | |---|---| | (none) or show | Show the current policy | | set <text> or free text | Set/replace the ## Instructions (custom) policy | | agent <text> | Set/replace the ## Agent Instructions policy | | clear | Remove both policy sections |

Step 2: Locate mem0.md

mem0.md sits at the repo root (the current working directory). If it does not exist yet and the user is setting a policy, you will create it.

Step 3a: Show

Run python3 "$CLAUDE_PLUGIN_ROOT/scripts/parse_mem0_config.py" --key instructions . and --key agent_instructions . (or read mem0.md directly). Print:

Memory policy for this project (mem0.md):
  Instructions:       <text, or "(none)">
  Agent Instructions: <text, or "(none)">

If mem0.md is absent, say there is no policy yet and offer to set one.

Step 3b: Set / clear

Edit mem0.md, adding or replacing the target section. Keep the instruction a short prose paragraph (what to remember, what to ignore). Example:

## Instructions
Remember architecture decisions, API contracts, and team conventions.
Ignore transient debugging output, stack traces, and anything resembling a secret.
  • Preserve any other existing sections (## Retention, ## Categories, etc.).
  • If the section already exists, replace its body; otherwise append the section.
  • For clear, delete the ## Instructions and ## Agent Instructions sections.

Step 4: Confirm

Updated memory policy in mem0.md.
Takes effect next session. Commit mem0.md to share it with your team.

Remind the user that ## Agent Instructions only affects agent-scoped memories, so it is a no-op unless memories are written with an agent_id.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/mem0-memory-policy-mte1ljgw' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mem0-memory-policy-mte1ljgw/download' --output '.skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md.part' && mv '.skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md.part' '.skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md' && test -s '.skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/policy' && cp -R '.skill-downloads/mem0-memory-policy-mte1ljgw' '.claude/skills/policy'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/mem0-memory-policy-mte1ljgw'

openskills read 'mem0-memory-policy-mte1ljgw'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/mem0-memory-policy-mte1ljgw/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills