# Obsidian Vault Quote — Local Knowledge Base for AI Coding

> Connect local Obsidian Markdown vaults to AI coding agents as read-only reference sources. Retrieve coding rules, naming conventions, and architecture docs on demand via CLI or 6 MCP tools—with exact note citations, BM25 + CJK search, and zero cloud uploads.

Obsidian Vault Quote — Local Knowledge Base for AI Coding is a free AI agent skill on Agensi by klein wu, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [klein wu](https://www.agensi.io/creators/klein-wu)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-12-02
- Security: scan passed (2026-12-02); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/obsidian-vault-quote-local-knowledge-base-for-ai-coding
- Tags: code-review, documentation, productivity, obsidian, mcp-server, markdown, mcp, knowledge-base

## About this skill

### Turn Your Local Obsidian Vaults into a Read-Only Coding Reference

Stop copy-pasting your architecture docs, naming conventions, and engineering checklists into every AI prompt—and stop dumping entire vaults into limited context windows.

**Obsidian Vault Quote** connects one or more local Obsidian Markdown vaults to your AI coding assistant on demand. It retrieves only the relevant snippets or actionable coding rules for the task at hand, enforces a strict character budget, and cites exact vault note paths in every reply.

#### Key Features

- **On-Demand Tech-Stack Rule Briefs**: Automatically detect your project's tech stack (or specify `--stack`) and generate a concise **Must / Should / Optional** rule brief with stable rule IDs (`R-...`) and source citations.
- **Multi-Vault & Subfolder Scoping**: Register multiple Obsidian vaults, toggle them globally, save reusable **Citation Profiles** (`--profile`), or scope individual queries with `--source "VaultName/Subfolder"`.
- **Fast Local BM25 + CJK Search**: Lexical BM25 search with Chinese bigram support runs 100% locally in memory—works seamlessly with English, Chinese, and bilingual notes.
- **Zero-Dependency CLI + 6 Read-Only MCP Tools**: Works out of the box via Node.js CLI (`kb.mjs`) or local stdio MCP (`mcp-server.mjs`) providing `kb_brief`, `kb_rules`, `kb_search`, `kb_context`, `kb_vaults`, and `kb_stats`.
- **Citation Ledger & Local Browser UI**: Track which notes and rules are actually referenced over time, or inspect results in the built-in local browser panel (`/ui`).

#### Quick Setup (2 Minutes)

1. Install and enable the free open-source **Vault Quote** (plugin ID: `vault-quote`) plugin in Obsidian Desktop via the official **Obsidian Community Plugins** directory (also open-sourced as `dsh-obsidian-quote` by Klein on GitHub).
2. Open the Vault Quote panel in Obsidian, register your local vaults, and enable the local Quote Service (`127.0.0.1:43117`).
3. Click **Write connection config** once to save `~/.obsidian-quote/config.json`.
4. Start querying from Claude Code, Codex, Cursor, DeepSeek Harness, or any `SKILL.md` / MCP-compatible agent.

#### Privacy & Security First

- **Strictly read-only**: Never modifies, creates, or moves any note in your vaults.
- **Loopback-only local service**: Listens only on `127.0.0.1` with bearer token authentication.
- **Open source (MIT)**: Full source code and test suites available on GitHub.

## Requires

- Node.js 18+
- Obsidian
- Optional: MCP-compatible client (Claude Code, Codex, Cursor, etc.)

Install the free Vault Quote plugin in Obsidian, register your vaults, and click "Write connection config" once. All indexing and search stay 100% local on 127.0.0.1.

## Known limitations

Requires Obsidian Desktop to remain running locally while querying. Uses lexical BM25 + CJK bigram search (not vector/semantic embeddings), so short keyword queries work best. Indexing is kept in memory and rebuilt on Obsidian restart. Desktop only (no mobile Obsidian plugin).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Obsidian Vault Quote — Local Knowledge Base for AI Coding skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent my AI agent from hallucinating coding standards?

This skill allows your AI agent to reference your personal or team coding standards and project documentation stored in local Markdown files without overloading its memory with irrelevant information. It solves the problem of agents hallucinating rules or ignoring internal naming conventions by providing targeted, cited snippets from your actual notes.

### What software do I need to have running on my computer for this skill to work?

You must have the Obsidian Desktop application running locally with the Vault Quote community plugin enabled and the Quote Service turned on. It also requires Node.js 18 or higher to facilitate the connection between your local files and the agent.

### What kind of output and formatting should I expect the agent to produce?

The skill generates tech stack filtered rule briefs categorized by priority such as Must, Should, and Optional. It also provides semantic search results and cited Markdown blocks that include exact vault paths and rule IDs for easy verification.

### Are there any tasks or file modifications this skill cannot perform?

This is a read-only tool designed for documentation retrieval, so it cannot create new notes or modify your existing Obsidian files. Additionally, the quality of the agent's response depends on how well your vault is organized and requires Obsidian to be open and authenticated.

### How do I direct my agent to start using my local documentation?

You can ask your agent to generate a rule brief for your current project stack, search your vault for specific naming conventions, or audit a code change against your internal security checklists. Simply instruct the agent to check your local vault for relevant standards before performing a coding task.

### Does this skill upload my Obsidian notes to any cloud server?

No. Indexing and retrieval run 100% locally on loopback (127.0.0.1) inside your Obsidian desktop plugin. Only the specific snippets returned for a query are passed to your AI agent.

### Do I need to install the Obsidian plugin separately?

Yes. Install the free open-source "Vault Quote" plugin from the Obsidian Community Plugins directory (or GitHub: kleinklein0824/dsh-obsidian-quote), enable the local Quote Service, and click "Write connection config" once.

### Can I restrict queries to specific vaults or subfolders?

Yes. You can toggle vaults globally in Obsidian, save named Citation Profiles (--profile), or pass ad-hoc --source "VaultName/Subfolder" filters in both CLI and MCP tools.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
