vault-template

A plain-Markdown Obsidian vault with Claude Code and Kiro hooks that keep your AI agent following the rules: files notes in place, appends, and archives instead of deleting.

Vault Template

A plain-Markdown notes vault for Obsidian, with Claude Code and Kiro hooks that keep the AI agent following the vault's rules.

Website: https://shaynemeyer.github.io/vault-template/

Requirements

Platform support

PlatformStatus
macOSSupported; tested with Claude Code
WindowsNot yet proven; work in progress

On Windows, the hooks are bash scripts and need Git Bash and jq. Without Git Bash, Claude Code runs hooks in PowerShell, where they fail (Claude Code hooks). Full Windows support is being tested.

Setup

  1. Create your vault from this template:

    gh repo create my-vault --private --template OWNER/vault-template --clone
    

    Keep your vault private. It will hold your notes.

    A private GitHub repo is one way to store and back up the vault. A folder in iCloud Drive, Dropbox, OneDrive or Google Drive, or Obsidian Sync, works too. Use one sync method per vault. See Where to store your vault.

    Without gh: click Use this template on GitHub, create a private repo, then git clone it. Or click Code, then Download ZIP to keep the vault local. The user guide has details.

  2. Open the my-vault folder as a vault in Obsidian.

  3. Edit CLAUDE.md: set the title and adjust the rules to taste.

  4. Start Claude Code or Kiro from the vault root. The hook paths are relative to it.

Structure

FolderPurpose
_inbox/Quick captures. Process within 7 days.
daily/One note per day, YYYY-MM-DD.md. Append-only.
projects/Active work only. Archive after 2 weeks untouched.
people/One folder per regular contact. Used for 1:1 prep.
_archive/Dormant material. Archive is not delete.

CLAUDE.md holds the rules the agent follows. Each folder's README.md describes it in more detail.

Commands

Slash commands live in .claude/commands/ (Claude Code only; Kiro doesn't read them).

CommandWhat it does
/capture <text>Saves a quick note to _inbox/<date>-<slug>.md
/dailyCreates today's daily note, or adds missing template sections
/process-inboxProposes a destination for each inbox note; moves on approval
/planRanks active projects and names the next action
/weekly-reviewSummarizes the week and flags stale inbox notes and projects

Optional: role-based weekly reviews

Example reviews tailored to a way of working. Keep the ones that fit and delete the rest; /weekly-review works for everyone. See the user guide for example workflows.

CommandForRelies on
/weekly-review-pmProduct managersprojects/sprint-*/, relationship: direct-report
/weekly-review-founderFoundersprojects/<project>/decisions.md
/weekly-review-freelancerFreelancersprojects/<client>/scope.md with billing
/weekly-review-kwKnowledge workerspeople/<name>/open-asks.md, #later tags

Hooks

Scripts live in .claude/hooks/. Claude Code registers them in .claude/settings.json; Kiro registers them in .kiro/hooks/vault-hooks.json.

HookWhat it doesClaude CodeKiro
session-start.shLoads CLAUDE.md into contextYesYes
user-prompt-submit.shAdds a folder-rules reminder to each promptYesYes
post-tool-use.pyLogs file edits to today's daily noteYesNot yet
stop.shAsks the agent to log decisions at end of turnYesNot yet
pre-compact.shAsks the agent to log decisions before compactionYesNo equivalent

post-tool-use.py and stop.sh aren't wired into Kiro yet: Kiro's docs don't specify the event fields they need.

Docs: Claude Code hooks, Kiro hooks.

Sensitive notes

The agent can read anything in the vault, and so can your sync or backup provider. Don't store passwords, keys or other secrets here.

To keep a folder away from Claude Code, you need both a Read deny rule and the sandbox in .claude/settings.json. Either one alone leaks: the deny rule misses grep -r and scripts, and the sandbox misses the Read tool.

{
  "permissions": { "deny": ["Read(./private/**)"] },
  "sandbox": {
    "enabled": true,
    "allowUnsandboxedCommands": false,
    "failIfUnavailable": true,
    "filesystem": { "denyRead": ["./private"] }
  }
}

This was tested on macOS with a top-level folder; nested paths are untested. The sandbox needs macOS, Linux or WSL2. Kiro's .kiroignore blocks direct reads and search, but its docs don't say whether shell commands are covered. Notes that must never be read belong where the agent can't read them at all, such as an encrypted disk image you unmount before a session.

Claude Code sends what the agent reads to the model provider (Anthropic by default). To keep notes on your machine, you can point it at a local model instead: Ollama 0.14+ serves an Anthropic-compatible API (Ollama guide).

export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_BASE_URL=http://localhost:11434
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
claude --model qwen3.8:27b-mlx   # any local model with tool support

CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC turns off telemetry and feedback traffic to Anthropic. Also set "skipWebFetchPreflight": true in settings, or WebFetch still sends hostnames to Anthropic (data usage). Local models are usually weaker at following the vault's rules. This was tested once on macOS with qwen3.8:27b-mlx: only localhost connections were made, and the model archived a note instead of deleting it.

Docs: permissions, sandboxing.

Developing the template

Your own vault commits daily notes as usual. When working on the template itself, the hooks still write daily/<date>.md, which shouldn't ship. Ignore it in your clone only:

echo 'daily/2*.md' >> .git/info/exclude

.git/info/exclude is never committed, so vaults created from the template still track daily notes. Keep notes about template work in .local-only/, which .gitignore excludes.

Full guide: _archive/docs/user-guide.md. It lives inside the vault's archive; delete it once you no longer need it.

Related

How to Install

  1. Download the ZIP or clone the repository
  2. Open the folder as a vault in Obsidian (File → Open Vault)
  3. Obsidian will prompt you to install required plugins

Stats

Stars

0

Forks

0

Last updated 27d ago

Categories

Tags

claude-codekiromarkdownnotesobsidiantemplate