/brain:viewfrom brain
Opens the project Brain graph store as a visual red-ui workspace for exploring artifacts and typed connections. Supports cluster, query, collections, and home views with host-aware rendering.
Ships in 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.
Opens the project's Brain store (.red/brain/brain.rdb by default) as a visual
red-ui workspace. The viewer is read-only from the skill's point of view: it
points red-ui at the RedDB store and never writes, seeds, or mutates Brain data.
Resolve the Brain store, pick a red-ui view, then open it host-aware: embedded red-ui MCP App when available, browser red-ui fallback in terminal hosts.
file://./.red/brain/brain.rdb (repo-relative)..red/brain/config.yaml exists and sets connection_string:, use that
value instead. Support $VAR and ${VAR} references from the process
environment or the workspace root .env, matching the Brain CLI config
contract.file:// connections must resolve to an absolute filesystem path before
opening red-ui.file:// path does not exist, tell the user Brain has no
store to view yet, point them at brain init and brain capture, and stop.
Do not invent a connection or create a store just to view it.Map the user's intent to red-ui's view enum (default cluster):
clusterquerycollectionshomeGUI / MCP-Apps host (Claude Desktop, claude.ai, VS Code, Cursor, etc.):
call the red-ui MCP tool open_red_ui with:
{ "connectionUrl": "<absolute .rdb path or HTTP URL>", "view": "<view>" }
Use the absolute path without a file:// prefix for local files. red-ui can
spawn a local RedDB server for that file and render Brain graph collections in
the embedded app.
Terminal host, or red-ui unavailable / not rendered: MCP Apps need an iframe-capable host. Start a read-only loopback RedDB HTTP server and give the user the browser red-ui URL path to use:
red server --http --http-bind 127.0.0.1:5055 --path <absolute-brain.rdb> --read-only --no-create-if-missing
Then tell the user to open https://ui.reddb.io and connect to
http://127.0.0.1:5055, selecting the same red-ui view. If port 5055 is
busy, choose another loopback port. State clearly that this is the browser
fallback because the current host cannot render the embedded MCP App.
brain_artifacts as graph nodes. Node labels are the
artifact ids; node types are artifact kinds such as decision, concept,
question, note, and source.brain_connections as graph edges. Edge labels are
typed connection kinds such as supports, contradicts, depends_on,
derived_from, related_to, part_of, preceded_by, followed_by,
authored, and tagged.cluster view is the default because it is the graph/connection explorer.
Use collections or query when the user asks to inspect raw tables or run
RedDB queries.brain.rdb just to open a viewer.connectionUrl, browser URLs, or iframe URLs.cluster when the user simply asks to view Brain..rdb path to open_red_ui, for example
/repo/.red/brain/brain.rdb.http://127.0.0.1:5055.home, query, collections, cluster, security. This skill uses
cluster by default and limits user-facing choices to
cluster/query/collections/home.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/captureSave a durable human or project knowledge artifact into the Brain store. Use when the user says "capture", "save", "dump", "remember this", or any phrasing that sends personal context, ideas, decisions, or long-lived knowledge to Brain. Routes to Brain, not Memory./searchSearch Brain artifacts for captured knowledge before answering questions about prior captures, decisions, people, open questions, or plans. Use when the user asks "what do we know about X", "search the brain", or "find what was captured about Y". Routes to Brain, not Memory./statusReport the project Brain store's health — whether Brain initialized in this workspace, the resolved connection string, and how many artifacts and connections are stored. Use when the user says "brain status", "is brain set up", "check brain", or wants to confirm Brain is live before capturing or searching./thinkSynthesize a cited answer from the project Brain — deterministic over captured artifacts with confidence and evidence gaps stated. Use when the user asks what Brain knows, how ideas connect, what supports or contradicts something, or what changed. Routes to Brain, not Memory.npx claudepluginhub reddb-io/red-skills --plugin brainOther plugins' skills for the same job