query
O que ela faz
Esta skill responde às suas perguntas usando o conhecimento guardado no seu cérebro. Cada afirmação vem com um link para a página de onde veio.
Quando usar
- ✓Quando você faz uma pergunta que suas anotações salvas deveriam responder.
- ✓Quando quer consultar uma pessoa, empresa ou projeto no seu cérebro.
- ✓Quando quer uma resposta que combine várias das suas páginas, com fontes.
Link da skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/query/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“O que eu decidi sobre preços nas minhas anotações de reunião do mês passado? Me dê as fontes.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente pesquisa no seu cérebro em camadas, lê as páginas correspondentes e escreve uma resposta. Cada afirmação fica ligada a uma página, e ele diz claramente quando o cérebro não tem a informação.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
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 baresearchfor "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 ofget_page+get_backlinkswhen you just need the card.synthesize(question)— the explicitly-expensive cross-page answer; the heavy version ofquery. Reach for it only when the answer must combine evidence across pages. Fall back tosearch/query/get_pagewhen the verbs aren't on the surface (pre-0.43 servers;--surface fullincludes the verbs alongside every other op). Seedocs/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
- Decompose the question into search strategies:
- Keyword search for specific names, dates, terms
- Semantic query for conceptual questions
- Structured queries (list by type, backlinks) for relational questions
- Execute searches:
- Cheap-hybrid search gbrain for exact tokens / known names (search)
- Full-hybrid search gbrain for concept questions (query;
--expandadds multi-query expansion) - List pages in gbrain by type or check backlinks for structural queries
- Narrow with filters instead of grepping the brain checkout:
--types '["meeting"]',--match keyword,gbrain query "<q>" --since 2026-09-01 --until 2026-09-30,--source <id>. Copyable examples: "Retrieval: gbrain first" inskills/conventions/brain-first.md.
- Read top results. Read the top 3-5 pages from gbrain to get full context.
- Synthesize answer with citations. Every claim traces back to a specific page slug.
- Flag gaps. If the brain doesn't have info, say "the brain doesn't have information on X" rather than hallucinating. Read the result's notices first (see "When it fails"): a degraded or truncated result is not a gap.
When it fails
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
- Check each retrieval result for notices before answering: on MCP, extra text blocks whose first line looks like [gbrain notice empty_retrieval kind=degraded], mirrored in
_meta.gbrain_notices; on the CLI, the[AGENT]block,search_degraded, or anote: search degradedline. empty_retrievalwithkind=degraded(orsearch_degraded: keyword_only_no_embedding_provider): an empty result is NOT proof the user has no notes. Tell the user "your brain is searching keywords only right now, so I may be missing notes on X", try exact names and synonyms withgbrain search, and point to the notice's fix (usually enabling embeddings).empty_retrievalwith "no retrieval degradation — this is a clean miss": then say "the brain doesn't have information on X".listing_truncatedorbudget_truncated: the list was cut off. Say "showing the first N", and page or narrow the query before claiming something is absent.page_not_foundfromget_page: the slug is wrong or in another source; search by title (and check--source) before reporting the page missing.
Anti-Patterns
- Answering from general knowledge when the brain has relevant content
- Hallucinating facts not in the brain
- Silently picking one source when sources conflict
- Loading full pages when search chunks are sufficient
- Ignoring source precedence (user statements are highest authority)
Output Format
Answers should include:
- Direct response to the question
- Citations: "According to [Source: people/jane-doe, compiled truth]..."
- Gap flags: "The brain doesn't have information on X"
- Conflict notes when sources disagree
Quality Rules
- Never hallucinat
Perguntas frequentes
E se meu cérebro não souber a resposta?
A skill diz isso diretamente, em vez de adivinhar, e aponta a lacuna para você saber o que falta.
Qual fonte prevalece se duas páginas divergirem?
Suas próprias afirmações têm prioridade, depois a página compilada, depois a linha do tempo, e fontes externas vêm por último.
Ela pesquisa a web aberta?
Só como último recurso. Suas próprias anotações são verificadas primeiro.
Detalhes
Descrição original do autor
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.
repo: garrytan/gbrain
Popularidade
- Estrelas no GitHub
- 31 mil
- Posição no ranking
- #9265
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
gbrain
31 milPermite que seu agente pesquise em um cérebro de conhecimento compartilhado da empresa, buscando fatos sobre pessoas, projetos e decisões, e salve notas duráveis nele.
brain-ingest-gate
31 milVerifica um novo conteúdo contra um cérebro de conhecimento existente antes de adicioná-lo, para evitar duplicatas e resolver entidades nomeadas primeiro.
brain-link-discipline
31 milGarante que seu agente inclua um link funcional para cada página do cérebro que relatar, na mesma mensagem, para que você possa abri-la logo.
brain-ops
31 milOferece ao seu agente a rotina básica de um cérebro de conhecimento: consultar o contexto, salvar notas com a fonte e ligar páginas relacionadas.
Skills parecidas
graincrawl
394 milPermite que seu agente pesquise suas anotações e transcrições salvas de reuniões do Granola, verifique quão atualizadas elas estão e as conte em um período.
notcrawl
394 milPermite que seu agente pesquise uma cópia salva do seu workspace do Notion, consulte páginas e bancos de dados e exporte páginas para arquivos Markdown.
knowledge-entities
394 milAjuda seu agente a identificar pessoas, empresas e projetos e a escrever páginas de perfil com fontes no seu Knowledge vault.