archive-daily-note

TotalClaw 作者 totalclaw

使用 Obsidian CLI 移动命令自动将昨天的 Obsidian 每日笔记移动到过去/存档文件夹中以保留 wiki 链接。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~meimakes-archive-daily-note
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~meimakes-archive-daily-note/file -o meimakes-archive-daily-note.md
## 概述(中文)

使用 Obsidian CLI 移动命令自动将昨天的 Obsidian 每日笔记移动到过去/存档文件夹中以保留 wiki 链接。

## 原文

# 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