Agent skill

Brain Bootstrap

by mindmuxai in 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…

Apache-2.0Auto-check passedDevelopment

Install Brain Bootstrap

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

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

GitHub CLI
$ gh skill install mindmuxai/brain.md brain-bootstrap --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-bootstrap .claude/skills/brain-bootstrap && 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-bootstrap
GitHub stars
564
Token cost
~1.8k tokens
SKILL.md length
919 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

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…

  • Works in 3 steps: Existing code — directory structure,… → Existing docs — README, docs/,… → git log — read the commit messages (git…
  • Tasks that involve Project scaffolding
  • SKILL.md covers Step 0 — Pick the mode, Brownfield — synthesize from…, Greenfield — interview the user and Wrap up (both modes)
  • Calls git

What it does

Brain Bootstrap is an agent skill from 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; on a near-empty (greenfield) project interview the user. Every write goes through the brain CLI. Run it after brain-setup.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding. It works with Git and Bash. 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

  • Tasks that involve Project scaffolding

Example prompts

  • “/brain-bootstrap”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Existing code — directory structure, module boundaries, entry points, the tech stack and dependencies (manifest files: package.json…
  2. Existing docs — README, docs/, CONTRIBUTING, design notes. Good for stated intent, goals, and naming.
  3. git log — read the commit messages (git log --oneline -n 200 and spot-read full messages for the interesting ones). Mine them for the real…

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

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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 Bootstrap loads about 1.8k tokens when it runs. Until then it costs about 84 tokens; SKILL.md has 919 words of instructions outside code blocks.

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

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). 919 words, ~1,770 tokens.

Download SKILL.mdSave it as .claude/skills/brain-bootstrap/SKILL.md (or your agent's skills folder).
name
brain-bootstrap
description
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; on a near-empty (greenfield) project interview the user. Every write goes through the `brain` CLI. Run it after brain-setup.

brain-bootstrap

brain-setup scaffolds an empty brain — six root-page templates plus an empty pages/. This skill fills it with real, durable project knowledge for the first time. It is the bridge between "a brain exists" and "the brain is worth reading".

You gather information by reasoning over the project itself — reading code, docs, and git log, or interviewing the user — but you never write the brain by hand. Every landing of knowledge is a brain CLI subcommand.

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. There is no validator and nothing at the file layer can catch a bad manual edit; correctness is guaranteed only by going through the CLI, so a hand edit silently breaks the brain's invariants.

The exact command surface (update-root / create-page / update-truth / reindex / ls …) and the page-category taxonomy live in the brain-page skill — read it before creating or modifying any page. Resolve <brain-page-bundle> to wherever that skill is installed (in the brain.md source repo, skills/brain-page/); define the shell function brain() { node <brain-page-bundle>/bin/brain.mjs "$@"; } (a function is portable across bash and zsh, unlike BRAIN="node …"; $BRAIN …, which only word-splits in bash) and run everything from the project root.

Step 0 — Pick the mode

Inspect the project to decide which path you are on:

  • Brownfield — there is substantial source code, and/or real git log history. There is something to read; go to Brownfield.
  • Greenfield — a near-empty repo: no meaningful source, little or no history. There is nothing to read; go to Greenfield.

When it is genuinely mixed (a little code, a little history), prefer Brownfield for whatever can be inferred, and fall back to interview questions for the parts the code can't tell you.


Brownfield — synthesize from code, docs, and history

Gather from three sources, then synthesize (do not transcribe):

  1. Existing code — directory structure, module boundaries, entry points, the tech stack and dependencies (manifest files: package.json, pyproject.toml, go.mod, Cargo.toml, …). This is your strongest evidence for architecture and stack.
  2. Existing docs — README, docs/, CONTRIBUTING, design notes. Good for stated intent, goals, and naming.
  3. git log — read the commit messages (git log --oneline -n 200 and spot-read full messages for the interesting ones). Mine them for the real decisions that were made over time.
Draft the six root pages

Write each with echo "<body>" | brain update-root <slug> (body on stdin). Lean on ```mermaid blocks (graph / sequenceDiagram / mindmap / gantt) to keep them visual.

  • architecture — layers, modules, boundaries, a mermaid graph. Inferable from code — write it with confidence.
  • stack — domain / choice / rationale table from the dependencies and how they're used. Inferable from code.
  • flow — the end-to-end path of a typical request/operation, a mermaid sequenceDiagram. Inferable where the entry points and call paths are clear.
  • mindmap — main feature branches from the project root, a mermaid mindmap. Inferable from the module/feature layout.
  • background — why the project exists / goals / non-goals / target users. Often NOT inferable from code — see the guardrails.
  • roadmap — milestones, a mermaid gantt. Usually NOT inferable from code — see the guardrails.
Capture key historical decisions as pages

For each genuine decision you can see in the history or the code (e.g. "switched from X to Y", "adopted pattern Z", a deliberate constraint), create a decision page and fill in its understanding:

brain create-page --id <kebab-id> --category decision --title "<one-line decision>" --source "git log / code"
echo "<what was decided, the alternatives, the rationale, the blast radius>" | \
  brain update-truth --id <kebab-id> --summary "captured from project history" --source "git log"

Link related pages and the relevant root area with [[page-id]].

Show full SKILL.md (369 more words)Show less
Quality guardrails (mandatory)
  • Synthesize, don't copy. Combine the three sources into a coherent picture; never paste a README section or a directory listing verbatim.
  • git log → real decisions only. Distill the commits that represent actual choices or turning points. Do not produce a commit-by-commit changelog; routine "fix typo / bump dep" commits are noise.
  • Infer only what the evidence supports. architecture and stack can be inferred from code and dependencies. background and roadmap usually cannot — for anything you can't ground in evidence, mark it low-confidence and ask the user to confirm, or leave it as an explicit open question. Never fabricate goals, history, or plans.
  • Prefer less but accurate. Only sediment knowledge that (a) will still matter in six months and (b) is hard to reconstruct from the code itself. If the code already says it plainly, leave it in the code.

Greenfield — interview the user

There is nothing to read, so switch to an interview. Ask open-ended questions and let the answers drive what you seed. Cover at least:

  • Goal — what is this project for? What problem does it solve?
  • Target users — who is it for?
  • Non-goals — what is explicitly out of scope?
  • Rough shape — the rough form/architecture/stack the user has in mind (may still be loose).

From the answers:

  • Seed background (goal / target users / non-goals) with update-root background — this is the primary greenfield deliverable.
  • If the user already has a sense of the tech choices or milestones, draft stack and/or roadmap as early sketches with update-root. Mark them as provisional. Leave the others as their templates until there's something real to say — don't invent architecture/flow/mindmap for code that doesn't exist yet.

Wrap up (both modes)

  1. Rebuild the index and review what you seeded:

    brain reindex
    brain list-pages
  2. Report back to the user: which root pages you drafted, which decision pages you created, and anything you marked low-confidence / needs confirmation.

  3. Remind the user of the standing rule: all reads and writes go through the brain CLI — never hand-edit a brain file. From here, ongoing knowledge capture flows through the brain-page and brain-ingest skills.

Write the body of root pages, compiled_truth, and timelines in the user's working language; keep technical identifiers (ids, slugs, field names, paths) verbatim.

© 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

Just SKILL.md in skills/brain-bootstrap of mindmuxai/brain.md.

Open the folder on GitHubat commit 8064f33

Compare with similar skills

Brain Bootstrap 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 Bootstrap compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Brain Bootstrap this skillmindmuxai/brain.md564—~1.8kAutomated safety check: PassApache-2.0
Cursor Composer Task DelegateChachamaru127/claude-code-harness3.2k—~4.4kAutomated safety check: NotesMIT
Superset Project Setupsuperset-sh/superset15k—~577Automated safety check: NotesCustom licence
Upgrade Harnessruvnet/metaharness690—~497Automated safety check: PassMIT
Hns Moaiadk Dev Referencemodu-ai/moai-adk1.2k—~937Automated safety check: PassApache-2.0
Openspec AwareChorus-AIDLC/Chorus1.2k—~7.6kAutomated safety check: PassAGPL-3.0

Similar skills

  • Cursor Composer Task Delegate

    Chachamaru127/claude-code-harness

    Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.

    3.2k GitHub stars~4.4k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Superset Project Setup

    superset-sh/superset

    Makes a repository Superset-ready by writing .superset/config.json with setup, teardown and run scripts, then proving it with a real throwaway workspace.

    15k GitHub stars~577 tokensUpdated today
    DevelopmentAuto-check: notes
  • Upgrade Harness

    ruvnet/metaharness

    Drift detection + apply for a scaffolded harness. An agent skill from ruvnet/metaharness.

    690 GitHub stars~497 tokensUpdated today
    DevelopmentAuto-check passed
  • moai-adk-go local dev reference — version management/release process (sec 5), shell-script hook development (sec 7), build & dev commands (sec 10).

    1.2k GitHub stars~937 tokensUpdated today
    DevelopmentAuto-check passed
  • Openspec Aware

    Chorus-AIDLC/Chorus

    OpenSpec-mode authoring for Chorus PM workflows on OpenClaw — the default whenever OpenSpec is usable.

    1.2k GitHub stars~7.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Worktree Cleanup

    vchelaru/FlatRedBall

    Remove a subagent's .claude/worktrees/agent-<id dir after its PR merges.

    578 GitHub stars~810 tokensUpdated 5 days ago
    DevelopmentAuto-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).

    564 GitHub stars~2.7k tokensUpdated 26 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.

    564 GitHub stars~1k tokensUpdated 26 days ago
    Auto-check passed
  • Brain Page

    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.

    564 GitHub stars~2.5k tokensUpdated 26 days ago
    Auto-check passed

Works with

Questions about Brain Bootstrap

What does Brain Bootstrap do?

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…. 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; on a near-empty (greenfield) project interview the user.

When should I use Brain Bootstrap?

Brain Bootstrap fits situations like: tasks that involve Project scaffolding.

How do I install Brain Bootstrap in Claude Code?

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

How do I install Brain Bootstrap in Codex?

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

Can I use Brain Bootstrap 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-bootstrap -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-bootstrap, .gemini/skills/brain-bootstrap, .github/skills/brain-bootstrap and .opencode/skills/brain-bootstrap in your project.

What does Brain Bootstrap need to run?

Going by SKILL.md and its folder, Brain Bootstrap needs the command-line tools its instructions call (git).

Does Brain Bootstrap access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Brain Bootstrap 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 Bootstrap use?

Brain Bootstrap 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 Bootstrap use?

About 1.8k tokens (SKILL.md is roughly 7.1k 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 Bootstrap?

Skills that share tags, products or a category with Brain Bootstrap: Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k stars), Superset Project Setup (superset-sh/superset, 15k stars), Upgrade Harness (ruvnet/metaharness, 690 stars) and Hns Moaiadk Dev Reference (modu-ai/moai-adk, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Brain Bootstrap?

mindmuxai (a GitHub organization) maintains it in mindmuxai/brain.md, which has 564 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.