searchlisted
Install: claude install-skill onebrain-ai/onebrain
# /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
- Direct qmd 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
- **qmd lex+vec+hyde** if `qmd_collection` is 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 +