publish-vault

publish-vault is a skill for Claude Code from urmzd/dotfiles. It costs 114 tokens per session (846 once invoked), scanned A, original, Apache-2.0.

A one-way file mirror for publishing top-level Markdown notes from an Obsidian vault folder into another folder, such as a repository's content directory. It finds possible source and target paths and asks you to confirm them.

In plain words
What is it for?
Use it to publish notes from Obsidian, a Markdown-based note-taking app, into a repository or website content folder. It previews the changes before mirroring added, changed, and removed files.
Why use it?
It removes the need to copy, update, and delete published notes by hand. The vault remains the source, so changes in the target do not overwrite notes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to publish notes from Obsidian, a Markdown-based note-taking app, into a repository or website content folder. It previews the changes before mirroring added, changed, and removed files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/urmzd/dotfiles/publish-vault
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 urmzd/dotfiles --skill publish-vault
Clone the repo
git clone --depth 1 https://github.com/urmzd/dotfiles

Made for: Claude Code.

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 publish-vault

README.md
[![agentmods](https://agentmods.dev/badge/skills/urmzd/dotfiles/publish-vault/github.svg)](https://agentmods.dev/skills/urmzd/dotfiles/publish-vault)
Your own site
<a href="https://agentmods.dev/skills/urmzd/dotfiles/publish-vault"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/publish-vault/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 publish-vault

Your own site · 80×15
<a href="https://agentmods.dev/skills/urmzd/dotfiles/publish-vault"><img src="https://agentmods.dev/badge/skills/urmzd/dotfiles/publish-vault.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 846 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.00114 $0.00846
Opus 5.5 $0.00046 $0.00338
Sonnet 5.5 $0.00023 $0.00169
Haiku 4.5 $0.00011 $0.00085

Measured 3d ago against content hash aa14c7a44fca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

publish-vault 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/executable_mirror.sh), 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.

dot_agents/skills/publish-vault/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Publish Vault

Mirror one vault folder into one target folder. The source wins every conflict; the target is output only. Paths are never assumed: vaults and repos move, so discover them each run and confirm with the user.

Steps

  1. Find vaults. Read Obsidian's registry and list every vault path that still exists:

    python3 -I -c 'import json,os;r=json.load(open(os.path.expanduser("~/Library/Application Support/obsidian/obsidian.json")));[print(v["path"]) for v in r["vaults"].values() if os.path.isdir(v["path"])]'
    

    On Linux the registry is ~/.config/obsidian/obsidian.json. Note any registered path that no longer exists: the vault moved, so ask the user where it went.

  2. Ask for the source. If src was not given, show the vaults and their top-level folders that contain .md files, and ask which folder to publish. Accept any path the user types.

  3. Find targets. Look for content folders in nearby git repos that already hold the same filenames as the source (strong match), or directories named blog, posts, content, notes:

    for f in "<src>"/*.md; do echo "$(basename "$f")"; done > /tmp/names
    find ~/github ~/code ~/src -maxdepth 4 -type d \( -name blog -o -name posts -o -name content -o -name notes \) -not -path '*/node_modules/*' 2>/dev/null
    

    Rank folders with overlapping filenames first.

  4. Ask for the target. If dst was not given, show the ranked candidates and ask. Accept any path. If the target does not exist, ask before creating it.

  5. Check for repo-side edits. If the target is in a git repo, run git -C <dst> status --porcelain .. Any modified file that also differs from the source will be overwritten: show the diff and ask before continuing.

  6. Dry run and show the add/update/remove list:

    ~/.agents/skills/publish-vault/scripts/mirror.sh --src <src> --dst <dst> --dry-run
    
  7. Mirror. Rerun without --dry-run. If the dry run listed removals, get explicit approval first.

Read the full file on GitHub · 67 lines

Files

What ships with it

1 file 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. 3d ago Changed aa14c7a44fca
  2. 1mo ago First seen · 67 lines · 114 tokens per session scan A 2814da9e6418

Subscribe to this mod's changes

publish-vault is a skill published in the GitHub repository urmzd/dotfiles (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 114 tokens to every session and 846 once invoked, about $0.0005 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-29.

Related

publish-vault compared with skills from other repositories

publish-vault next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
publish-vaulturmzd/dotfilesSkill64d agoApache-2.0A114Claude Code
metaceptionmagic3007/dotfilesSkill115d agoMITA332Claude Code
astropymagic3007/dotfilesSkill115d agoMITA56Claude Code, Codex
benchling-integrationmagic3007/dotfilesSkill115d agoMITA50Claude Code
mcp-notion-usage-guidemagic3007/dotfilesSkill115d agoMITA174Claude Code, Codex
esmmagic3007/dotfilesSkill115d agoMITA96Claude Code, Codex
ralph-loopmagic3007/dotfilesSkill115d agoMITA63Claude Code, Codex