brain
Skill3 starsChanged 7 months agoMITView on GitHub
Second brain knowledge base. Ingest raw materials, compile wiki, query knowledge, lint, or discover cross-domain connections. Usage: /brain <command>. Commands: ingest, compile, query, lint, connect, status, add. Trigger phrases: 'add to my brain', 'what does my brain say about', 'brain ingest', 'brain compile', 'connect the dots', 'knowledge base'.
27 other projects use a version of this.
Adopted by
Most recently taken up by
- kevinreber/claude-code-configstheir own version, first seen Nov 29, 2026
- gntrs/workflowtheir own version, first seen Nov 29, 2026
- aidemd-mcp/servertheir own version, first seen Nov 29, 2026
- tyler-berggren/tb-claude-kittheir own version, first seen Nov 12, 2026
- jzhao234/big-braintheir own version, first seen Nov 8, 2026
- jonmagic/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use validate, design and 2 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Microsoft AzureSkillvalidate
Run the full CI validation workflow locally before submitting a PR. Use this as a final check to ensure all Azure DevOps CI pipeline steps will pass.
Also in 3 projects that use this
Microsoft AzureSkilldesign
Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.
Also in 3 projects that use this
NVIDIASkillresearch
Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.
Also in 4 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- keli-wen/agy-staff★ 944same name
- H-mmer/pentest-agents★ 815same name
- Anantys-oss/koan★ 51same name
- henriquecaner/brain-agent★ 13same name
- Aiqbee/aiqbee-ai★ 7same name
- jonmagic/skills★ 6same name
- tonydzi/second-brain-starter-kit★ 6same name
- aidemd-mcp/server★ 4same name
- gntrs/workflow★ 4same name
- gufranco/claude-engineering-rules★ 3same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- morning-coffeeSkill
- night-dutySkill
- progressSkill
- pulse-checkSkill
- zenSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 12 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
If no command is clear, ask the user what they'd like to do.
- Very specific: line 48
Read the schema at personal/second-brain/CLAUDE.md
- Distinctive: line 51
Read it fully (never chunk)
- Distinctive: line 53
Create or update wiki articles following the article format in the schema
- Distinctive: line 54
Add backlinks to related articles
- Very specific: line 60
If the user provides content inline (not as a file), save it to raw/notes/YYYY-MM-DD-<slug>.md first, then ingest.
- Very specific: line 65
Read wiki/_index.md for current state
- Distinctive: line 78
Read those articles fully
- Distinctive: line 80
If insufficient info, suggest what raw material would help
- Very specific: line 93
Write report to outputs/lint-report-YYYY-MM-DD.md
- Distinctive: line 100
Read the full index and all article summaries
- Distinctive: line 101
Look for non-obvious connections:
- Very specific: line 106
Write "Connections Report" to outputs/connections-YYYY-MM-DD.md
- Distinctive: line 136
Always read the CLAUDE.md schema before any operation
- Distinctive: line 137
Never fabricate knowledge — every wiki claim traces to a source
- Distinctive: line 138
Write for future-Sarthak who has no memory of original context
- Very specific: line 140
Use Obsidian-compatible markdown ([[backlinks]], standard frontmatter)
- Distinctive: line 141
Keep the index under 200 entries
“Common” is measured: kept by at least 6 in 10 of the 22 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.
Files
What This Skill Does
Manages Sarthak's personal second brain — a Karpathy-style LLM knowledge base at personal/second-brain/. Raw materials go in, interconnected wiki articles come out.
Command Detection
Parse the user's message to determine the command:
- ingest: "brain ingest", "ingest this", "add to my brain", "process the raw folder"
- compile: "brain compile", "recompile", "rebuild the wiki"
- query: "brain query ...", "what does my brain say about ...", "search my knowledge"
- lint: "brain lint", "check my wiki", "health check"
- connect: "brain connect", "connect the dots", "find patterns", "cross-domain insights"
- status: "brain status", "how big is my brain", "brain stats"
- add: "brain add ...", "save this to brain", "remember this insight" (adds quick note to
raw/notes/)
If no command is clear, ask the user what they'd like to do.
Setup
The knowledge base lives at: personal/second-brain/
personal/second-brain/
├── CLAUDE.md ← Schema (rules for the LLM)
├── raw/ ← Source materials (human curates)
│ ├── articles/ ← Web articles, blog posts
│ ├── papers/ ← Research papers, PDFs
│ ├── tweets/ ← Interesting tweets/threads
│ ├── conversations/ ← Key insights from conversations
│ ├── notes/ ← Quick brain dumps
│ └── media/ ← Images, screenshots, diagrams
├── wiki/ ← Compiled knowledge (LLM writes)
│ ├── _index.md ← Master index
│ └── _changelog.md ← What changed and when
└── outputs/ ← Query responses, reportsAlways read personal/second-brain/CLAUDE.md first — it contains the full schema with article format, rules, and domain tags.
Command: INGEST
- Read the schema at
personal/second-brain/CLAUDE.md - Scan
raw/for new or unprocessed materials - For each source:
- Read it fully (never chunk)
- Extract key concepts, insights, decisions, mental models
- Create or update wiki articles following the article format in the schema
- Add backlinks to related articles
- Add source attribution
- Update
wiki/_index.md - Append to
wiki/_changelog.md - Report: N sources processed, N articles created, N articles updated
If the user provides content inline (not as a file), save it to raw/notes/YYYY-MM-DD-<slug>.md first, then ingest.
Command: COMPILE
- Read the schema
- Read
wiki/_index.mdfor current state - Scan ALL
raw/materials - Identify gaps and stale articles
- Regenerate/update articles
- Rebuild index
- Run lint
- Report results
Command: QUERY
- Read the schema
- Read
wiki/_index.md - Identify relevant articles based on the question
- Read those articles fully
- Synthesize answer grounded in wiki content
- If insufficient info, suggest what raw material would help
- Save response to
outputs/query-YYYY-MM-DD-<slug>.md
Command: LINT
- Read the schema
- Scan all wiki articles checking for:
- Broken
[[backlinks]] - Orphan articles (nothing links to them)
- Missing source attributions
- Missing or incorrect domain tags
- Stale content
- Broken
- Auto-fix safe issues
- Write report to
outputs/lint-report-YYYY-MM-DD.md - Show summary to user
Command: CONNECT
This is the magic — finding cross-domain patterns.
- Read the full index and all article summaries
- Look for non-obvious connections:
- A trading lesson that applies to product building
- An engineering pattern that mirrors a business strategy
- An AI technique useful for content creation
- Mental models that span domains
- Write "Connections Report" to
outputs/connections-YYYY-MM-DD.md - Present the most surprising/valuable connections to the user
Command: STATUS
- Count files in
raw/by subdirectory - Count articles in
wiki/ - Count articles by domain tag
- Show total word count
- Show last ingest/compile date from changelog
- Present a clean summary
Command: ADD
Quick capture — save an insight without full ingestion:
- Take the user's text
- Save to
raw/notes/YYYY-MM-DD-<slug>.mdwith basic frontmatter:--- added: YYYY-MM-DD source: conversation --- <user's text> - Confirm saved, suggest running
/brain ingestlater to compile it into the wiki
Important Rules
- Always read the CLAUDE.md schema before any operation
- Never fabricate knowledge — every wiki claim traces to a source
- Write for future-Sarthak who has no memory of original context
- Cross-link aggressively — connections are the value
- Use Obsidian-compatible markdown (
[[backlinks]], standard frontmatter) - Keep the index under 200 entries
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.

