obsidian-vault
Skill1 starsChanged 9 days agoMITView on GitHub
Use when working in an Obsidian vault — finding notes, filing a new note or capture, linking notes or updating a MOC, triaging the inbox, moving, renaming or archiving notes, importing notes from another folder, or cleaning up broken links, orphans, empty notes, frontmatter and naming. Also for "/obsidian-vault", "my vault", "second brain", "file this in Obsidian".
69 other projects use a version of this.
Adopted by
Most recently taken up by
- trac3r00/agent-skillstheir own version, first seen Nov 29, 2026
- jatupornrmutsb/claude-skillstheir own version, first seen Nov 29, 2026
- trac3r00/core-skillstheir own version, first seen Nov 29, 2026
- jiuyang5354/skillstheir own version, first seen Nov 29, 2026
- DanaResearchGroup/agent-skillstheir own version, first seen Nov 25, 2026
- leoluyi/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use batch-grill-me, ubiquitous-language and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
boyingliu01Skillbatch-grill-me
A relentless interview that asks every frontier question at once, round by round. Thin alias of `grilling` (#540) — upstream mattpocock/skills absorbed this protocol into grilling; XP-Gate keeps this name as the sprint-flow Phase 2 entry point so orchestration docs stay stable.
Also in 6 projects that use this
kennethkeimSkillubiquitous-language
Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".
Also in 34 projects that use this
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 4 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 28 projects that use this
LesaniSkillwriting-shape
Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.
Also in 27 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 17 projects that use this
- +1 more from Lesani
Other versions69 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 69
- wonderwhy-er/DesktopCommanderMCP★ 10ksame name
- amazingloft999-droid/mattpocock-skills★ 422same name
- sonichi/sutando★ 396same name
- loulanyue/skills★ 231same name
- aurorasoft2/Matt_Pocock_Skills★ 133same name
- VisualxIntelligence/mattpocok-skills★ 55same name
- arozumenko/sdlc-skills★ 28same name
- metrogg/AgentHub★ 19same name
- harshit2490/mattpocock-skills-grill-me★ 8same name
- HinkoK/agent-skills★ 7same name
59 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- context-auditSkill
- daily-reportSkill
- disk-cleanupSkill
- end-of-daySkill
- finish-ticketSkill
- gmail-organizeSkill
- gov-job-finderSkill
- rebuild-integrationSkill
- resume-ticketSkill
- save-conversationSkill
- side-noteSkill
- start-of-daySkill
- start-ticketSkill
- ticket-statusSkill
- transcribe-videoSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 62 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Search, file, link, organize and clean up the vault, keeping its conventions and never breaking a link.
- Very specific: line 35
After that, pass --checkpoint without asking.
- Very specific: line 39
Read <vault>/CLAUDE.md, including its method section if it has one (for example how PARA picks a folder and how Zettelkasten notes are …
- Very specific: line 40
Run scan.py rules. If _source says defaults, the rules block is missing: tell the user, and offer to add one that matches the prose.
- Very specific: line 57
Name: Follow the naming rule in the vault CLAUDE.md (lowercase-hyphenated, .md).
- Very specific: line 58
Template: Use the template the vault CLAUDE.md lists for the note type.
- Distinctive: line 70
Link it in: Add a link from the note's natural parent (the project's overview note, the area note, or the topic's MOC), or the note is an …
- Very specific: line 74
If the obsidian plugin (obsidianmd/obsidian-skills) is installed, use it for Obsidian syntax and file formats: obsidian:obsidian-markdown …
- Distinctive: line 90
Write the plan file in the scratchpad:
- Very specific: line 123
After each run, rerun scan.py lint and report the change in the summary counts.
“Common” is measured: kept by at least 6 in 10 of the 62 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Obsidian vault
Search, file, link, organize and clean up the vault, keeping its conventions and never breaking a link.
The vault's own CLAUDE.md owns the conventions: folder structure, file naming, frontmatter, templates, and the obsidian-vault-rules JSON block the scanner reads. A vault without one starts from references/vault-claude-md.example.md (a PARA + Zettelkasten layout), adapted to the vault as it is. Read it at the start of every session. This skill owns how changes are made safely, not what the conventions are. When the two disagree, fix the vault CLAUDE.md (prose and rules block together) with the user's yes.
Two scripts do the mechanical work. Both print JSON. Run them with python3, from this skill's folder or by absolute path:
| Script | Does | Writes? |
scripts/scan.py | lint, backlinks, find, unlinked, resolve, inbox, rules | Never |
apply/apply.py | preview, run, checkpoint, import | The only writer |
The vault path comes from config.json (vaultPath). If it is missing, stop and tell the user to copy config.example.json to config.json. Every command also takes --vault <path>, before or after the subcommand.
Hard rules
- Moves and renames go through
apply.py, nevermv, Write-then-delete, or Finder. A move on disk breaks every link to the file, and Obsidian's "update links" setting only works for renames inside the app.apply.pyrewrites wikilinks, embeds, markdown links and canvas nodes, and keeps the old visible text as an alias when a name changes. - Nothing is deleted. Empty junk (blank
Untitlednotes, 0-byte stubs) moves to<archive>/_trash/, the vault's bin. Inactive notes that have content move to<archive>/<area>/. (<inbox>,<archive>and<templates>are the folders the rules block names.)apply.pyhas no delete operation; don't usermor the trash in its place. That includes text: fixing a broken link means retargeting it, never deleting the link or the bullet it sits in. - Every change is a git commit in the vault, local only.
apply.py runcommits its own batch, sogit revert <sha>undoes it. Never push the vault repo. A run that fails partway, or is interrupted, undoes its own moves and writes and reportsnothing was changed(orno file was changedplus the new empty folders it left, which you may remove once the user agrees). If it reportsthe rollback was incomplete, stop and show the usergit statusin the vault before anything else, and never--checkpointover it.run,importandcheckpointrefuse to start while files named.obsidian-vault-N-<name>exist: they are notes an interrupted run left behind. The name after the prefix can be cut short for long names, so take each original name fromgit status(it lists the note as deleted) and rename the file back to it first. - Approval before any batch. Show the
previewoutput (moves, every link it will rewrite, frontmatter it will add), get a yes, thenrunthe same plan file. A single new note the user asked for needs no extra approval. "I'm busy, just do it" doesn't remove this step. It changes its shape: put every batch in one message, each with its preview summary, and ask for one yes covering all of them. A guess (a retarget with more than one candidate, a folder chosen by elimination) is never applied silently: list it in its own "needs your call" group. - Leave these alone unless the user names them: the structure of the vault's home or dashboard note; folders that other tools write into (the vault
CLAUDE.mdlists them);.obsidian/; and<templates>/. - Add frontmatter, never overwrite it.
apply.pyfills a key only when its lines are plainly empty (tags:,[],"",~,null, bare-items) and skips every other key, comments included, so nothing already written is rewritten or deleted. A skipped key that lint still reports (for exampletags: # later, which YAML and Obsidian read as empty) goes in "needs your call" for the user to fix by hand.date:satisfiescreated:.
Dirty vault and the first checkpoint
run and import refuse to start while the vault has uncommitted changes, unless given --checkpoint, which first commits them as obsidian-vault: checkpoint before ….
- If
git -C <vault> log --oneline --grep '^obsidian-vault:'prints nothing, this is the first run. Show the user theuncommitted_changescount frompreviewand the top folders affected (git -C <vault> status --short), and ask before passing--checkpoint. That commit becomes the baseline. The count leaves out.DS_Storeand.obsidian/workspace.json, which the OS and the app rewrite on their own; they ride along in the next real commit and never count as dirt. - After that, pass
--checkpointwithout asking. It only commits the user's own edits from Obsidian.
Session start
- Read
<vault>/CLAUDE.md, including its method section if it has one (for example how PARA picks a folder and how Zettelkasten notes are written and linked). - Run
scan.py rules. If_sourcesays defaults, the rules block is missing: tell the user, and offer to add one that matches the prose.
Search
| Need | Command |
| By tag (nested tags match) | scan.py find --tag finance |
| By property | scan.py find --prop status="🔵 In Progress" |
| Text, name or folder | scan.py find --text 'regex' --name 'regex' --folder '01 - Projects' |
| Who links here | scan.py backlinks "<note name or path>" |
| Where a link points | scan.py resolve "<link text>" --from "<source note>" |
For a broad full-text question, Grep over the vault works too. Answer with vault-relative paths, and quote the matching line.
Capture: file a new note
- Folder and note type. Apply the filing rules in the vault
CLAUDE.md(with the example's PARA method: its tests in order, and a note type from its Zettelkasten table). Look at the sibling notes in the folder you pick before deciding. When two folders fit, leave the note in the inbox and say why. - Name. Follow the naming rule in the vault
CLAUDE.md(lowercase-hyphenated,.md). Check that the name is unique:scan.py resolve <name>must return null, or wikilinks to it become ambiguous. Template. Use the template the vault
CLAUDE.mdlists for the note type. Templater won't run on a file written to disk, so replace every<% … %>yourself:Expression Write tp.date.now("YYYY-MM-DD"),tp.file.creation_date()today, YYYY-MM-DDtp.date.now("dddd")/("MMM Do")weekday / Nov 23rdtp.date.now("YYYYMMDDHHmm")now, digits only tp.file.titlethe note's title in words anything else the value it would produce; delete the expression if none applies No
<%may remain.scan.py lintreports leftovers astemplater_leftovers.- Frontmatter. At least
tags(lowercase-hyphenated, reuse tags the siblings use) andcreated. A project's main note (the one made fromproject.md) also getsstatus; other notes inside a project folder don't. - Link it in. Add a link from the note's natural parent (the project's overview note, the area note, or the topic's MOC), or the note is an orphan from day one.
For a permanent note, also: state its idea in one sentence. If you can't, propose a split and let the user decide. Run
scan.py find --folder "<resources folder>" --text '<key term>'for related notes and link at least one in its Connections section. - Commit:
apply.py checkpoint -m "add <note>".
If the obsidian plugin (obsidianmd/obsidian-skills) is installed, use it for Obsidian syntax and file formats: obsidian:obsidian-markdown for callouts, embeds and properties, obsidian:defuddle for a web page as a note, obsidian:obsidian-bases for .base files, obsidian:json-canvas for .canvas.
Link
- Unlinked mentions:
scan.py unlinked "<note>"lists notes that mention its title or aliases in plain text. Propose links as a table (source, line, the new link). On approval, edit each source, linking only the first mention:[[target|text as written]]. - MOC upkeep: compare a MOC's links with
scan.py find --folder <topic folder>. Propose the missing notes under the right MOC headings. - A single edit can go through the Edit tool (read the note first), then
apply.py checkpoint -m "<what>". Several edits go in a plan'seditslist instead, so they get a preview and one commit.
Organize: inbox, moves, archive
One note ("move X", "rename X", "archive X"): scan.py backlinks X to see what will be rewritten, pick the destination as in Capture steps 1-2, then steps 3-5 below with a one-move plan. No inbox scan needed.
The inbox:
scan.py inboxlists inbox notes with their age, size and first line. Read each one.- Propose a table: note, destination path (folder and new name), tags, and the parent note that will link to it. Include archiving as an option. Leave a note in the inbox when its home is unclear, and say why.
Write the plan file in the scratchpad:
{ "description": "triage inbox: 3 notes", "moves": [{"from": "00 - Inbox/quick note.md", "to": "03 - Resources/Tools/quick-note.md"}], "frontmatter": [{"path": "03 - Resources/Tools/quick-note.md", "set": {"tags": ["tools"], "created": "2026-10-26"}}], "aliasOnRename": true }frontmatterpaths are the paths after the moves. Forcreated, usecreated_guessfromlint,createdfromscan.py inbox, or the file's birth date. Never use today's date for an old note. A filed capture keeps its text as written, half-finished lines included; it gets frontmatter, not a template. A rename needs noaliasesentry for the old name: Obsidian doesn't resolve links through aliases, andapply.pyalready rewrote every existing link.apply.py preview <plan>, show the result, get a yes, thenapply.py run <plan> [--checkpoint]. Report the commit and itsundoline. The preview'semptied_folderslists folders the plan leaves empty: say so in the approval message, especially for a whole project folder. The skill never removes folders; the user can remove them in Finder."checkpoint": nullin the result means there was nothing to commit first.- Then add the parent-note links from step 2, and commit them with a checkpoint.
Import from a folder outside the vault: apply.py import <file>... --to "<vault folder>" copies the files under their original names and commits them. The source is never touched. Then rename them with a normal plan so their links get rewritten. Deleting the source folder is a separate step: show what is in it and ask first.
Cleanup
scan.py lint(add--limit 20for a first look). Show thesummaryas a table, then work through the kinds in this order. A batch is one plan of 25 files or fewer, and it may mix kinds. A whole-vault cleanup doesn't have to finish in one session: stop after the batches the user approved and report what is left.Kind Fix broken_linksFind the intended target ( find --name,find --text), confirm it withresolve, and retarget through the plan'sedits({"path", "find", "replace"};findmust occur exactly once in the file, so include enough of the link). A link to a note that was never written stays as it is unless the user says otherwise; it is a placeholder, not an error.templater_leftoversRender the expressions, as in Capture step 3. missing_frontmatter,missing_keysA plan with frontmatteronly. Propose tags from the folder and siblings, andcreated_guessfor the date.unportable_namesRename first. Windows can't store `<>:" ?*` or a trailing dot or space, so syncing the vault to a Windows device fails on them. namingA plan with renames to suggest. Where the item hassuggest_taken, pick a more specific name; where it hasname_from_content(Untitled notes), name it from what the note says. The preview shows every link it rewrites.emptyEmpty and orphaned: move to <archive>/_trash/(rule 2) as part of the batch. Empty but linked from somewhere: ask whether to fill it in or archive it, and leave it until the user answers.orphansLink from a parent note or MOC, or archive. Some are fine on their own; say which. duplicate_namesRename one so the names differ; links stay correct because apply.pywrites path-form links where a name is ambiguous.- After each
run, rerunscan.py lintand report the change in the summary counts. That is the check that proves the batch worked.
Common mistakes
| Mistake | Instead |
mv a note, then grep for links to fix | apply.py plan: one step, every link form, committed |
Grepping [[Old Name]] to find links | scan.py backlinks: it resolves headings, table pipes, %20, case and relative paths the way Obsidian does |
| Deleting an empty or duplicate note | Move it to <archive>/ |
Leaving <% tp... %> in a new note | Render every expression yourself |
Using today's date as created for an old note | created_guess, or the file's birth date |
| Filing a new note without linking it anywhere | Link it from its parent note or MOC |
| Renaming notes in a folder another tool writes | Leave those folders to the tool that owns them; exempt them in the rules block |
| Writing your own link checker | scan.py lint: hand-rolled ones miss table pipes (|) and report dozens of false broken links |
| A tarball or file copies as the backup | apply.py commits each batch; git revert undoes it |
| "User is busy" so batches skip approval | One message, all batches, one yes; guesses listed apart |
Tests
tests/run.sh runs the suite. tests/test_safety.py is load-bearing: it fails if lib/ or scripts/ can write or spawn a process, if apply.py gains a delete primitive or a move that can overwrite, or if its git verbs grow beyond rev-parse status add commit log. Never weaken it to make a change pass.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

