跳到主要内容
知仓学习社ZHICANG

obsidian-cli-sync-and-publish

Use this skill when the user needs official desktop Obsidian CLI Sync workflows and, when detected as available, Publish workflows. This skill is fo…

不碰外部(只输出文字)无严重或高危命中hashgraph-online/awesome-codex-plugins

它会碰到什么

扫了多少6 个文本文件,7 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Obsidian CLI Sync and Publish

Use this skill for Obsidian Sync operations and capability-gated Obsidian Publish operations through official desktop obsidian CLI commands.

Routing contract

Use this skill when:

  • the user asks for Sync state, Sync history, or Sync restore operations
  • the user asks for Publish status, publish add/remove, or publish site checks and those commands are detected as available
  • the task is a release/checkpoint flow that depends on Sync or Publish surfaces

Do not use this skill when:

  • the request is regular note CRUD, task/property updates, or graph cleanup
  • the request is Obsidian Headless automation without desktop app
  • the request is explicitly a named one-command workflow ID (route to obsidian-cli-workflows)
  • the request is community tooling or non-official publish/sync surfaces

Preconditions

Assume these must be true before relying on this skill:

  • obsidian command is installed and registered
  • Obsidian desktop app is available locally
  • Sync is configured in the target vault
  • Publish commands may be unavailable in some CLI builds and must be probed before use
  • in Codex Desktop on macOS, direct launches can crash; prefer sanitized wrapper

Codex-safe launcher

In Codex Desktop on macOS, prefer this wrapper:

script -q /dev/null /usr/local/bin/zsh -ilc 'unset __CFBundleIdentifier LaunchInstanceID XPC_SERVICE_NAME CODEX_CI CODEX_SANDBOX CODEX_SHELL; export TERM=xterm-256color; obsidian ...'

Escalate the wrapped command only when required by sandbox boundaries.

Core operating policy

  1. Use only official desktop Sync and Publish CLI commands.
  2. Probe publish command availability before using any publish:* command. Use a read-only check like obsidian help publish:status.
  3. If publish probe reports No commands matching, treat Publish as unsupported in this environment and refuse publish actions plainly.
  4. For mixed read/write flows, run status checks first (sync:status; and publish:status only when publish support is confirmed).
  5. Treat mutating commands as high-impact operations.
  6. Do not run mutating commands on implicit active-file targets unless the user explicitly requested active-file behavior.
  7. For restore operations (sync:restore), require explicit version=<n> plus explicit file= or path= unless the user clearly specifies active-file restore.
  8. For publish operations (when supported), clearly state whether action targets one file, path, or all changed files.
  9. Summarize remote side effects before executing mutating operations.
  10. If Sync is not configured, report that blocker and stop.
  11. If publish is requested but unavailable in this CLI build, report that blocker and stop.
  12. If the request is actually headless/server Sync, say this skill does not cover Headless Sync and stop.

Risk levels

  • low: sync:status, sync:history, sync:read, sync:deleted; and publish:site, publish:list, publish:status only when supported
  • medium: sync, sync:open; and publish:open only when supported
  • high: sync:restore; and publish:add, publish:remove only when supported

Response contract

Always return:

  • command capability used
  • risk level (low, medium, high)
  • execution mode (direct or escalated)
  • exact command(s) run or proposed
  • affected file/path scope
  • remote side effects summary (if any)
  • blocking reason, if any

Command families

Sync:

  • sync
  • sync:status
  • sync:history
  • sync:read
  • sync:restore
  • sync:open
  • sync:deleted

Publish:

  • publish:site (only when supported)
  • publish:list (only when supported)
  • publish:status (only when supported)
  • publish:add (only when supported)
  • publish:remove (only when supported)
  • publish:open (only when supported)

References

  • references/obsidian-cli-sync-publish-playbook.md
  • references/limitations-and-boundaries.md
  • references/validation.md
  • references/source-links.md

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,027
本站分层T1
该仓技能数1910
原文件路径plugins/greg-asher/codex-obsidian/skills/obsidian-cli-sync-and-publish/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 1910 个技能