Loading...
Loading...
Integration with Obsidian vault for managing notes, tasks, and knowledge when working with Claude. Supports adding notes, creating tasks, and organizing project documentation.
npx skill4agent add delphine-l/claude_global obsidian$OBSIDIAN_CLAUDE[[note-name]]#project/feature$OBSIDIAN_CLAUDE# Check vault location
echo $OBSIDIAN_CLAUDE
# Should return something like:
# /Users/username/Documents/ObsidianVault# Add to ~/.zshrc or ~/.bashrc
export OBSIDIAN_CLAUDE="/path/to/your/vault"# Link to another note
[[Note Name]]
# Link with custom display text
[[Note Name|Display Text]]
# Link to heading in another note
[[Note Name#Heading]]
# Link to block
[[Note Name#^block-id]]# Simple tags
#tag
# Hierarchical tags
#project/feature
#status/in-progress
#type/note
#type/task
# Tags in YAML frontmatter
---
tags:
- project/feature
- status/active
---# Basic task
- [ ] Task to do
# Completed task
- [x] Completed task
# Task with priority
- [ ] High priority task ⚠️
- [ ] Medium priority task 🔸
- [ ] Low priority task 🔹
# Task with date (if using Obsidian Tasks plugin)
- [ ] Task 📅 2026-01-23
- [ ] Task ⏳ 2026-01-30
- [ ] Task ✅ 2026-01-20
# Task with metadata
- [ ] Implement feature #coding #high-priority @claude-session> [!note]
> This is a note callout
> [!tip]
> Helpful tip here
> [!warning]
> Important warning
> [!todo]
> Task to complete
> [!example]
> Example code or content
> [!quote]
> Quote or citation---
date: {{date}}
type: session-note
tags:
- claude-session
- project/{{project-name}}
---
# Session: {{topic}} - {{date}}
## Context
What we're working on and why
## Summary
Key points and outcomes from this session
## Decisions
- Decision 1
- Decision 2
## Action Items
- [ ] Task 1
- [ ] Task 2
## Links
- [[Related Note 1]]
- [[Related Note 2]]
## Code References
- `file.py:123` - Description of code location
---
**Session with**: Claude
**Duration**: {{duration}}---
date: {{date}}
type: technical-note
tags:
- technical
- {{topic}}
---
# {{Title}}
## Problem
Description of the issue or topic
## Solution
How it was resolved or implemented
## Implementation Details
```language
code example
### Task Note Template
```markdown
---
date: {{date}}
type: task
tags:
- task
- status/pending
project: {{project-name}}
---
# Task: {{task-name}}
## Description
What needs to be done
## Requirements
- Requirement 1
- Requirement 2
## Checklist
- [ ] Step 1
- [ ] Step 2
- [ ] Step 3
## Dependencies
- [[Related Task 1]]
- [[Related Task 2]]
## Notes
Additional context or considerations
## Completion
**Status**: Pending
**Priority**: Medium
**Due**: {{date}}# Create new session note in Obsidian vault
cat > "$OBSIDIAN_CLAUDE/Sessions/$(date +%Y-%m-%d)-session.md" <<EOF
---
date: $(date +%Y-%m-%d)
type: session-note
tags:
- claude-session
---
# Session: $(date +%Y-%m-%d)
## Context
## Summary
## Action Items
- [ ]
## Links
EOF# Append to daily note
echo "## $(date +%H:%M) - Quick Note
Content here
" >> "$OBSIDIAN_CLAUDE/Daily/$(date +%Y-%m-%d).md"# Create task file
TASK_NAME="implement-feature-x"
cat > "$OBSIDIAN_CLAUDE/Tasks/$TASK_NAME.md" <<EOF
---
date: $(date +%Y-%m-%d)
type: task
tags:
- task
- status/pending
---
# Task: $TASK_NAME
## Description
## Checklist
- [ ]
## Created by
Claude session on $(date +%Y-%m-%d)
EOF# Create solution note
SOLUTION_NAME="fix-api-error"
cat > "$OBSIDIAN_CLAUDE/Solutions/$SOLUTION_NAME.md" <<EOF
---
date: $(date +%Y-%m-%d)
type: solution
tags:
- solution
- coding
---
# Solution: $SOLUTION_NAME
## Problem
## Solution
## Code
\`\`\`language
code here
\`\`\`
## Related
- [[Related Note]]
EOF$OBSIDIAN_CLAUDE/
├── Daily/ # Daily notes
│ └── YYYY-MM-DD.md
├── Sessions/ # Claude session notes
│ └── YYYY-MM-DD-topic.md
├── Tasks/ # Task tracking
│ ├── active/
│ └── completed/
├── Projects/ # Project documentation
│ └── project-name/
│ ├── index.md
│ ├── architecture.md
│ └── decisions.md
├── Solutions/ # Code solutions and fixes
│ └── solution-name.md
├── Research/ # Research notes
│ └── topic.md
├── Knowledge/ # Permanent notes
│ └── concept.md
└── Templates/ # Note templates
├── session.md
├── task.md
└── solution.md# Create new session note in Obsidian
obs-session() {
local topic="${1:-general}"
local date=$(date +%Y-%m-%d)
local file="$OBSIDIAN_CLAUDE/Sessions/${date}-${topic}.md"
cat > "$file" <<EOF
---
date: $date
type: session-note
tags:
- claude-session
- project/$topic
---
# Session: $topic - $date
## Context
## Summary
## Action Items
- [ ]
## Links
EOF
echo "Created session note: $file"
}
# Create task in Obsidian
obs-task() {
local task_name="$1"
local date=$(date +%Y-%m-%d)
local file="$OBSIDIAN_CLAUDE/Tasks/${task_name}.md"
cat > "$file" <<EOF
---
date: $date
type: task
tags:
- task
- status/pending
---
# Task: $task_name
## Description
## Checklist
- [ ]
## Created
$date via Claude session
EOF
echo "Created task: $file"
}
# Append to daily note
obs-note() {
local date=$(date +%Y-%m-%d)
local time=$(date +%H:%M)
local daily_note="$OBSIDIAN_CLAUDE/Daily/${date}.md"
# Create daily note if doesn't exist
if [ ! -f "$daily_note" ]; then
cat > "$daily_note" <<EOF
---
date: $date
type: daily-note
---
# $date
EOF
fi
# Append note
cat >> "$daily_note" <<EOF
## $time
EOF
echo "Added entry to daily note: $daily_note"
}
# Quick search in Obsidian vault
obs-search() {
grep -r "$1" "$OBSIDIAN_CLAUDE" --include="*.md"
}echo $OBSIDIAN_CLAUDE # Verify vault locationobs-session "feature-implementation"file.py:lineobs-task "refactor-authentication"- [ ][[note]]#project/area/topic# Recent Claude sessions
TABLE date, summary
FROM #claude-session
SORT date DESC
LIMIT 10# Pending tasks from sessions
TASK
FROM #claude-session
WHERE !completed# Add to shell profile
echo 'export OBSIDIAN_CLAUDE="/path/to/vault"' >> ~/.zshrc
source ~/.zshrc.md.md# Session note
cat > "$OBSIDIAN_CLAUDE/Sessions/$(date +%Y-%m-%d)-topic.md" <<'EOF'
---
date: 2026-01-23
type: session-note
tags: [claude-session]
---
# Content here
EOF
# Task note
cat > "$OBSIDIAN_CLAUDE/Tasks/task-name.md" <<'EOF'
---
date: 2026-01-23
type: task
tags: [task, status/pending]
---
# Task: task-name
- [ ] Step 1
EOF
# Quick append to daily
echo "## Note
Content" >> "$OBSIDIAN_CLAUDE/Daily/$(date +%Y-%m-%d).md"# Wikilinks
[[Note Name]]
[[Note#Heading]]
[[Note|Display Text]]
# Tags
#tag
#hierarchical/tag
# Tasks
- [ ] Pending
- [x] Done
# Callouts
> [!note]
> Content
# Block references
^block-id
[[Note#^block-id]]