VAULT
huzi53

obsidian-ai-workflow

Run your AI agent (Claude Code, Codex, Gemini and more) with an Obsidian vault as its memory: one AGENTS.md, 8 skills, a starter vault. Built for ADHD.

Obsidian AI Workflow

Run your AI agent with an Obsidian vault as its memory. One rules file and a set of skills tell your coding agent to work the way mine does: ask before guessing, remember everything in the vault, check its own work, and never post or pay without asking.

Made by Huzi. I have ADHD, so the whole system is built around one idea: I shouldn't have to remember anything, read long notes, or dig for the answer. The AI does the remembering, and every reply starts with the answer and ends with one next step I can do in 2 minutes.

I use this workflow daily with Claude Code, and this package was smoke-tested there (rules load, skills found). The rules are plain Markdown, so Codex, Gemini CLI, Grok and others should work too, but I haven't tested them. If you try one, an issue saying what worked would help.


What's inside

PathWhat it is
AGENTS.mdThe rules. One file every AI tool reads: vault, routine, answer format, research, build and safety rules.
CLAUDE.md, GEMINI.mdTiny pointers that load AGENTS.md in Claude Code and Gemini CLI.
SkillsNot in this repo any more. The 10 skills (brief, where, save-note, whiteboard, research-pipeline, site-loop, deploy, prove-test, missed-links, vault-check) now live in site-loop-kit, so there's one up-to-date copy. Setup step 2 copies them in.
vault-template/An empty starter vault: index, one example project hub with Research / Decisions / Open Questions notes.
.gitignoreKeeps your vault/ and .env files out of git.

The flow

Every request goes through the same routine. Small things (a question, a quick edit) skip straight to the answer.

flowchart LR
    A[You ask in chat] --> B{Big or small?}
    B -- small --> G[Answer]
    B -- big --> C[Ask questions<br/>+ suggest a skill]
    C --> D[Check the vault]
    D --> E[Ask for a reference<br/>if it's visual]
    E --> F[Write CHECKS.md<br/>then build]
    F --> H[Self-review +<br/>fresh reviewer]
    H --> G
    G --> I[Save what was learned<br/>to the vault]

For big projects, the skills chain together:

flowchart LR
    b[brief] --> w[whiteboard] --> r[research-pipeline] --> x[build] --> s[site-loop] --> p[deploy]

How the vault is laid out:

vault/
├── 00 Index.md                     ← front door: one line per project
├── Projects/
│   └── Bakery Site/
│       ├── Bakery Site.md          ← hub: what, where, status, next step
│       ├── Bakery Site Research.md ← raw findings, every claim has a URL
│       ├── Bakery Site Decisions.md← dated decisions with the why
│       └── Bakery Site Open Questions.md
├── Reference/                      ← research not tied to a project
└── Archive/                        ← raw originals; the AI doesn't read these

The mindset

These are the ideas behind the rules. Each one came from something going wrong.

  1. The vault is the AI's memory, not your homework. You never open the notes. You ask in chat, and the AI searches the vault and answers. If the AI says "read note X", the rules are broken.
  2. Ask before guessing. A wrong guess costs more than a 30-second question. Big tasks start with clickable questions and a one-line "here's what I'll make" that you approve.
  3. Checks before code. Before building or fixing anything, the AI writes 5-10 pass/fail checks. After every fix, it re-runs them all. This stops fixes from breaking things that already worked.
  4. Proof over vibes. Every research claim needs a URL the AI actually opened. Anything it couldn't open is marked "not checked", never quietly assumed.
  5. Fresh eyes before "done". The AI that built something is the worst judge of it. A separate reviewer that sees only the result catches what the builder missed.
  6. You stay in control of anything outside your computer. Push, post, send, pay, delete: always ask first, every time. Commits stay local until you say so.
  7. Build around your real limits. Write your limits (your computer, free tools only, testing on your phone) into AGENTS.md. The AI checks every plan against them before starting.
  8. Answer first, one next step. Lead with the answer, show progress with ✅, give real time estimates, and end with one action that takes under 2 minutes. Built for ADHD, and it works for everyone.

Set it up (10 min)

The cloned folder is your workspace: start every AI session inside it, so the rules, skills and vault are all in one place.

  1. Get the files. Clone the repo (or download the ZIP):
    git clone https://github.com/huzi53/obsidian-ai-workflow
    
  2. Get the skills. Clone site-loop-kit into your home folder (its tools look for it there), then copy its skills/ folder into this repo as skills/ (git-ignored here):
    cd ~
    git clone https://github.com/huzi53/site-loop-kit
    
    Claude Code users can install them as a plugin instead: see the site-loop-kit README.
  3. Make your vault. Copy vault-template/ to a new folder called vault/ inside the repo. vault/ is git-ignored, so your private notes never get pushed. Open it in Obsidian if you like; the AI only needs the folder. Keep vault-template/ as is: the AI copies it for each new project. Already have a vault? Put its path in AGENTS.md instead. Put the code for each project in projects/<name>/ (also git-ignored), each as its own git repo, so the AI's local commits land there and not in this one.
  4. Fill in AGENTS.md. Replace the 4 FILL IN lines at the top: your name, vault path, country and limits.
  5. Start your AI tool in the repo folder. It picks up the rules like this:
ToolHow it picks up the rulesSkills
Claude Code (tested)Reads CLAUDE.md, which loads AGENTS.mdInstall the site-loop-kit plugin, or copy skills/* to .claude/skills/, then type /brief etc.
Codex CLIReads AGENTS.md on its ownType brief or "run brief" (AGENTS.md tells it where the skill files are)
Gemini CLIReads GEMINI.md, which loads AGENTS.mdSay "follow skills/brief/SKILL.md"
Any other agent (Grok, Cursor, Copilot...)Tell it at the start: "Read AGENTS.md and follow it"Say "follow skills//SKILL.md"
  1. Try it. Start a session and type where, then ask for something small. You should get the answer first and one next step at the end.

Optional: install the ADHD skill

The answer format in AGENTS.md pairs with i-have-adhd by Ayoub G. It's a separate skill that shapes every reply for an ADHD reader, and it supports Claude Code, Codex, Grok, Gemini CLI, Cursor, Copilot and more. Follow its install guide for your tool. When both are on, it handles the style and AGENTS.md handles the workflow.


The skills

The skills live in site-loop-kit (setup step 2 copies them in). Each is a plain Markdown file with step-by-step instructions. Tools that support SKILL.md folders load them as commands; any other tool can just be told "follow skills//SKILL.md".

SkillWhen to use it
briefBefore a big or vague task: 3 lines (goal, format, tools), then wait for OK
whereBack from a break or lost: goal, done ✅, now, next 2-min step
save-noteAnything worth remembering, filed into the right vault note
whiteboardPlan a big project in phases on an Obsidian canvas, tagged solo or team
research-pipelineDeep research with your named tools, a verifier, and a vault save
site-loopScore-and-fix a website with 5 critics, up to 6 rounds, aiming for 8/10+
deployTest, secret-scan, deploy the public folder only, commit locally
prove-testTest a tool from a post against your bar before you invest in it
missed-linksList vault notes that name another note without linking it
vault-checkHealth check of the vault: broken links, missing frontmatter, stale notes

Make your own: copy any skill folder, rename it, and rewrite the steps. Keep the name and description lines at the top so tools can find it.


License

MIT. Use it, change it, share it; just keep the LICENSE file in copies.

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 5d ago