Searchのロゴ

Search

組織
onebrain-ai
search

General vault retrieval — answers both "what" and "why" questions across MEMORY.md, memory/, session logs, project trackers, and vault notes. Uses the search tools (lex+vec+hyde) with grep fallback.

概要

公開者onebrain-ai
リポジトリonebrain
スキル名search
スター
31
フォーク
3
同梱ファイル
1
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    onebrain-aiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Search」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/search
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/onebrain-ai/onebrain.git /tmp/onebrain
mkdir -p .claude/skills
cp -r /tmp/onebrain/.claude/plugins/onebrain/skills/search .claude/skills/search
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSearchを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSearchを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Searchは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

/search — General vault retrieval

Purpose

First-class retrieval skill that answers both what and why questions across all knowledge layers in the OneBrain vault.

Distinct from existing skills:

  • /distill synthesizes a topic into a new persisted note (write); /search is read-only
  • /recap promotes session insights to memory/ (write); /search is read-only
  • A direct search query gives content matches; /search ranks by question type and surfaces decision chains

Sources searched (in order of relevance)

  1. [agent_folder]/MEMORY.md — always-loaded persona/active-projects
  2. [agent_folder]/memory/*.md — match via MEMORY-INDEX topics
  3. [logs_folder]/session/**/*-session-*.md — past session logs
  4. [projects_folder]/**/*.md — project notes including embedded specs/plans/design docs
  5. Project tracker decisions log tables (project MOCs under [projects_folder]/)
  6. Vault notes ([knowledge_folder]/, [resources_folder]/, [areas_folder]/)
  7. [logs_folder]/checkpoint/*.md — in-session-state recovery (for current-day questions)

Tools used

  • Search tools lex+vec+hyde if search.collection is configured in onebrain.yml (legacy top-level qmd_collection still honored) (preferred) — follows the cascade in skills/startup/SEARCH.md
  • Glob + Grep fallback per the cascade's fallback triggers, or unconditionally if the search tools are unavailable
  • Heuristic question-type detection: matches ^why\b (or the agent's bilingual intent inference on non-English equivalents) → "why mode"; else → "what mode"

Confidence

Every MCP hit carries a rerank_score (0–1). Apply the cascade's bands when composing the answer:

  • ≥ 0.60 — confident; cite directly in the direct answer / decision chain.
  • 0.30 – 0.60 — possible; include only in the Sources list, not folded into the direct-answer synthesis as settled fact.
  • < 0.30 — no strong match; drop it. If, after the cascade's Grep fallback, nothing clears 0.30, output an honest no strong match result instead of stitching noise into an answer (see Output format below).

Output format — what mode

For "what is X" / "what's the current state of X" questions, synthesize a direct answer + cite top 5 sources:

📌 Direct answer (1–3 sentences synthesized from sources)

📚 Sources (top 5 by relevance):
  1. <file path>:<heading> — <1-line excerpt>
  2. ...

No strong match (all candidates scored below 0.30 and the cascade's Grep fallback found nothing either):

🔴 No strong match for "<query>" — nothing in the vault clears the confidence bar.

Output format — why mode

For "why did X" / "why is X" questions, reconstruct chronological decision chain:

🕐 Decision chain (chronological):
  YYYY-MM-DD · <event/decision> · "<key quote or rationale>"
  YYYY-MM-DD · <next event> · "<rationale>"
  ...

📚 Sources: <list of files referenced in chain>

Skill flow

  1. Detect question type from input (why keyword or default to what)
  2. Run the cascade: search query (lex+vec+hyde) first, Grep only on a cascade fallback trigger
  3. Score results by question type (why → emphasize sessions + decisions logs; what → emphasize knowledge + project notes), applying the confidence bands above
  4. Top-K cap: 5 results by default; --all flag returns full ranked list
  5. Format per mode above

Known limitations

  • Search quality depends on search index freshness — run onebrain search reindex if recent vault changes not reflected
  • Why mode requires chronological events to exist; if no decision history found, falls back to what-mode output with a note

Progress reporting

This skill is long-running for large vaults. Emit:

→ [step 1/4] detecting question type · routing to search...
→ [step 2/4] running search lex+vec+hyde across all sources...
→ [step 3/4] scoring + ranking results...
→ [step 4/4] formatting answer...

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Search」では何ができますか?

General vault retrieval — answers both "what" and "why" questions across MEMORY.md, memory/, session logs, project trackers, and vault notes. Uses the search tools (lex+vec+hyde) with grep fallback.

TypingMindでSearchを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Searchはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSearchをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/searchを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Searchを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Searchで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSearchを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Search」は無料ですか?

はい。onebrain-aiがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇