← ClaudeAtlas

updatelisted

Update OneBrain system files from GitHub to the latest version. Use when the user wants to pull the latest OneBrain skills, hooks, and agents — 'update OneBrain', 'pull latest version'. Do NOT use for: updating vault notes (edit directly), teaching memory (use learn), or vault health checks (use doctor).
onebrain-ai/onebrain · ★ 10 · AI & Automation · score 77
Install: claude install-skill onebrain-ai/onebrain
# Update Update OneBrain system files from GitHub to the latest version. ## Version Check 1. Read current version from vault's `plugin.json` (`[agent_folder]/../../.claude-plugin/plugin.json` or `.claude/plugins/onebrain/.claude-plugin/plugin.json`) 2. Read `update_channel` from `onebrain.yml` (default: `stable` if field absent). Map to GitHub branch: - `stable` → `main` - `next` → `next` - `N.x` (e.g. `1.x`, `2.x`) → `N.x` 3. Read new version from repo's `plugin.json` on the mapped branch using `WebFetch` — never use `git` commands (they hang on Windows waiting for credentials): `https://raw.githubusercontent.com/onebrain-ai/onebrain/{branch}/.claude/plugins/onebrain/.claude-plugin/plugin.json` where `{branch}` is the mapped branch from step 2. Parse the `version` field from the JSON response. (⚠️ JSON parsing — see Known Gotchas: WebFetch may summarize; use `curl -fsSL` if a version mismatch is suspected.) 4. If equal → say: ✅ Already up to date — v{X.X.X}. and stop 5. If newer → WebFetch `https://raw.githubusercontent.com/onebrain-ai/onebrain/{branch}/CHANGELOG.md`; display before proceeding (do not skip or summarize — and if the fetched content already looks paraphrased, re-fetch via `curl -fsSL`; see Known Gotchas): ``` ────────────────────────────────────────────────────────────── 🔄 Update Available — v{current} → v{new} ────────────────────────────────────────────────────────────── {changelog entry verbatim} ``` Then AskU