No slash command · from obsidian-plugin
Manages Obsidian Publish and Sync operations from the CLI: publishing notes, managing change sets, pausing/resuming sync, and recovering sync-deleted files.
Ships in obsidian-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Use this skill when... | Use the alternative instead when... |
|---|---|
| Listing, adding, removing, or auditing the change set on Obsidian Publish | Creating or moving the underlying notes themselves — use vault-files |
| Pausing/resuming Obsidian Sync or checking sync status & usage | Restoring a previous sync version of a file — use file-history |
| Recovering a file that sync deleted | Recovering a file from local File Recovery — use file-history |
| Auditing which notes are currently public vs private | Discovering orphaned or unresolved-link notes — use search-discovery |
Manage Obsidian Publish and Obsidian Sync services from the CLI.
Sync version history (per-file diff and restore) lives in file-history.
# Slug, URL, status of the connected Publish site
obsidian publish:site
# All currently published files
obsidian publish:list
obsidian publish:list total
# What would change on next publish (new / changed / deleted)
obsidian publish:status
obsidian publish:status new
obsidian publish:status changed
obsidian publish:status deleted
obsidian publish:status total
# Publish the active file
obsidian publish:add
# Publish a specific file
obsidian publish:add file="Public Note"
obsidian publish:add path="blog/post.md"
# Publish *all* changed files in one shot
obsidian publish:add changed
# Unpublish
obsidian publish:remove file="Draft Post"
# Open the file's published page in the browser
obsidian publish:open file="Public Note"
These commands control Sync inside the running desktop app. To sync a vault from the command line without the desktop app, use Obsidian Headless (Headless Sync) — a separate tool, not part of this CLI.
# Sync state, last sync time, usage
obsidian sync:status
# Pause / resume sync
obsidian sync off
obsidian sync on
# Files removed via sync (recoverable)
obsidian sync:deleted
obsidian sync:deleted total
To restore one of those files, use file-history:
obsidian sync:restore file=X version=N.
For listing, reading, or restoring a specific sync version of a file, use
the file-history skill (sync:history, sync:read, sync:restore,
sync:open).
# Find candidates
obsidian search query="tag:#publish" format=json
# Or rely on the change set after the user tags them
obsidian publish:status new
obsidian publish:add changed
obsidian publish:status # all changes
obsidian publish:status new # adds only
obsidian publish:status deleted # removes only
obsidian publish:list > published-$(date +%F).txt
obsidian publish:site
obsidian sync:deleted
# Identify the file, then restore via file-history:
obsidian sync:restore file="Notes/Important" version=1
| Context | Command |
|---|---|
| Site info | obsidian publish:site |
| List published | obsidian publish:list |
| What's changed since last publish | obsidian publish:status |
| New files only | obsidian publish:status new |
| Publish all changes | obsidian publish:add changed |
| Publish one file | obsidian publish:add file=X |
| Unpublish | obsidian publish:remove file=X |
| Sync status | obsidian sync:status |
| Pause sync | obsidian sync off |
| Resume sync | obsidian sync on |
| Sync-deleted files | obsidian sync:deleted |
sync:history, sync:read, sync:restore)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/basesObsidian Bases (database-over-notes): list base files/views, create items, run view queries with json/csv/tsv/md output. Use when user mentions Bases or .base files./bookmarksObsidian bookmarks: list and add file/folder/heading/saved-search/URL bookmarks. Use when starring or saving notes for quick access./command-paletteRun, list, and inspect Obsidian commands and hotkeys from the CLI. Use when triggering a command, enumerating commands, or checking hotkey bindings.npx claudepluginhub laurigates/claude-plugins --plugin obsidian-pluginOther plugins' skills for the same job