Agent skill

diary-assistant

(macOS, requires schedule-manager) Use this skill whenever the user wants to write a personal diary entry or daily journal — this includes any request to record today's events, write a diary, log what happened today, or capture personal reflections. Invoke immediately for phrases like 帮我写日记, 写日记, 记录今天, 今天的日记, "write my diary", or "daily log". This skill guides a complete journaling session: reviewing today's tasks from Reminders, reflective guided questions, composing the entry, and scheduling follow-up plans. Distinct from diary-note (quick append) and weekly-report (work summary).

Stars 10
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/niracler/skill/tree/main/skills/writing/diary-assistant

Metadata

Additional technical details for this skill

openclaw
{
    "emoji": "\ud83d\udcd4",
    "requires": {
        "bins": [
            "osascript",
            "reminders-cli"
        ],
        "skills": [
            "schedule-manager"
        ]
    }
}

SKILL.md

Diary Assistant

日记写作助手,提供完整的日记工作流,包含任务回顾、启发提问和任务捕获。

Prerequisites

Tool Type Required Install
macOS system Yes This skill requires macOS
reminders-cli cli Yes brew install keith/formulae/reminders-cli
schedule-manager skill Yes Included in npx skills add niracler/skill
anki-card-generator skill No Included in npx skills add niracler/skill

Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.

核心原则

原则 说明
45 分钟约束 完整流程控制在一个番茄钟内完成
GTD 集成 开始时回顾今日任务,结束时捕获新计划
启发而非代写 用提问引导思考,不替用户决定内容

完整流程

text
┌──────────────────────────────────────────────────────────┐
│       diary-assistant 完整流程(目标 ≤35min)              │
└──────────────────────────────────────────────────────────┘

  ┌──────────────┐
  │ 用户触发日记  │
  └──────┬───────┘
         │
         ▼
  ┌────────────────────────────────────┐
  │ 1. Pre-Diary Clarification  (~1min) │
  │    确认日期:2026-01-29.md         │
  └──────┬─────────────────────────────┘
         │
         ▼
    ┌────┴──────────┐
    │ 日记文件已存在? │
    └────┬──────────┘
      是 │         │ 否
         ▼         │
  ┌─────────────┐  │
  │ 选择模式:   │  │
  │ 继续/追加/  │  │
  │ 重新开始    │  │
  └──────┬──────┘  │
         └────┬────┘
              ▼
  ┌────────────────────────────────────┐
  │ 2. 今日任务回顾(简化)    (~2min)   │
  │    获取 Reminders → 批量确认       │
  └──────┬─────────────────────────────┘
         │
         ▼
  ┌────────────────────────────────────┐
  │ 3. 启发提问              (~20min)   │
  │                                    │
  │    Q1「今天有什么想记录的?」       │
  │    Q2「有什么收获或感受?」         │
  │    Q3「之后有什么计划?」           │
  │                                    │
  │    → 计划直接解析为 Reminders       │
  └──────┬─────────────────────────────┘
         │
         ▼
  ┌────────────────────────────────────┐
  │ 4. 整理成文              (~10min)   │
  └──────┬─────────────────────────────┘
         │
         ▼
  ┌────────────────────────────────────┐
  │ 5. 智能收尾              (~0-5min)  │
  │    检测到 TIL → 「要生成 Anki 吗?」│
  └──────┬─────────────────────────────┘
         │
         ▼
      ┌──────┐
      │ 完成  │  总计 ~33-38min
      └──────┘

1. Pre-Diary Clarification

开始前确认日期和文件:

text
Claude: 「今天的日记是 2026-01-29.md 吗?」
用户: 「是」/ 「不是,是昨天的」

文件已存在处理

如果文件已存在,提供选项:

选项 说明
继续 在现有内容基础上继续编辑
追加 在文件末尾添加新内容
重新开始 清空重写(会确认)

2. 今日任务回顾

调用 schedule-manager 获取今日 Reminders,然后批量确认:

text
今日计划的 5 件事:
1. 写文档
2. 修 bug
3. 开会
4. 回复邮件
5. 复习英语

哪些完成了?(输入序号,如「1,3」,或「全部」/「都没完成」)

处理逻辑:

  • 用户说「1,3」→ 标记 1、3 为完成,追问「2、4、5 延期到什么时候?」
  • 用户说「全部」→ 全部标记完成
  • 用户说「都没完成」→ 追问「延期到什么时候?」

延期时间解析:

  • 「明天」→ tomorrow
  • 「后天」→ 2 days
  • 「周五」→ friday
  • 「下周」→ next monday

无任务时跳过此步骤。

命令参考

bash
# 获取今日任务
reminders show-all --due-date today

# 完成任务
reminders complete "<列表名>" <index>

# 延期到指定日期(删除后重建)
reminders delete "<列表名>" <index>
reminders add "<列表名>" "<任务名>" --due-date "<用户指定的日期>"

3. 启发提问

顺序 问题
Q1 「今天有什么想记录的?」
Q2 「有什么收获或感受?」
Q3 「之后有什么计划?」

提问节奏

text
Claude: 「今天有什么想记录的?」
用户: [回答]
Claude: [确认/追问] → 「好的,下一个问题:有什么收获或感受?」

4. 任务捕获

最后一个问题「之后有什么计划?」的回答会自动解析为任务:

日期解析示例

用户输入 解析结果
「明天要交报告」 明天
「周五开会」 本周五
「下周一复习」 下周一
「月底前提交」 本月最后一天
「下个月初」 下月 1 号

确认后创建

text
Claude: 「检测到以下计划,确认创建到 Reminders 吗?」
  - 明天:交报告
  - 周五:开会

用户: 「好」

Claude: [调用 schedule-manager 创建]
bash
reminders add "提醒" "交报告" --due-date "tomorrow"
reminders add "提醒" "开会" --due-date "friday"

5. 智能收尾

根据日记内容推荐后续操作:

检测内容 推荐操作
TIL(今天学到的东西) 「检测到你今天学了新东西,要生成 Anki 卡片吗?」→ 调用 anki-card-generator

注意: 日记存储在 Obsidian(iCloud 同步),不需要 git 提交。

时间预算

步骤 时间
确认日期 + 文件处理 ~1 min
任务回顾 ~2 min
启发提问(含计划) ~20 min
整理成文 ~10 min
智能收尾(可选) ~0-5 min
总计 ~33-38 min

用户配置

见 user-config.md 配置日记路径和工作仓库。

Expand your agent's capabilities with these related and highly-rated skills.

niracler/skill

pinboard-manager

Use this skill for ALL Pinboard bookmark management tasks — this is the go-to skill whenever Pinboard (pinboard.in) is involved. Invoke immediately when the user wants to: audit or reorganize messy tags, check for broken/dead links, identify stale or outdated bookmarks, clean up their bookmark collection, or manage their Pinboard account in any way. Also use when the user says 整理书签, 检查死链, 整理 tag, 书签管理, pinboard cleanup, bookmark audit, tag consistency, timeliness check, pinboard 过时检测. Do NOT trigger for: browser bookmark management, Raindrop.io, or general URL checking without Pinboard context.

10 0
Explore
niracler/skill

yunxiao

Use this skill for all Alibaba Cloud 云效 (Yunxiao) DevOps operations on codeup.aliyun.com. Invoke IMMEDIATELY when the user wants to: create or manage Merge Requests (MR) on codeup, update work items/tasks in 云效, query MR lists or task status, create version tags via 云效 API, or push code to a codeup remote. Key triggers: 创建 MR, 提交评审, 云效, yunxiao, codeup, 更新任务, 查看任务, 发布版本, 打 tag. Handles both MCP tool mode and aliyun CLI fallback. Do NOT use for GitHub PRs (use git-workflow), Jira, GitLab, or non-Alibaba platforms.

10 0
Explore
niracler/skill

weekly-report

Use this skill whenever the user wants to write or generate a structured weekly work report (软件研发周报) — the formal 3-section corporate format with 本周工作总结, 下周工作计划, and 其他事项. This skill automatically collects data from git logs, Obsidian diary Work Log entries, schedule YAML files, GitHub PRs, and 云效 MRs/tasks to draft the report. Invoke when the user says 周报, 软件研发周报, 本周工作总结, 写周报, weekly report, end-of-week summary, or asks to prepare a work summary for their manager/team. Do NOT use for personal diary entries, monthly reviews, OKR summaries, meeting notes, or quarterly retrospectives.

10 0
Explore
niracler/skill

code-sync

Use this skill to batch-sync all git repos across machines — pushing uncommitted changes at end of day or pulling latest at start of day. Invoke when the user wants to sync all repos (not just one), mentions 「下班同步」「上班更新」 「code-sync」, or describes end-of-day push / morning pull across ~/code. Triggers on: "sync all my repos", "end of day sync", "morning update", "push all dirty repos", "pull all projects", 「同步代码」「下班同步」「上班更新」. Do NOT trigger for: single-repo git operations, committing specific files (use git-workflow), general git push/pull questions, or workspace template updates.

10 0
Explore
niracler/skill

ha-integration-reviewer

Strict Home Assistant integration code review for PR preparation. Covers Quality Scale rules, code style, Config Flow, test coverage, and docs. Invoke immediately when the user says "review my HA integration", "check HA compliance", "HA code review", "HA Quality Scale check", "home assistant PR review", "审查我的 HA 集成", "检查我的代码是否符合 HA 规范", "帮我 review 一下准备提交的代码". Launches parallel check agents across 5 dimensions. Do NOT use for: non-HA code review, configuring HA automations, HACS plugins, or Lovelace card development.

10 0
Explore
niracler/skill

schedule-manager

(macOS only) Use this skill for ALL Apple Calendar and Reminders management tasks using osascript and reminders-cli, following GTD methodology. Invoke immediately when the user wants to: schedule a meeting or event, add a todo or reminder, check today's agenda, plan the week ahead, do a weekly review, or capture any task they don't want to forget. Also use when the user says 安排会议, 创建提醒, 查看日程, 规划下周, 添加待办, 记一下, 别忘了, 今天要做什么, 周回顾. This is the right skill any time the user wants to interact with macOS Calendar or Reminders apps.

10 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results