brain-ops
What it does
This skill guides the AI agent through reading from and writing to a shared knowledge brain. It is for teams who use an agent as a memory layer over their documents and notes.
When to use it
- ✓When you ask the agent a question that the brain may already answer.
- ✓When you explicitly ask the agent to save a fact to the brain with its source.
- ✓When a new page should be linked back to the pages that mention it.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/brain-ops/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Remember that our Q3 launch moved to September 12, and note the source as the planning meeting.”
5 new skills a week. 1 minute to read.
How it works
The agent recalls context first, saves the fact with its provenance, and adds back-links so the related pages connect.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Brain Operations — The Ambient Context Layer
Recall relevant context before responding. Save explicit requests with provenance; automatic capture is off until the user opts in. Reading this skill does not enable capture, delegation, or paid enrichment. A chat-only instruction suppresses writes for that turn, including when standing capture is enabled.
Convention: See
skills/conventions/brain-first.mdfor the lookup chain and copyable retrieval filters. Convention: Seeskills/conventions/quality.mdfor citation and back-link rules.
Memory verbs (MEMORY_VERBS v1, gbrain ≥ 0.43). Over MCP, prefer the five core memory verbs for the read/write cycle:
remember(fact, provenance, ttl?)to save a single durable fact (mandatory provenance; dedupes + supersedes),recall(query | entity, budget_tokens)to read it back budget-packed,entity(name)for a zero-LLM card,synthesize(question)for the expensive cross-page answer,forget(id)to withdraw active memory (history, source material, and backups may remain).context_packanddeltacomplete the seven-verb surface. Userememberinstead ofextract_factswhen you already have ONE formed fact;put_page/add_link/add_timeline_entrystay the page/graph write path. Fall back to the classic ops when the verbs aren't on the surface. Contract:docs/protocol/MEMORY_VERBS_v1.md.Tight-budget page questions: explicitly use
recall({query: "zebra telescope", budget_tokens: 75, budget_policy: "query_first"})so ranked page evidence packs before recent facts. CLI:gbrain recall --query 'zebra telescope' --budget-tokens 75 --budget-policy query_first --json. Keep entity-first, event/session-filtered and fact-focused questions on their existing facts-first route; do not changecontext_pack. Costs are character-based estimates, and an oversized first item is dropped without skipping or truncation. Readbudget_packingbefore interpreting an empty result as missing memory. Seeskills/query/SKILL.mdfor the MCP request and caller example. Guidance is not native-harness activation: adoption remains unverified until a fresh conversation is observed making the opted-in call.Choose a readback path that can see the intended visibility. Trusted local CLI callers can recall and withdraw private facts. Every MCP caller, including stdio, and a thin CLI connected to MCP currently have world-only fact recall and withdrawal. A request to remember does not authorize making real private information world-visible. Use a trusted local write/readback path for private memory when available. If only remote access is available, a successful private write receipt confirms storage, but private recall remains unverified; explain that limit and the trusted local path needed for private readback or withdrawal. Do not widen visibility or request broader OAuth scopes merely to make verification pass. For an MCP connection test, use only a harmless synthetic
visibility: "world"fixture with the user's test authorization, retain its ID, and withdraw it afterward.
<REDACTED:pattern>in a result (for example<REDACTED:url_credentials>or<REDACTED:high_entropy_assignment>) means the brain holds a credential-shaped value there and withheld it from this response; the stored page is unchanged. Tell the user which kind of value was withheld and that it is readable on the brain host. Do not retry other operations to recover it, and do not echo a guess. A credential the user asked you torememberis withheld from remote recall by design: every MCP caller, including stdio, and a thin CLI connected to MCP is remote, so onlygbrain recallrun on the brain host shows it as written. Docs:docs/guides/write-refusals.md#secret-scan-refusals-and-redaction.Keyless brains: when
extract_factsreturnsskipped: extraction_unavailable, YOU are the extractor — pull the facts from the turn yourself and write each one viarememberwithkindset (event | preference | commitment | belief | fact — those five are the frozen protocol enum; theideakind the extractor and DB carry is NOT one of them) and the visibility the envelope'sagent_actionnames (default private — pin it;rememberdefaults to world), or author a## Factsfence on the entity page. Askipped: extraction_failedenvelope (server-side extractor
FAQ
Does it save everything automatically?
No. The skill says automatic capture is off until you opt in, and explicit requests are saved with their source.
What is provenance?
It is the record of where a fact came from, which the skill requires when saving a note.
Which memory commands does it use?
It mentions commands such as remember, recall, entity, synthesize and forget when they are available.
Details
Original description by the author
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking. Read this before any brain interaction.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9250
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
concept-synthesis
31kTurns a large set of scattered concept pages into a tiered, de-duplicated map of ideas, showing how each idea evolved over time.
Similar skills
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
notcrawl
394kLets your agent search a saved copy of your Notion workspace, look up pages and databases, and export pages to Markdown files.
knowledge-entities
394kHelps your agent identify people, companies, and projects, then write sourced profile pages for them in your Knowledge vault.