brain-in-a-box / vault-skeleton
CLAUDE.md16 starsChanged 6 months agoMITView on GitHub
Cette note est pour Claude. Pour toi : ouvre « Commence ici ». This folder is the person's second brain: their notes, which you read and write when started here. The global ~/.claude/CLAUDE.md also applies. This file adds Brain-specific context. Language: the one Profile/soul.md names. Until the onboarding fills it, the language your session start names, else the one the person writes in. On open, read in this order BEFORE responding to anything: 1. Profile/soul.md — personality, values, style 2.…
- Reads credentials
In this repository8 other files it gives its agents.
- company-skeleton/CLAUDE.mdCLAUDE.md
- brain-boostSkill
- controleSkill
- convert-documents-to-markdownSkill
- guide-moiSkill
- html-artifactSkill
- importer-memoireSkill
- quick-researchSkill
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Before answering about a past decision/context/person, query instead of guessing:
- Very specific: line 43
Always use gbq — it's the safe universal wrapper for every gbrain command (reads avoid the PGLite lock hang, writes wait cleanly).
- Very specific: line 70
When you write or update a page, end it with a short ## See also section (2-5 wikilinks to genuinely related pages, one short reason each).
- Distinctive: line 87
Before saying "done" on a Brain edit:
- Very specific: line 93
Don't summarize here. Point to the file/folder/command where the depth actually lives (a path, a gbq search, a file pattern) — never a …
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cette note est pour Claude. Pour toi : ouvre « Commence ici ».
Brain — personal second brain
This folder is the person's second brain: their notes, which you read and write when started here.
The global ~/.claude/CLAUDE.md also applies. This file adds Brain-specific context.
Language: the one Profile/soul.md names. Until the onboarding fills it, the language your session start names, else the one the person writes in.
SessionStart — REQUIRED
On open, read in this order BEFORE responding to anything:
Profile/soul.md— personality, values, styleProfile/memory.md— key decisions + recent contextProfile/lessons.md— past corrections to never repeatProfile/about.md— who they are. Not a developer (or not said yet)? Plain words, no jargon nor acronym, one step at a time; they never type a command or edit a file: you do it, after saying what in one sentence.
Rule #1 ABSOLUTE — Capture corrections (blocking)
The correction-detector.py hook (UserPromptSubmit) detects corrections. When it injects ⚠️ CORRECTION DETECTED, BEFORE anything else:
- Apply the correction in the current response
- Append a line to
Profile/lessons.mdunder today's header (## YYYY-MM-DD) - Confirm visibly, in their language:
✓ noted in lessons.md(French:✓ noté dans lessons.md) - Only then continue
Format: - **[short context]** → rule: [what to do] (when: [trigger])
Memory recall — GBrain (gbq)
Before answering about a past decision/context/person, query instead of guessing:
~/.local/bin/gbq query "<natural-language question>" # semantic search over the vault
~/.local/bin/gbq search "<keyword>" # fast keyword search
~/.local/bin/gbq skillify <url-or-file> # draft a SKILL.md from content
~/.local/bin/gbq brainstorm "<question>" # bisociation idea generatorAlways use gbq — it's the safe universal wrapper for every gbrain command (reads avoid the PGLite lock hang, writes wait cleanly). Cite the returned slug. The index refreshes every night (sync + dream cycle). See Profile/stack.md.
Vault structure
| Folder | Content |
Profile/ | Identity, rules, business, stack (permanent) |
Team/ | Humans on the team — one file per person (gstack-style entity) |
Agents/ | AI agents on the team — same schema as Team/, both first-class |
Decisions/ | One file per meaningful decision (YYYY-MM-DD-<slug>.md) |
Skills/ | Procedures in gstack SKILL.md format (YAML triggers + workflow) |
Guides/ | Procedures Bibo's guide walked the person through in a software, saved by them (created with the first) |
Journal/ | Daily notes YYYY-MM-DD.md (auto) |
Projects/ | Active projects (roadmap, status) |
Clients/ | Actifs/, Prospects/ |
Resources/ | Templates/, reusable |
Commence ici.md | The person's map of this folder, in plain French: keep it true when the structure changes |
Wikilinks — how the graph gets built
Link pages with bare-basename wikilinks: [[Page-Name]] — no folder path, no
.md, case-insensitive. The nightly extract turns them into graph edges
(gbq backlinks <slug> to read them back). Path-qualified links
([[Projects/Page-Name]]) break resolution on some write paths — avoid them.
When you write or update a page, end it with a short ## See also section
(2-5 wikilinks to genuinely related pages, one short reason each). A page
nobody links to is invisible to graph traversal. Few good links > many weak.
Routing — where to write
- Correction →
Profile/lessons.md(Rule #1) - Meaningful decision worth answering "why X?" in 6 months →
Decisions/YYYY-MM-DD-<slug>.md - New teammate (human) →
Team/<name>.md· new agent →Agents/<name>.md - New procedure / skill →
Skills/<slug>.md(gstack-compatible SKILL.md format). To make Claude Code run it on its own, also install it as~/.claude/skills/<slug>/SKILL.md(only place Claude Code loads skills from) - Business/project info →
Profile/business.mdorProjects/<name>.md - Tools/env →
Profile/stack.md
Forced Verification (Brain-adapted)
Before saying "done" on a Brain edit:
- Valid markdown
- No committed secret (.env, key, token)
- If editing lessons.md/memory.md → grep that the line is actually there
Where depth lives
Don't summarize here. Point to the file/folder/command where the depth actually lives (a path, a gbq search, a file pattern) — never a conclusion that ages.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

