Install
$ agentstack add skill-onebrain-ai-onebrain-search ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
/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:
/distillsynthesizes a topic into a new persisted note (write); /search is read-only/recappromotes session insights to memory/ (write); /search is read-only- Direct qmd query gives content matches; /search ranks by question type and surfaces decision chains
Sources searched (in order of relevance)
[agent_folder]/MEMORY.md— always-loaded persona/active-projects[agent_folder]/memory/*.md— match via MEMORY-INDEX topics[logs_folder]/session/**/*-session-*.md— past session logs[projects_folder]/**/*.md— project notes including embedded specs/plans/design docs- Project tracker decisions log tables (project MOCs under
[projects_folder]/) - Vault notes (
[knowledge_folder]/,[resources_folder]/,[areas_folder]/) [logs_folder]/checkpoint/*.md— in-session-state recovery (for current-day questions)
Tools used
- qmd lex+vec+hyde if
qmd_collectionis configured in onebrain.yml (preferred) - Glob + Grep fallback if qmd unavailable
- Heuristic question-type detection: matches
^why\b(or the agent's bilingual intent inference on non-English equivalents) → "why mode"; else → "what mode"
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. : —
2. ...
Output format — why mode
For "why did X" / "why is X" questions, reconstruct chronological decision chain:
🕐 Decision chain (chronological):
YYYY-MM-DD · · ""
YYYY-MM-DD · · ""
...
📚 Sources:
Skill flow
- Detect question type from input (
whykeyword or default towhat) - Run qmd query (lex+vec+hyde) OR grep fallback
- Score results by question type (why → emphasize sessions + decisions logs; what → emphasize knowledge + project notes)
- Top-K cap: 5 results by default;
--allflag returns full ranked list - Format per mode above
Known limitations
- Search quality depends on qmd index freshness — run
/qmd embedif 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 qmd...
→ [step 2/4] running qmd lex+vec+hyde across all sources...
→ [step 3/4] scoring + ranking results...
→ [step 4/4] formatting answer...
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: onebrain-ai
- Source: onebrain-ai/onebrain
- License: Apache-2.0
- Homepage: https://onebrain.run
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.