VAULT
frzxw

obsidian-vault-template

Obsidian vault template for human + AI agent management: ACE layout, closed frontmatter schema, Bases dashboards, Dataview query library, agent skills, scheduler routines, and a vault linter.

Obsidian Vault Template: Agent-Managed Second Brain

An Obsidian vault template designed from the start to be managed jointly by a human and AI agents. The structure, frontmatter schema, and operating rules are written explicitly inside the vault itself, so any agent that walks in can start working without a verbal briefing.

Built for a single owner who uses several AI agents (Muse, GPT, Gemini, Grok, Hermes, and similar) to capture, plan, and remember across sessions.

License: MIT Obsidian

Why this exists

Most vault templates organize notes for a human reader. This one also organizes them for the agents who will read and write the vault every day:

  • Rules live in the vault. System/conventions.md is the single source of truth for layout, capture, board flow, and agent behavior. AGENTS.md, CLAUDE.md, and GEMINI.md at the root are thin bridges that point every major agent CLI at the same rulebook.
  • A closed schema. 22 note types with documented properties in System/Schema.md. One property name always carries one value type, so dashboards never break silently.
  • Bases for display, queries for retrieval. Dashboards are native Obsidian Bases files in Views/; the kanban board uses the native Bases kanban layout and dragging a card writes its status back to frontmatter. Agents read the vault through the Dataview query library in System/Queries.md (with core search embeds as the no-plugin fallback), never by crawling folders.
  • Multi-agent safety. An agent registry (System/Agents.md), an append-only operations log (System/Log.md), provenance properties (generated, verified, review), and a search-before-create write contract keep several agents from corrupting each other's work.
  • Checked by tooling. A Python linter validates frontmatter against the schema in System/Schema.md: property names and value formats, required and conditional properties, closed vocabularies, and secret patterns. It also checks template headings, the tag registry, English-only content, graph connectivity and reachability, and provenance and judgment metadata. It runs locally, as a pre-commit hook, and in GitHub Actions.
  • Standardized, and the standard is enforced. All content is written in English, every typed note starts from its template and keeps the template's headings, tags come from a closed registry, and every content note must link into the graph. The linter fails on any of these, and the graph view ships with color groups per note type (.obsidian/graph.json), so a well-formed vault is also a readable graph.
  • Judgment metadata. Notes carry the fields an agent needs to decide how to treat them: a summary for triage, a sensitivity sharing gate, confidence and source-type for trust, verified-at for verification freshness, and superseded-by so replaced notes are never cited as current. Each field has one named write trigger in the rulebook, because metadata without a trigger goes stale.
  • Provenance on every note. Agent-written notes record which agent and which model wrote them (generated, model, last-edited-by), and the query library answers "who wrote what" without digging through the ops log.
  • Autonomous upkeep, ready to install. .agents/ ships seven Agent Skills (session, capture, daily, review, organize, memory, lint), a four-role roster, and a scheduler ruleset with ten routines. An AI that clones the repo can register itself, install the routines into its own scheduler, and keep the vault filled and organized between sessions, under the same write contract and lint gate as interactive work.
  • Examples everywhere. Every folder ships with a filled, fictional example, from daily notes and weekly reviews to handoffs, imports, and an archived project, so the expected shape of each note is visible before you write your first one.

Install

The fast path is one prompt. Open your AI coding agent (Claude Code, Codex, Gemini CLI, or any agent that can read files and run commands), paste the prompt below, and answer three short questions. The agent clones the template, registers itself, installs the seven upkeep skills, schedules all ten routines on its own host, runs the linter, and creates your first daily note.

Set up my Obsidian vault from the obsidian-vault-template.

1. If the current folder is not that template yet, clone
   https://github.com/frzxw/obsidian-vault-template into a folder I
   confirm (default: ~/obsidian-vault) and work inside it.
2. Follow .agents/INSTALL.md in the repo exactly. It covers
   registration, the three setup questions, skill installation for
   your host, scheduler installation for every routine in
   .agents/scheduler/routines.yaml, and verification.
3. Ask me only the questions INSTALL.md lists. Decide everything
   else from the repo's own rules (AGENTS.md and
   System/conventions.md).
4. Finish with the report format at the end of INSTALL.md: what was
   installed, which routines are scheduled at what times, and
   anything that needs my decision.

Prefer to do it by hand? Click Use this template on GitHub (or clone and delete the .git folder), open the folder as a vault in Obsidian 1.14 or newer, enable Templater when prompted, run python3 tools/lint_vault.py once, then install pre-commit and run pre-commit install so the vault-lint hook runs before every commit. Fill in System/Memory/about-the-owner.md, and delete the Example Project folder once your first real project exists.

Structure

Atlas/       Knowledge: Notes, Sources, Snippets, Logs, Maps (MOCs), People, Decisions
Calendar/    Time: Daily, Weekly, Monthly, Quarterly, Yearly reviews, Handoffs
Efforts/     Action: Goals, Projects, Areas, Habits
Inbox/       Raw captures, processed to zero weekly
Imports/     Read-only machine-synced material (Readwise, Zotero, Web Clipper)
Views/       Obsidian Bases dashboards and the kanban board
System/      conventions.md, Schema.md, Tags.md, Agents.md, Log.md, Memory/, Templates/
Archive/     Dormant material, kept but not treated as current truth
Attachments/ Images and binaries
.agents/     Agent skills, role roster, and scheduler routines for autonomous upkeep

Folders carry no numeric prefixes. Order comes from the names themselves and from the bookmarks shipped in .obsidian/bookmarks.json, which pin Home, the board, the handoff file, and the Memory index.

How agents work in this vault

  1. At session start an agent reads System/conventions.md, the Memory index, NEXT SESSION PROMPT.md, and the latest daily note. Nothing else by default.
  2. Captures land in Inbox/ with a timestamped file name. Filing elsewhere is proposed, never silent.
  3. Feature notes are kanban tickets. Their status property drives Views/Active Work.base.
  4. Anything that needs its own due date or priority becomes a task note, because Bases cannot read checkboxes.
  5. At session end the agent archives its handoff to Calendar/Handoffs/, rewrites NEXT SESSION PROMPT.md, and appends its writes to System/Log.md.

Included tooling

  • tools/lint_vault.py, schema, vocabulary, orphan, and secret checks. Run python3 tools/lint_vault.py from the vault root.
  • .github/workflows/vault-lint.yml, the same checks on every push and pull request.
  • .gitleaks.toml and .pre-commit-config.yaml, secret scanning before a commit lands.
  • Templater templates for every note type except the two hub types, dashboard and moc, which are maintained by hand. The set includes a weekly review checklist.
  • deploy/, a Self-hosted LiveSync deployment pack: three sync routes (Cloudflare R2 with no server, CouchDB on Fly.io, CouchDB in Docker on your own VPS) with the compose stack, CouchDB config, and Caddyfile for the VPS route. The Self-hosted LiveSync plugin itself is bundled in .obsidian/plugins/ and enabled, so a fresh vault can sync as soon as a backend is configured.

Customizing

  • Add a note type: document it in System/Schema.md first, add a template, then use it. The schema is append-only; never change the meaning of an existing property.
  • Add a tag: register it in System/Tags.md first. Tags are a closed vocabulary on purpose.
  • Change the rules: edit System/conventions.md. Agent behavior changes next session, because every agent reads it first.

Requirements

  • Obsidian 1.14 or newer (Bases is a core plugin; the kanban layout needs 1.14).
  • Templater community plugin (required). Dataview is recommended: the dashboards run without it, the agent query library in System/Queries.md uses it as the fast path.
  • Optional: git for history and backup, Python 3 for the linter.

Contributing

Contributions are welcome. See CONTRIBUTING.md and the Code of Conduct. Changes to the schema or conventions should explain the problem they solve; structural changes go through a pull request.

License

MIT. See LICENSE.

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

License

MIT

Last updated 3h ago

Categories

Tags

agent-skillsai-agentsdataviewknowledge-managementobsidianobsidian-vaultpkmsecond-braintemplate-repositorytemplater