obsidian-ai-vault-kit
Starter rulebook for running an AI assistant inside an Obsidian vault
Obsidian AI Vault Kit
A starter rulebook for running an AI assistant (Claude Code, Codex, Gemini, anything that reads a markdown file) inside an Obsidian vault without it making a mess.
I built this after watching an AI quietly rename files, invent facts about me, and ship changes I never asked for. The fix was not a smarter model. It was a short set of written rules the AI has to read before it touches anything. This kit is that set, cleaned up so you can drop it into your own vault.
What you get
| File | What it does |
|---|---|
CLAUDE.md | The master rules file. Hard rules, session routine, folder map, note format. Put it at your vault root. |
docs/working-with-ai.md | How the AI should collaborate: when to ask, when to act, how to log work, how to plan features. |
docs/maintenance-playbook.md | The checklist to run before saving a note, plus what is safe to do alone and what needs your approval. |
docs/writing-style.md | A plain-voice style guide, including the list of AI writing habits to ban. |
docs/skills-router.md | A single page that tells the AI which skill or reference to use for which job. |
templates/ | Note frontmatter, a per-folder rules file, and a work log template. |
skills/vault-rules/SKILL.md | A Claude Code skill that makes the AI read the rules before any job. |
Install
- Copy
CLAUDE.mdinto the root of your vault. - Copy
docs/intoGuidelines/(or wherever you keep reference notes). - Open
CLAUDE.mdand fill in the parts markedYOUR VALUE: your name, your folders, your own hard rules. - Optional: install the skill so Claude Code checks the rules on its own.
mkdir -p ~/.claude/skills
cp -r skills/vault-rules ~/.claude/skills/
- Optional: add this line to
~/.claude/CLAUDE.mdso it applies in every project, not just the vault:
Before any task, read the vault rules at <path to your vault>/CLAUDE.md.
How it works
The rules are layered on purpose.
- Your current request always wins.
- Then the root
CLAUDE.mdand the folder rules file. - Then the docs in this kit.
- Then any skills or outside references.
Every folder can carry its own small CLAUDE.md (see templates/folder-CLAUDE.md). The root file points to it, so the AI reads the local rules for the folder it is about to write into.
The five ideas that matter most
- Only change what was asked. "Fix these three bugs" does not include "and I also redesigned the header."
- Draft, show, wait. Nothing goes live (push, deploy, publish, send) until you say yes. A yes for one change is not a yes for the next.
- Ask, do not guess. When something is truly unclear, ask with two to four real options and a recommendation.
- Never invent facts about you. Missing detail becomes
TBDand a question. - Never store secrets. Write down where a secret lives, not the secret.
Make it yours
This is my setup with my life taken out. Change the folder map, the note types and the hard rules to match how you work. If a rule does not earn its place, delete it. A short rulebook the AI actually follows beats a long one it skims.
Contributing
Issues and pull requests are welcome. Keep the voice plain, skip em dashes, and keep examples generic. See CONTRIBUTING.md.
Credit
Written by Rifat Newaj Razin. MIT licensed.
How to Install
- Download the ZIP or clone the repository
- Open the folder as a vault in Obsidian (File → Open Vault)
- Obsidian will prompt you to install required plugins
Stats
Stars
0
Forks
0
License
MIT
Last updated 1mo ago
Categories
Tags