caiobellizzi/ultra-agents-brain/brain-query
Claude Code and agent skill by caiobellizzi/ultra-agents-brain
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Answer questions from the Markdown second brain using qmd hybrid retrieval or ripgrep fallback, with cited synthesis and optional write-back.
Install
npx vskill@latest install caiobellizzi/ultra-agents-brain/brain-querySKILL.md
The same SKILL.md was published earlier as caiobellizzi/ultra-agents-brain/brain-query.
brain.query
Purpose
Answer "what do we know about X?" from the vault. Retrieve relevant notes, synthesize a grounded answer with citations to vault files, state missing knowledge clearly, and optionally file durable answers back into the wiki.
Triggers
- Telegram questions such as "what do we know about...", "find my notes on...", "summarize our knowledge of...", or "where did I save...".
- Orchestrator needs context before planning a research, review, lint, or approval action.
- User asks to turn an answer into a concept note or project note.
Required Env/Config
SECOND_BRAIN_ROOTand readable vaultCLAUDE.md.qmdinstalled and indexed against the vault.rgavailable for fallback retrieval.- LiteLLM model routing: Tier A for complex planning, Tier B for synthesis.
- Cost ledger/trust gate helper.
Expected Inputs
question: the user's natural-language query.- Optional
scope: Project, Area, Resource folder, date range, tag, entity, or concept. - Optional
write_back: false by default; true only when user requests durable capture. - Optional
answer_style: brief, normal, exhaustive, or citation-first.
Expected Outputs
- Cited Markdown answer using vault-relative file citations.
- "Known / uncertain / missing" separation for ambiguous topics.
- Retrieval trace: qmd query terms, top files, fallback status.
- Optional new or updated wiki note when explicitly requested or approved.
- Append-only query log entry.
Cost/Trust Constraints
- Default to Tier B synthesis; use Tier A only for broad, ambiguous, or high-impact questions.
- Keep retrieval cheap: qmd/rg first, LLM only for reranking and synthesis.
- Do not exceed per-subtask USD 1 without approval.
- Daily cap USD 20 and 80 percent warning apply.
- Read-only answers are low risk. Write-back is medium risk unless writing a new, user-confirmed note.
- Strip private blocks before cloud LLM calls; if private content is essential, use Tier D/private worker or refuse.
Relevant Helper Modules
skills/brain.query/qmd_client.py: qmd invocation, result parsing, scoring.- Retrieval fallback helper:
rgsearch plus LLM rerank. - Cost ledger/trust gate helper from task 06.
Failure Handling
- If qmd fails or has no index, fall back to
rgplus rerank. - If retrieval finds weak evidence, say so and ask whether to run
worker.research. - If citations cannot be produced, do not synthesize as fact; return candidate files and uncertainty.
- If write-back conflicts with existing files, request approval before changing anything.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/brain.query/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/caiobellizzi/ultra-agents-brain/brain-query)