Work with Obsidian-style Markdown vaults and local knowledge bases. Use when the user needs to organize notes, add frontmatter, repair links, design vault wo...
编程
Obsidian CLI Plugins
试用Obsidian vault automation for configured vaults such as `obsidian-2026`: vault status/doctor, host Git sync/status with Obsidian Git plugin fallback only whe...
它能做什么
Obsidian vault automation for configured vaults such as `obsidian-2026`: vault status/doctor, host Git sync/status with Obsidian Git plugin fallback only whe...
技能文档
Obsidian CLI Plugins
Operating Model
Use the bundled Python scripts as the stable interface. All executable code and launchers must live under scripts/; do not add root-level compatibility scripts. When a workflow needs repeatable parsing, Git coordination, attachment handling, or note edits, extend scripts/obsidian_cli_plugins/ instead of writing ad hoc shell snippets.
Run doctor first on a new host, container, SSH session, OpenClaw runtime, or unfamiliar Agent runtime. Return and consume JSON for cross-agent handoff, and stop on ok=false, reason, nonzero return codes, unmerged, or merge_head.
Plugin Relationship
This skill is the required component for Obsidian functionality. It owns vault discovery, Git preflight, record creation, attachment copying, staged-attachment consumption, and sync.
The obsidian-media-claim OpenClaw plugin is optional. It does not replace this skill and cannot create Obsidian records by itself. Its main purpose is to claim media-only channel uploads before OpenClaw sends them to the LLM, stage readable media paths for this skill, and avoid unnecessary token spend. If the plugin is absent, text records and explicit local --attach records still work through this skill, but media-only-then-text channel uploads need manual/runtime staging and may otherwise involve the model.
Trigger Rules
Use this skill when the user is operating a real Obsidian vault, especially a configured vault such as obsidian-2026.
Strong triggers:
- Explicit skill or tooling:
$obsidian-cli-plugins,obsidian_workflows.py,obs_record_sync.py,sync_openclaw.py. - Vault operations:
使用 vault ...,obsidian-2026,doctor, Obsidian 状态, host Git status/sync, pull/push/commit inside a vault. - Obsidian content workflows: daily/weekly/monthly/quarterly/yearly journals, Tasks todos,
今日新增待办,今日待办,记录/记一条, QuickAdd records, attachments copied into notes, safe vault reads/searches. - Project record workflows when tied to Obsidian or a vault:
01_project, 项目文件, 项目记录, 创建项目文件, 查看项目结构对象,project-template-structure,analyze-project-record,project-record-sync,target_id,template_structure,记到<项目>, or project-file updates such as 功能需求、非功能需求、决策记录、项目任务、项目问题. - Obsidian plugin/native commands: Journals, Tasks plugin, Linter,
commands --plugin,official-commands,run. Useobsidian-git:*command IDs only as a fallback when the hostgitexecutable is not found.
Conditional triggers: plain words such as 记录, 任务, 项目, 笔记, Markdown, 同步, 附件, or 搜索 require Obsidian/vault/journal/plugin/project-file context before using this skill.
Use obsidian-vault-maintainer only for OpenClaw memory-wiki compatibility, especially requests that explicitly mention memory-wiki render mode or openclaw wiki obsidian ....
Do not use this skill for generic project management, generic Markdown editing, unrelated Git operations, database/business records, or screen/audio/video recording unless the result is explicitly going into an Obsidian vault.
Quick Start
Use these commands as representative entry points. For common requests, load references/fast-paths.md first.
python3 /scripts/obsidian_workflows.py doctor
python3 /scripts/obsidian_workflows.py tasks show --period day --date today
python3 /scripts/obsidian_workflows.py add-task-sync --period day --date today --kind auto --text ""
python3 /scripts/obsidian_workflows.py record-sync --mode inline --period day --date today --text ""
python3 /scripts/obs_record_sync.py --mode file --period day --date today --text "" --analysis-json ''
python3 /scripts/obsidian_workflows.py project-template-structure --project ""
python3 /scripts/obsidian_workflows.py analyze-project-record --project "" --text "" --prompt-only
python3 /scripts/obsidian_workflows.py project-record-sync --project "" --text "" --analysis-json ''
Configure per host or agent with environment variables instead of editing scripts:
export OBSIDIAN_VAULT=obsidian-2026
export OBSIDIAN_VAULT_PATH=~/git/obsidian-2026
export OBSIDIAN_BIN=obsidian
Use --vault current or --vault auto to target the single currently open vault from Obsidian config. Use --vault-path for one-off calls when environment variables are unavailable.
Reference Routing
User-facing and Agent-facing examples live under docs/:
docs/user-usage.md: user utterance examples grouped by feature.docs/agent-usage-examples.md: matching Agent script examples and handling rules.
Load only the reference needed for the request. Start with references/fast-paths.md for common operations, then load the smallest specific file:
references/fast-paths.md: common request routing and high-frequency commands.references/runtime-sync.md: runtime config, Git sync, plugin command IDs, security gates, portability, and cross-agent handoff.references/task-query.md:今日新增待办, full today todo reports, and weekly todo reports.references/task-add.md: adding tasks, date/tag inference, journal creation, and placement rules.references/record-workflows.md: inline records, file-mode records, attachments, and staged media handoff.references/record-body.md: file-mode record body sections, formatter behavior, and unified LLM analysis fields.references/vault-safety.md: safe read/search/summarization of arbitrary vault content or files outside20_plan/.references/openclaw.md: OpenClaw install/sync, channel media compatibility, phone-client multi-image/video input, and media-only messages followed by later text records.references/official-cli.md: native Obsidian CLI command lookup beyond installed community plugin command IDs.references/extensions.md: adding workflow support for newly installed Obsidian plugins.references/field-guide.md: onboarding a new Agent, reviewing the vault directory map, or updating the skill from real-session lessons.references/tasks.mdandreferences/workflows.md: compatibility indexes only; prefer the specific files above.
Execution Rules
- On multi-vault hosts, inspect
doctor.configured_vaultsanddoctor.resolved_vault; use--vault currentonly when the single-open-vault result is clear. - Use
safe-readorsafe-searchbefore returning vault content. Otherwise applyreferences/vault-safety.mdand redact sensitive content. - Use
add-task-syncfor task additions andrecord-syncfor record additions unless the user explicitly asks for local-only writes. - For
记录with no explicit period/date, write an inline record to today's daily journal记录section with the original text unchanged. Loadreferences/record-workflows.mdbefore changing record behavior. - Use file-mode records only for separate cards/notes, analysis, long-term capture, knowledge processing, or any attachment/media workflow. Load
references/record-body.md; for staged or cross-agent media, also loadreferences/openclaw.md. - For media files uploaded in earlier channel messages, treat images, videos, audio, and files as one staged media workflow. Prefer staged media created by
obsidian-media-claimwhen that optional plugin is installed; otherwise require manual/runtime staging with readable local paths. First callattachment-pending --ttl-hours 48with the stable conversation/sender--batch-keywhen available, then consume the returnedselectorwith file-modeobs_record_sync.py --staged-attachment "" --type mixed --require-attachment. Do not useattachment-list --batch-key default, stale staged ids from model memory, or direct cache directory reads. - For file-mode semantic analysis, obtain the shared prompt/schema via
analyze-record, use the Agent application's own LLM/model, validate with--normalized-onlywhen useful, and pass model-produced--analysis-json. Do not present hand-built JSON as semantic analysis. - For project notes under
01_project/, useproject-template-structureoranalyze-project-recordfirst. The current project/template headings and fragment templates produce a standardtemplate_structurewithtarget_idvalues. The Agent application's own LLM/model must output project record JSON using one of thosetarget_idvalues, thenproject-record-syncwrites it with--analysis-json. Do not bypass the project templates or hand-build semantic analysis JSON. - Project template parsing uses
markdown-it-pywhen available for CommonMark-compatible heading tokens and line maps; if it is not installed, the scripts fall back to the built-in heading parser so users are not required to install optional dependencies. project-record-syncopens the updated project note and runs Obsidian Linter (obsidian-linter:lint-file) before Git commit/push unless explicitly passed--no-lintfor a controlled local-only test.- If a supplied attachment has no readable local path, stop with
record-attachment-required,attachment-path-unavailable, orunsupported-channel-attachment-recordinstead of writing a partial record. - Before
pull,push,commit-sync, or note edits, rungit-status; stop on conflict state. Preferadd-task-sync,record-sync, orgit_preflight_cleanso hostgitclean/pull/push/commit sequencing is enforced. Fall back to Obsidian Git plugin commands only when the hostgitexecutable is not found, not when host Git returns a conflict, auth, pull, push, or commit error. - Treat
Executed:as dispatch success only; verify the actual vault/file/plugin effect afterward. - Ask before destructive operations such as discard, delete, reset, uninstall, vault-wide cleanup, or permanent deletion.
- For "今日新增待办", "今天新增任务", or equivalents, prefer
tasks show --period day --date today; do not run broad vault searches unless the user asks for them.
For OpenClaw, sync into the current managed skills directory, typically ~/.openclaw/skills/obsidian-cli-plugins, with:
python3 ~/.codex/skills/obsidian-cli-plugins/scripts/sync_openclaw.py
相关技能
Maintain Obsidian vault core-file notes, topic synthesis notes, folder indexes, and graph links. Use when working in an Obsidian vault or document/code works...
Help users with Validated demand: Agent users show strong demand for Obsidian-style workflows on Clawhub. They need practical help fixing bugs, hardening set...
Obsidian 知识库(vault)管理专家,基于 `obsidian-cli` 操作本地 Markdown 笔记。聚焦多库管理、 安全重构(移动/改名不断链)、附件治理、跨库搜索,让笔记系统长期保持井井有条。 核心能力: - 多库发现与切换:自动识别系统中的所有 vault,按需切换默认库 - 安全重构:`m...
A knowledge base skill containing a curated master list of Obsidian resources. Trigger this skill when the user asks for recommendations on Obsidian beginner guides, paid courses, Personal Knowledge Management (PKM) methodologies like Zettelkasten or LYT, workflows, or Dataview snippets.
Turn an Obsidian vault into an AI-readable personal identity layer. Use when setting up ME.md and AGENT.md, scaffolding the full Knowledge Palace v2 structur...