重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
obsidian by delphine-l/claude_global
npx skills add https://github.com/delphine-l/claude_global --skill obsidian提供将 Claude 工作流与 Obsidian 知识库集成的专业指导,包括使用 Obsidian 基于 Markdown 的系统进行笔记创建、任务管理和知识组织。
此技能分布在多个文件中。需要时加载相关文件:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
obsidian CLI 命令 (1.12+) 而非 bash/cat 模式。参见 cli-reference.md$OBSIDIAN_VAULT 环境变量进行直接文件访问;CLI 使用 vault=<name> 选项[[note-name]] 来连接相关想法#project/feature)进行组织关键:在 Obsidian 中创建任何笔记时,始终询问用户他们希望将其保存在何处。切勿自行决定位置,即使它看起来显而易见。
原因:用户了解其知识库的组织方式。假设一个位置意味着他们稍后需要重新组织。
任何笔记创建的工作流程:
唯一例外:当 .claude/project-config 已根据先前用户选择指定了位置时,用于项目会话笔记。
黄金法则:如果你即将向 Obsidian 知识库写入文件,先停下来询问用户它应该放在哪里。
始终在会话/每日笔记中包含 dump 标签。这对于以下操作至关重要:
tag:#dump/consolidate-notes 进行归档工作流新会话文件的 Python 模板:
f.write("---\n")
f.write("type: session\n")
f.write(f"project: {PROJECT_NAME}\n")
f.write(f"date: {date_str}\n")
f.write("tags:\n")
f.write(" - session\n")
f.write(" - dump\n") # 必需
f.write("status: completed\n")
f.write("---\n\n")
每个笔记必须具有 YAML frontmatter,至少包含:
---
type: session | planning | reference | todo | moc | development | analysis
project: project-name
status: active | in-progress | completed | archived
tags:
- relevant-tags
created: YYYY-MM-DD
---
有关完整的属性模式,请参见 best-practices.md。
有关详细的 MOC 指导,请参见 best-practices.md。
# 检查知识库位置
echo $OBSIDIAN_VAULT
# 应返回类似内容:/Users/username/Documents/Notes
# 如果未设置,请添加到 ~/.zshrc 或 ~/.bashrc
export OBSIDIAN_VAULT="/path/to/your/vault"
Obsidian 现在附带原生 CLI (obsidian)。对于创建、读取、追加和搜索笔记,优先使用 CLI 命令而非 bash 模式。
# 验证 CLI 是否可用
obsidian version
# 列出知识库
obsidian vaults verbose
# 定位特定知识库
obsidian files vault="My Vault"
完整的 CLI 命令参考,请参见 cli-reference.md。
obsidian vault 或 echo $OBSIDIAN_VAULT)obsidian folders 或 obsidian files)dump 标签使用 CLI:
obsidian create name="my-note" path="projects/my-note.md" template="session" open
# 或者使用内联内容:
obsidian create name="my-note" content="---\ntype: session\ntags:\n - dump\n---\n\n# Content"
使用 bash(用于复杂的多行内容):
cat > "$OBSIDIAN_VAULT/projects/my-note.md" <<'EOF'
---
type: session
tags:
- dump
---
# Content
EOF
有关笔记模板,请参见 templates.md。
由 /safe-exit 和 /safe-clear 命令使用:
.claude/project-config 读取项目配置以获取知识库路径session-saves/ 目录中创建笔记type: session、dump 标签的 frontmatter当会话文件夹有 5 个以上笔记或在项目里程碑时:
archived/daily/完整的整合工作流,请参见 vault-management.md。
当重组知识库时:
tree 命令验证详细的重组步骤,请参见 vault-management.md。
project-name/
├── TO-DOS.md
├── session-saves/
├── archived/
│ ├── daily/
│ └── monthly/
└── [project-specific folders]
[[Note Name]] # 维基链接
[[Note Name|Display Text]] # 带别名的维基链接
[[Note#Heading]] # 指向标题的链接
#tag #project/feature # 标签
- [ ] Task to do # 待办任务
- [x] Completed task # 已完成任务
> [!note] # 标注
> Content here
完整的语法参考,请参见 reference.md。
记住:目标是构建一个可搜索、相互链接的知识库,随着每次 Claude 会话而增长。从简单开始,根据需要添加结构。
每周安装
50
仓库
GitHub 星标
10
首次出现
2026年1月24日
安全审计
安装于
opencode44
gemini-cli44
codex44
cursor43
github-copilot41
cline40
Expert guidance for integrating Claude workflows with Obsidian vault, including note creation, task management, and knowledge organization using Obsidian's markdown-based system.
This skill is split across several files. Load the relevant file when needed:
obsidian CLI commands (1.12+) over bash/cat patterns when possible. See cli-reference.md$OBSIDIAN_VAULT environment variable for direct file access; CLI uses vault=<name> option[[note-name]] to connect related ideas#project/featureCRITICAL : When creating ANY note in Obsidian, ALWAYS ask the user where they want it saved. Never decide the location yourself, even if it seems obvious.
Why : The user knows how their vault is organized. Assuming a location means they'll need to reorganize later.
Workflow for ANY note creation:
Only exception : Project session notes when .claude/project-config already specifies the location from a previous user choice.
Golden Rule : If you're about to write a file to the Obsidian vault, STOP and ask the user where it should go first.
ALWAYS include the dump tag in session/daily notes. This is essential for:
tag:#dump/consolidate-notesPython template for new session files:
f.write("---\n")
f.write("type: session\n")
f.write(f"project: {PROJECT_NAME}\n")
f.write(f"date: {date_str}\n")
f.write("tags:\n")
f.write(" - session\n")
f.write(" - dump\n") # REQUIRED
f.write("status: completed\n")
f.write("---\n\n")
Every note must have YAML frontmatter with at minimum:
---
type: session | planning | reference | todo | moc | development | analysis
project: project-name
status: active | in-progress | completed | archived
tags:
- relevant-tags
created: YYYY-MM-DD
---
For the full property schema, see best-practices.md.
For detailed MOC guidance, see best-practices.md.
# Check vault location
echo $OBSIDIAN_VAULT
# Should return something like: /Users/username/Documents/Notes
# If not set, add to ~/.zshrc or ~/.bashrc
export OBSIDIAN_VAULT="/path/to/your/vault"
Obsidian now ships with a native CLI (obsidian). Prefer CLI commands over bash patterns for creating, reading, appending, and searching notes.
# Verify CLI is available
obsidian version
# List vaults
obsidian vaults verbose
# Target a specific vault
obsidian files vault="My Vault"
For the full CLI command reference, see cli-reference.md.
obsidian vault or echo $OBSIDIAN_VAULT)obsidian folders or obsidian files)dump tag if it's a session noteUsing CLI:
obsidian create name="my-note" path="projects/my-note.md" template="session" open
# Or with inline content:
obsidian create name="my-note" content="---\ntype: session\ntags:\n - dump\n---\n\n# Content"
Using bash (for complex multi-line content):
cat > "$OBSIDIAN_VAULT/projects/my-note.md" <<'EOF'
---
type: session
tags:
- dump
---
# Content
EOF
For note templates, see templates.md.
Used by /safe-exit and /safe-clear commands:
.claude/project-config for vault pathsession-saves/ directorytype: session, dump tagWhen session folder has 5+ notes or at project milestones:
archived/daily/For the full consolidation workflow, see vault-management.md.
When restructuring the vault:
tree commandFor detailed reorganization steps, see vault-management.md.
project-name/
├── TO-DOS.md
├── session-saves/
├── archived/
│ ├── daily/
│ └── monthly/
└── [project-specific folders]
[[Note Name]] # Wikilink
[[Note Name|Display Text]] # Wikilink with alias
[[Note#Heading]] # Link to heading
#tag #project/feature # Tags
- [ ] Task to do # Task
- [x] Completed task # Done task
> [!note] # Callout
> Content here
For full syntax reference, see reference.md.
Remember : The goal is to build a searchable, linked knowledge base that grows with each Claude session. Start simple, add structure as needed.
Weekly Installs
50
Repository
GitHub Stars
10
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode44
gemini-cli44
codex44
cursor43
github-copilot41
cline40
AI界面设计评审工具 - 全面评估UI/UX设计质量、检测AI生成痕迹与优化用户体验
58,500 周安装