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.
Last scanned: 9/12/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-12T08:24:17.818Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}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 999 GitHub stars.
Yes. second-brain-os passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
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!
⚠️ 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.
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.
Three things live here — pick your entrance:
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
cp -r second-brain-os/scripts ~/brain/scripts
# the folder READMEs are for reading on GitHub, not for the agent
rm ~/brain/.claude/*/README.md ~/brain/scripts/README.md
cd ~/brain && claude
The scripts/ copy is what lets /metrics, /health and /graph-export run
scripts/vault_stats.py and friends from inside the vault. On Windows, use
python where this guide says python3: the python3 name usually resolves to
the Microsoft Store stub and does nothing.
~/brain folder you just copied 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 |
docs/course-*/ |
The agents course: seven modules, prompt to production |
docs/track-*/ |
Five handbooks on the wider craft: graphs, Jev, harnesses, loops, evals |
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 |
plugins/ |
Claude Code plugins — the course's tools, installable in two commands |
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 |
Seven modules from a single prompt to a production agent, built on Google's agent whitepapers and the five-layer frame: what the agent sees, who decides the next step, who sorts the incoming work, what it can reach, and how you know it works. Theory with sources, a practice page in every module, and a day-one plan at the end.
| Module | What it teaches |
|---|---|
| 0 · The map | what an agent is, the five layers, agents vs workflows |
| 1 · Context | attention, caching, the four places, sessions and memory |
| 2 · Loop | goal, checker, stop rule, budget; the production hybrid |
| 3 · The gate | cheap decisions first: classifiers, System One models |
| 4 · Harness | containment, guides, sensors, permissions |
| 5 · Evals | behavioural checks on traces, judged judges, golden sets |
| 6 · Production | gateways, tracing, cost, security, the day-one plan |
The course ships its own tools as a Claude Code plugin — a context auditor, a goal-test generator, a gate finder, a harness auditor, an evals bootstrapper and a loop critic, each doing one module's practice page in your repo:
claude plugin marketplace add undefined-ui/second-brain-os
claude plugin install agents-course@second-brain-os
Everything above is the second brain. The handbooks are the wider craft of building with agents — separate subjects, deliberately compact: eight or nine pages each, current as of September 2026, and every one ends in a hands-on build you can finish in an evening.
| Handbook | What it covers | The build |
|---|---|---|
| Knowledge graphs | GraphRAG, extraction pipelines, stores, wikilinks-as-graph | a queryable graph layer over your own vault |
| Jev engineering | System One models: typed decisions with confidence instead of text | a confidence-gated router, ready for Jev when access lands |
| Agent harnesses | the loop, tools, context engineering, MCP, the landscape | a working harness in ~150 lines |
| Loop engineering | stop conditions, critics, context hygiene, unattended runs | an overnight loop with a ratchet and a mo |