brain-ingest-gate
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
When/what to retrieve — open the brain page for a salient entity before answering from memory.
$ npx -y skills add garrytan/gbrain --skill retrieval-reflex --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/retrieval-reflexContext preview
The summary Claude sees to decide when to auto-load this skill.
When/what to retrieve — open the brain page for a salient entity before answering from memory.
name: retrieval-reflex
version: 0.1.0
description: When/what to retrieve — open the brain page for a salient entity before answering from memory.
# Reflex-only triggers (#4292): direct lookup questions ("who is", "tell
# me about", ...) route to skills/query — this skill fires on the ambient
# retrieve-before-answering reflex, not on explicit search requests.
triggers:
- "a named entity becomes the subject of the exchange"
- "a brain-page pointer appeared in context"
- "about to assert a detail about an entity from memory"
mutating: false
writes_pages: false
writes_to: []
# MCP op names; over the CLI, traverse_graph/get_backlinks are `gbrain graph` / `gbrain backlinks`
tools: [get_page, query, traverse_graph, get_backlinks]A person doesn't bulk-load their whole address book into working memory. They retrieve **on demand**, when an entity becomes **salient**, use it, and drop it. Encode that reflex. The brain probably has the data — if a name is salient and you haven't opened its page, open it before you answer.
Retrieve when ANY of these holds AND the page isn't already loaded in context:
the message, or a decision/judgment about it is being made, or the exchange is substantive / relational / emotional about it.
layer told you the page exists) — open it before relying on details.
do a quick resolve (the human reflex).
status, history) → verify against the brain first. Say "let me check", not a guess.
**Skip** trivial passing mentions, logistics pings, and anything already loaded. Judgment first — retrieve when it changes the quality of the reply, not reflexively.
Escalate only as far as the task needs:
1. **Pointer / metadata.** If a pointer is already in context (slug + one-line summary), and the task only needs identity, stop there. 2. **Full page.** When the entity is the subject or details matter, open it: `get_page <slug>` (MCP) — read the page before relying on specifics. 3. **Linked neighbors.** Only when relationship context is needed, pull `graph` / `backlinks` for the slug.
**Resolve only the name(s) the current task needs, use them, drop them.** No bulk-loading the inner circle.
If you've discussed a named person for more than a message without opening their page, open it now. The write side captures everything; the read side only helps if you actually look.
See also: `skills/query/SKILL.md` (search the brain), `skills/brain-ops/SKILL.md`.
Give the agent you already use a memory you control. GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.
Repo: garrytan/gbrain
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME…
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking.…
Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across sources over time. Transforms…
Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered identity files (SOUL.md,…
When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its source, fix the source, and prevent…