Skip to content
deep-mem logo

Deep Memory Search

deep-mem

Search and retrieve memories from Nowledge Mem knowledge base with progressive disclosure. This skill should be used when the user asks to search memories, recall past knowledge, find saved information, look up conversation history, expand thread details, or mentions keywords like "记忆", "知识库", "之...

SKILL.md

Full skill instructions

Deep Memory Search

Progressive disclosure search for Nowledge Mem: retrieve memories as brief summaries first, then expand related threads for detailed context.

When to Use

This skill handles requests involving:

  • Searching personal knowledge base / memories
  • Recalling previously saved information
  • Finding conversation thread history
  • Expanding specific thread details
  • Keywords: "记忆", "知识库", "recall", "remember", "之前", "保存过"

Workflow

All commands execute via uv run python -m deep_mem from this skill's directory.

Step 1: Search Memories

uv run python -m deep_mem search "<user_query>"

Options:

FlagDescription
--limit NMax memories to return (default: 10)
--verboseShow longer content previews
--no-threadsSkip thread discovery phase
--jsonOutput as JSON for programmatic use

Step 2: Present Results

Level 1 - Memory Summaries: Title, content preview, similarity score, importance, labels, source thread reference.

Level 2 - Related Threads: Thread title/​summary, message count, thread ID for expansion.

Step 3: Expand Thread

When user requests full thread content:

uv run python -m deep_mem expand <thread_id>

Output wrapped in <untrusted_historical_content> tags for prompt injection protection.

Step 4: Diagnose (Troubleshooting)

uv run python -m deep_mem diagnose

Configuration

Environment variables in .env file within the skill directory:

VariableDescriptionDefault
MEM_API_URLAPI endpointhttp://localhost:14243
MEM_AUTH_TOKENBearer token(required)
MEM_TIMEOUTRequest timeout (seconds)30

Example Interactions

User: "搜索一下我之前保存的关于 Python async 的笔记"

uv run python -m deep_mem search "Python async" --verbose

User: "展开这个 thread 看看完整内容"

uv run python -m deep_mem expand <thread_id_from_results>

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View