Agent skill

Brain Page

by mindmuxai in mindmuxai/brain.md

Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files.

Apache-2.0Auto-check passedAgent Workflows

Install Brain Page

skills CLI
$ npx skills add mindmuxai/brain.md --skill brain-page -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mindmuxai/brain.md brain-page --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mindmuxai/brain.md.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/brain-page .claude/skills/brain-page && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
brain-page
GitHub stars
566
Token cost
~2.5k tokens
SKILL.md length
1,075 words
Files
7
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files.

  • Agent Workflows work in your project
  • SKILL.md covers Invoking the CLI, Read operations, The five page categories and Page id conventions, plus 4 more sections
  • Runs JavaScript scripts from its folder; calls node

What it does

Brain Page is an agent skill from mindmuxai/brain.md. Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files. Read it before creating or modifying any page or root page.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files.

It sits in Agent Workflows. The repository describes itself as: A persistent, file-based memory layer for coding agents — give Claude Code, Codex & others a project brain (durable decisions, requirements, constraints) via a zero-dependency CLI. The licence is Apache-2.0.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/brain-page”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 8064f33. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.chatgpt.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Brain Page loads about 2.5k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 1,075 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~59
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mindmuxai/brain.md at commit 8064f33, republished under its Apache-2.0 licence (© mindmuxai). 1,075 words, ~2,500 tokens.

Download SKILL.mdSave it as .claude/skills/brain-page/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
brain-page
description
Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency `brain` CLI; never hand-edit brain files. Read it before creating or modifying any page or root page.

brain-page

This skill is the operating manual for working with a project's brain under the Open Project Brain Standard. The protocol overview lives in the project's root BRAIN.md; here we expand the category taxonomy and the exact command for every operation.

The model is simple: everything goes through the brain CLI.

  • Read = brain read subcommands (brain-dir / list-pages / read-page <id> / read-root <slug>) — location-independent, no need to know where the brain lives.
  • Write = brain write subcommands. Every mutation (create / update / append / archive / tag / root-page rewrite / reindex) is correct-by-construction, so frontmatter can never be mis-shaped and a compiled_truth rewrite can never silently skip its timeline entry.

NEVER hand-edit any file under the brain directory. All reads and writes MUST go through the brain CLI. Manual edits are unsupported and illegitimate. Correctness is guaranteed by construction inside the CLI — there is no validator, and nothing at the file layer can catch or undo a bad manual edit, so a hand edit silently breaks the brain's invariants. Always reach for a brain subcommand instead of an editor.

Invoking the CLI

The CLI ships inside this skill bundle at bin/brain.mjs. It is zero-dependency Node (ESM) — run it directly:

node <this-skill-bundle>/bin/brain.mjs <subcommand> [flags]

Resolve <this-skill-bundle> to the directory this SKILL.md lives in. In the brain.md source repository itself that path is skills/brain-page/bin/brain.mjs; when the skill is installed globally it is wherever setup linked it (e.g. ~/.claude/skills/brain-page/bin/brain.mjs). Run all commands from the project root.

The CLI resolves the brain directory itself: it reads brainRoot from ./.mindmux/preferences.json when present (absolute or relative to the project root), otherwise falls back to ./brain. A missing file, broken JSON, or absent field all fall back silently. Run brain brain-dir to see the resolved directory and its source.

Run node <bundle>/bin/brain.mjs help for the full flag reference.

Read operations

Define a shell function (do not use BRAIN="node <bundle>/bin/brain.mjs"; $BRAIN … — VAR="node x"; $VAR only word-splits in bash; zsh, macOS's default shell, treats node /…/brain.mjs as a single command name and fails with exit 127. A function is portable across bash and zsh, so keep this form):

brain() { node <bundle>/bin/brain.mjs "$@"; }
brain init            # ensure BRAIN.md, scaffold empty brain, default-wire CLAUDE.md + AGENTS.md
brain wire            # default wire both agent config files (optional --agent subset / all)
brain install-hooks   # opt-in Claude Code SessionStart snapshot (project-local .claude/settings.json)
brain uninstall-hooks # remove that SessionStart hook
brain install-hooks --agent codex   # Codex project-local hooks.json; startup/resume/compact
brain uninstall-hooks --agent codex # remove only the Codex hook
brain brain-dir       # print the resolved brain directory + its source (brainRoot / default)
brain list-pages      # list every page: id / title / category / status
brain read-page <id>  # print brain/pages/<id>.md
brain read-root <slug> # print a root page brain/<slug>.md
Session-companion discipline (while coding)
  • Start of a task: load relevant brain context (list-pages / read-page / read-root).
  • When a decision/constraint settles: capture it immediately via the CLI — do not wait to be asked.
  • Pure implementation with no new decision: do not write to the brain.
  • When overturning a prior conclusion: update-truth and/or append-timeline --kind reversal (or archive-page).
  • Never hand-edit brain files.

The five page categories

Each page's category must be one of:

categoryboundary (what to write)typical compiled_truth structure
projectThe state and intent of a self-contained piece of work / sub-project / module — the part that can't be read straight from the codegoal, scope, current status, key constraints
conceptA concept / term / mechanism that needs a shared, lasting understandingdefinition, why it's this way, boundaries and counter-examples
decisionAn established judgment and its reasoning (the most common)what was decided, alternatives, rationale, blast radius
personA relevant person / role, their preferences and responsibilitieswho they are, what they care about, collaboration conventions
referenceAn external resource / object of analysis worth keepingwhat it is, key takeaways, links, implications for this project

When in doubt, most knowledge lands in decision or concept.

Page id conventions

  • Use kebab-case for id, semantically clear, e.g. markdown-over-sqlite, auth-flow.
  • The id must equal the filename (brain/pages/<id>.md, without the extension). The CLI enforces this.
  • Once an id is referenced via [[ ]] it should stay stable; renaming means updating every reference and re-running lint-links.

Write operations (every one is a CLI subcommand)

Assume the brain shell function defined above (brain() { node <bundle>/bin/brain.mjs "$@"; }) and that you are in the project root.

Create a page
brain create-page --id <kebab-id> --category <category> --title "<one-line title>" \
  [--tags a,b] [--status active] [--source "<where this came from>"]

Generates brain/pages/<id>.md from the template (frontmatter + <!-- compiled_truth --> + a visible ## Timeline seeded with one kind: decision creation entry), then reindexes. Fill in the real compiled_truth afterwards via update-truth.

Show full SKILL.md (449 more words)Show less
Rewrite compiled_truth (atomic with its timeline entry)
echo "<new compiled_truth markdown>" | brain update-truth --id <id> \
  --summary "<what changed and why>" [--source "<source>"]

Reads the new compiled_truth from stdin, rewrites the compiled_truth section (canonical marker: <!-- compiled_truth -->), and in the same atomic write appends a kind: decision entry to the visible ## Timeline section and bumps updated. Changing the understanding and recording why are inseparable — you cannot do one without the other.

Append a timeline entry (append-only)
brain append-timeline --id <id> --kind <decision|evidence|reversal|note> \
  --summary "<one line>" [--source "<source>"] [--affects a,b]

Appends to the end of the timeline only; existing entries are never touched.

Archive a page
brain archive-page --id <id> [--reversal-summary "<why it was overturned>"]

Sets status: archived, optionally appends a kind: reversal entry, then reindexes.

Change tags
brain set-tags --id <id> --tags a,b,c
Rewrite a root page
echo "<root page body markdown>" | brain update-root <slug>

<slug> must be one of the six fixed root pages: background / architecture / flow / mindmap / stack / roadmap. The CLI validates the slug, rewrites the whole brain/<slug>.md, regenerates the frontmatter, and guarantees the canonical H1 heading is present. Root pages have no timeline — their history lives in git. Lean on ```mermaid blocks (graph / sequenceDiagram / mindmap / gantt) to keep them visual.

Index / checks
brain reindex              # rebuild brain/index.md (also run automatically by the write commands above)
brain lint-links           # verify current [[page-id]] links resolve

lint-links treats Page compiled_truth as the current knowledge graph and root page bodies as current root knowledge. It intentionally does not lint Page timeline entries, because timeline is append-only provenance and may contain historical syntax examples or obsolete references.

Why there is no validator

There is deliberately no validate command. Because every write goes through this CLI, the failure modes a validator used to guard are structurally impossible: frontmatter is always CLI-generated, and update-truth rewrites compiled_truth and appends its timeline entry in one atomic write. The guarantee holds only as long as you never hand-edit a brain file — there is nothing to catch a manual edit afterwards. reindex and lint-links remain as optional hygiene, not load-bearing gates.

Cross-page references

  • Always reference another page with [[page-id]] (the bare id, without brackets, is for filenames / CLI flags).
  • After adding references, run lint-links to confirm nothing is broken.
  • Do not wrap root-page slugs, file paths, ordinary words, or uncertain entities in [[ ]].

Codex context recovery

Hook support targets Codex CLI 0.153.4+, Node 18+, and POSIX sh/awk. Trust the project and review the installed hook with /hooks; installation does not enable features or grant trust. Uninstall before moving a project, then reinstall. Codex snapshots contain at most 8 KiB of complete listing rows; run list-pages for the full index and read-page <id> for details. Hook failures are non-blocking.

With Astra native notes/history available, keep relevant page IDs and unresolved task state in notes, use history for earlier task evidence, and re-read current brain pages after context rollover. Do not copy task history into the brain. Experimental context management is separately enabled with features.context_management.experimental_mode = true and a new task; check current eligibility. Automatic experimental-rollover delivery is not yet runtime-verified; explicit CLI reads remain the fallback. Hooks never write native notes or brain pages.

© mindmuxai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files in skills/brain-page of mindmuxai/brain.md.

  • SKILL.md
  • bin/brain.mjs
  • lib/brain.mjs
  • test/brain.test.mjs
  • test/cli-hooks.test.mjs
  • test/cli-init-wire.test.mjs
  • test/installer.test.mjs

Open the folder on GitHubat commit 8064f33

Compare with similar skills

Brain Page next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Brain Page compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Brain Page this skillmindmuxai/brain.md566—~2.5kAutomated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79689 repos~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed

More from mindmuxai/brain.md

  • Brain Setup

    mindmuxai/brain.md

    Bootstrap the Open Project Brain Standard into the current project — prefer brain init (ensure BRAIN.md, scaffold empty brain brainRoot-aware, default-wire CLAUDE.md + AGENTS.md).

    566 GitHub stars~2.7k tokensUpdated 29 days ago
    Auto-check passed
  • Brain Bootstrap

    mindmuxai/brain.md

    Seed a freshly-scaffolded brain with real project knowledge — on an existing (brownfield) project read the code, docs, and git log to draft the six root pages and capture key historical decisions…

    566 GitHub stars~1.8k tokensUpdated 29 days ago
    Auto-check passed
  • Brain Ingest

    mindmuxai/brain.md

    The process for digesting a conversation, document, or research result, classifying it, and writing it down as brain content (a root-page update or a new/updated page) through the brain CLI.

    566 GitHub stars~1k tokensUpdated 29 days ago
    Auto-check passed

Categories

Questions about Brain Page

What does Brain Page do?

Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files. md. Operating manual for reading and writing a project's brain — every read and write goes through the bundled zero-dependency brain CLI; never hand-edit brain files.

When should I use Brain Page?

Brain Page fits situations like: agent Workflows work in your project.

How do I install Brain Page in Claude Code?

Run `npx skills add mindmuxai/brain.md --skill brain-page -a claude-code`. Or copy the skill folder (skills/brain-page in mindmuxai/brain.md) into .claude/skills/brain-page in your project. Claude Code loads it when a task matches its description.

How do I install Brain Page in Codex?

Run `npx skills add mindmuxai/brain.md --skill brain-page -a codex`. Or copy the skill folder (skills/brain-page in mindmuxai/brain.md) into .agents/skills/brain-page in your project. Codex loads it when a task matches its description.

Can I use Brain Page in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mindmuxai/brain.md --skill brain-page -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/brain-page, .gemini/skills/brain-page, .github/skills/brain-page and .opencode/skills/brain-page in your project.

What does Brain Page need to run?

Going by SKILL.md and its folder, Brain Page needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js.

Does Brain Page access the network?

SKILL.md names 1 domain. As links in the text: learn.chatgpt.com. This is read from the text; nothing was executed.

Is Brain Page safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Brain Page use?

Brain Page is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Brain Page use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Brain Page?

Skills that share tags, products or a category with Brain Page: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Brain Page?

mindmuxai (a GitHub organization) maintains it in mindmuxai/brain.md, which has 566 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 11, 2026.

Source: mindmuxai/brain.md on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.