mem0-search

Searches mem0 memories and displays compact one-liner results or direct ID lookups.

1|Updated Jan 13, 2022
One-click install
npx skills add https://github.com/jayho-k/TIL --skill mem0-search-jayho-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-search
Source: https://github.com/jayho-k/TIL/tree/main/AI/mem0/code/mem0_code_analize/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-search
Command: npx skills add https://github.com/jayho-k/TIL --skill mem0-search-jayho-k

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Finding a specific stored memory in mem0 requires running broad queries and reading verbose output. This Skill performs quick memory searches with compact one-line results, and resolves direct memory ID or [mem0:id] citation lookups without loading full category detail. ## Core Features & Use Cases - Compact Search Results: Runs parallel broad and decision-targeted search_memories queries, deduplicates by ID, and displays one-line results with type, date, and short ID. - Direct ID Lookup: Detects bare hex IDs, full UUIDs, and [mem0:<hex>] citation references and fetches the memory directly via get_memory. - Use Case: While reviewing code, you encounter a [mem0:a3f8b2c1] citation in a comment. Run the search with that reference to instantly retrieve the original decision record explaining why JWT with RS256 was chosen. ## Quick Start Ask the assistant to search mem0 memories for "auth middleware" to see compact matching results.

Frequently Asked Questions about mem0-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search mem0 memories from the command line?

Run /mem0-search followed by your query, such as /mem0-search auth middleware. The skill runs parallel broad and decision-targeted searches, deduplicates results, and shows compact one-line entries with type, date, and short ID.

How do I look up a mem0 memory by ID?

Pass the hex ID, full UUID, or a [mem0:<hex>] citation reference as the query. The skill detects ID patterns automatically and calls get_memory directly, falling back to text search if the ID is not found.

What is the difference between mem0-search and mem0-tour?

mem0-search is a lighter command that returns compact one-line results for quick lookups. mem0-tour provides full category detail and is better for browsing memories in depth.

Why does mem0-search output avoid markdown formatting?

The OpenCode TUI renders text verbatim, so markdown syntax like bold, headers, and tables appears as raw characters. The skill uses plain text with indentation and dashes for readable structure.

What filters does mem0-search apply to search results?

Searches filter by user_id and app_id, with a second targeted query adding a metadata type filter for decisions. Both queries use top_k limits and reranking to surface the most relevant memories.