obsidian-agent-vault-template
Obsidian vault template for software projects shared by humans and AI coding agents: schema, zero-dependency CLI, Claude Code hooks and skills, dashboards, CI.
Obsidian Agent Vault Template
An Obsidian vault for software projects that humans and AI coding agents share. It holds your decisions, plans, work items, incidents, domain knowledge and go-to-market notes as plain Markdown in git, with the tooling that keeps it consistent when several agents write to it at once.
- One zero-dependency CLI (
scripts/vault.mjs, Node 20+) creates notes from templates with allocated IDs, lints every note against a schema, prints a briefing for agents, and enforces per-role write scopes. - Claude Code integration out of the box: hooks that brief the agent at start, block writes outside its role, and lint every saved note; six workflow skills; three subagents.
- Works with any agent that reads
AGENTS.md(Codex, Cursor, Aider, Gemini CLI...). The hooks are Claude-specific; the rules, CLI and CI are not. - Live dashboards in Obsidian (core Bases plugin, no Dataview) for the work board, review queue, decisions, incidents and vault health.
- CI that runs the same lint on every pull request and stops agent branches from changing protected files.
- Humans gate what becomes canon: agents propose ADRs, plans and domain notes; only a human accepts, approves or verifies them.
Quick start
- Create your vault: click Use this template on GitHub (keep the new repo private), or download a copy without the template's history:
Keep the vault in its own repo, next to your code repos (npx degit <owner>/obsidian-agent-vault-template my-vault && cd my-vault && git init~/dev/my-app,~/dev/my-vault). - Check it works (Node 20+):
npm test # unit tests + "the vault lints clean" npm run orient # the briefing an agent sees - Make it yours: search for
TODO(setup)and fill each one in (product description, areas, high-risk areas, lanes):
Then setgrep -rn "TODO(setup)" --include=*.md .vaultNamein_System/schemas/vault.config.json. Full checklist: docs/getting-started.md. - Open it in Obsidian (1.9+; 1.12+ for the CLI): Open folder as vault, then follow
_System/Plugin Setup.md. Open Home. - Start an agent with a role:
VAULT_AGENT_ROLE=product-pm claude # in the vault cd ../my-app && VAULT_AGENT_ROLE=eng-frontend claude --add-dir ../my-vault # from a code repo
Documentation
| Guide | What it covers |
|---|---|
| Getting started | Creating your vault, the setup checklist, first notes, first agent session |
| Concepts | Note types, IDs, statuses, authorship and review, protected paths, roles |
| CLI reference | Every vault.mjs command, flag, lint rule and exit code |
| Working with agents | Claude Code hooks, skills, subagents; other agents; code repos; cloud sessions; handoffs |
| Workflows | Day-to-day: capture, plan, build, review, incidents, weekly review |
| Customizing | Adding roles, note types, properties, folders, dashboards; the config file in full |
| Git and CI | Branching modes, the CI workflow, branch protection, conflicts |
| Obsidian | Plugins, dashboards, Templater, the Obsidian CLI |
| Troubleshooting | Common errors and what to do |
| Examples | Filled-in ADR, plan, work item, handoff and session log for a made-up product |
Inside the vault, the same rules are in AGENTS.md (the agent contract) and _System/ (conventions, note types, multi-agent protocol, agent setup, plugin setup).
Layout
00-Inbox/ unsorted captures; triaged into typed notes
01-Product/ specs, personas, research, competitive, product decisions (Vision/ is human-only)
02-Engineering/ ADRs, RFCs, architecture and components, integrations, guides
03-Operations/ incidents, runbooks, releases, security and threat models, infrastructure
04-Domain/ knowledge about your problem space, with citations; external data sources
05-Go-To-Market/ positioning, campaigns, content, accounts, pricing
06-Business/ vendors, business decisions (Legal/, Finance/, People/ are human-only)
07-Planning/ roadmap, projects, plans, work items, sprints
08-Agents/ roster (role charters), session logs, handoffs, learnings, playbooks
09-Journal/ daily, weekly, meetings
90-Reference/ clipped external material
99-Archive/ retired notes (never delete; archive)
_System/ config, templates, dashboards, conventions (human-only)
docs/ this documentation (not part of the vault's notes)
scripts/ vault.mjs and its tests
.claude/ Claude Code settings, hooks, skills, subagents
.github/ CI workflow and PR template
Every folder has a _README.md saying what goes there, which note types, and who writes it. Folders are otherwise empty: the template ships only what setup needs (the starter role charters, a Product Overview stub, a work-item playbook, Home).
Requirements
- Node.js 20 or newer (no
npm install; there are no dependencies). - git.
- Obsidian 1.9+ for the dashboards (Bases). Optional: agents never need Obsidian.
- Claude Code for the hooks and skills. Optional: other agents use
AGENTS.mdand the CLI.
Never commit
Secrets, credentials, customer or production data, or personal details of individuals. The vault is project knowledge, not a data store. AGENTS.md tells agents the same, and .gitignore excludes .env files.
License
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 2d ago