Search logo

Search

Organization
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.

Overview

Publisheronebrain-ai
Repositoryonebrain
Skill namesearch
Stars
31
Forks
3
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by onebrain-ai on GitHub. Read the source before you install it.

Installation

Install the Search AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/search
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Search in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Search on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Search is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/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...

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Search AI skill do?

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.

Why use Search on TypingMind?

Because you install it once and use it with any model. Search is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Search in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/onebrain-ai/onebrain/tree/main/.claude/plugins/onebrain/skills/search. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Search?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Search?

As many as you like. As long as a model supports skills, you can use Search with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Search AI skill free?

Yes. It is published on GitHub by onebrain-ai under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇