vault-fs
БесплатноЗапускает вложенные скриптыНе проверенSafely move, rename, or trash notes and attachments in an Obsidian vault while keeping every link working. Use whenever a vault file operation is requested…
от glebis★ 417 звёзд на GitHubОб этом скилле
Vault FS
One script, scripts/vault_fs.py, does vault file operations the way Obsidian's
"Automatically update internal links" does. Dry-run by default — always run once without
--apply, show the user the summary, then re-run with --apply.
Default vault: ~/Brains/brain (override with --vault PATH).
S=~/.claude/skills/vault-fs/scripts/vault_fs.py
python3 $S mv "Inbox/Idea.md" "Projects/" # move into a folder (keeps name)
python3 $S mv "Old name" "Folder/New name" --apply # move + rename; .md optional
python3 $S mv --batch moves.tsv # many moves, one vault scan (source<TAB>dest)
python3 $S rm "Dead note" "Attachments/x.png" # list inbound links; refuses if any
python3 $S rm "Dead note" --apply # send to macOS Trash via `trash`
What it guarantees
- Rewrites
x,!x,#heading,#^block,|alias, table-escapedx\|a, and markdown links[t](x.md)/%20-encoded — in the style they were written. - Renames rewrite bare
Oldlinks. If the new name is shared with another note, writes a path link instead of trusting Obsidian's tie-break. - Relative links inside a moved note are re-based on its new folder.
- Code blocks and inline code are never touched.
- Whole batch is validated first (missing source, existing destination, duplicates); one refusal means nothing moved.
rmnever hard-deletes; it refuses while anything links to the file unless--force.
From other scripts
sys.path.insert(0, os.path.expanduser("~/.claude/skills/vault-fs/scripts"))
import vault_fs
moves, edits, warnings = vault_fs.move_files(vault_root, [(src_rel, dst_rel), ...], apply=True)
# raises vault_fs.MoveError (nothing changed) if any pair is refused
Not handled
Moving whole folders (list the files in a batch instead), Obsidian aliases in frontmatter
(aliases: keep working because they live inside the moved note), and links in non-markdown
files (canvas, JSON).
Tests: cd scripts && python3 -m unittest test_vault_fs.
Установить vault-fs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vault-fs?
Safely move, rename, or trash notes and attachments in an Obsidian vault while keeping every link working. Use whenever a vault file operation is requested — "move this note to X", "rename note", "reorganize folder", "bulk move", "archive these notes", "delete/trash this note", "is anything linking to this?" — instead of mv/rm/git mv, which silently break [[wikilinks]]. Dry-run by default, stdlib only.
Как установить скилл vault-fs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vault-fs запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic