obsidian-kb

obsidian-kb is a cursor rule for Cursor from Spc-jgs/obsidian-kb-skill. It costs 0 tokens per session (1,023 once invoked), scanned A, original, MIT.

A set of rules for saving, updating, and reviewing notes in an Obsidian vault, a folder of linked Markdown notes used as a personal knowledge base. It separates deciding what is worth saving from actually changing the vault.

In plain words
What is it for?
Use it to save or update selected conversation knowledge, sort an Inbox, review possible notes to keep, or audit an Obsidian vault. Unrelated questions and debugging do not use it.
Why use it?
It prevents notes from being saved automatically or changed without clear permission. It also provides a consistent way to organize durable knowledge and check the vault's condition.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to save or update selected conversation knowledge, sort an Inbox, review possible notes to keep, or audit an Obsidian vault. Unrelated questions and debugging do not use it.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/spc-jgs/obsidian-kb-skill/obsidian-kb
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Spc-jgs/obsidian-kb-skill

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for obsidian-kb

README.md
[![agentmods](https://agentmods.dev/badge/rules/spc-jgs/obsidian-kb-skill/obsidian-kb/github.svg)](https://agentmods.dev/rules/spc-jgs/obsidian-kb-skill/obsidian-kb)
Your own site
<a href="https://agentmods.dev/rules/spc-jgs/obsidian-kb-skill/obsidian-kb"><img src="https://agentmods.dev/badge/rules/spc-jgs/obsidian-kb-skill/obsidian-kb/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for obsidian-kb

Your own site · 80×15
<a href="https://agentmods.dev/rules/spc-jgs/obsidian-kb-skill/obsidian-kb"><img src="https://agentmods.dev/badge/rules/spc-jgs/obsidian-kb-skill/obsidian-kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01023
Opus 5 $0.00000 $0.00511
Sonnet 5 $0.00000 $0.00205
Haiku 4.5 $0.00000 $0.00102

Measured 8d ago against content hash 0f4efc3aa9ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

obsidian-kb scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

platforms/cursor/obsidian-kb.mdc · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Obsidian Personal Knowledge Base

Installed compatibility resources live at ~/.obsidian-kb-skill/skill; use that directory as <skill-root> for references, assets, and bundled helpers.

Overview

Agent-agnostic instructions to create, organize, and update notes in an Obsidian vault. Any tool that reads/writes local files can use it.

DO NOT auto-save

This skill never writes to the vault on its own. Write only after explicit save intent ("save to Obsidian", "沉淀", "总结存档"). An explicit request to evaluate what from a conversation is worth capturing may run conversation-harvest.md as analysis only. For unrelated Q&A, debugging, or casual chat: do nothing.

When the user asks to save or review capture candidates

  1. Route analysis before Vault discovery: for an analysis-only conversation review, read conversation-harvest.md, return the candidate proposal, and stop without locating or scanning a Vault. Otherwise continue.
  2. Find vault for a write: env OBSIDIAN_KB_VAULT~/.obsidian-kb-config → ask. Refuse unless a real vault (.obsidian/ + Templates/).
  3. Read the smallest operation-specific reference set before writing. Read Vault governance first, then let one compact discovery call answer this: required_references names every file the selected type, template, and destination require, so read that set instead of discovering it one failure at a time. Pass the governed route as --folder — a crowded child folder does not make its parent look crowded. The full map:
    • New note: read only note-creation.md.
    • Finished source-backed article: after note-creation.md routes it, also read web-capture.md; verified captures additionally load deep-capture.md.
    • Crowded selected destination: when compact discovery reports it, also read folder-routing.md; uncrowded destinations do not load it.
    • Existing note: read only update-note.md.
    • Filing the Inbox: read only process-inbox.md. Filing moves notes the user already wrote; it never authors one, so ≤1 note written does not bound it.
    • Conversation context archive: read conversation-digest.md.
    • Conversation knowledge review: read conversation-harvest.md; load note-creation.md only after one durable candidate is selected for writing.
    • Task Memory: read task-memory.md only after explicit opt-in (off by default).
    • YAML, rules, and Git references are troubleshooting or post-processing material: load yaml-standards.md, rules-and-errors.md, or git.md only when the current task requires it.
  4. Prefer bundled helpers (never a one-off script): run python <skill-root>/scripts/run_helper.py <helper> ..., where <skill-root> contains this SKILL.md. For new notes use create-note --preflight-json, inspect the structured validation, then apply with --from-preflight <content.sha256> --apply --compact-json instead of resending the body; update-note is only for Task Memory, while ordinary existing-note edits follow update-note.md with native file tools.
  5. Stay bounded: ≤10 files scanned, ≤1 note written, ≤5 wikilinks. Never overwrite; add -2 on name clash. Validate after.
  6. Route: daily→15-Daily · meeting→10-Work · learning/article→20-Learning · insight/digest→30-Insights · project→40-Projects · person→50-People · quick/unread source→00-Inbox. An ordinary finished article uses standard capture; verified capture is explicit or evidence-sensitive.

Read the full file on GitHub · 54 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 54 lines · 0 tokens per session scan A 0f4efc3aa9ef

Subscribe to this mod's changes

obsidian-kb is a cursor rule published in the GitHub repository Spc-jgs/obsidian-kb-skill (5 stars, last pushed 14d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,023 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.