Back to Skills

mem0-memory

verified

Long-term semantic memory across sessions using Mem0. Use when you need to remember, recall, or forget information across sessions, or when referencing what we discussed last time or in a previous session.

View on GitHub

Marketplace

orchestkit

yonatangross/skillforge-claude-plugin

Plugin

ork

development

Repository

yonatangross/skillforge-claude-plugin
33stars

skills/mem0-memory/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/yonatangross/skillforge-claude-plugin/blob/main/skills/mem0-memory/SKILL.md -a claude-code --skill mem0-memory

Installation paths:

Claude
.claude/skills/mem0-memory/
Powered by add-skill CLI

Instructions

# Mem0 Memory Management

Persist and retrieve semantic memories across Claude sessions.

## Memory Scopes

Organize memories by scope for efficient retrieval:


| Scope                | Purpose                           | Examples                                    |
| -------------------- | --------------------------------- | ------------------------------------------- |
| `project-decisions`  | Architecture and design decisions | "Use PostgreSQL with pgvector for RAG"      |
| `project-patterns`   | Code patterns and conventions     | "Components use kebab-case filenames"       |
| `project-continuity` | Session handoff context           | "Working on auth refactor, PR #123 pending" |

## Project Isolation

Memories are isolated by project name extracted from `CLAUDE_PROJECT_DIR`:

- Project name: `basename($CLAUDE_PROJECT_DIR)` (sanitized to lowercase, dashes)
- Format: `{project-name}-{scope}`

**Edge Case:** If two different repositories have the same directory name, they will share the same `user_id` scope. To avoid this:

1. Use unique directory names for each project
2. Or use `MEM0_ORG_ID` environment variable for additional namespace

**Example:**
- `/Users/alice/my-app` → `my-app-decisions` ✅
- `/Users/bob/my-app` → `my-app-decisions` ⚠️ (collision if same mem0.ai project)
- With `MEM0_ORG_ID=acme`: `/Users/alice/my-app` → `acme-my-app-decisions` ✅

## Memory Categories

Memories are automatically categorized based on content. Available categories:

| Category | Keywords | Use Case |
|----------|----------|----------|
| `pagination` | pagination, cursor, offset | API pagination patterns |
| `security` | security, vulnerability, OWASP | Security patterns and vulnerabilities |
| `authentication` | auth, JWT, OAuth, token | Authentication patterns |
| `testing` | test, pytest, jest, coverage | Testing strategies |
| `deployment` | deploy, CI/CD, Docker, Kubernetes | Deployment patterns |
| `observability` | monitoring, logging, tracing, metrics | Observabil

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
13161 chars