Skip to content
Agent Memory
Skill

/open-second-brain

Use Open Second Brain to read, write, and maintain an agent-owned second brain beside an Obsidian-compatible Markdown vault. The agent reaches its brain memory only through Open Second Brain tools and commands, never through file paths. User-authored notes live wherever the

From plugin
open-second-brain
6186 skills9 hooks

Claude Code

$ npx -y skills add itechmeat/open-second-brain --skill open-second-brain --agent claude-code

SKILL.md

open-second-brain.SKILL.md
name: open-second-brain
description: Use Open Second Brain to read, write, and maintain an agent-owned second brain beside an Obsidian-compatible Markdown vault. The agent reaches its brain memory only through Open Second Brain tools and commands, never through file paths. User-authored notes live wherever the operator names them and are read-only inputs when listed in `notes.read_paths`.

Open Second Brain

Use this skill when a user asks an agent to use, configure, inspect, or maintain Open Second Brain.

Layout

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 tell 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 memory** - agent-writable observing memory. Taste signals, accreted preferences (unconfirmed → confirmed → retired), evidence log, snapshots. Operations go through MCP tools `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 *`.
  • **User-authored notes** - the operator's daily journal, weekly notes, project notes, etc. Folder names are operator-chosen. The agent reads these paths only when they appear under `notes.read_paths` in the brain settings; the agent never writes to them.
  • **Brain settings** - the values every machine of this brain shares (`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.

Core principles

  • Treat the vault as user-owned durable knowledge.
  • Write brain memory only through Open Second Brain tools and commands. Never write to user-authored note folders.
  • Keep raw operational evidence separate from synthesized knowledge: per-event records go to the brain log (`brain_apply_evidence`, `brain_note`), and preferences are promoted by the dream pass (`brain_dream`).
  • Never write secrets, tokens, passwords, private keys, or credential-bearing connection strings.
  • Prefer deterministic CLI commands (`o2b brain ...`, `o2b doctor`, `o2b status`, `o2b store path`) over guessing file paths.

Default workflow

1. Check whether Open Second Brain is configured: `o2b status` or `second_brain_status` MCP tool. 2. Read the machine-local config if available (vault path, agent identity, timezone); `o2b status` prints it. 3. Read the current preferences with `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. 4. Record taste signals as they arrive in dialogue via `brain_feedback` (see the `brain-memory` skill). 5. After producing a durable artifact, check applicable preferences and record evidence via `brain_apply_evidence` (see the `brain-memory` skill). 6. For read access to vault pages by title, use `second_brain_query`.

Search surfaces

Name the surface a question is shaped for, and route to it explicitly:

  • **Generic recall** - `brain_search` runs hybrid keyword + semantic search over raw chunks. Use it for open-ended, topical, or exploratory questions.
  • **Summary surface** - for a question that targets a specific source or an artifact kind (a summary, digest, or other declared `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
Read more
@itechmeat
Ships withopen-second-brain

Open Second Brain is a program that runs on your machine and connects to the AI coding agents you use: Claude Code, Codex, Grok and others.

Stars on GitHub

Momentum

stars in total
618
Star history of itechmeat/open-second-brain on GitHub, a chart by star-history.com

Other skills on open-second-brain.

brain-memory

brain-memory

Record taste signals and apply-evidence events into the Brain observing-memory layer of Open Second Brain. INVOKE this skill (and…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about open-second-brain.

Which coding agents can use open-second-brain?
open-second-brain installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.