Skills

Query

Answer questions using the brain's knowledge with 3-layer search, synthesis, and...

Install

npx skills add garrytan/gbrain --skill query -g -a claude-code -y
Repository
garrytan/gbrain31.4k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Mediumabout 2,740 tokens
Runs scripts
No, instructions only

What it does

Answer questions using the brain's knowledge with 3-layer search, synthesis, and citation propagation. Use when the user asks a question, wants a lookup, or needs information from the brain.

Query Skill

Answer questions using the brain's knowledge with 3-layer search and synthesis.

Memory verbs (MEMORY_VERBS v1, gbrain ≥ 0.43). When connected to a brain over MCP, prefer the seven frozen memory verbs for memory work, they carry provenance, evidence, and a server-enforced token budget:

  • recall(query | entity, budget_tokens), the budget-packed memory read. Use it instead of bare search for "what do we know that we SAVED about X".
  • entity(name), a zero-LLM person/company/project card (aliases, last-touched, open threads, top edges). Use it instead of get_page + get_backlinks when you just need the card.
  • synthesize(question), the explicitly-expensive cross-page answer; the heavy version of query. Reach for it only when the answer must combine evidence across pages. Fall back to search/query/get_page when the verbs aren't on the surface (pre-0.43 servers; --surface full includes the verbs alongside every other op). See docs/protocol/MEMORY_VERBS_v1.md.

Contract

This skill guarantees:

  • Every answer is grounded in brain content (no hallucination)
  • Every claim has a citation tracing back to a specific page slug
  • Gaps are flagged explicitly ("the brain doesn't have information on X")
  • Source precedence is respected (user statements > compiled truth > timeline > external)
  • Conflicting sources are noted with both citations

Phases

Read the whole SKILL.md on GitHub

More in Engineering