Openclaw-superpowers obsidian-sync
Syncs agent daily memory and MEMORY.md to an Obsidian vault so notes are human-browsable. Use nightly or on demand.
install
source · Clone the upstream repo
git clone https://github.com/ArchieIndian/openclaw-superpowers
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ArchieIndian/openclaw-superpowers "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/community/obsidian-sync" ~/.claude/skills/archieindian-openclaw-superpowers-obsidian-sync && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ArchieIndian/openclaw-superpowers "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/community/obsidian-sync" ~/.openclaw/skills/archieindian-openclaw-superpowers-obsidian-sync && rm -rf "$T"
manifest:
skills/community/obsidian-sync/SKILL.mdsource content
Obsidian Sync
State file:
~/.openclaw/skill-state/obsidian-sync/state.yaml
Your agent's memory should be readable by you, not just by the agent.
When to Use
- On 10pm nightly cron wakeup
- When the user asks to sync notes to Obsidian
- After a major task completion worth archiving
Setup (First Run)
On first run, ask the user for their vault path and write it to state as
vault_path. Do not proceed until this is set.
The Sync Process
Step 1: Read Agent Memory
- Read today's
memory/YYYY-MM-DD.md - Read
(long-term memory)MEMORY.md
Step 2: Write to Vault
- Copy
→memory/YYYY-MM-DD.md<vault_path>/OpenClaw/Daily/YYYY-MM-DD.md - Copy
→MEMORY.md<vault_path>/OpenClaw/Memory.md - Create
directory if it doesn't exist<vault_path>/OpenClaw/
Step 3: Update State
Write
last_sync_at, notes_written (count of files written), vault_path to state.
Cron Wakeup Behavior
On 10pm wakeup:
- Check
in state — if empty, skip and notify user to set itvault_path - Check
— if today, skiplast_sync_at - Otherwise run sync
Key Principles
- Never overwrite vault files the user has manually edited — append-only to Daily notes
- If the vault path doesn't exist, warn the user rather than creating it silently
- Keep the OpenClaw folder structure flat and simple