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

  1. Create your vault: click Use this template on GitHub (keep the new repo private), or download a copy without the template's history:
    npx degit <owner>/obsidian-agent-vault-template my-vault && cd my-vault && git init
    
    Keep the vault in its own repo, next to your code repos (~/dev/my-app, ~/dev/my-vault).
  2. Check it works (Node 20+):
    npm test          # unit tests + "the vault lints clean"
    npm run orient    # the briefing an agent sees
    
  3. Make it yours: search for TODO(setup) and fill each one in (product description, areas, high-risk areas, lanes):
    grep -rn "TODO(setup)" --include=*.md .
    
    Then set vaultName in _System/schemas/vault.config.json. Full checklist: docs/getting-started.md.
  4. Open it in Obsidian (1.9+; 1.12+ for the CLI): Open folder as vault, then follow _System/Plugin Setup.md. Open Home.
  5. 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

GuideWhat it covers
Getting startedCreating your vault, the setup checklist, first notes, first agent session
ConceptsNote types, IDs, statuses, authorship and review, protected paths, roles
CLI referenceEvery vault.mjs command, flag, lint rule and exit code
Working with agentsClaude Code hooks, skills, subagents; other agents; code repos; cloud sessions; handoffs
WorkflowsDay-to-day: capture, plan, build, review, incidents, weekly review
CustomizingAdding roles, note types, properties, folders, dashboards; the config file in full
Git and CIBranching modes, the CI workflow, branch protection, conflicts
ObsidianPlugins, dashboards, Templater, the Obsidian CLI
TroubleshootingCommon errors and what to do
ExamplesFilled-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.md and 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

MIT

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

License

MIT

Last updated 2d ago