mem-search

仓库创建 2025年9月1日最近提交 3 天前SkillHot 收录 20 天前
▸ 精选理由

快速找回先前讨论或解决方案,防止重复劳动。

▸ 风险提示

检索历史可能暴露旧会话敏感内容

这个 Skill 做什么

在跨会话的持久记忆数据库中检索过去工作记录。

在跨会话的持久记忆库里找以前的工作记录或决策,帮你回答以前做过什么、上次怎么处理过这些问题。使用时先筛选匹配项再取回全文,避免一次性加载大量内容以节省 tokens。特别强调先过滤再抓取的三层流程,能更快定位有用历史记录。

▸ 展开 SKILL.md 英文原文

Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.

数据与抓取历史检索跨会话记忆库通用
8.9w
Stars
7.7k
Forks
21
仓库内 Skill
+2.5k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/thedotmack/claude-mem/main/plugin/skills/mem-search/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/thedotmack/claude-mem/main/plugin/skills/mem-search/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Memory Search

Search past work across all sessions. Simple workflow: search -> filter -> fetch.

## When to Use

Use when users ask about PREVIOUS sessions (not current conversation):

- "Did we already fix this?"
- "How did we solve X last time?"
- "What happened last week?"

## 3-Layer Workflow (ALWAYS Follow)

**NEVER fetch full details without filtering first. 10x token savings.**

### Step 1: Search - Get Index with IDs

Use the `search` MCP tool:

```
search(query="authentication", limit=20, project="my-project")
```

**Returns:** Table with IDs, timestamps, types, titles (~50-100 tokens/result)

```
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #11131 | 3:48 P
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有