query
하는 일
이 스킬은 지식 브레인에 저장된 지식으로 질문에 답합니다. 각 주장에는 그 출처 페이지로 가는 링크가 붙습니다.
사용하는 경우
- ✓저장된 메모가 답해야 할 질문을 에이전트에게 할 때.
- ✓브레인에서 사람, 회사, 프로젝트를 찾아보고 싶을 때.
- ✓여러 페이지를 합치고 출처가 붙은 답을 원할 때.
스킬 링크
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/query/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난달 회의 메모에서 가격에 대해 무엇을 결정했나요? 출처도 알려 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 브레인을 여러 층으로 검색하고, 일치하는 페이지를 읽고, 답을 씁니다. 각 주장은 페이지에 연결되며, 브레인에 정보가 없으면 그렇다고 분명히 말합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
브레인이 답을 모르면 어떻게 되나요?
추측하지 않고 그렇다고 직접 말하며, 무엇이 빠졌는지 알려 줍니다.
두 페이지가 다르면 어떤 출처가 우선인가요?
사용자 본인의 진술이 가장 우선이고, 그다음 정리된 페이지, 타임라인, 외부 출처 순서입니다.
공개 웹도 검색하나요?
마지막 수단으로만 검색합니다. 먼저 사용자의 메모를 확인합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 31k
- 순위
- #9265
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
gbrain
31k에이전트가 공유 회사 지식 브레인에서 사람, 프로젝트, 결정에 관한 사실을 검색하고, 지속적인 메모를 저장하도록 돕습니다.
brain-ingest-gate
31k새 콘텐츠를 지식 브레인에 추가하기 전에 기존 내용과 비교해 중복을 막고, 고유 명칭을 먼저 확인합니다.
brain-link-discipline
31k에이전트가 브레인 페이지를 보고할 때 같은 메시지에 각 페이지의 작동하는 링크를 포함해, 바로 열어 볼 수 있게 합니다.
brain-ops
31k지식 브레인의 기본 루틴을 제공합니다. 먼저 기존 맥락을 확인하고, 메모는 출처와 함께 저장하며, 관련 페이지를 연결합니다.
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.