---
slug: "obsidian-prompt-manager"
source_type: "readme"
source_url: "https://cdn.jsdelivr.net/gh/leweii/obsidian-prompt-manager@main/README.md"
repo: "https://github.com/leweii/obsidian-prompt-manager"
source_file: "README.md"
branch: "main"
---
# Obsidian Prompt Manager

A Claude Code command for managing reusable prompts in your Obsidian vault.

## Features

- **Setup**: Configure your Obsidian vault path (persisted across sessions)
- **Save**: Save prompts with metadata (title, date, tags) in Obsidian-compatible markdown
- **List**: Browse and search your saved prompts
- **Use**: Load and execute saved prompts directly in Claude Code

All operations are handled natively by Claude Code - no external scripts required.

## Installation

```bash
mkdir -p ~/.claude/commands
curl -o ~/.claude/commands/obsidian.md https://raw.githubusercontent.com/leweii/obsidian-prompt-manager/main/commands/obsidian.md
```

Or manually:
```bash
mkdir -p ~/.claude/commands
git clone https://github.com/leweii/obsidian-prompt-manager.git /tmp/opm
cp /tmp/opm/commands/obsidian.md ~/.claude/commands/
```

## Quick Start

### 1. Setup your vault

```
/obsidian setup ~/Documents/MyVault
```

This creates a `Claude-Prompts` folder in your vault.

### 2. Save a prompt

```
/obsidian save "Code Review Checklist" --tags review,quality
```

Claude will ask for the prompt content and save it as a markdown file.

### 3. List your prompts

```
/obsidian list
```

Or search:

```
/obsidian list --search review
```

### 4. Use a saved prompt

```
/obsidian use "Code Review Checklist"
```

Claude loads the prompt and executes it as if you typed it.

## Prompt Format

Prompts are saved as Obsidian-compatible markdown with frontmatter:

```markdown
---
title: "Code Review Checklist"
date: 2025-01-15
tags:
  - claude-prompt
  - review
  - quality
---

# Code Review Checklist

Review this code for:
1. Bugs and errors
2. Performance issues
3. Security vulnerabilities
```

## Configuration

Configuration is stored at `~/.claude/obsidian-config.json`:

```json
{
  "vaultPath": "/path/to/your/vault",
  "promptsFolder": "Claude-Prompts"
}
```

## License

MIT

## Contributing

Contributions welcome! Please open an issue or submit a pull request.
