New to Claude Skills? Learn how to install them →

mem0ai on GitHub

Mem0 Peek

Free

Quickly search and retrieve memories with compact results.

by mem0ai63k stars on mem0ai/mem0
Updated Aug 7, 2026
Get this skill

Free · Opens the source repo

What Mem0 Peek does

Mem0 Peek is a straightforward tool designed for efficient memory retrieval within the Mem0 framework. It allows users to perform quick searches for memories or directly look up specific entries by their memory ID. This skill is particularly useful for developers and designers who need to access recorded decisions or references without wading through extensive details. By providing compact one-liner results, Mem0 Peek streamlines the process of memory lookup, making it easier to find relevant information quickly.

The execution process begins with the user inputting a search query. If the query matches a specific memory ID format, the skill will retrieve that memory directly. If no ID is detected, it performs a broad search across memories, filtering results based on user and application identifiers. This dual-search approach ensures that users receive the most relevant results, whether they are looking for a specific memory or conducting a general search.

Results are displayed in a concise format, showing the type of memory, a brief description, the date it was recorded, and its corresponding memory ID. This compact output is designed to minimize clutter and enhance readability, allowing users to quickly scan for the information they need. In scenarios where no matching memories are found, the skill provides a clear message indicating the absence of results, which helps maintain clarity in the user experience.

Mem0 Peek is ideal for anyone working within the Mem0 ecosystem who requires fast and efficient access to memory data. It is especially beneficial for teams making decisions based on previously recorded information, as it allows for quick verification and reference without the need for extensive navigation through the system.

When to use it

Use Mem0 Peek when you need to quickly find a memory or verify a decision without extensive searching.

When not to use it

This skill is not suitable for detailed memory exploration or when full context is needed beyond compact results.

What you can build with it

Quick Decision Verification

Use Mem0 Peek to quickly verify decisions made in past projects without navigating through extensive records.

Rapid Memory Access

When you need to access a specific memory by ID or keyword, Mem0 Peek provides fast and efficient results.

Streamlined Project Management

In project management scenarios, use Mem0 Peek to quickly reference previous decisions or notes related to your project.

How to install Mem0 Peek

View source

1. Install with the skills CLI

npx skills add mem0ai/mem0/peek --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mem0ai

Mem0 Peek

Quick search with compact output. Lighter than /mem0:tour.

Execution

Step 1: Parse query

The user provides a search query: /mem0:peek auth middleware

If no query provided, ask: "What should I search for?"

Memory ID detection: If the query matches any of these patterns, treat it as a direct memory ID lookup instead of a search:

  • Bare hex: ^[a-f0-9]{8}$ (short ID) or ^[a-f0-9]{8}-[a-f0-9-]+$ (full UUID)
  • Citation ref: [mem0:<hex>] — extract the hex portion

When an ID is detected:

  1. Call get_memory(<id>) directly (if short ID, try as prefix of full UUID)
  2. If found, skip to Step 3 and display the single result
  3. If not found, fall through to search using the ID as query text

Step 2: Search

Run 2 parallel search_memories calls:

  1. Broad: query=<user's query>, filters={"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}]}, top_k=10, rerank=true
  2. Targeted: query=<user's query>, filters={"AND": [{"user_id": "<id>"}, {"app_id": "<pid>"}, {"metadata": {"type": "decision"}}]}, top_k=5, rerank=true

Step 3: Display

Deduplicate by ID, then show compact results:

## mem0 peek: "<query>" (<N> results)

1. [decision] Auth module uses JWT with RS256 keys (2025-05-15) [mem0:a3f8b2c1]
2. [anti_pattern] Don't use symmetric HS256 — leaked in env (2025-05-10) [mem0:7e2d9f4a]
3. [convention] All middleware in src/middleware/ (2025-05-08) [mem0:c4d5e6f7]

Format: <number>. [<type>] <content, 80 chars> (<date>) [mem0:<short_id>]

If no results:

No memories matching "<query>" for project <project_id>.

Frequently asked questions about Mem0 Peek

Similar skills