vault-cleanup-auditor — Claude Code skill: audit your Obsidian vault
Walks an Obsidian vault and flags stale drafts, empty folders, repeated filenames and files with no headings. The result lands in a dated report.
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a claude-codeWhat vault-cleanup-auditor does
Four checks run against the vault. The first looks in content/ready-to-post for drafts older than 30 days that still carry the **Posted:** ❌ marker. The second picks out .md files over five lines with no heading at all. The third groups files that share a name across folders, the fourth lists directories with nothing in them. The .git, .obsidian and .openclaw trees are skipped.
If you have not named the vault, the skill asks for its absolute path before doing anything. Checks go through find, grep, wc and stat, and the report is written to vault-audit/YYYY-MM-DD-audit.md — the folder is created along the way. It holds four sections marked by severity plus a short list of next moves: publish, delete, move to content/posted/, finish, or rename the weaker copy. Each section stops at 15 entries and rolls the rest into an “...and N more” line.
You need Claude with bash access and the usual Unix tools: find, grep, wc, stat, date, awk. Read access to the vault, write access to vault-audit/ inside it. No APIs, nothing paid. The duplicate check leans on find -printf, which is a GNU findutils extension, so on macOS and BSD systems that call will not behave as intended.
What it helps with
- surface drafts that have sat unpublished for over a month
- clear empty directories out of the vault
- tell apart files sharing a name in different folders
- finish notes that never got a heading
- keep a dated list of what still needs sorting
Example prompts for the agent
- Run the vault-cleanup-auditor skill against my vault at
/root/obsidian-vault. - Audit my vault and save the report under
vault-audit. - Check my vault for stale drafts and duplicate filenames.
How to install vault-cleanup-auditor
1Skills CLI (Vercel)
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a claude-code2Manually: put the files in place
~/.claude/skills/vault-cleanup-auditor/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/vault-cleanup-auditor/
1Skills CLI (Vercel)
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a codex2Manually: put the files in place
.agents/skills/vault-cleanup-auditor/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a cursor2Manually: put the files in place
.cursor/skills/vault-cleanup-auditor/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install BrianRWagner/ai-marketing-claude-code-skills vault-cleanup-auditor2Manually: put the files in place
.github/skills/vault-cleanup-auditor/SKILL.md1Skills CLI (Vercel)
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a gemini-cli2Platform CLI
gemini skills install https://github.com/BrianRWagner/ai-marketing-claude-code-skills --path vault-cleanup-auditorManually: put the files in place
.devin/skills/vault-cleanup-auditor/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about vault-cleanup-auditor
How do I install vault-cleanup-auditor in Claude Code?
Run npx skills add BrianRWagner/ai-marketing-claude-code-skills --skill vault-cleanup-auditor -a claude-code. The skill is placed at ~/.claude/skills/vault-cleanup-auditor/SKILL.md.
What does vault-cleanup-auditor do?
It runs four checks over an Obsidian vault: old unpublished drafts, files without headings, matching filenames and empty folders. The output is saved to vault-audit/YYYY-MM-DD-audit.md.
What does the skill need to run?
Claude with bash access, the find, grep, wc, stat, date and awk tools, plus read access to the vault and write access to vault-audit/. No external services are involved.