AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
60/100
Scores the file, not the repository.Length
611 words
8 headings · 0 code blocksRepository
10k
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.1# claude-obsidian: Agent Instructions23claude-obsidian is a local-first Agent Skills package for building source-cited,4compounding Obsidian knowledge bases. It also ships a Claude Code plugin adapter.5The portable workflow is implemented in `skills/` and the standard-library6`claude_obsidian/` core; host hooks never define knowledge behavior.78## Product and vault boundaries910- This repository is the product source. It is not the default user vault.11- A user vault is the directory containing `.claude-obsidian.json`, `wiki/`,12 and `.raw/`. Mutable state always belongs there.13- `templates/vault/` is the distributable seed. Root `wiki/`, `.raw/`, and14 `.vault-meta/` are contributor state and are excluded from public artifacts.15- Never derive a user vault from the plugin cache or `${CLAUDE_PLUGIN_ROOT}`.16- A checkout containing contributor-vault state has no marketplace catalog.17 `config/public-marketplace.json` is injected as18 `.claude-plugin/marketplace.json` only inside the audited release artifact.19 An extracted distribution-clean artifact may retain that exact manifest and20 rebuild idempotently. A public default branch must be populated from the clean21 artifact, never by pushing contributor-vault state.2223Resolve a vault in this order: explicit `--vault`,24`CLAUDE_OBSIDIAN_VAULT`, nearest `.claude-obsidian.json`, then an unambiguous25vault at or above the current directory. Fail closed when no vault is selected.2627## Bootstrap28291. Read this file. In a development checkout, also read the host-only root30 `CLAUDE.md` when present; release artifacts intentionally omit it.312. Read the selected skill completely.323. Read only the references that skill routes to.334. Resolve the user vault. If `wiki/hot.md` exists, read it silently.345. For a new vault, run `python3 scripts/claude-obsidian.py init PATH` first;35 apply only after reviewing the dry run. Use `adopt` for an existing vault.3637## Canonical skills3839All 15 skills live at `skills/<name>/SKILL.md`. They use the portable Agent40Skills frontmatter subset: exactly `name` and `description`. Do not add mirrored41files under `commands/`; Claude invokes plugin skills by namespaced names such42as `/claude-obsidian:wiki`.4344Core workflows are `wiki`, `save`, `wiki-ingest`, `wiki-query`, and45`wiki-lint`. Extensions are `autoresearch`, `canvas`, `defuddle`, `wiki-fold`,46`wiki-mode`, `wiki-retrieve`, and `wiki-cli`. Reference skills are47`obsidian-markdown`, `obsidian-bases`, and `think`.4849## Mutation protocol5051One logical knowledge operation is one recoverable transaction:52531. Read targets and record expected SHA-256 values.542. Let parallel workers return drafts and evidence only.553. Merge drafts into one `claude-obsidian.transaction.v1` bundle.564. Inspect the bundle, then apply it once through `scripts/claude-obsidian.py`.575. Report the operation ID and exact changed paths.5859Do not use direct shared writes, the deprecated `wiki-lock.sh` helper, or60generic lifecycle auto-commits. Git checkpointing is separate and explicit.61Raw source payloads are create-only; `.raw/.manifest.json` is the only mutable62legacy raw metadata file. Destructive repairs, remote egress, and canonical63research merges require explicit consent.6465## Vault conventions6667- `inbox/`: visible capture intake; never deleted automatically.68- `.raw/`: immutable source payloads and legacy delta manifest.69- `wiki/`: generated knowledge pages.70- `wiki/meta/ledgers/`: source and claim provenance.71- `wiki/hot.md`: bounded recent context, never a transcript.72- `wiki/log.md`: operation history, newest first.73- `.vault-meta/`: ignored runtime locks, journals, indexes, queues, and config.7475Use Obsidian Flavored Markdown: flat YAML properties, `YYYY-MM-DD` dates,76wikilinks, embeds, and valid callouts. Never fabricate evidence locators,77quotations, page numbers, or confidence.7879## Verification8081Run `make test` after behavioral changes. It executes every Python and shell82suite plus the product, capability, package, hook, and manifest contracts.83Public artifacts are built locally with `release build` and audited without84publishing. No agent may push, tag, open or mutate issues, or publish a release85without explicit owner approval.8687Claude SessionStart context injection is disabled by default. Treat88`CLAUDE_OBSIDIAN_SESSION_CONTEXT=1` as explicit user consent to place bounded89`wiki/hot.md` data in the model context; never set it automatically. A90workspace-configured vault outside the project also requires an exact91`CLAUDE_OBSIDIAN_SESSION_CONTEXT_VAULT` path.9293## Reference9495- Public canonical repository: https://github.com/AgriciDaniel/claude-obsidian96- LLM Wiki pattern: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f97- Obsidian primitives: https://github.com/kepano/obsidian-skills98
Also in AgriciDaniel/claude-obsidian
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| AgriciDaniel/claude-obsidian.cursor/rules/claude-obsidian.mdc · 10k | Cursor rules | do-notagent-behaviour | 29/100 | 3 days ago | |
| AgriciDaniel/claude-obsidian.github/copilot-instructions.md · 10k | Copilot instructions | agent-behaviour | 24/100 | 3 days ago | |
| AgriciDaniel/claude-obsidian.windsurf/rules/claude-obsidian.md · 10k | Windsurf rules | do-notagent-behaviour | 23/100 | 3 days ago | |
| AgriciDaniel/claude-obsidianGEMINI.md · 10k | GEMINI.md | styleagent-behaviour | 40/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago |
