Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

obsidian-syncObsidian sync 工具

Agent Skill

obsidian-sync 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

198

周安装

8

GitHub Stars

6

下载量

62
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:obsidian-sync(Obsidian sync 工具)
来源仓库:https://github.com/synapsync/synapse_registry
仓库路径:skills/obsidian-sync
安装命令:
npx skills add https://github.com/synapsync/synapse_registry --skill obsidian-sync
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/synapsync/synapse_registry --skill obsidian-sync

简介

obsidian-sync 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于多端同步、版本比对或知识库更新管理等研究检索类任务场景。
  • 通过关键词、任务描述或来源线索触发检索,返回结构化候选信息供进一步核验。
  • 安装命令为 npx skills add https://github.com/synapsync/synapse_registry --skill obsidian-sync。
  • 使用前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。

SKILL.md

Purpose

Sync markdown reports, plans, and documentation generated in the workspace to an Obsidian vault using the Obsidian MCP server. Acts as the "last mile" helper that takes output produced by other skills (planners, analyzers, reporters) and persists it in the user's knowledge base.

When to Use This Skill

  • User explicitly asks to sync, save, move, or store files to Obsidian
  • User says "guardar en obsidian", "sincronizar a obsidian", or similar in Spanish
  • User asks to create a report/plan AND save it to Obsidian (this skill handles the Obsidian part after creation)
  • User wants to browse their vault to choose where to place documents
  • User asks to move an entire folder (e.g., .agents/plan/) to their Obsidian vault
  • After another skill finishes generating documents, user wants them in Obsidian

When NOT to Use

  • User wants to read or search notes already in Obsidian (use MCP tools directly)
  • User wants to edit an existing Obsidian note in-place (use MCP tools directly)
  • Files are not markdown or text-based (this skill is for .md content)

Critical Rules

RULE 1 - ALWAYS LOAD MCP TOOLS FIRST

Before calling ANY Obsidian MCP tool, you MUST use ToolSearch to load them:

ToolSearch query: "+obsidian write"    # For writing notes
ToolSearch query: "+obsidian list"     # For listing directories
ToolSearch query: "+obsidian read"     # For reading notes

Never call mcp__obsidian__* tools without loading them first via ToolSearch. They are deferred tools and will fail if not loaded.

RULE 2 - ALWAYS ASK WHERE TO SAVE

Never assume the destination folder. Always:

  1. List the vault's root directories
  2. Let the user pick or specify the destination
  3. If the user already specified a path (e.g., "save to work/my-project/plans"), confirm it exists or offer to create it

RULE 3 - PRESERVE CONTENT INTEGRITY

  • Read the source file completely before writing to Obsidian
  • Never modify the document content (headings, tables, code blocks, etc.)
  • Only ADD frontmatter metadata if the file doesn't already have it
  • If the file already has frontmatter, merge Obsidian-specific fields without overwriting existing ones

RULE 4 - GENERATE MEANINGFUL FRONTMATTER

Every note written to Obsidian MUST include frontmatter with at minimum:

---
title: "Document Title"
date: "YYYY-MM-DD"
project: "{project-name}"
type: "{document-type}"
tags: [relevant, tags, here]
---

Infer these values from:

  • title: First H1 heading in the document, or filename
  • date: File modification date, or today's date
  • project: Current working directory name or git repo name
  • type: Infer from content (e.g., "technical-debt", "strategic-analysis", "sprint-plan", "code-review", "architecture")
  • tags: Infer from project name, document type, and key topics

RULE 5 - REPORT RESULTS

After syncing, always report:

  • How many files were synced
  • The exact Obsidian paths where they were saved
  • Any files that were skipped and why

Workflow

Step 1: Identify What to Sync

Determine the source files from the user's request:

User SaysAction
"sync this report to obsidian"Identify the most recently created/discussed report in context
"move.agents/plan/ to obsidian"Glob all .md files in that directory
"save 00-strategic-analysis.md to obsidian"Sync that specific file
"sync all reports from today to obsidian"Find today's .md files in .agents/ or similar
"create plan X and save to obsidian"Wait for plan creation, then sync the output

Discovery commands:

# Find all markdown files in a directory
Glob pattern: ".agents/plan/**/*.md"

# Find recently created reports
Glob pattern: ".agents/**/*.md"

# Find specific file
Glob pattern: "**/{filename}.md"

Step 2: Load Obsidian MCP Tools

Always load the required tools before using them:

ToolSearch query: "+obsidian list"     # Loads mcp__obsidian__list_directory
ToolSearch query: "+obsidian write"    # Loads mcp__obsidian__write_note

Load both in parallel if possible. Only load read or search if you need to check existing content.

Step 3: Browse Vault and Present Options

List the vault structure and present folder options to the user:

mcp__obsidian__list_directory(path: "/")           # Root level
mcp__obsidian__list_directory(path: "/work")        # One level deeper if needed

Build a folder tree and present it using AskUserQuestion:

AskUserQuestion:
  question: "Where should I save the documents in your Obsidian vault?"
  header: "Vault folder"
  options:
    - label: "work/project-name/plans"
      description: "Inside your project's plans folder"
    - label: "work/project-name/"
      description: "At the project root in your vault"
    - label: "Create new folder"
      description: "I'll create a new folder path for you"

Important behaviors:

  • If the user already specified a destination (e.g., "save to work/agent-sync-sdk/plans"), skip the question and use that path directly
  • If a project folder already exists in the vault, suggest it as the first (recommended) option
  • Always include "Create new folder" as an option
  • If user picks "Create new folder" or "Other", ask for the desired path

Step 4: Read Source Files

For each file to sync:

  1. Read the full content using the Read tool
  2. Check if frontmatter already exists (starts with ---)
  3. Extract the first H1 heading for the title
  4. Determine the project name from cwd or git

Step 5: Write to Obsidian

For each file, call mcp__obsidian__write_note with:

mcp__obsidian__write_note(
  path: "{vault-destination}/{filename}.md",
  content: "{file-content-without-frontmatter}",
  frontmatter: {
    "title": "Document Title",
    "date": "2026-02-10",
    "project": "agent-sync-sdk",
    "type": "strategic-analysis",
    "source": ".agents/plan/2026-02-10/00-strategic-analysis.md",
    "tags": ["agent-sync-sdk", "strategy", "plan"]
  }
)

Frontmatter generation logic:

FieldSourceFallback
titleFirst # Heading in documentFilename without extension, titlecased
dateDate in filename or directory path (e.g., 2026-02-10)Today's date
projectGit repo name or directory nameWorking directory basename
typeInfer from content keywords (see table below)"note"
sourceRelative path from workspace rootAbsolute path
tagsProject name + type + key content topics[project-name]

Type inference:

Content ContainsType
"deuda tecnica", "technical debt", "code quality""technical-debt"
"estrategico", "strategic", "roadmap""strategic-analysis"
"crecimiento", "growth", "vision""growth-vision"
"sprint", "todo", "checklist""sprint-plan"
"analisis", "analysis", "report""analysis"
"arquitectura", "architecture""architecture"
"planning", "plan de trabajo""plan"
"requirements", "requisitos""requirements"
"code review", "revision""code-review"

Step 6: Report Results

After all files are written, report a summary:

Synced to Obsidian:
- work/agent-sync-sdk/plans/00-strategic-analysis.md
- work/agent-sync-sdk/plans/01-technical-debt.md
- work/agent-sync-sdk/plans/02-growth-vision.md

3 files synced successfully to vault folder: work/agent-sync-sdk/plans/

Batch Sync Pattern

When syncing an entire folder, process files efficiently:

  1. Glob all .md files in the source directory
  2. Read all files in parallel (multiple Read calls in one message)
  3. Load MCP tools once (ToolSearch)
  4. List vault directory once to build options
  5. Ask user once for destination (not per file)
  6. Write all files in sequence (Obsidian MCP may not support parallel writes safely)
  7. Report all results at the end

Integration with Other Skills

This skill is designed to be the output handler for other skills:

Producing SkillWhat It Createsobsidian-sync Role
project-planner.synapsync/planning/{project}/ plansSync planning docs to Obsidian
code-analyzer.synapsync/technical/module-analysis/ reportsSync analysis reports to Obsidian
sdlc-plannerSDLC Phase 1 & 2 documentsSync requirements & design docs
universal-plannerAdaptive planning documentsSync any planning output
Custom team analysis.agents/plan/ reportsSync team-generated reports

Composition pattern: When the user says "create a plan and save it to obsidian":

  1. The planner skill runs first and produces documents locally
  2. This skill then picks up those documents and syncs them to the vault
  3. The user only needs one instruction; the skills compose naturally

Configuration Options

By Sync Scope

ScopeCommandBehavior
Single file"sync this file to obsidian"Sync one specific file
Directory"sync.agents/plan/ to obsidian"Sync all.md files in directory
Pattern"sync all reports from today"Glob and sync matching files
Output"create X and save to obsidian"Wait for creation, then sync

By Destination Logic

ScenarioBehavior
User specifies pathUse it directly, create folders if needed
Project folder exists in vaultSuggest it as recommended option
Project folder doesn't existOffer to create work/{project-name}/
Multiple projects in vaultList all and let user choose

Best Practices

Before Sync

  • Verify the source files exist and are readable
  • Check that the Obsidian MCP server is connected (ToolSearch will fail if not)
  • If syncing output from another skill, ensure that skill has completed

During Sync

  • Never modify document content -- only add/merge frontmatter
  • Use the mcp__obsidian__write_note with mode: "overwrite" for clean writes
  • If a note already exists at the destination, warn the user before overwriting
  • Process files sequentially to avoid MCP race conditions

After Sync

  • Always report the full list of synced paths
  • If any files failed, report which ones and why
  • Suggest the user check the notes in Obsidian for visual verification

Limitations

  • Obsidian MCP required: The Obsidian REST API MCP server must be configured and running
  • Markdown only: This skill handles .md files. Binary assets, images, and non-text files are not synced
  • No bidirectional sync: This skill writes TO Obsidian, it does not pull changes back from Obsidian
  • No conflict resolution: If a note exists at the destination, it will be overwritten (with user confirmation)
  • Single vault: Operates on the vault connected to the MCP server; cannot switch between multiple vaults

Troubleshooting

IssueCauseSolution
"Tool not found: mcp__obsidian__*"MCP tools not loadedRun ToolSearch query: "+obsidian write" first
"MCP server not connected"Obsidian REST API not runningStart Obsidian and enable the REST API plugin
"Permission denied"Tool not in allowed permissionsAdd mcp__obsidian__write_note to .claude/settings.local.json
"Note already exists"Duplicate syncConfirm with user before overwriting
"Empty content"Source file doesn't existVerify path with Glob before reading
Frontmatter corruptionFile has non-standard frontmatterRead file first, detect existing frontmatter, merge carefully

Example: Full Sync Flow

User says: "sincroniza los reportes de.agents/plan/2026-02-10/ a obsidian"

Step 1 - Discover files:

Glob(".agents/plan/2026-02-10/**/*.md")
# Found: 00-strategic-analysis.md, 01-technical-debt.md, 02-growth-vision.md

Step 2 - Load MCP tools:

ToolSearch("+obsidian list")
ToolSearch("+obsidian write")

Step 3 - Browse vault:

mcp__obsidian__list_directory(path: "/")
# Found: work/
mcp__obsidian__list_directory(path: "/work")
# Found: agent-sync-sdk/, bmtz/, wdt/

Step 4 - Ask user:

AskUserQuestion:
  "Where should I save the 3 reports in your Obsidian vault?"
  options:
    - "work/agent-sync-sdk/plans (Recommended)"  # Project folder exists
    - "work/agent-sync-sdk/"                       # Project root
    - "Create new folder"

Step 5 - Read & Write:

# Read all 3 files in parallel
Read(".agents/plan/2026-02-10/00-strategic-analysis.md")
Read(".agents/plan/2026-02-10/01-technical-debt.md")
Read(".agents/plan/2026-02-10/02-growth-vision.md")

# Write each to Obsidian with generated frontmatter
mcp__obsidian__write_note(
  path: "work/agent-sync-sdk/plans/00-strategic-analysis.md",
  content: "...",
  frontmatter: { title: "Analisis Estrategico...", date: "2026-02-10", project: "agent-sync-sdk", type: "strategic-analysis", tags: [...] }
)
# ... repeat for each file

Step 6 - Report:

Synced 3 files to Obsidian:
  - work/agent-sync-sdk/plans/00-strategic-analysis.md
  - work/agent-sync-sdk/plans/01-technical-debt.md
  - work/agent-sync-sdk/plans/02-growth-vision.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.79%
按下载量换算20

Claude

31.25%
按下载量换算19

Cursor

20.11%
按下载量换算12

Gemini CLI

9.38%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills