obsidian

Activate when the user mentions their Obsidian vault, notes, tags, frontmatter, daily notes, backup, or sync. Route operations across MCP, Obsidian CLI/app actions, and git sync with safe defaults.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "obsidian" with this command: npx skills add bitbonsai/mcpvault/bitbonsai-mcpvault-obsidian

Obsidian Skill

Routing Policy

Use the backend that best matches user intent:

  1. MCP (default for vault data operations)

    • Read/write/patch/move/search notes
    • Frontmatter and tag updates
    • Metadata and batch note operations
  2. Obsidian CLI/App context (only when app context is needed)

    • Open a note in Obsidian from URI
    • Trigger app/plugin workflows that MCP cannot perform
  3. CLI git (sync/backup workflows)

    • Initialize repo, configure remote, commit, pull, push
    • Periodic or manual vault backup/sync requests

When a request is ambiguous, pick MCP first unless the user explicitly asks for sync/backup/git/app behavior.

Gotchas

  1. patch_note rejects multi-match by default. With replaceAll: false, if oldString appears more than once the call fails and returns matchCount. Set replaceAll: true only when you mean it, or add surrounding context to make the match unique.

  2. patch_note matches inside frontmatter. The replacement runs against the full file including the YAML block. A generic string like title: will match frontmatter fields. Include enough context to target the right occurrence.

  3. patch_note forbids empty strings. Both oldString and newString must be non-empty and non-whitespace. To delete text, use newString with a single space or restructure the note with write_note.

  4. search_notes returns minified JSON. Fields are abbreviated: p (path), t (title), ex (excerpt), mc (matchCount), ln (lineNumber), uri (obsidianUri). Hard cap of 20 results regardless of limit.

  5. search_notes multi-word queries score terms individually AND as a phrase. Each term is OR-matched, so a document matching any term appears in results. The full phrase gets an additional scoring boost.

  6. write_note auto-creates directories. Parent folders are created recursively. In append/prepend mode, if the note doesn't exist it's created. Frontmatter is merged (new keys override) in append/prepend; replaced entirely in overwrite.

  7. delete_note requires exact path confirmation. confirmPath must be character-identical to path. No normalization, no trailing-slash tolerance. Mismatch silently fails with success: false.

  8. move_file needs double confirmation. Both confirmOldPath and confirmNewPath must exactly match their counterparts. Use move_note for markdown renames (text-aware, no confirmation needed); use move_file only for binary files or when you need binary-safe moves.

  9. manage_tags reads from two sources but writes to one. list merges frontmatter tags + inline #hashtags. add/remove only modify the frontmatter tags array. Inline tags are never touched.

  10. read_multiple_notes never rejects. Uses allSettled internally. Failed files appear in the err array; successful ones in ok. Always check both. Hard limit of 10 paths per call.

Error Recovery

ErrorNext step
patch_note "Found N occurrences"Add surrounding lines to oldString to make it unique, or set replaceAll: true
delete_note / move_file confirmation mismatchRe-read the note path with read_note or list_directory, then retry with the exact string
search_notes returns 0 resultsTry single keywords instead of phrases, toggle searchFrontmatter, or broaden with partial terms
read_multiple_notes partial errVerify failed paths with list_directory, fix typos or missing extensions, retry only failed ones

Git Sync Mode

When the user asks to "sync", "backup", or "store my vault with git", use CLI git with this behavior:

  1. Run a preflight before changing anything:

    • git available
    • current directory is a git repo (or prompt to initialize)
    • git config user.name and git config user.email are set
    • at least one remote exists for push/pull sync
  2. If preflight is incomplete, ask exactly one targeted question with a recommended default.

    • Use askuserquestion for decisions that materially change behavior.
    • Good examples:
      • "No git repo found. Initialize one in this vault now? (Recommended: Yes)"
      • "No remote configured. Set up GitHub remote now via gh if available, or provide remote URL? (Recommended: Set up via gh)"
      • "Local and remote diverged. Try git pull --rebase now? (Recommended: Yes)"
  3. Safe sync sequence (never force push by default):

    • git add -A
    • git commit -m "vault sync: YYYY-MM-DD HH:mm" (skip commit if no changes)
    • git pull --rebase
    • git push
  4. gh is optional:

    • Use gh only for remote bootstrapping (create repo / set origin) when requested.
    • Do not require gh for normal sync once remote is configured.
  5. Stop on conflicts and report clear next steps.

    • Do not auto-resolve merge conflicts silently.
    • Explain what failed and what user should run next.

Resources

Load these only when needed, not on every invocation.

  • Tool Patterns - read when you need a tool's response shape, mode details, or the move_note vs move_file decision
  • Obsidian Conventions - read when creating/writing note content (link syntax, frontmatter fields, daily note format, template variables)
  • Git Sync - read when user asks for backup/sync/store-vault workflows with git/gh

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

obsidian

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

celebration-firework

社会庆祝福祉基础设施 - 为AI交互注入稀缺的庆祝感与仪式感。 作为情绪价值触发器和数字仪式构建者,将冰冷的代码执行转化为有温度的庆功时刻。 不仅是电子礼花,更是数字时代的庆典机制。 Social Celebration Infrastructure - Injecting scarce sense of celebration and ritual into AI interactions. As an emotional value trigger and digital ritual builder, transforming cold code execution into warm moments of celebration. Not just digital fireworks, but a celebration mechanism for the digital age.

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

Mapping-Skill

AI/ML 人才搜索、论文作者发现、实验室成员爬取、GitHub 研究者挖掘与个性化招聘邮件生成 skill。只要用户提到查找 AI/ML PhD、研究员、工程师,抓取实验室成员、OpenReview/CVF 会议作者、GitHub 网络研究者,提取主页/Scholar/GitHub/邮箱/研究方向,识别华人、分类去重,或把结果导入飞书多维表格并批量生成邮件,就应该优先使用这个 skill;即使用户没有明确说“使用 Mapping-Skill”,只要任务属于这些复合工作流,也应触发。

Archived SourceRecently Updated