Stephan Miller
Your Agent Knows Obsidian. It Doesn't Know Your Vault.

Your Agent Knows Obsidian. It Doesn't Know Your Vault.

A year ago I set up OpenClaw on a mini PC at home, right around the time it came out. Every note I gave it started with the same scavenger hunt. It was running whatever DeepSeek model was current then, and it could not remember where my Obsidian vault lived. On its own system. So the first few messages of every capture went to the two of us figuring out where the files were.

Then I had to recite the folder tree from memory. Projects, then Blogs, then stephanmiller.com, then Ideas. Then it would get partway into making the note and trip, usually on what frontmatter that kind of note needed. All of that happened before I got to say the idea I had opened the chat to save.

I blamed the model. It runs a newer, more capable DeepSeek now and the results are better. But the real problem was that I was explaining my vault from scratch every time and I thought it was something the agent would just eventually pick up.

Mechanics Skills vs. Conventions Skills

There are good Obsidian skills out there now. The obsidian-skills repo, which lives in Obsidian’s own GitHub, includes obsidian-markdown, obsidian-bases and obsidian-cli. I use them.

But they teach the tool, which is the same for everybody. Your Markdown and my Markdown work the same way. But they don’t know about my vault in particular: that blog ideas go in a specific folder, that an idea note needs a numeric priority or it vanishes from my dashboard, that a project already has a tag and inventing a second one means the note gets lost.

There are two kinds of skill here. A mechanics skill knows Obsidian. A conventions skill knows your vault: where things go, which template and frontmatter each note type gets, what to ask you and what it can figure out by itself. You can’t just install the second type but your agent can help you build it.

Write the Explanation Once

If the problem is re-explaining, the fix is to explain once and never again. So I had it written down as a skill called vault-writer.

Write the Explanation Once

I had Claude Code write it for OpenClaw. Claude Code is where I have short, focused sessions with a strong model. OpenClaw is where I have long, rambling conversations over Telegram with DeepSeek. So the strong agent wrote the instructions the other one would follow.

The first version was custom-built for OpenClaw. Then I started syncing my skills to every tool with skillshare, which meant Claude Code got a copy too. So eventually it had to be generalized.

Claude Code had never had much trouble with my vault. I always opened it in a terminal inside the vault folder, so it never needed to know where the vault was. So it didn’t need to question the hard-coded path to the vault that only worked for OpenClaw. That changed when I got lazy. Now, if I’m in some other project and don’t feel like opening another terminal, I just tell Claude Code to update my vault from wherever it is. The path problem finally showed up, and we generalized the skill.

What Goes in One

Mine has grown, but the skeleton is five things.

Where the vault is. This sounds dumb until your agent runs from outside the vault, or on more than one machine. Mine sits at a different absolute path in the OpenClaw container and on two Macs whose usernames differ, so the skill never hardcodes a path. It starts with a resolver that tries each candidate location until one has an .obsidian folder. If none does, it stops and asks.

The folder map. A table of what goes where: ideas by type, the Slip Box, daily notes, blog rough drafts, client notes.

Templates and frontmatter per note type. Which template file each kind of note starts from, and what the frontmatter fields mean. The blog category, for example, has to be one that already exists on the site. That rule is in there because it made up a new category before.

What Goes in One

Gates. It shows me the exact path and content before it writes anything, and it waits for a yes. Several notes at once still get one confirmation block covering all of them.

What to ask and what to work out. For a blog idea, the routing question it asks, and only when my wording doesn’t already answer it, is whether it is a full post or an idea for the list. A full post gets its own note from the template. A spark goes on the backlog list. For many notes, it asks for a priority, because the vault’s Home.md only shows notes with a priority above 0. About 43 of my idea notes sit at 0 on purpose, parked on the back burner. So a default of 0 shelves the idea.

Everything else, it works out. It reads what I said and decides whether it’s an idea to build, a concept for the Slip Box, or a to-do for a project. It asks only when it can’t tell.

It Grows From Mistakes

That full-post-or-idea question was not in the first version. It exists because I once said “add another full note blog post idea,” and the idea went onto the backlog list instead. We had to undo it. Now the workflow opens like this:

**First, check his words for a signal. These decide it, don't ask if one is present:**

| He said… | Path |
|----------|------|
| "full note", "full post", "write it up", "a draft", "flesh it out" | → B (active draft) |
| "add to the list", "for later", "an idea for a post", "backlog", "jot down" | → A (backlog) |

**No signal? Then ASK. Never guess, and never default to A.**

Most of the skill exists because of things like this. The write gate is a hard, non-negotiable rule because it once broke on a batch: I dictated several to-dos at once and the agent wrote and committed each one without showing me a line. The Slip Box is the default home for loose ideas because the daily note used to be the dumping ground, and everything that went in there needed a cleanup pass I never did.

It Grows From Mistakes

When the agent files something wrong, don’t just fix the note. Fix the skill, so it can’t happen again. In my setup that happens in two steps. OpenClaw doesn’t edit the skill mid-conversation over Telegram. It appends what went wrong to an ISSUE-LOG.md file next to the skill. Later, a deliberate Claude Code pass turns those entries into fixes and clears the log. I am not sure if these two steps are necessary any more, because the DeepSeek model I use in OpenClaw is much more capable than it used to be.

You don’t have to write the whole skill up front. Start with the folder map. The mistakes will tell you what to add next.

Now It’s Barely a Conversation

These days I say “I have a list of notes from my notebook” and then I ramble. It routes each one and asks only what it can’t work out on its own.

I wrote about the front end of this, dictating notebook pages to an agent instead of OCRing them, in I Built an Obsidian OCR Plugin for My Notebooks, Then Started Talking to OpenClaw Instead. The short version: notes that sat in the notebook for a month come out bigger than they went in, and new ideas show up along the way. When I used to type them out myself, I’d get lazy and they’d come out shorter than the original.

The talking mentioned in that post only works because the agent already knows where everything goes.

If You Also Code

The same skill keeps a project’s tasks in sync between its vault note and the repo where the work happens, which for me usually means a living plan with a TASKS.md. The design point is that the coding skill knows nothing about the vault. The vault note holds a pointer to the repo, and nothing goes into TASKS.md just to serve the sync. The vault skill is the glue, so the coding side stays something anyone can use without my vault attached.

Build Your Own

Every section above comes down to a question only you can answer about your vault. So don’t write the skill yourself. Have your agent interview you and draft it. Paste this into whatever agent you use with your vault:

Build Your Own

I want you to write a skill that teaches you the conventions of my Obsidian
vault, not Obsidian itself. Interview me first, one question at a time, and
don't draft anything until we've covered all of these:

1. Where does the vault live on each device you run on, and how should you
   find it if the path is different?
2. What kinds of notes do I make, and which folder does each one go in?
3. Which templates exist, which note type uses each one, and what frontmatter
   does each type need? Which fields have values that hide or bury a note if
   they're wrong?
4. What must you ask me before filing a note, because a default would
   quietly make a decision for me?
5. What should you never do without showing me first?
6. What can you work out on your own from what I say?

Before you ask anything, read my Templates folder and a few recent notes of
each type, so your questions are about my vault and not generic.

Then draft the skill as a folder map, a per-type section, a list of what to
ask, and a confirmation rule. Add a short section telling yourself to log
filing mistakes to an issue log, so we can fix the skill later instead of
just fixing the note.

Run it for a week and keep that issue log open. Mine started as one big file and has grown into a router plus ten workflow files. It’s the one Obsidian skill nobody else could have written for me.

Stephan Miller

Written by

Kansas City Software Engineer and Author

Twitter | Github | LinkedIn

Updated