obsidian-second-brain
Skill này làm gì
Skill này dạy agent cách làm việc trong một kho Obsidian gồm các ghi chú được liên kết, lưu lại những điều quan trọng từ cuộc trò chuyện và giữ các trang liên quan luôn được cập nhật. Skill dành cho người lưu tri thức của họ trong Obsidian.
Khi nào nên dùng
- ✓Khi bạn muốn lưu ghi chú từ một cuộc trò chuyện vào kho Obsidian.
- ✓Khi bạn muốn agent tìm kiếm hoặc cập nhật các trang trong kho hiện có.
- ✓Khi bạn muốn việc bảo trì định kỳ giữ kho nhất quán.
Liên kết skill
https://github.com/eugeniughelbur/obsidian-second-brain/blob/main/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Lưu các ý chính từ cuộc trò chuyện của chúng ta về giá vào kho Obsidian của tôi, và liên kết chúng với các ghi chú giá hiện có.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc tệp hướng dẫn của kho, tìm các trang liên quan và cập nhật chúng thay vì chỉ thêm trang mới. Mâu thuẫn giữa các ghi chú được đối chiếu khi có nguồn mới đến.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Obsidian Second Brain
Claude operates your Obsidian vault as a self-rewriting knowledge base. An evolution of Karpathy's LLM Wiki pattern: sources rewrite existing pages instead of just appending, contradictions reconcile automatically, and scheduled agents maintain the vault while you sleep. Everything worth remembering gets saved. Every update propagates everywhere it belongs.
Quick Start
0. Choose vault access method (in order of preference)
Try these methods in order. Use the first one available:
Method 0 - SessionStart hook (if configured):
If hooks/load_vault_context.py is wired as a SessionStart hook in ~/.claude/settings.json, _CLAUDE.md is injected into context automatically at session start.
Skip step 1 only when the manual is actually in your context, not merely because the hook is configured. Claude Code caps hook context at 10,000 characters, so a larger manual cannot be injected; in that case the hook says so in as many words ("NOT loaded - read it") and you read the file yourself (#270). A vault whose .claude/CLAUDE.md holds @../_CLAUDE.md sidesteps the cap entirely - Claude Code imports that natively at any size.
To wire it: bash scripts/setup.sh "/path/to/vault".
If another Obsidian plugin also holds a SessionStart hook, the injected context opens with a precedence note naming it (#300). Claude Code runs every SessionStart hook and adds each output here, so you may be holding two folder maps and two frontmatter schemas for one vault. The vault's own _CLAUDE.md governs every write. Where the other tooling disagrees, follow the manual and say so in your reply.
Method A - Direct filesystem (default, always works): Use standard file tools (Read, Write, Edit, Glob) against the vault path. The vault is plain markdown, so every operation in this skill works this way with no setup. This is the normal path in Claude Code - the commands below use these tools directly.
Method B - MCP server (optional, mainly for non-Claude-Code clients):
This repo ships its own MCP server at integrations/obsidian-mcp-server/ that exposes the vault as tools (obsidian_search, obsidian_read_note, obsidian_save_note, obsidian_capture, plus curator tools). It exists so other MCP clients - Hermes Agent, Claude Desktop, Cursor - can use the vault as a knowledge layer; in Claude Code itself, Method A is simpler and preferred. If those obsidian_* tools happen to be available in your client, you may use them instead of raw file tools. Setup lives in integrations/obsidian-mcp-server/README.md (it is uv run --no-project --with 'mcp<2' python .../server.py with OBSIDIAN_VAULT_PATH set, not an npx package). Since the bookkeeping change, every write through the server also validates the note, adds the index entry, appends the operation-log line, and runs OBSIDIAN_POST_WRITE_CMD when set - see integrations/obsidian-mcp-server/README.md, "Bookkeeping after writes".
1. First time in a vault → read _CLAUDE.md
Before doing anything in a vault, check if _CLAUDE.md exists at the vault root and read it:
Read <vault>/_CLAUDE.md
If it exists: follow its rules exactly - they override the defaults in this skill. Where _CLAUDE.md is silent, fall back to the defaults below.
If it doesn't exist: use the defaults in this skill, then offer to create one.
Skip this step only if _CLAUDE.md is actually in your context already - the SessionStart hook injects it, but not when the manual is over Claude Code's 10,000-character hook limit, and the hook says which case you are in. If you cannot quote a rule from it, you do not have it: read the file.
2. First time with a new user → run discovery
Glob <vault>/**/*.md
Scan the structure to understand: folder names, template locations, naming conventions, frontmatter patterns. Then read 2-3 existing notes to calibrate writing style before creating anything new.
3. Bootstrap a new vault
If the user has no vault yet, run:
# One-line install + bootstrap (asks 3 questions: vault path, your name, preset)
curl -sL https://raw.githubusercontent.com/eugeniughelbur/obsidian-second-brain/main/scripts/quick-install.sh | bash
# Or manual:
python scripts/bootstrap_vault.py --path ~/path/to/vault --name "Your Name"
# With a preset:
python scripts/bootstrap_vault.py --path ~/my-vault --name "Your Name" --preset executive
python scripts/boo
Câu hỏi thường gặp
Agent học cách kho của tôi được tổ chức như thế nào?
Nó đọc tệp hướng dẫn của kho, tệp mà một script thiết lập liên kết với thư mục kho của bạn.
Nó có thể thay đổi các ghi chú hiện có không?
Có. Các nguồn có thể viết lại trang hiện có, nên ghi chú cũ có thể được cập nhật khi có thông tin mới.
Kho có thể được bảo trì khi tôi vắng mặt không?
Skill mô tả các agent theo lịch chạy nền để bảo trì kho.
Chi tiết
Mô tả gốc của tác giả
Operate any Obsidian vault as a living, self-rewriting second brain (an evolution of Karpathy's LLM Wiki pattern: sources rewrite existing pages, contradictions reconcile automatically, scheduled agents maintain the vault while you sleep). Use this skill whenever the user asks Claude to read, write, update, search, or manage their Obsidian vault - including saving notes from conversation, creating daily entries, updating kanban boards, logging dev work, managing people notes, capturing decisions, tracking deals, or maintaining any vault structure. Also triggers when the user wants to bootstrap
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15039
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Skill tương tự
obsidian-vault-maintainer
394kGiúp agent của bạn giữ gọn kho ghi nhớ kiểu Obsidian, với liên kết wiki hoạt động tốt, thuộc tính nhất quán và các phần tự tạo an toàn.
wiki-maintainer
394kGiúp agent của bạn duy trì wiki bộ nhớ OpenClaw với các trang có thể lặp lại, khối được quản lý an toàn và kiểm tra mâu thuẫn hoặc thiếu sót.
obsidian
394kCho phép agent của bạn đọc, tìm, tạo và sửa ghi chú, công việc, liên kết và thuộc tính trong Obsidian bằng dòng lệnh Obsidian chính thức.