PostToolUsematcher: Write|Edit|MultiEdit|NotebookEdit
Obsidian Auto-Commit
Auto-commit your Obsidian vault after every Write/Edit.
Runs a shell script that stages and commits the vault whenever Claude writes or edits a file. Keeps a clean per-edit git history of your notes.
Install via CLI
npx hookyard install obsidian-auto-commit
Or paste into ~/.claude/settings.json
{
"hooks": {
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit|NotebookEdit",
"hooks": [
{
"type": "command",
"command": "$HOME/.claude/hooks/obsidian-auto-commit.sh"
}
]
}
]
}
}#automation#git#notes
By developersdigest