gbrain-advisor
Skill này làm gì
Skill này kiểm tra cách GBrain của bạn được thiết lập và chỉ ra những điều đáng cải thiện nhất. Nó bao gồm các mục như cập nhật phiên bản, tác vụ nền bị đình trệ, độ phủ embedding thấp và thiếu bản sao lưu.
Khi nào nên dùng
- ✓Khi bạn hỏi làm thế nào để khai thác kho tri thức hiệu quả hơn.
- ✓Khi bạn muốn một lần kiểm tra định kỳ đánh dấu những gì đã thay đổi hoặc cần chú ý trong thiết lập.
- ✓Khi bạn muốn biết các bản sao lưu hoặc tác vụ nền của kho tri thức có cần xử lý không.
Liên kết skill
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-daily/skills/gbrain-advisor/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Kiểm tra thiết lập kho tri thức của tôi và cho tôi biết điều quan trọng nhất cần sửa, nhưng đừng thay đổi gì vội.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy một báo cáo tư vấn chỉ đọc, xếp hạng các phát hiện theo mức quan trọng. Nó hiển thị từng phát hiện và lệnh sẽ sửa nó, rồi chờ quyết định của bạn trước khi chạy bất kỳ bản sửa nào.
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 Advisor
Convention: See
skills/conventions/brain-first.md. This skill is the proactive voice of the brain — it tells the owner how to run it better.
Contract
This skill guarantees:
- Read-only.
gbrain advisornever mutates. It computes a ranked list of actions from existing brain state. - Print, never execute. You SHOW the user the findings and ASK before running any fix. The user owns every decision.
- Bounded nagging. On a cadence, surface only what changed or what's critical; don't repeat an ignored low-severity item every run.
When to run
- On demand when the user asks "how do I get more out of this brain?"
- On a weekly cadence via the cron recipe below (even idle brains get a "here's how to run this better" ping).
- Monthly, the advisor also surfaces the backup-coverage verdict (
gbrain backup status— which knowledge repos have no git remote); relay any warn.
How to run it
gbrain advisor --json
Exit code is the severity gate (E2): 0 clean, 1 warn, 2 critical. The JSON
payload is { version, generated_at, worst, findings: [...] }. Each finding has:
severity—critical|warn|infotitle— one-line why-it-mattersfix.command_argv— the exact command to fix it (a structured argv)fix.dispatch_id— present when the fix is safe to run via--apply
What to do with the findings
Read the findings, highest severity first.
Summarize the top 1-3 to the user in their own channel/voice. Lead with any
criticalitem (e.g. pending migrations).For each, show the
fix.command_argvand ask whether to run it.If they say yes and the finding has a
fix.dispatch_id, you may run it locally with an explicit confirm:gbrain advisor --apply <dispatch_id>--applyis local-only, runs the fix as a structured argv (no shell), and confirms first. Findings without adispatch_idare not auto-runnable — run theirfix.command_argvyourself after the user agrees.Never run a fix the user didn't approve.
Cron recipe (weekly checkup)
Install a weekly job via the cron-scheduler skill. Keep the prompt THIN — the
job just reads this skill and runs the advisor:
- Schedule: weekly, one quiet-hours-respecting slot (e.g. Monday 09:00 local).
- Job prompt:
Read skills/gbrain-advisor/SKILL.md and run gbrain advisor --json. If anything is critical or new since last run, ping me with the top items and the exact fix commands. Ask before fixing. - Idempotent: the advisor is read-only, so a double-fire is harmless.
The advisor records a local run history, so on each fire you can tell the user what is new since last run rather than re-listing everything.
Output Format
When you surface advisor findings to the user, lead with severity and keep it scannable:
🧠 gbrain checkup — 2 things worth your attention
CRITICAL Schema migrations are pending.
Fix: gbrain apply-migrations --yes (want me to run it?)
WARN gbrain 0.44 is available (you're on 0.43).
Fix: gbrain upgrade
- One block per finding, highest severity first.
- Always show the exact
fixcommand and ASK before running it. - If nothing is pressing, say so in one line ("brain looks healthy") — don't manufacture work.
When it fails
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
- A
criticalfinding (pending migrations) carries a fix such asgbrain apply-migrations --yes: ask the user before running it; findings without adispatch_idare not auto-runnable. gbrain advisorcannot reach the brain (GBRAIN_DB_ACCESSmarker): route to the db-repair skill instead of reporting "no findings".
Anti-Patterns
- Running a fix without asking. The advisor is read-only by contract. Never
run
--apply(or anyfixcommand) without the user's explicit yes. - Dumping the raw JSON at the user. Translate findings into their voice; lead with what matters.
- Re-nagging ignored low-severity items every run. Use the "new since last run" delta; respect the user's prior non-action.
- Treating
infolikecritical. Only block/insist oncriticalfindings (pending migrations).infois a gentle nudge. - Calling the MCP
advisorop for workspace install state. Over MCP the advisor returns brain-state si
Câu hỏi thường gặp
Nó có tự sửa vấn đề không?
Không. Nó hiển thị các phát hiện và hỏi trước khi chạy bất kỳ bản sửa nào.
Nó kiểm tra bao lâu một lần?
Nó có thể chạy theo lịch hằng tuần, và tránh lặp lại các mục ưu tiên thấp chưa thay đổi.
Các mức nghiêm trọng có ý nghĩa gì?
Các phát hiện được đánh dấu là info, warning hoặc critical, để bạn thấy điều quan trọng nhất trước.
Chi tiết
Mô tả gốc của tác giả
Proactive "make the most of gbrain" coaching. Runs `gbrain advisor` on a cadence and pings the user with the top high-leverage actions for their brain: version drift, pending migrations, stalled jobs, low embed coverage, setup smells, and uninstalled brain skills. Read-only; always asks before fixing.
repo: garrytan/gbrain
Độ phổ biến
- Sao GitHub
- 31k
- Vị trí xếp hạng
- #9276
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
gbrain
31kCho phép agent của bạn tìm trong kho tri thức dùng chung của công ty các thông tin về con người, dự án và quyết định, và lưu ghi chú bền vững vào đó.
brain-ingest-gate
31kKiểm tra nội dung mới với kho tri thức hiện có trước khi thêm vào, để tránh trùng lặp và xác định các thực thể được nêu tên trước.
brain-link-discipline
31kĐảm bảo agent của bạn kèm một liên kết hoạt động đến mỗi trang kho tri thức mà nó báo cáo, trong cùng một tin nhắn, để bạn mở được ngay.
brain-ops
31kCung cấp cho agent của bạn thói quen cốt lõi cho kho tri thức: kiểm tra ngữ cảnh có sẵn trước, lưu ghi chú rõ ràng kèm nguồn và liên kết các trang liên quan.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.