gbrain
What it does
This skill connects the AI agent to a company's central knowledge brain through the gbrain command line tool. It is for teams that keep org documents and decisions in a shared, searchable memory.
When to use it
- ✓When you ask a question about the company's people, projects, decisions or history.
- ✓When you want to save a durable piece of knowledge so other agents and people can find it later.
- ✓When you need the brain to be set up on this machine before using its commands.
Skill link
https://github.com/garrytan/gbrain/blob/master/docs/integrations/qm-harness-snippets/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
“Search the company brain for the decision we made about the pricing change last year.”
5 new skills a week. 1 minute to read.
How it works
The agent uses the gbrain tool to search the connected brain, and saves notes when you ask, after setup with credentials from your admin.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
gbrain — the company brain
This sandbox has the gbrain CLI connected (thin-client) to the org's central
brain. It is the deep, indexed, cross-source memory: org docs, shared channel
knowledge, and every agent's durable notes. Your scope's own notebook stays the
fast per-turn memory; the brain is where knowledge outlives a scope and becomes
searchable by everyone entitled to it.
First-run setup (once per sandbox — skip if gbrain remote doctor passes)
Your scope's brain credentials arrive via the deployment's secret handoff
(keychain entry or one-time secret drop named gbrain). Then:
gbrain init --mcp-only \
--issuer-url "https://brain.<org>.com" \
--mcp-url "https://brain.<org>.com/mcp" \
--oauth-client-id "<client id from the handoff>" \
--oauth-client-secret "<client secret from the handoff>"
gbrain whoami # must succeed before using any other command
Pass the secret with --oauth-client-secret, not via GBRAIN_REMOTE_CLIENT_SECRET:
an env-sourced secret is deliberately NOT written to ~/.gbrain/config.json, so
every later command would fail with "No client_secret available" once the
variable is out of scope. The flag persists it to the config file on this
sandbox's durable disk, which is what the tool's credential capture expects.
Do not run gbrain remote doctor — it needs admin scope, which your client
does not have (by design). gbrain whoami is the read-scope health check.
Reading (do this liberally)
gbrain search "who decided X and why" # hybrid semantic + keyword search
gbrain get <slug> # read one page
gbrain query "question" --json # search tuned for agent consumption
You can read: the shared agent-memory source, org read-only sources (wiki, handbook), and everything under them. Reads are isolation-enforced server-side; you only ever see sources your client is entitled to.
Writing (durable knowledge only, under YOUR prefixes)
Your client is write-fenced to slug prefixes — your own namespace plus the channels you belong to. Writes outside them are rejected server-side.
# personal durable memory (your namespace):
gbrain put emp-<your-slug>/people/jane-example --content "..."
# shared channel knowledge (channels you are in):
gbrain put chan-eng/decisions/2026-08-database-choice --content "..."
Conventions:
- Write conclusions and durable facts, not chat transcripts. One page per entity/decision/topic; update the page rather than appending near-duplicates.
- Markdown with YAML frontmatter; the brain chunks, embeds, and links it.
- Cross-reference liberally:
gbrain link <from> <to>(from must be in your namespace; linking TO any readable page is fine). - When you learn something channel-relevant in personal work, mirror the
conclusion into the channel prefix with a
(said in <where>)provenance note.
When to reach for the brain
- Any question about the org, a person, a project, a decision, or history →
gbrain searchFIRST, then answer. - You produced knowledge with value beyond this conversation →
gbrain put. - Something looks wrong (auth errors, empty results you don't expect) →
gbrain whoamito confirm which client and scopes you're using, and report its output.
FAQ
Where do the credentials come from?
The skill says they arrive through the deployment's secret handoff from your admin.
Can it check the server settings?
No. The skill says the client does not have admin scope, which is by design.
Is it the same as a personal notebook?
No. The skill describes the brain as the shared, indexed memory, and a scope notebook as the fast personal memory.
Details
Original description by the author
Search and write the company knowledge brain. Use for any question about the org, people, projects, decisions, or history, and to persist durable knowledge beyond this scope's notebook.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9247
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
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.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
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.