jpskill.com
💬 コミュニケーション コミュニティ 🟡 少し慣れが必要 👤 幅広いユーザー

💬 Mem検索

mem-search

過去の会話や作業内容を記憶しているデータベースを検索

⏱ 社内アナウンス文 30分 → 3分

📺 まず動画で見る(YouTube)

▶ 【最新版】Claude(クロード)完全解説!20以上の便利機能をこの動画1本で全て解説 ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

過去の会話や作業内容を記憶しているデータベースを検索

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o mem-search.zip https://jpskill.com/download/1305.zip && unzip -o mem-search.zip && rm mem-search.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/1305.zip -OutFile "$d\mem-search.zip"; Expand-Archive "$d\mem-search.zip" -DestinationPath $d -Force; ri "$d\mem-search.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して mem-search.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → mem-search フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Mem Search の使い方を教えて
  • Mem Search で何ができるか具体例で見せて
  • Mem Search を初めて使う人向けにステップを案内して

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] mem-search

メモリー検索

すべてのセッションにわたる過去の作業を検索します。シンプルなワークフロー:検索 -> フィルタリング -> 取得。

使用する場面

ユーザーが以前のセッション(現在の会話ではない)について質問する場合に使用します。

  • 「これはもう修正しましたか?」
  • 「前回、Xをどのように解決しましたか?」
  • 「先週何がありましたか?」

3層ワークフロー(常に従う)

フィルタリングせずに詳細全体を取得しないでください。トークンを10倍節約できます。

ステップ1:検索 - ID付きインデックスの取得

search MCPツールを使用します。

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

返されるもの: ID、タイムスタンプ、タイプ、タイトルを含むテーブル(結果あたり約50~100トークン)

| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #11131 | 3:48 PM | 🟣 | Added JWT authentication | ~75 |
| #10942 | 2:15 PM | 🔴 | Fixed auth token expiration | ~50 |

パラメーター:

  • query (string) - 検索語
  • limit (number) - 最大結果数、デフォルト20、最大100
  • project (string) - プロジェクト名フィルター
  • type (string, optional) - "observations"、"sessions"、または "prompts"
  • obs_type (string, optional) - コンマ区切り:bugfix、feature、decision、discovery、change
  • dateStart (string, optional) - YYYY-MM-DD またはエポックミリ秒
  • dateEnd (string, optional) - YYYY-MM-DD またはエポックミリ秒
  • offset (number, optional) - N個の結果をスキップ
  • orderBy (string, optional) - "date_desc" (デフォルト)、"date_asc"、"relevance"

ステップ2:タイムライン - 興味深い結果周辺のコンテキストの取得

timeline MCPツールを使用します。

timeline(anchor=11131, depth_before=3, depth_after=3, project="my-project")

または、クエリからアンカーを自動的に見つけます。

timeline(query="authentication", depth_before=3, depth_after=3, project="my-project")

返されるもの: depth_before + 1 + depth_after個のアイテムが、アンカーを中心に観測、セッション、プロンプトが混在した時系列順で返されます。

パラメーター:

  • anchor (number, optional) - 中心とする観測ID
  • query (string, optional) - anchorが指定されていない場合、アンカーを自動的に見つける
  • depth_before (number, optional) - アンカーより前のアイテム数、デフォルト5、最大20
  • depth_after (number, optional) - アンカーより後のアイテム数、デフォルト5、最大20
  • project (string) - プロジェクト名フィルター

ステップ3:取得 - フィルタリングされたIDのみの完全な詳細の取得

ステップ1のタイトルとステップ2のコンテキストを確認します。関連するIDを選択します。残りは破棄します。

get_observations MCPツールを使用します。

get_observations(ids=[11131, 10942])

常に2つ以上の観測にはget_observationsを使用してください。N個のリクエストではなく、単一のリクエストで済みます。

パラメーター:

  • ids (array of numbers, required) - 取得する観測ID
  • orderBy (string, optional) - "date_desc" (デフォルト)、"date_asc"
  • limit (number, optional) - 返す観測の最大数
  • project (string, optional) - プロジェクト名フィルター

返されるもの: タイトル、サブタイトル、ナラティブ、ファクト、コンセプト、ファイルを含む完全な観測オブジェクト(それぞれ約500~1000トークン)

最近のバグ修正を見つける:

search(query="bug", type="observations", obs_type="bugfix", limit=20, project="my-project")

先週何があったかを見つける:

search(type="observations", dateStart="2025-11-11", limit=20, project="my-project")

発見周辺のコンテキストを理解する:

timeline(anchor=11131, depth_before=5, depth_after=5, project="my-project")

詳細を一括取得する:

get_observations(ids=[11131, 10942, 10855], orderBy="date_desc")

このワークフローの理由

  • 検索インデックス: 結果あたり約50~100トークン
  • 完全な観測: それぞれ約500~1000トークン
  • 一括取得: N個の個別リクエストではなく、1つのHTTPリクエスト
  • 取得前にフィルタリングすることでトークンを10倍節約

ナレッジエージェント

生の記録ではなく、合成された回答が必要ですか?/knowledge-agentを使用して、観測履歴からクエリ可能なコーパスを構築してください。ナレッジエージェントは、一致するすべての観測を読み取り、会話形式で質問に答えます。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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 PM | 🟣 | Added JWT authentication | ~75 |
| #10942 | 2:15 PM | 🔴 | Fixed auth token expiration | ~50 |

Parameters:

  • query (string) - Search term
  • limit (number) - Max results, default 20, max 100
  • project (string) - Project name filter
  • type (string, optional) - "observations", "sessions", or "prompts"
  • obs_type (string, optional) - Comma-separated: bugfix, feature, decision, discovery, change
  • dateStart (string, optional) - YYYY-MM-DD or epoch ms
  • dateEnd (string, optional) - YYYY-MM-DD or epoch ms
  • offset (number, optional) - Skip N results
  • orderBy (string, optional) - "date_desc" (default), "date_asc", "relevance"

Step 2: Timeline - Get Context Around Interesting Results

Use the timeline MCP tool:

timeline(anchor=11131, depth_before=3, depth_after=3, project="my-project")

Or find anchor automatically from query:

timeline(query="authentication", depth_before=3, depth_after=3, project="my-project")

Returns: depth_before + 1 + depth_after items in chronological order with observations, sessions, and prompts interleaved around the anchor.

Parameters:

  • anchor (number, optional) - Observation ID to center around
  • query (string, optional) - Find anchor automatically if anchor not provided
  • depth_before (number, optional) - Items before anchor, default 5, max 20
  • depth_after (number, optional) - Items after anchor, default 5, max 20
  • project (string) - Project name filter

Step 3: Fetch - Get Full Details ONLY for Filtered IDs

Review titles from Step 1 and context from Step 2. Pick relevant IDs. Discard the rest.

Use the get_observations MCP tool:

get_observations(ids=[11131, 10942])

ALWAYS use get_observations for 2+ observations - single request vs N requests.

Parameters:

  • ids (array of numbers, required) - Observation IDs to fetch
  • orderBy (string, optional) - "date_desc" (default), "date_asc"
  • limit (number, optional) - Max observations to return
  • project (string, optional) - Project name filter

Returns: Complete observation objects with title, subtitle, narrative, facts, concepts, files (~500-1000 tokens each)

Examples

Find recent bug fixes:

search(query="bug", type="observations", obs_type="bugfix", limit=20, project="my-project")

Find what happened last week:

search(type="observations", dateStart="2025-11-11", limit=20, project="my-project")

Understand context around a discovery:

timeline(anchor=11131, depth_before=5, depth_after=5, project="my-project")

Batch fetch details:

get_observations(ids=[11131, 10942, 10855], orderBy="date_desc")

Why This Workflow?

  • Search index: ~50-100 tokens per result
  • Full observation: ~500-1000 tokens each
  • Batch fetch: 1 HTTP request vs N individual requests
  • 10x token savings by filtering before fetching

Knowledge Agents

Want synthesized answers instead of raw records? Use /knowledge-agent to build a queryable corpus from your observation history. The knowledge agent reads all matching observations and answers questions conversationally.