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
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-gbrain-advisor-6149d53da47b ,按照其中的说明把「gbrain-advisor」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
This skill guarantees:
gbrain advisor never mutates. It computes a ranked list of
actions from existing brain state.gbrain backup status — which knowledge repos have no git remote); relay any warn.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 --applyRead the findings, highest severity first.
Summarize the top 1-3 to the user in their own channel/voice. Lead with any
critical item (e.g. pending migrations).
For each, show the fix.command_argv and 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>
--apply is local-only, runs the fix as a structured argv (no shell), and
confirms first. Findings without a dispatch_id are not auto-runnable — run
their fix.command_argv yourself after the user agrees.
Never run a fix the user didn't approve.
Install a weekly job via the cron-scheduler skill. Keep the prompt THIN — the
job just reads this skill and runs the advisor:
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.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.
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
fix command and ASK before running it.--apply (or any fix command) without the user's explicit yes.info like critical. Only block/insist on critical findings
(pending migrations). info is a gentle nudge.advisor op for workspace install state. Over MCP the
advisor returns brain-state signals only; uninstalled-skill findings are a
local-CLI concern.