gbrain
できること
このスキルは、gbrainコマンドラインツールを通じて、AIエージェントを会社の中央のナレッジブレインに接続します。組織の文書や決定事項を、共有の検索可能な記憶に保っているチーム向けです。
使う場面
- ✓会社の人、プロジェクト、決定事項、歴史について質問するとき。
- ✓他のエージェントや人があとで見つけられるように、永続的な知識を保存したいとき。
- ✓コマンドを使う前に、このマシンでブレインを設定する必要があるとき。
スキルのリンク
https://github.com/garrytan/gbrain/blob/master/docs/integrations/qm-harness-snippets/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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 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.
よくある質問
認証情報はどこから来ますか?
管理者からの、デプロイのシークレットの受け渡しを通じて届くとこのスキルは説明しています。
サーバーの設定は確認できますか?
いいえ。このスキルによると、クライアントには管理者の権限がなく、それは設計によるものです。
個人用のノートと同じですか?
いいえ。このスキルは、ブレインを共有の索引付きの記憶とし、スコープ付きノートを素早い個人用の記憶として説明しています。
詳細
作者による元の説明
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
コメント
- …
このリポジトリの他のスキル
brain-ingest-gate
31k重複を避け、名前付きのエンティティを先に解決するため、新しい内容をナレッジブレインに追加する前に、既存のブレインと照合するようエージェントを支援します。
brain-link-discipline
31kエージェントが報告する各ブレインのページについて、同じメッセージの中で動くリンクを必ず含め、すぐに開けるようにします。
brain-ops
31kナレッジブレインの基本的な手順をエージェントに与えます。まず既存の文脈を確認し、出典つきで明示的なメモを保存し、関連するページをリンクします。
concept-synthesis
31k散らばった多数の概念ページを、階層化され重複が除かれた、アイデアの地図に変えます。各アイデアが時間とともにどう発展したかも示します。