Back to the catalog

obsidian

ntelligent vault assistant for Obsidian via Claude Code. Auto-context, vault intelligence, PKM workflows, and thinking commands.

Open source Repository Open in the app JSON README (API)

About

ntelligent vault assistant for Obsidian via Claude Code. Auto-context, vault intelligence, PKM workflows, and thinking commands.

Details

Kind
Plugins
Topic
Productivity
Publisher
sourabh-garg-tech
Origin
marketplace
Category
ferramentas
Last push
2026-08-17T03:56:58Z
Repository state
ativo
Language
PowerShell
License
MIT
Added
2026-08-30 01:48:58
Updated
2026-08-30 01:48:58
Origin id
sourabh-garg-tech/obsidian/obsidian

README

# Obsidian Skill for Claude Code

[![Version](https://img.shields.io/badge/version-1.3.0-blue)]()
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Obsidian](https://img.shields.io/badge/Obsidian-v1.12.7+-8b5cf6?logo=obsidian)](https://obsidian.md/)
[![Claude Code](https://img.shields.io/badge/Claude%20Code-Skill-1e3a5f)](https://claude.ai/code)
[![Clones](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Sourabh-Garg-tech/obsidian/master/docs/stats.json)](https://github.com/Sourabh-Garg-tech/obsidian)
[![Stars](https://img.shields.io/github/stars/Sourabh-Garg-tech/obsidian)](https://github.com/Sourabh-Garg-tech/obsidian)
[![Forks](https://img.shields.io/github/forks/Sourabh-Garg-tech/obsidian)](https://github.com/Sourabh-Garg-tech/obsidian)

> Turn Claude Code into an intelligent vault assistant for [Obsidian](https://obsidian.md/).
> Create notes, search your second brain, manage tasks, and run structured PKM workflows -- all through natural conversation.

**Why this exists:** Raw file tools break wikilinks, corrupt frontmatter, and overwrite plugin configs. This skill routes every operation through Obsidian's official CLI so your vault stays intact.

---

## Architecture

```
User Request ("search my vault for meeting notes")
        |
        v
+---------------------+     +---------------------+     +---------------------+
|   Claude (skill)    | --> |   Obsidian CLI      | --> |   Obsidian Vault    |
| - reasoning         |     | - safe CRUD         |     | - files             |
| - link strategy     |     | - wikilink rewrite  |     | - graph             |
| - context loading   |     | - index sync        |     | - plugins           |
+---------------------+     +---------------------+     +---------------------+
```

**The rule:** Always use `obsidian <cmd>` over raw `mv`, `cp`, or direct `.md` writes.

---

## What You Get

| Feature | What it means |
|---|---|
| **Intelligence-first context** | Auto-loads your active projects, recent decisions, and open tasks on every invocation |
| **Cross-directory awareness** | Work on projects outside your vault -- the skill finds and loads the right project context automatically |
| **Session hot cache** | Tracks what you've touched this session across any directory |
| **Vault intelligence** | Auto-detects hub notes, orphaned notes, broken links, and missing backlinks |
| **Source ingestion** | Pull articles, URLs, and documents into your vault with preview-gated note creation |
| **PKM workflows** | Built-in support for PARA, Zettelkasten, GTD, and LYT methods |
| **Thinking commands** | `/obsidian`, `/obsidian-trace`, `/obsidian-challenge`, `/obsidian-connect`, `/obsidian-emerge` |

---

## Demo

### Natural language vault operations

```
> search my vault for meeting notes

Found 3 notes:
  - Meeting Notes/2026-04-15 Sprint Review
  - Meeting Notes/2026-04-22 Architecture Decision
  - Projects/Website Redesign/Stakeholder Meeting

> read "Architecture Decision"

# Architecture Decision

Date: 2026-04-22
Attendees: Alice, Bob, Carol

## Decision
Migrate from REST to GraphQL...

> create note "GraphQL Migration Plan" with status active

Created: Projects/Website Redesign/GraphQL Migration Plan
Properties: status=active, tags=["project","backend"]
```

### Morning routine

```
> /obsidian morning

Good morning. Here's your context:

Projects: 3 active
  - Website Redesign (2 open tasks)
  - Q2 Planning (1 decision pending)
  - Infrastructure Audit (on hold)

Yesterday's incomplete tasks:
  - [ ] Review PR #42 (Website Redesign)
  - [ ] Draft stakeholder update (Q2 Planning)

Today's focus: Website Redesign (2 tasks, 1 due today)
```

### Vault intelligence

```
> /obsidian health

Vault Health Scorecard -- Work Vault
Overall: B (78/100)

| Category         | Score | Issues                           |
|------------------|-------|----------------------------------|
| Folder Structure | 85    | Missing _summaries/ folder       |
| Frontmatter      | 70    | 12 notes missing tags property   |
| Link Graph       | 80    | 3 broken links, 7 orphans        |
| Token Efficiency | 75    | _context/ exists but oversized   |
| Naming           | 90    | 2 files with spaces              |

Priority fix: Add tags to 12 notes -- `obsidian property:set file="Note" name="tags" value='["untagged"]'`
```

---

## Installation

### Prerequisites

- [Obsidian](https://obsidian.md/) v1.12.7+ with CLI enabled
- [Claude Code](https://claude.ai/code)

Enable the Obsidian CLI: Settings -> General -> Command line interface -> Enable + Register.

### Installation

**Option A: Plugin install (macOS / Linux)**

```bash
/plugin install obsidian
```

This auto-discovers skills and commands from the plugin directory.

> **Windows:** The `/plugin install` command fails with `Permission denied (publickey)` on Windows due to a [Claude Code client bug](https://github.com/anthropics/claude-code/issues) — it forces SSH for all GitHub clones. Use Option B on Windows.

**Option B: Manual clone (all platforms)**

```bash
# macOS / Linux
git clone https://github.com/Sourabh-Garg-tech/obsidian.git "$HOME/.claude/plugins/obsidian"

# Windows (PowerShell) — do NOT use ~, git creates a literal ~ folder
git clone https://github.com/Sourabh-Garg-tech/obsidian.git "$env:USERPROFILE\.claude\plugins\obsidian"
```

Then reload:

```bash
/reload-plugins
```

### Slash commands

Claude Code auto-discovers commands from the plugin's `commands/` directory. They appear as namespaced slash commands: `/obsidian`, `/obsidian-trace`, `/obsidian-challenge`, `/obsidian-connect`, `/obsidian-emerge`.

If you prefer short-form commands (without the plugin prefix), copy them to your personal commands directory:

```bash
# macOS / Linux
cp "$HOME/.claude/plugins/obsidian/commands/"*.md "$HOME/.claude/commands/"

# Windows (PowerShell)
Copy-Item "$env:USERPROFILE\.claude\plugins\obsidian\commands\*.md" "$env:USERPROFILE\.claude\commands\"
```

### What loads

- **8 skills** from `skills/` — auto-discovered (obsidian, obsidian-cli, obsidian-markdown, obsidian-bases, json-canvas, defuddle, obsidian-workflows, obsidian-vault-architect)
- **5 slash commands** from `commands/` — `/obsidian`, `/obsidian-trace`, `/obsidian-challenge`, `/obsidian-connect`, `/obsidian-emerge`
- **3 scripts** — `vault-health` (health audits), `context-builder` (auto-context), `validate-skills` (plugin validation) — each with `.sh` and `.ps1` variants
- **Auto-trigger**: any message mentioning Obsidian, vaults, notes, or PKM

---

## Quick Start

```bash
# Verify CLI connection
obsidian version
obsidian vaults

# Read and search
obsidian read file="Project Ideas"
obsidian search query="deadline:2026-04-30" format=json

# Daily notes and tasks
obsidian daily:append date="today" content="- [ ] Review Q2 goals"
obsidian tasks todo

# Safe frontmatter updates
obsidian property:set file="Project Ideas" name="status" value="active"

# Move with wikilink preservation
obsidian move file="Draft" to="Published/"
```

---

## Commands

| Command | Input | What it does |
|---|---|---|
| `/obsidian` | Optional keyword | Main gateway -- auto-routes to vault mode, project mode, or quick actions |
| `/obsidian-trace <topic>` | Concept or project | Timeline of how thinking evolved |
| `/obsidian-challenge <belief>` | Stated belief or plan | Vault-sourced counterarguments |
| `/obsidian-connect <A, B>` | Two domains | Non-obvious connections |
| `/obsidian-emerge` | None | Latent ideas the vault implies |

---

## Daily Workflows

Run these with `/obsidian <workflow>`:

| Workflow | When to use |
|---|---|
| `morning` | Populate daily note with yesterday's incomplete tasks + today's focus |
| `evening` | Summarize accomplishments, append to daily and weekly notes |
| `weekly` | Tag analysis + intelligence report + update weekly summary |
| `tasks` | See open tasks from your current project or daily note |
| `search <query>` | Full-text search across the vault |
| `health` | Full vault health report with scoring |

---

## Vault Intelligence

Automated vault health that runs after ingestion and note creation:

| Check | What it finds |
|---|---|
| `intelligence` | Full scan: hubs + orphans + broken links + missing backlinks |
| `hubs` | Notes with 10+ backlinks -- your knowledge graph centers |
| `orphans` | Notes with zero backlinks -- potential disconnects |
| `fix-links` | Broken wikilinks with suggested fixes |
| `backlinks` | Missing bidirectional connections |

---

## Project Context (Cross-Directory)

**The problem:** You're coding in `~/Work/project-a/` but your vault notes live in `~/Vault/Projects/project-a/`. Context is lost.

**The fix:** This skill detects when you're working outside the vault and automatically loads the matching project's intelligence -- active decisions, open gaps, and next actions. No manual path management.

```bash
# In ~/Work/project-a/, run:
/obsidian
# Skill auto-detects project-a and loads its context
```

---

## Safety Rules

1. **Never `mv`/`cp`** vault files -- `obsidian move` rewrites wikilinks automatically
2. **Never write raw YAML** -- `property:set` writes safe frontmatter
3. **Never edit `.obsidian/*.json`** -- Obsidian will overwrite your changes
4. **Dry-run bulk ops** -- echo commands first, then remove `echo`
5. **Confirm vault** with `obsidian vaults` if multiple vaults are open
6. **Windows:** `search` may return empty without `path=` -- use `path="Folder/"`
7. **Backlinks:** use `path="Folder/Note.md"` instead of `file="Note"`
8. **Canvas files:** direct writes are safe (no wikilinks or frontmatter to corrupt) -- validate JSON after writing

See [full safety reference](references/full-reference.md) for the complete list.

---

## Sub-Skills

| Sub-skill | Purpose |
|---|---|
| [obsidian-cli](skills/obsidian-cli/) | CLI syntax, parameters, and command reference |
| [obsidian-markdown](skills/obsidian-markdown/) | Wikilinks, embeds, callouts, properties, block references |
| [obsidian-bases](skills/obsidian-bases/) | `.base` files: filters, formulas, table/card/list/map views |
| [json-canvas](skills/json-canvas/) | `.canvas` files: nodes, edges, groups, visual layouts |
| [defuddle](skills/defuddle/) | Extract clean markdown from web pages |
| [obsidian-workflows](skills/obsidian-workflows/) | PKM routines, token-efficient loading, vault intelligence |
| [obsidian-vault-architect](skills/obsidian-vault-architect/) | Vault blueprints, health audit, fix commands, scoring |

---

## Roadmap

See [ROADMAP.md](ROADMAP.md) for planned development — v1.3.x quality & polish, v1.4 features, and future ideas.

## Contributing

Pull requests welcome. Use `docs:`, `feat:`, or `fix:` prefix for commits.

---

## License

[MIT](LICENSE) -- free for anyone to use, modify, and distribute.

More