No slash command · from obsidian-plugin
Inspects, diffs, and restores previous note versions from Obsidian File Recovery and Sync history. Useful for undoing edits, recovering deleted files, or auditing file changes.
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... |
|---|---|
| Recovering an overwritten or accidentally deleted note | Editing a current note — use vault-files |
| Diffing what changed between two versions of a note | Searching the current vault state — use search-discovery |
| Auditing the history of a single file before a destructive edit | Restoring a deleted file from disk-level backups — use OS tools |
Obsidian keeps two parallel version stores:
history:*).sync:history, sync:read, sync:restore).diff unifies both: by default it lists every available version (newest = 1)
across both stores. filter=local|sync narrows the source.
sync:* commands# List all available versions of the active file
obsidian diff
# List versions of a specific file
obsidian diff file=Recipe
# Compare the latest version (1) to current state
obsidian diff file=Recipe from=1
# Compare two specific versions (newest = 1)
obsidian diff file=Recipe from=2 to=1
# Restrict to one source
obsidian diff file=Recipe filter=local
obsidian diff file=Recipe filter=sync
# History entries for a file
obsidian history file=Recipe
# Every file that has local history
obsidian history:list
# Read a specific version (default: version=1, newest)
obsidian history:read file=Recipe version=3
# Open the File Recovery view in the GUI
obsidian history:open file=Recipe
# Restore a previous version (overwrites current)
obsidian history:restore file=Recipe version=3
# Sync versions for a file
obsidian sync:history file=Recipe
obsidian sync:history file=Recipe total
# Read a specific sync version
obsidian sync:read file=Recipe version=2
# Restore a sync version (overwrites current)
obsidian sync:restore file=Recipe version=2
# Open the sync history view in the GUI
obsidian sync:open file=Recipe
# Files deleted via sync (recoverable)
obsidian sync:deleted
# Diff the most recent saved version against the current state
obsidian diff file="Notes/Project" from=1
# 1. List versions to identify the right one (newest = 1)
obsidian history file=Daily/2026-04-29
# 2. Read it to confirm
obsidian history:read file=Daily/2026-04-29 version=2
# 3. Restore
obsidian history:restore file=Daily/2026-04-29 version=2
# Given a list of changed paths in $changed_files
while read -r path; do
echo "=== $path ==="
obsidian diff path="$path" filter=local
done <<< "$changed_files"
For agentic workflows that overwrite or delete notes, capture the version number first so a restore is one command away:
# Snapshot the current version
obsidian history file="Notes/Important" | head -2
# … perform edit …
# If something breaks:
obsidian history:restore file="Notes/Important" version=2
| Context | Command |
|---|---|
| List all versions of a file | obsidian diff file=X |
| Diff latest version vs current | obsidian diff file=X from=1 |
| Diff two specific versions | obsidian diff file=X from=2 to=1 |
| Local-only versions | obsidian diff file=X filter=local |
| Read a local version | obsidian history:read file=X version=N |
| Restore a local version | obsidian history:restore file=X version=N |
| Read a sync version | obsidian sync:read file=X version=N |
| Restore a sync version | obsidian sync:restore file=X version=N |
| Files deleted via sync | obsidian sync:deleted |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin obsidian-plugin21 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./dev-toolsObsidian plugin/theme dev: DevTools, CDP, JS eval, console/error buffers, CSS/DOM inspection, mobile emulation, screenshots. Use when debugging the app./plugins-themesObsidian community plugins/themes/CSS snippets management. Use when installing, enabling, switching theme, or toggling restricted mode./propertiesObsidian YAML frontmatter properties and aliases: read, set, remove on notes. Use when user mentions frontmatter, metadata, aliases, status, or dates.Other plugins' skills for the same job