agentleFS
zitdevszitdevs/vault-skills/skills/brain/SKILL.md

brain

Skill0 starsChanged 3 months agoMITView on GitHub

Load the user's documented standards, processes, and decisions from their Obsidian vault before doing work those notes govern. Use when reviewing code, proposing or changing architecture, writing or reviewing tests, working on a release, or answering \"what did we decide\", \"how do we do X\", \"why is it like this\". Also use when work touches a specific client, employer, or project whose entity-specific rules may apply.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the vault has no CLAUDE.md, start from templates/vault-CLAUDE.md in this plugin's repository and adapt it.

    line 48
  2. Distinctive:

    Before acting inside an entity, check both.

    line 105
  3. Distinctive:

    If a note looks stale, say so and propose an update.

    line 110
  4. Distinctive:

    If no note covers the task, say that plainly rather than inventing a standard and attributing it to the user.

    line 112
  5. Very specific:

    When work produces something durable — a decision with real tradeoffs, a process, a studied concept — offer to write it into the vault.

    line 118

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/brain

The user's second brain lives in an Obsidian vault. This skill loads the parts of it that govern the task at hand, so work follows their documented standards instead of generic defaults.

This skill holds no knowledge of its own. It only knows how to find the vault's knowledge. Every rule lives in the vault and nowhere else — that is the point. Never copy vault content into this file or any other skill; two copies drift and then nobody knows which one is true.

Usage

/brain                    # load the protocol and the index
/brain <topic>            # load notes governing that topic
/brain code review        # e.g. review standards + any entity addendum

Vault location

VAULT="${OBSIDIAN_VAULT:-$HOME/Documents/Obsidian}"

Set OBSIDIAN_VAULT if the vault lives anywhere else. If the path does not exist, stop and ask where the vault is. Do not guess, and do not proceed with generic defaults — silently ignoring the vault is the one failure this skill exists to prevent.

Procedure

1. Read the vault's own manual

bat --plain "$VAULT/CLAUDE.md"

It defines the read/write protocol, the area taxonomy, and the principle/process/decision distinction. It outranks this file. If it and this skill ever disagree, the vault wins — then fix this skill.

If the vault has no CLAUDE.md, start from templates/vault-CLAUDE.md in this plugin's repository and adapt it. Without a manual the vault has no taxonomy, and every skill downstream is guessing.

2. Resolve which notes apply

Discover by frontmatter, not by hardcoded paths, so reorganizing the vault never breaks this skill.

FIND="${CLAUDE_PLUGIN_ROOT}/skills/brain/find-notes.sh"

$FIND 'topic/review'        # by tag
$FIND 'area/core'
$FIND '^type: decision$'    # by note type
$FIND '^type: process$'

Use the script, not plain rg. A line-based search over the vault produces false positives: CLAUDE.md documents the frontmatter schema, and index notes carry templates inside code fences — both look like real frontmatter to rg. The script parses only the block between the opening and closing ---.

Two tag namespaces are expected: area/ (one per entity the user works for or owns, plus personal and core) and topic/ (architecture, testing, review, process, tooling, and so on). The vault's CLAUDE.md lists the actual values in use — read them there rather than assuming.

area/core means the note belongs to the user rather than any entity — it applies everywhere and survives every job change.

3. Routing hints

A fast path, not a substitute for step 2. If a hint misses, fall back to frontmatter search and to Index.md.

TaskLoad
Reviewing a PRtopic/review — core process plus the addendum for that entity
Proposing or changing architecturetopic/architecture
Writing or reviewing teststopic/testing
Anything release-relatedtopic/process + that entity's area/ tag
"What did we decide / why is it like this"^type: decision$, then Index.md
Working on a ticket in a known repo^repo: <name>$ — the engineering notes for it
Work inside one entitythat entity's tree + area/core notes

Always check ^repo: <name>$ when a task touches a repository. Those notes accumulate what past reading and reviews learned about each subsystem — non-obvious behavior, gotchas, what is being built there now. That is context no amount of reading the diff recovers.

4. Always check for an entity addendum

Core processes are tagged area/core and apply everywhere. Entities add rules on top, in their own tree. The core note alone is not the full standard for that entity.

Before acting inside an entity, check both.

Rules

  • The vault is authoritative. If it contradicts your assumption, the vault wins.
  • If a note looks stale, say so and propose an update. Do not quietly work around it.
  • If no note covers the task, say that plainly rather than inventing a standard and attributing it to the user.
  • Non-negotiables belong in the vault, not in this file. A rule the user always applies — an architecture style, a testing stance — is a note tagged area/core, so it can be read, revised, and cited. Hardcoding it here puts a second copy in play, and the two will drift.
  • When work produces something durable — a decision with real tradeoffs, a process, a studied concept — offer to write it into the vault. Follow the write protocol in $VAULT/CLAUDE.md, or delegate to the learn skill.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.