/open-second-brain:open-second-brainfrom open-second-brain
Reads, writes, and maintains an agent-owned second brain alongside an Obsidian-compatible Markdown vault. Use when the agent needs to access or manage its brain memory, settings, or user-authored notes.
Ships in open-second-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.
None: SKILL.md is the whole skill.
Use this skill when a user asks an agent to use, configure, inspect, or maintain Open Second Brain.
Open Second Brain keeps everything the agent generates on its own in its brain memory, and stores that memory itself. On a machine switched to the brain store the memory lives in the store; on a machine still on the legacy layout it is a tree inside the vault. Never read, create or edit those files by hand, and never assume where they are: the store block of second_brain_status says which layout this machine uses (migration.switched), and o2b store path names the store's location. After an update, Open Second Brain moves a machine still on the legacy layout into the store on its own, in the background (migration.automatic in the same block says whether it is pending, running, waiting, failed or done); never run the migration yourself, and when the session start says it failed, tell the user the command the notice names. Two machines never migrate on their own, so do not ask the user to wait there: one that opted out (auto_store_migration: false, so migration.automatic.automatic is false) and one the user rolled back (migration.automatic.state is rolled_back); on both the user moves it when they choose. If o2b store path reports that the store does not exist yet, the user first runs o2b store init. Then the user runs o2b brain migrate-store --dry-run, then o2b brain migrate-store. The exception is the note-lifecycle family (brain_note_lifecycle, brain_scaffold_stub), which acts on a user-note path the caller names and can move a note to a top-level vault directory, Archive/.
brain_feedback, brain_apply_evidence, brain_dream, brain_brief, brain_query, brain_doctor - see the brain-memory skill for the calling protocol. CLI counterparts: o2b brain *.notes.read_paths in the brain settings; the agent never writes to them.notes.read_paths, the dream gates, primary_agent, guardrails.*, the decision_model.enabled opt-out). Read them with brain_settings (action: get or list) or o2b brain settings get|list. The operator changes them with o2b brain settings set|unset; an agent can use brain_settings (action: set or unset). An agent never overrides a value the operator set: on a machine switched to the brain store the tool refuses with human_value_in_force; on a machine still on the legacy layout, where the settings file records no author, a value that differs from the shipped default counts as the operator's and is refused the same way. Operator-only keys are refused with operator_only_setting on every machine, whether or not the operator set them: the whole integrity block, notes.read_paths, vault.ignore_paths and vault.include_paths, write_binding.path_prefixes, the sessions capture patterns, the guardrails promotion thresholds, instruction-file ceiling and trust and owner-scope toggles, and the decision_model.enabled opt-out, which only the operator turns back on. A setting of one machine (snapshots, storage, embeddings, decision-model endpoints) is refused with the machine-config key to set instead.brain_apply_evidence, brain_note), and preferences are promoted by the dream pass (brain_dream).o2b brain ..., o2b doctor, o2b status, o2b store path) over guessing file paths.o2b status or second_brain_status MCP tool.o2b status prints it.brain_context (CLI: o2b brain export --format llms-txt). When a task needs a location, ask o2b store path (store root, partitions, this device's state directory) instead of building a path.brain_feedback (see the brain-memory skill).brain_apply_evidence (see the brain-memory skill).second_brain_query.Name the surface a question is shaped for, and route to it explicitly:
brain_search runs hybrid keyword + semantic search over raw chunks. Use it for open-ended, topical, or exploratory questions.schema.page_types type), reach for the summary surface: search by source or filter by artifact kind rather than running a generic search over raw chunks. brain_search detects this structurally and returns surface: "summary" on the response as an advisory route hint; a source-targeted query uses a source:<path> token and an artifact-kind query uses a kind:<type>/type:<type> token whose value is a declared page type. The hint never changes ranking - it names the intended surface so the agent asks the right way.brain_search returns decision_model.answerable, pass its probability to brain_recall_gate or brain_context_pack as decision_answerable together with the scores and match_quality. decision_answerable.disagrees: true on the verdict means search again with other words, or say the vault may not cover the question; the level and action stay as they are.skills_attach offers skills for the current turn; when the operator configured the optional skills decision-model use it may be decision-model assisted (the result then carries a decision_model field). Cite its offer_id on get_skill either way.If a write operation might affect anything outside the brain memory, ask for explicit confirmation. When in doubt, record through the brain tools rather than editing a vault file.
Decision-model verdicts (decision_model on brain_hygiene scan dedup findings, doctor alias candidates and brain_tension verify) are advisory only: merges, dismissals and resolutions still need an explicit action.
To label a note, call brain_labels suggest before assign; suggest never assigns, and a null suggestion means no confident value.
brain-memory skill — when and how to call brain_feedback / brain_apply_evidence.o2b store path and the store block of second_brain_status — where the brain store, its partitions and this device's state live.docs/plans/2026-05-15-brain-observing-memory.md (in the repo) — full design.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub itechmeat/open-second-brain --plugin open-second-brain6 skills in this plugin
/brain-memoryRecord taste signals and apply-evidence events into the Brain observing-memory layer of Open Second Brain. INVOKE this skill (and call `brain_feedback`) the moment the user expresses a preference, dislike, correction, or rule in dialogue — "don't do X", "use A instead of B", "I prefer Y", "X is wrong here", or any explicit imperative that should outlive the current turn. SEPARATELY invoke (and call `brain_apply_evidence`) right after you produce a durable artifact (code shipped, file written, content drafted, config change) and at least one active preference (`brain_context` lists them) has a `scope` that plausibly applies — record whether you `applied` or `violated` it. SKIP only for casual chat, exploration without a stated rule, read-only inspection, and trivial edits. When a preference plausibly applies but you are unsure, RECORD with `note: "speculative; <reason>"` rather than skipping — the dream pass discards single-event speculative entries that do not recur, so coverage costs less than missing the signal. WRITE the `principle` and `note` fields in the same natural language the user has been speaking in this session; technical identifiers (`topic` slug, `pref_id`, `scope`) stay English./codegraph-partnerUse when the user explicitly mentions codegraph, asks structural code questions such as callers/callees/impact, asks where a symbol is defined, asks what breaks if a symbol changes, or asks for an architectural overview of a code repository. Skip for prose-only or vault-only questions./decision-model-setupSet up, evaluate or turn off the optional Open Second Brain decision-model feature (typed judgments that rerank search, pick skills, pre-filter extract-signals turns, filter recalled notes and annotate dedup, tension, label and answerable proposals). INVOKE when the user mentions decision models, Jev, TypeSafe, OpenRouter or Vercel decisions, the `decision_model_*` config keys, or after `o2b decision-model check` reports an error, a warning or a hint. SKIP when the user only asks conceptual questions about decision models or compares providers without intent to set up; answer those directly and change nothing./embeddings-setupBring Open Second Brain semantic search online — embedding API key, sqlite-vec extension, first reindex, optional periodic refresh. INVOKE when the user mentions "embeddings", "semantic search", "vector index", or after `o2b search check` reports `vec_extension: unavailable`, `embedding_key: missing`, or any line in its `recommendations:` block. SKIP when the user is asking conceptual questions about embeddings or comparing providers without intent to set up — answer those directly./schema-authorUse when adding, renaming, reviewing, or explaining Brain schema tokens, aliases, prefixes, link types, extractability, or expert routing in Open Second Brain vaults.Other plugins' skills for the same job