forge-obsidian-brain

CLI tool for managing an AI's Obsidian vault with note CRUD, bidirectional sync, capture commands, and intelligent resurface. Local-only — no network access. Triggers on brain commands, vault management, note capture, fuzzy search, regex search, case-insensitive search, resurface stale/topic, or Obsidian-related operations.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "forge-obsidian-brain" with this command: npx skills add lukeaustin13/forge-obsidian-brain

ForgeObsidianBrain

Analytics and capture layer for an AI's Obsidian vault. Auto-discovers vaults, manages note CRUD operations, captures fleeting thoughts, resurfaces forgotten knowledge, with fuzzy matching, regex patterns, and case-insensitive search.

Security Note: See SECURITY.md for full security model. This skill operates entirely locally with no network access.


Installation

# Clone or copy to your OpenClaw skills folder
cp -r skills/forge-obsidian-brain ~/.openclaw/workspace/skills/

# Make executable
chmod +x ~/.openclaw/workspace/skills/forge-obsidian-brain/scripts/brain.js

# Set up alias (optional)
alias brain="node ~/.openclaw/workspace/skills/forge-obsidian-brain/scripts/brain.js"

Configuration

Set the default vault path via environment variable:

export OBSIDIAN_VAULT="$HOME/obsidian-vault"

Or specify --vault <path> for any command.

The skill auto-discovers vaults by:

  1. Checking OBSIDIAN_VAULT environment variable
  2. Reading Obsidian's config (~/.config/obsidian/obsidian.json)
  3. Falling back to ~/obsidian-vault

Commands

Core Commands

CommandDescription
discoverAuto-detect vault location
configShow Obsidian configuration
initCreate Brain folder structure
syncBidirectional sync with memory folder

Note CRUD

CommandUsage
read <path>Read a note
create <path> [content]Create a new note
update <path> [content]Update existing note
delete <path>Delete a note
list [folder]List notes in folder
search <query>Search notes by content (case-insensitive by default)
search <query> --fuzzyFuzzy search (typo-tolerant)
search <query> --regexRegex pattern search
exists <path>Check if note exists

Capture Commands

Capture content to structured folders:

CommandDescription
capture thought <text>Quick thought → Brain/Thoughts/
capture research --url <url> --title <title>Research ref → Brain/Research/
capture conversation --source <src> --id <id>Chat log → Brain/Conversations/

Examples:

# Fleeting thought
brain capture thought "I should refactor the auth module"

# Research capture
brain capture research \
  --url "https://martinfowler.com/articles/microservices.html" \
  --title "Microservices Guide" \
  --text "Key points about service boundaries"

# Conversation log
brain capture conversation \
  --source telegram \
  --id "12345" \
  --text "User asked about distributed systems"

Resurface Commands

Find relevant or neglected notes:

CommandDescription
resurface topic <query>Fuzzy search with relevance scoring
resurface stale --days <n>Find notes untouched in N days

Examples:

# Find notes about microservices
brain resurface topic "microservices"

# Find all notes older than 30 days
brain resurface stale --days 30 --limit 20

Options

FlagDescription
--vault <path>Override vault location
--frontmatter '<json>'Add frontmatter to note
--mergeMerge instead of replace frontmatter
--overwriteAllow overwriting existing notes
--limit <n>Limit results (default: 5)
--dry-runPreview sync without writing
--days <n>Days threshold for stale search
--fuzzyUse fuzzy matching for search
--regexUse regex pattern for search
--case-sensitiveForce case-sensitive search

Workflow Examples

Daily Brain Maintenance

# 1. Initialize structure (once)
brain init

# 2. Capture a thought
brain capture thought "Kubernetes selectors are just labels as queries"

# 3. Save research for later
brain capture research \
  --url "https://distcc.github.io/" \
  --title "Distributed Compilation"

# 4. Check for stale notes to review
brain resurface stale --days 14

# 5. Sync to memory folder
brain sync

Search and Resurface

# Case-insensitive search (new default)
brain search "OpenClaw"

# Fuzzy search - matches "opneclaw" to "openclaw"
brain search "opneclaw" --fuzzy

# Regex search
brain search "^# .* Title" --regex

# Case-sensitive search
brain search "OpenClaw" --case-sensitive

# Resurface topic with fuzzy matching
brain resurface topic distributed --limit 10

# Output:
# {
#   "success": true,
#   "query": "distributed",
#   "totalMatches": 3,
#   "shown": 3,
#   "searchMode": "fuzzy",
#   "results": [
#     { "relativePath": "Brain/Research/...", "relevance": 5, "rank": 1, "matches": [...] },
#     ...
#   ]
# }

Folder Structure

After brain init, your vault gets these folders:

vault/
├── Brain/
│   ├── Thoughts/          # Quick captures
│   ├── Research/          # URL references
│   ├── Conversations/     # Chat logs
│   ├── Entities/          # Structured data
│   └── Relations/         # Connections
└── .obsidian/
    └── ...

Implementation Details

  • Vault Discovery: Cross-platform (Linux, macOS, Windows)
  • Note Format: Markdown with YAML frontmatter
  • Search: Uses grep for fast content matching
  • Sync: Bidirectional between ~/.openclaw/workspace/memory and vault Inbox
  • IDs: Base36 timestamps for collision-resistant filenames

Security

This skill operates entirely on the local filesystem with no network access:

  • No external APIs — No network requests are made
  • No data exfiltration — All data stays on your machine
  • No arbitrary code executionexecSync is used only for grep text search with strictly validated input
  • Plain source code — No obfuscation, all JavaScript is readable

See SECURITY.md for complete security documentation including data access patterns, credentials, and execution details.


Related

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Windows Desktop Automation CLI

Automate Windows desktop interactions via CLI. Invoke when user needs to simulate clicks, type text, press keys, drag, take screenshots, control windows (min...

Registry SourceRecently Updated
Coding

LLM数据自动化

用自然语言描述数据处理需求,LLM自动生成Python/Pandas代码。无需深厚编程基础即可处理Excel/CSV数据、提取PDF内容、清洗BIM数据,构建自动化数据管道。

Registry SourceRecently Updated
Coding

Bofa

Provides insights on Bank of America's history, business model, competitive landscape, digital transformation, and post-2008 financial crisis developments.

Registry SourceRecently Updated
Coding

agent-native-cli (deprecated)

DEPRECATED — this skill has been renamed. Install `agent-native-design` instead via `clawhub install agent-native-design`. Do not use this slug for new work;...

Registry SourceRecently Updated