Chuyển đến nội dung
Skillpedia
Nghiên cứu31k · #9247

gbrain

Skill này làm gì

Skill này kết nối agent AI với kho tri thức trung tâm của công ty thông qua công cụ dòng lệnh gbrain. Skill dành cho các đội lưu tài liệu nội bộ và quyết định trong một bộ nhớ dùng chung có thể tìm kiếm.

Khi nào nên dùng

  • ✓Khi bạn đặt câu hỏi về con người, dự án, quyết định hoặc lịch sử của công ty.
  • ✓Khi bạn muốn lưu một mẩu tri thức bền vững để agent và người khác tìm lại sau này.
  • ✓Khi bạn cần thiết lập kho tri thức trên máy này trước khi dùng các lệnh của nó.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/garrytan/gbrain/blob/master/docs/integrations/qm-harness-snippets/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tìm trong kho tri thức của công ty quyết định chúng ta đã đưa ra về thay đổi giá năm ngoái.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent dùng công cụ gbrain để tìm trong kho đã kết nối, và lưu ghi chú khi bạn yêu cầu, sau khi thiết lập bằng thông tin xác thực từ quản trị viên.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Thông tin xác thực lấy từ đâu?

Skill cho biết chúng được chuyển qua cơ chế bàn giao bí mật của triển khai, từ quản trị viên của bạn.

Nó có kiểm tra cài đặt máy chủ không?

Không. Skill cho biết client không có quyền quản trị, đây là thiết kế có chủ đích.

Có giống sổ ghi chú cá nhân không?

Không. Skill mô tả kho tri thức là bộ nhớ chung được lập chỉ mục, còn sổ ghi chú theo phạm vi là bộ nhớ cá nhân nhanh.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
31k
Vị trí xếp hạng
#9247
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự