360 Secure SkillHub
360 安全技能中心

Archive Daily Note

核心功能:每日自动将Obsidian昨日的每日笔记从vault根目录移至past-days文件夹,采用Obsidian CLI的move命令同步更新内部链接,操作幂等,若笔记已归档或不存在则静默跳过。典型场景:Obsidian用户需定期整理每日笔记,维持根目录整洁。需满足前置条件:安装Obsidian CLI、笔记为MM-DD-YYYY DayOfWeek.md格式、vault内有past-days文件夹,可通过Cron定时触发(如每日00:05)。

madebydia
madebydia
热度 69.87
最近更新 2026-06-07 11:31:34
分类:自动化依赖:代码执行应用场景:自动化脚本 / 工作流 / 笔记整理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add archive-daily-note
Metadata
name
archive-daily-note
description
Automatically moves yesterday's Obsidian daily note into a past-days/ archive folder using the Obsidian CLI move command to preserve wiki-links.
metadata
{"openclaw":{"requires":{"bins":["obsidian"]},"homepage":"https://github.com/madebydia/archive-daily-note","author":"Diana Park (@madebydia)"}}

Archive Daily Note Skill

Automatically moves yesterday's Obsidian daily note into a past-days/ archive folder.

What It Does

Runs daily (e.g., at 12:05 AM) to move the previous day's note from the vault root into past-days/. Uses obsidian move to preserve wiki-links.

Cron Setup

Schedule as an isolated cron job running shortly after midnight:

Schedule: 5 0 * * * (daily at 00:05)
Target: isolated

Prompt:

Move yesterday's Obsidian daily note into the past-days/ folder.
The note is at the vault root named like 'MM-DD-YYYY DayOfWeek.md'.
Use `obsidian move` so links stay updated.
If it's already in past-days or doesn't exist, skip silently.

Requirements

  • Obsidian CLI (obsidian move command)
  • Daily notes named in MM-DD-YYYY DayOfWeek.md format
  • A past-days/ folder in the vault

Behavior

  • 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 if something goes wrong