by undefined-ui
An AI second brain that maintains itself. Full guide, starter vault, agent skills and scripts for a self-organizing knowledge base in Claude Code and Obsidian.
# Add to your Claude Code skills
git clone https://github.com/undefined-ui/second-brain-osGuides for using ai agents skills like second-brain-os.
See how second-brain-os compares with popular alternatives.
second-brain-os is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by undefined-ui. An AI second brain that maintains itself. Full guide, starter vault, agent skills and scripts for a self-organizing knowledge base in Claude Code and Obsidian. It has 52 GitHub stars.
second-brain-os's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/undefined-ui/second-brain-os" and add it to your Claude Code skills directory (see the Installation section above).
second-brain-os is primarily written in HTML. It is open-source under undefined-ui on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh second-brain-os against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
See comparison
A knowledge base that an AI agent builds and maintains for you, in plain markdown files you own. Everything you read, watch and save gets turned into linked wiki pages, connected to everything already there, and you can ask it questions.
This repo is the full version of the guide: the concepts, the setup, the vault template, the agent skills, the scripts, and the resources. Free, no signup, nothing to install beyond Obsidian and an agent.
Read it on the web: undefined-ui.github.io/second-brain-os — the full guide with search and navigation, plus every vetted link in one filterable page.
You save things with the intention of coming back. You never do. Bookmarks, screenshots, read-later queues and half-filled Notion pages accumulate without compounding, because filing and linking them is boring work that humans stop doing after two weeks.
Hand that work to an agent and the system stays alive. That is the whole idea.
One evening. Nine steps, each with a full page behind it.
# copy the starter vault, skills, commands and agents
git clone https://github.com/undefined-ui/second-brain-os.git
cp -r second-brain-os/vault-template ~/brain
mkdir -p ~/brain/.claude
cp -r second-brain-os/skills ~/brain/.claude/skills
cp -r second-brain-os/commands ~/brain/.claude/commands
cp -r second-brain-os/agents ~/brain/.claude/agents
cd ~/brain && claude
~/brain with "Open folder as vault"raw/, run /ingestThen feed it ten more sources before judging it. The graph is not interesting at five pages and it is hard to look away from at fifty.
Full walkthrough: Setup.
you raw/ agent wiki/
┌───────┐ ┌──────────────┐ ┌────────────┐ ┌──────────────┐
│ clip │ ──────> │ articles │ ───> │ ingest │ ───> │ sources/ │
│ save │ │ transcripts │ │ extract │ │ concepts/ │
│ dump │ │ pdfs │ │ link │ │ entities/ │
└───────┘ │ chat exports │ │ lint │ │ synthesis/ │
└──────────────┘ └────────────┘ └──────────────┘
│ │
│ ask anything │
└─────────────────────┘
Raw material is an archive you never read. The wiki is the artifact, written in plain language, one idea per page, densely linked. New sources update existing pages instead of piling up beside them, which is why the vault gets better as it grows rather than just bigger.
Alongside the wiki sits a project layer: one folder per project, each with its
own CLAUDE.md and an Inputs / Process / Outputs / Feedback pipeline. The
wiki holds what you know, the projects hold what you are doing, and they feed
each other. The two layers covers why keeping
them separate matters more than it sounds.
| Folder | What it holds |
|---|---|
docs/ |
The guide. Ten sections, from the concept to troubleshooting |
vault-template/ |
A starter vault: wiki structure, project pipeline, CLAUDE.md and page templates |
skills/ |
18 agent skills, one per workflow in the guide |
commands/ |
72 slash commands, scoped entry points into those skills |
agents/ |
6 subagents, four of them read-only by design |
scripts/ |
Dependency-free Python for link checking, stats and graph export |
resources/ |
Tools, repos, papers and reading worth your time |
examples/ |
Real vaults and real output |
Ten sections, 77 pages, written to be followed rather than skimmed. From the concept through setup, capture, structure, the graph, automation, retrieval, publishing, and what to do when each of them breaks.
| Section | What it covers |
|---|---|
| Concepts | what the pattern is and why the old note systems died |
| Setup | Obsidian, Claude Code, CLAUDE.md, MCP, projects, git |
| Ingestion | articles, video, PDFs, chat exports, voice, backfilling |
| Structuring | page types, linking rules, schema, contradictions |
| Graphs | what the graph is for, typed links, GraphRAG, metrics |
| Agents | roles, schedules, hooks, guardrails |
| Retrieval | query patterns, search, context budget |
| Outputs | writing, reports, publishing, learning |
| Maintenance | linting, review cadence, git, privacy, scaling |
| Troubleshooting | the failures everyone hits, with fixes |
This setup is opinionated. The three rules that matter most, and why:
Nothing is ingested until it is linked. A page that lands unconnected is invisible within a week. Linking is the entire value, so it happens in the same run or the ingest is not finished.
Contradictions are recorded, never overwritten. When a new source disagrees with a page, both positions stay, with dates and sources. The history of what you believed and why is the one thing your vault has that a search engine does not.
No vector database until you need one. A personal corpus is small and already structured. Structured pages plus links answer questions that chunk similarity cannot, at zero infrastructure cost. When RAG earns its place covers the threshold.
Anyone who reads a lot and retains less than they want to: researchers, engineers, writers, students, people who watch three hours of technical video a week and remember none of it.
It is not for team wikis, it is not a Notion replacement, and it will not organise a vault you never add to.
Everything here is markdown files, wikilinks and SKILL.md files. It works with
Claude Code, and with any agent that reads files. Obsidian is a viewer for the
graph, not a dependency. If you walk away from every tool named in this repo,
you keep the folder and everything in it.
The source document, and the research behind the design decisions in this guide.
| Source | What it gives you |
|---|---|
| Karpathy's llm-wiki gist (4 Apr 2026) | The pattern everything here builds on. Short, written as an idea file to paste into your agent rather than as a spec. Read it first. |
| From Local to Global: GraphRAG arXiv:2404.16130 | Why chunk retrieval fails on questions about a whole corpus, which is exactly what people want from a second brain. Code: microsoft/graphrag. |
| HippoRAG arXiv:2405.14831 | Graph retrieval with personalised PageRank for multi-hop questions. The closest published analogue of an agent walking links outward. |
| Lost in the Middle arXiv:2307.03172, TACL | The empirical reason not to paste your whole vault into context, and the basis for the context budget rules. |
| Andy Matuschak's notes | Evergreen notes, written in public. Also the strongest argument against this approach: if the writing is the thinking, delegating it means not doing it. |
| How to Take Smart Notes (Ahrens) | Zettelkasten. Atomic notes and dense linking still hold; the manual labour is what killed it for most people. |
| Building a Second Brain (Forte) | Where the term comes from, and PARA. Most of the book is about maintenance work an agent removes. |
Full notes: reading.md and papers.md.
Obsidian plugins ranked by installs from the official community stats, September 2026. The full catalog is in plugins.md and tools.md.
| Purpose | Pick | Installs |
|---|---|---|
| Agent in the editor | Claudian | 2.0M |
| Agent in the editor | Copilot | 1.8M |
| Suggests links | Smart Connections | 1.2M |
| MCP access | Local REST API with MCP | 712K |
| Queries over frontmatter | [Dataview](https://github.com/blacksmithgu/obsidian- |