360 Secure SkillHub
360 安全技能中心

Archive Daily Note

该 Skill 通过定时任务在午夜后运行,将 Obsidian 库根目录中前一天的日记笔记(形如 MM-DD-YYYY DayOfWeek.md)用 obsidian move 移动到 past-days/ 归档目录,以保留内部 wiki 链接。具备幂等性,已归档或不存在时静默跳过,仅在出错时报告。需本地安装 Obsidian CLI 并预先存在 past-days 目录。

madebydia
madebydia
热度 69.84
最近更新 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