/chidi-optimal-brain:vault-sync Optional: what this session was aboutfrom chidi-optimal-brain
Bring the knowledge vault up to date with the work done since the last sync: diff git since the last-synced commit, update or flag stale notes, capture missed decisions, review findings and grill answers, append a session note, and refresh indexes. Use when a work session ends, before a handoff, after a long agent loop, or when the user says sync the vault, update the vault, or the vault is out of date. Reads and writes only this repo and the vault path you configured.
Ships in chidi-optimal-brain. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The ## Vault write-back block (written by /setup-optimal-brain) asks the agent to update the vault as it works. This skill is the safety net: it catches what was missed and finds notes the code has outgrown.
Read .agent/context/knowledge-vault.md (fallback docs/agents/knowledge-vault.md) and .agent/context/project-context.md. Missing: say so and point to /setup-knowledge-vault. Never guess or search for a vault path. Never read .env files, credentials, or secrets.
.agent/context/vault-sync.md (last_synced_commit:). Missing or not in history (git cat-file -e <sha>): use the oldest source_commit in the vault, else ask how far back to go. HEAD is the end. Note uncommitted changes from git status --porcelain separately; don't treat them as synced.git log --oneline <last>..HEAD and git diff --name-status <last>..HEAD.source_paths and source_commit frontmatter, check git diff --quiet <source_commit> HEAD -- <source_paths...>. If vault-stale.mjs is available, node vault-stale.mjs --vault <project folder> --repo . does this for you (read-only, prints JSON). For each stale note:
source_commit, set updated: to today;status: stale and add a one-line > Stale since <short sha>: <paths> changed callout. Never delete a note, and never rewrite text the user wrote (Personal Notes/, or notes without agent provenance).status). Check for an existing note first; update rather than duplicate.{Project}/Research Sessions/YYYY-MM-DD - Session.md: range synced, notes updated, notes flagged stale, notes created, open questions. Brief.last_synced_commit: <HEAD sha> and synced_at: <ISO date> to .agent/context/vault-sync.md (shared, committable).knowledge-vault.md: folders, frontmatter, [[wikilinks]], filename-safe titles (" - " not ":")..agent/context/vault-sync.md.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (chidiokoene/optimal-brain) — no native marketplace selected
npx claudepluginhub p/chidiokoene-mattpocock-skills36 skills in this plugin
/agent-loopAgentic loop discipline. Use when the user wants to loop until done, iterate until tests pass, keep fixing until green, run until verification passes, or mentions red-green-refactor in an iterative fix context./ask-brainRouter for the whole optimal-brain pack: given a task, picks the single best skill or an ordered chain of skills, says why, and says what to skip. Use when the user is unsure which skill to use, asks what to do next or where to start, or describes a task without naming a skill./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.