跳到正文
Skillpedia
调研31k · #9247

gbrain

它能做什么

这个技能通过 gbrain 命令行工具,将智能体连接到公司的核心知识大脑。适合在共享、可搜索的记忆中保存组织文档和决策的团队。

适用场景

  • ✓当你询问公司的人员、项目、决策或历史时。
  • ✓当你希望保存一条持久的知识,以便其他智能体和人员之后能找到它时。
  • ✓当你在使用其命令之前,需要先在这台机器上设置好大脑时。

技能链接

https://github.com/garrytan/gbrain/blob/master/docs/integrations/qm-harness-snippets/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/garrytan/gbrain/blob/master/docs/integrations/qm-harness-snippets/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在公司知识大脑中搜索我们去年关于调价的决策。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用 gbrain 工具搜索已连接的大脑;在你的管理员提供凭证并完成设置后,它会在你要求时保存笔记。

技术内容(原始 SKILL.md)

作者在 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 search FIRST, then answer.
  • You produced knowledge with value beyond this conversation → gbrain put.
  • Something looks wrong (auth errors, empty results you don't expect) → gbrain whoami to confirm which client and scopes you're using, and report its output.
常见问题

凭证从哪里来?

技能说明,凭证通过部署的密钥交接从你的管理员处获得。

它能检查服务器设置吗?

不能。技能说明,客户端没有管理员权限,这是有意的设计。

它和个人笔记本一样吗?

不一样。技能将大脑描述为共享的、已建立索引的记忆,而范围笔记本是快速的个人记忆。

详情

作者的原始描述

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

热度

GitHub 星标
31k
排名
#9247
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能