vault-fs

vault-fs is a skill for Claude Code, Codex from glebis/claude-skills. It costs 102 tokens per session (654 once invoked), scanned A, original, MIT.

A file-operation guide and script for safely moving, renaming, archiving, or deleting notes and attachments in an Obsidian vault. Obsidian is a note-taking app that connects notes with internal links.

In plain words
What is it for?
Use it for single or batch note moves, renames, link-preserving reorganisations, and safe removal of notes or attachments.
Why use it?
It keeps those links working when files change location or name, checks incoming links before deletion, and previews changes before applying them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it for single or batch note moves, renames, link-preserving reorganisations, and safe removal of notes or attachments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/glebis/claude-skills/vault-fs
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add glebis/claude-skills --skill vault-fs
Clone the repo
git clone --depth 1 https://github.com/glebis/claude-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vault-fs

README.md
[![agentmods](https://agentmods.dev/badge/skills/glebis/claude-skills/vault-fs/github.svg)](https://agentmods.dev/skills/glebis/claude-skills/vault-fs)
Your own site
<a href="https://agentmods.dev/skills/glebis/claude-skills/vault-fs"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/vault-fs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vault-fs

Your own site · 80×15
<a href="https://agentmods.dev/skills/glebis/claude-skills/vault-fs"><img src="https://agentmods.dev/badge/skills/glebis/claude-skills/vault-fs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 654 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.00654
Opus 5.5 $0.00041 $0.00262
Sonnet 5.5 $0.00020 $0.00131
Haiku 4.5 $0.00010 $0.00065

Measured 1mo ago against content hash 7b725b2898f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vault-fs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/test_vault_fs.py, scripts/vault_fs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

vault-fs/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on 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-escaped [[x\|a]], and markdown links [t](x.md) / %20-encoded — in the style they were written.
  • Renames rewrite bare [[Old]] links. 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.
  • rm never 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).

Read the full file on GitHub · 51 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 51 lines · 102 tokens per session scan A 7b725b2898f9

Subscribe to this mod's changes

vault-fs is a skill published in the GitHub repository glebis/claude-skills (417 stars, last pushed today), licensed MIT. It adds 102 tokens to every session and 654 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-22.

Related

vault-fs compared with skills from other repositories

vault-fs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vault-fsglebis/claude-skillsSkill417todayMITA102Claude Code, Codex
switch-clientssuboss87/FDEOpsSkill7722d agoMITA32Claude Code, Codex
world-time-get-{timezone}bobadilla-tech/requiems-api-skillsSkill217d agoMITA44Claude Code
workspace-patternsJartan-LLC/grimoireSkill46d agoMITB52Claude Code
foggy-modesoftcane/human-state-skillsSkill1223mo agoMITC137Claude Code
overloaded-modesoftcane/human-state-skillsSkill1223mo agoMITC164Claude Code
megacavedisplay-design-studio/skillsSkill34d agononeA54Claude Code, Codex