templates/skills/knowledge/SKILL.md
Search, browse, and update the Obsidian knowledge vault using the Obsidian CLI. Use when asked about SOPs, interview questions, engineering references, project docs, commands, or anything that might be in personal notes.
npx skillsauth add samwang0723/claudecode-setup knowledgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Personal Obsidian knowledge base for Sam Wang.
knowledge~/.claude/knowledge//Applications/Obsidian.app/Contents/MacOS/obsidianFallback: If Obsidian is not running (CLI returns error), fall back to filesystem tools (Grep, Read, Glob) with the vault path above.
All commands use obsidian CLI. Add vault=knowledge if multiple vaults are open.
/knowledge <query>Search across all notes for a keyword or topic.
# Full-text search (file list)
obsidian search query="<query>"
# Search with matching line context (like rg -C)
obsidian search:context query="<query>"
# Scoped to a folder
obsidian search query="<query>" path="01-Reference"
# Limit results
obsidian search query="<query>" limit=10
# Case-sensitive search
obsidian search query="<query>" case
# JSON output for structured parsing
obsidian search query="<query>" format=json
Then read matching files with obsidian read to get full content.
/knowledge browse <folder>List notes in a category:
# List all files
obsidian files
# List files in a specific folder
obsidian files folder="01-Reference"
# Total file count
obsidian files total
# List all folders
obsidian folders
# Folder info (file count, size)
obsidian folder path="02-Engineering"
/knowledge read <filename>Read a specific note:
# Read by file name (wikilink-style resolution)
obsidian read file="Commands"
# Read by exact path
obsidian read path="01-Reference/Commands.md"
# Get file metadata
obsidian file file="Commands"
# Read file properties/frontmatter
obsidian properties file="Commands"
# Show outline/headings
obsidian outline file="Commands"
/knowledge update <filename>Modify an existing note:
# Append content to end of file
obsidian append file="Commands" content="## New Section\nNew content here"
# Prepend content to beginning of file
obsidian prepend file="Commands" content="## Top Section\nContent here"
# Set/update a frontmatter property
obsidian property:set file="Commands" name="updated" value="2026-03-13"
# Remove a property
obsidian property:remove file="Commands" name="deprecated"
For complex edits (replacing/rewriting sections), read the file first with obsidian read, then use the Edit tool with the vault path.
/knowledge add <folder> <title>Create a new note:
# Create with content
obsidian create name="<Title>" path="<folder>/<Title>.md" content="---\ntags:\n - <tag>\nCreated: 2026-03-13\nUpdated: 2026-03-13\n---\n\n# <Title>\n\nContent here"
# Create from template
obsidian create name="<Title>" path="<folder>/<Title>.md" template="<template-name>"
# List available templates
obsidian templates
/knowledge delete <filename># Move to trash (safe)
obsidian delete file="<filename>"
# Permanent delete (use with caution)
obsidian delete file="<filename>" permanent
# Read today's daily note
obsidian daily:read
# Append to daily note (quick capture)
obsidian daily:append content="- [ ] Follow up on <topic>"
# Prepend to daily note
obsidian daily:prepend content="## Morning Notes\n..."
# Get daily note path
obsidian daily:path
# List all tags with counts
obsidian tags counts sort=count
# Tag info (which files use it)
obsidian tag name="fiat" verbose
# List incomplete tasks
obsidian tasks todo
# List completed tasks
obsidian tasks done
# Tasks from daily note
obsidian tasks daily
# Tasks from a specific file
obsidian tasks file="Commands"
# Toggle a task
obsidian task path="01-Reference/Commands.md" line=42 toggle
# Backlinks to a note
obsidian backlinks file="Commands"
obsidian backlinks file="Commands" counts
# Outgoing links from a note
obsidian links file="Commands"
# Find orphan notes (no incoming links)
obsidian orphans
# Find dead-end notes (no outgoing links)
obsidian deadends
# Find unresolved/broken links
obsidian unresolved
# List file versions
obsidian history file="Commands"
# Read a specific version
obsidian history:read file="Commands" version=2
# Restore a version
obsidian history:restore file="Commands" version=3
# Diff between versions
obsidian diff file="Commands" from=1 to=3
When searching, target the right folder:
| Looking for... | Search in |
|---------------|-----------|
| Console commands, kubectl, tsh, rails | 01-Reference/Commands.md |
| Fiat wallet, vendor integration, currency launch | 01-Reference/Fiat*.md |
| Interview questions, hiring | 03-People/ |
| Active vendor evaluations, current projects | 00-Active/ |
| Auth flows (TOTP, PassKey, BFF) | 01-Reference/ |
| System design, coding patterns | 02-Engineering/ |
| Old migrations, incidents | 99-Archive/ |
obsidian append/obsidian prepend for additive changes. Use Edit tool only for surgical replacements within a section.~/.claude/knowledge/.Query: $ARGUMENTS
development
Generate a technical specification document using the DDD template in template.md. Use when the user says 'write tech spec', 'create tech spec', 'technical specification', or needs a structured design document for a new feature or major change covering architecture, domain models, APIs, data design, security, and operations.
testing
Write a Product Requirements Document (PRD) using the standard TMAB template with stakeholders, user stories (Given-When-Then), success metrics, and A/B testing plans. Use when the user asks to write a PRD, create product requirements, document a feature spec, or plan a new product feature.
data-ai
Clean up an agent team. Removes team resources, optionally cleans worktrees and branches. Use after team work is complete and merged. Use when told to "stop team", "cleanup team", "disband team".
testing
Check progress of an active agent team. Shows member status, completed tasks, pending work, and any messages. Use when asked "team status", "how's the team", "check team progress", "team update".