skills/query/SKILL.md
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.
npx skillsauth add garrytan/gbrain queryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Answer questions using the brain's knowledge with 3-layer search and synthesis.
This skill guarantees:
Answers should include:
Search returns chunks, not full pages. Read the excerpts first before deciding whether to load a full page.
gbrain search / gbrain query return ranked chunks with context snippets.
These are often enough to answer the question directly.gbrain get <slug> to load the full page when a chunk confirms the
page is relevant and you need more context (e.g., compiled truth, timeline).When multiple sources provide conflicting information, follow this precedence:
When sources conflict, note the contradiction with both citations. Don't silently pick one.
When referencing brain pages in your answer, propagate inline citations:
[Source: ...] citations, propagate them so
the user can trace facts to their originFor relationship questions ("who knows who at X?", "connections between A and B", "who works at Acme?", "who attended the standup?"), use the graph layer instead of full-text search:
gbrain graph-query <slug> --type <link_type> --depth N --direction in|out|bothattended, works_at, invested_in, founded, advises, mentions, source--direction in answers "who points to X?" (e.g., who works at company X)--direction out answers "what does X point to?" (default)--depth N controls multi-hop traversal (default 5)Examples:
gbrain graph-query companies/acme --type works_at --direction ingbrain graph-query meetings/demo-day-w26 --type attended --direction outgbrain graph-query people/emily --type advises --direction outgbrain graph-query people/alice --type attended --depth 2Combine with gbrain query for queries that need BOTH semantic similarity AND
graph structure. Search results are ranked with a small backlink boost so well-
connected entities surface higher.
If search results seem off (wrong results, missing known pages, irrelevant hits):
gbrain doctor --json to check index healthgbrain search) vs hybrid search (gbrain query)
for the same query to isolate whether the issue is embedding-relatedtools
Validate and auto-repair YAML frontmatter on brain pages. Catches malformed pages before they enter the brain (missing closing ---, nested quotes, slug mismatches, null bytes, empty frontmatter, YAML parse failures). Wraps the `gbrain frontmatter` CLI for agent-driven workflows.
data-ai
Trace one idea's evolution through the brain: first mention, best articulation, related concepts, reversals, contradictions, abandoned branches, and the current live version. Use for single-idea conceptual lineage, not broad concept-map synthesis or structured entity metrics.
data-ai
Route to Venus (sharp executive-assistant voice persona). Used for logistics — calendar, tasks, recent messages, brain lookups — at sub-second phone-call latency. The default voice persona unless DEFAULT_PERSONA=mars is set.
tools
Route to Mars (introspective thought partner / demo showman voice persona). Used when the operator wants depth, meaning, or impressive social demos rather than logistics. Mars handles SOLO mode (philosophy, presence, patterns) and DEMO mode (tool-driven showmanship) automatically.