Archive Daily Note
Automatically moves yesterday's Obsidian daily note into a past-days/ archive folder using the Obsidian CLI move command to preserve wiki-links.
Documentation & Preview
archive-daily-note

An OpenClaw skill that moves yesterday's Obsidian daily note into a past-days/ archive folder using the Obsidian CLI.
What It Does
Designed for nightly cron execution, this skill:
- Finds yesterday's daily note (named
MM-DD-YYYY DayOfWeek.md) at the vault root - Moves it into
past-days/usingobsidian move - Keeps all wiki-links updated — the Obsidian move command rewrites internal references so nothing breaks
Why obsidian move?
A simple mv would break every [[link]] pointing to the note. The Obsidian CLI's move command updates all backlinks across the vault automatically.
Cron Setup
Schedule as an isolated cron job shortly after midnight:
Schedule: 5 0 * * * (daily at 00:05)
Target: isolatedBehavior
- Idempotent — safe to run multiple times; skips if already archived or missing
- Link-safe — uses Obsidian's move command to update all internal links
- Silent — no output on skip; only reports errors
Requirements
- OpenClaw with cron support
- Obsidian CLI (
obsidianbinary) - Daily notes in
MM-DD-YYYY DayOfWeek.mdformat - A
past-days/folder in your vault
License
MIT