query
Fungsinya
Skill ini menjawab pertanyaan Anda menggunakan pengetahuan yang tersimpan di brain. Setiap klaim disertai tautan ke halaman asalnya.
Kapan dipakai
- โSaat Anda bertanya kepada agent sesuatu yang seharusnya bisa dijawab oleh catatan yang tersimpan.
- โKetika Anda ingin mencari orang, perusahaan, atau proyek dari brain Anda.
- โSaat Anda ingin jawaban yang menggabungkan beberapa halaman Anda, lengkap dengan sumbernya.
Link skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/query/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โApa yang saya putuskan tentang harga di catatan rapat bulan lalu? Berikan sumbernya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencari di brain secara berlapis, membaca halaman yang cocok, lalu menulis jawaban. Setiap klaim dikaitkan dengan sebuah halaman, dan agent menyatakan dengan jelas jika brain tidak memiliki informasinya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Bagaimana jika brain saya tidak tahu jawabannya?
Skill menyatakannya secara langsung alih-alih menebak, dan menyebutkan kekosongan tersebut agar Anda tahu apa yang kurang.
Sumber mana yang diutamakan jika dua halaman berbeda pendapat?
Pernyataan Anda sendiri menempati urutan tertinggi, lalu halaman hasil kompilasi, lalu linimasa, dan sumber dari luar di urutan terakhir.
Apakah skill mencari di web terbuka?
Hanya sebagai pilihan terakhir. Catatan Anda sendiri diperiksa lebih dulu.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9265
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-ingest-gate
31kMemeriksa konten baru terhadap basis pengetahuan yang sudah ada sebelum ditambahkan, untuk menghindari duplikat dan menyelesaikan entitas bernama lebih dulu.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
Skill serupa
graincrawl
394kMemungkinkan agent Anda mencari catatan dan transkrip rapat Granola yang tersimpan, memeriksa seberapa baru datanya, dan menghitungnya dalam periode tertentu.
notcrawl
394kMemungkinkan agent Anda mencari salinan tersimpan dari ruang kerja Notion, mencari halaman dan database, serta mengekspor halaman ke file Markdown.
knowledge-entities
394kMembantu agent Anda mengidentifikasi orang, perusahaan, dan proyek, lalu menulis halaman profil berisi sumber untuk mereka di Knowledge vault Anda.