Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vault-files

БесплатноБез исполняемых скриптовНе проверен

Obsidian vault file ops via CLI: read, create, append, move, rename, delete, listings, daily/random notes. Use when managing vault files.

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

Obsidian Vault File Operations

When to Use This Skill

Use this skill when... Use the alternative instead when...
Reading, creating, appending, moving, renaming, or deleting notes through the running CLI Doing offline bulk edits across many .md files — use vault-frontmatter or vault-templates
Opening or creating today's daily note Curating MOC hub notes that organise existing content — use vault-mocs
Managing folder layout while Obsidian is running Renaming a note and rewriting all links to it — use vault-wikilinks
Recovering a previous version after a bad edit — use file-history
Querying notes structured by a Base view — use bases

Comprehensive guidance for managing files, folders, and daily notes in Obsidian vaults using the official Obsidian CLI.

Prerequisites

  • Obsidian desktop 1.12.7+ installer
  • CLI enabled in Settings → General → Command line interface
  • Obsidian must be running (CLI communicates with the running instance)

Path & Flag Conventions

  • All paths are vault-relative — use folder/note.md, not absolute filesystem paths
  • file=<name> resolves like a wikilink (no extension needed); path=<full/path.md> is exact
  • Most commands default to the active file when neither file= nor path= is supplied
  • create omits .md from name= (added automatically); move's to= takes a destination folder, or a full path including .md to rename at the same time
  • Quote values containing spaces: file="My Note Title"
  • Newlines: \n, tabs: \t
  • Flags are bare words — overwrite, open, newtab, permanent, inline, total. The single exception is --copy (a universal output flag).
  • Multi-vault: prefix vault=<name> before the command — see vault-management

Core File Operations

List Files & Folders

# All files in vault
obsidian files

# Files in specific folder
obsidian files folder=Projects/Active

# Filter by extension
obsidian files ext=canvas

# Total note count
obsidian files total

# All folders, or just those under a parent
obsidian folders
obsidian folders folder=Projects

# Folder count
obsidian folders total

File Info

# Info on the active file (path/name/extension/size/created/modified)
obsidian file

# Info on a specific file
obsidian file file=Recipe
obsidian file path="Notes/Recipe.md"

# Folder info
obsidian folder path="Projects"
obsidian folder path="Projects" info=files
obsidian folder path="Projects" info=size

# Word and character counts
obsidian wordcount file=Recipe
obsidian wordcount file=Recipe words
obsidian wordcount file=Recipe characters

Read a Note

# Read by name (wikilink resolution)
obsidian read file="Note Name"

# Read by exact path
obsidian read path="Projects/spec.md"

# Read the active file (no args)
obsidian read

# Copy result to clipboard
obsidian read file="Note Name" --copy

Create a Note

# Basic create (no .md needed)
obsidian create name="New Note"

# Create in folder with content
obsidian create name="Projects/Feature Spec" content="# Feature Spec\n\nDescription here."

# Create from a template (see also: templates skill)
obsidian create name="Meeting Notes" template="Meeting"

# Overwrite existing, then open it
obsidian create name="Draft" content="Fresh start" overwrite open

Append / Prepend

# Add to end of note
obsidian append file="Daily Log" content="\n## New Section\nContent here."

# Append without an extra newline
obsidian append file="Daily Log" content="more text" inline

# Add after frontmatter (prepend skips YAML)
obsidian prepend file="Inbox" content="- [ ] New task\n"

# Target a heading section instead of the whole file
obsidian append file="Project" heading="Log" content="- Shipped v2"
obsidian prepend file="Project" heading="Log" content="- Kickoff"

Open a Note

obsidian open file="Recipe"
obsidian open path="Notes/Recipe.md" newtab

Move / Rename

# Move into a folder (to= accepts a destination folder or a full path)
obsidian move file="Draft" to=Archive

# Move + rename in one shot (full path, with .md)
obsidian move file="Old Name" to="Archive/New Name.md"

# Rename in place — preserves extension automatically
obsidian rename file="Old Name" name="New Name"

move and rename automatically update internal links if Settings → Files & Links → Automatically update internal links is enabled.

Delete

# Move to system / Obsidian trash
obsidian delete file="Old Note"

# Permanent deletion (skips trash, irreversible)
obsidian delete file="Old Note" permanent

For undoing accidental deletes, see file-history (history:restore, sync:restore, sync:deleted).

Daily Notes

# Open today's daily note (creates if needed)
obsidian daily

# Get the expected daily note path (without creating)
obsidian daily:path

# Read today's content
obsidian daily:read

# Append / prepend
obsid
Полный SKILL.md на GitHub

Установить vault-files в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(obsidian *)
Read
Grep
Glob

FAQ

Что делает скилл vault-files?

Obsidian vault file ops via CLI: read, create, append, move, rename, delete, listings, daily/random notes. Use when managing vault files.

Как установить скилл vault-files?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vault-files запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vault-files с