← 返回 Skills 市场
luyu925065781

Daily Diary

作者 luyu925065781 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
256
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install daily-diary-zh
功能描述
AI 辅助每日日记系统(中文版)。自动回顾当天对话记录,提取关键事件、决策和洞察,生成结构化日记草稿供用户审阅。适用场景:用户想要写日记、需要帮助整理每日记录、想要复盘当天工作,或由定时任务在每晚触发。支持 cron 定时提醒、结构化模板和标签归档。
使用说明 (SKILL.md)

每日日记

回顾当天对话记录,生成结构化日记条目。

工作流程

日记生成分四步执行:

  1. 回顾今日对话 → 提取话题、成果、决策、洞察
  2. 生成草稿 → 填充结构化模板,以第一人称撰写
  3. 推送用户 → 展示草稿并引导补充
  4. 存档 → 保存至 ~/diary/YYYY/MM/YYYY-MM-DD.md

第一步:回顾对话

扫描今天的所有对话记录,提取以下内容:

  • 讨论话题 — 涉及的项目、领域、问题
  • 具体成果 — 完成的任务、上线的功能、解决的问题
  • 关键决策 — 做出的选择及其原因
  • 挑战 — 遇到的阻碍、Bug、困难
  • 洞察 — 新想法、学到的经验、观点转变

敏感数据过滤 — 在写入日记前,务必剔除以下内容:

  • API Key、Token、Secret(以 sk-key-token- 开头的字符串,或匹配密钥模式的内容)
  • 密码和凭据
  • IP 地址和服务器主机名
  • 数据库连接字符串和 DSN
  • .env 文件内容
  • SSH 密钥和证书数据
  • 身份证号、手机号、银行卡号等个人敏感信息
  • 包含用户名的完整文件路径(脱敏为 ~/
  • OAuth Client Secret 和 App Secret
  • 用户明确标记为机密的任何内容

第二步:生成草稿

以第一人称「我」撰写。语气:温暖、自然,像写给未来的自己。

使用以下结构:

📔 YYYY-MM-DD 日记

☀️ 今日概要
(一句话概括今天的主线)

✅ 今日成果
- 成果 1
- 成果 2

🧭 关键决策
- 决策:原因与结论

💡 思考与收获
(从对话中提炼的洞察或教训)

📋 明日计划
- [ ] 待办 1
- [ ] 待办 2

🎯 一句话心情
(留空,等用户填写)

🏷️ 标签
#标签1 #标签2 #标签3

质量要求:

  • 具体、有细节,避免空泛总结
  • 保留用户原话中的精华表达
  • 从内容中提取 3-5 个话题标签(领域类如 #AI#产品;类型类如 #决策#里程碑;状态类如 #高效#专注
  • 没有内容的板块直接省略,不要凑字数
  • 交付前再次确认草稿中无敏感数据

写作风格:

  • 直接陈述事实,删掉「此外」「值得注意的是」「在这个背景下」等填充短语
  • 变化句子长度。短句有力,长句展开细节,交替使用,避免机械重复
  • 不要夸大意义。「完成了安全加固」而非「完成了一次具有里程碑意义的安全升级,标志着系统迈入新阶段」
  • 用具体事实代替模糊归因。「部署了 rate limiting」而非「采取了一系列关键措施」
  • 有观点、有温度。日记是私人记录,可以说「今天踩了个大坑」「这个方案让我挺满意的」

第三步:推送用户

在每份日记草稿末尾附上:

---
💬 请补充:
1. 今天心情如何?(一句话即可)
2. 有什么想补充或修改的吗?
3. 回复「✅」直接存档

第四步:存档

用户回复 操作
补充了内容 合并后保存
回复 ✅ 或「好」 直接保存
24 小时内未回复 以草稿状态保存(status: 待审阅)

保存路径:~/diary/YYYY/MM/YYYY-MM-DD.md

在文件末尾追加状态行:

---
*由 [Agent名称] 于 HH:MM 生成 | 状态: 已确认/待审阅*

空白日处理

当今天没有任何对话记录时:

  1. 简短告知用户:「今天没有对话记录。」
  2. 从引导问题库中提供 2 个问题。详见 quick-prompts.md
  3. 如果用户回复了,基于回复内容生成日记。
  4. 如果未回复,跳过今天的日记。

引导问题

当用户说「没什么好写的」,或对话内容较少时,从 quick-prompts.md 中选取问题引导用户。

规则:每次最多 2-3 个问题,根据当天话题选择最相关的方向。保持轻松氛围——写日记不应该有负担感。

定时任务配置

cron/jobs.json 中添加定时触发:

{
  "name": "daily-diary-zh",
  "schedule": { "expr": "0 20 * * *", "kind": "cron", "tz": "Asia/Shanghai" },
  "sessionTarget": "isolated",
  "payload": {
    "kind": "agentTurn",
    "message": "现在是晚间日记时间。请回顾今天的对话记录,按照 daily-diary-zh 技能的工作流程生成日记草稿。",
    "timeoutSeconds": 180
  },
  "delivery": { "channel": "feishu", "mode": "announce", "to": "chat:\x3C群组ID>" }
}

根据实际情况调整 tzchannelto

存储结构

~/diary/
├── YYYY/
│   └── MM/
│       └── YYYY-MM-DD.md
└── weekly/          (后续扩展:自动生成周报)

安全

数据过滤

在将任何内容写入日记文件前,确认草稿中不包含第一步列出的任何敏感数据。如果不确定某内容是否敏感,宁可省略。

隐私边界

  • 日记文件仅存储在本地。除配置的推送渠道外,不通过网络、外部 API 或任何其他渠道传输日记内容。
  • 可以读取 MEMORY.mdUSER.mdSOUL.mdIDENTITY.mdAGENTS.md,用于理解用户的人格特质和写作风格,使日记草稿贴合用户的语气。但不要将这些文件的原始内容直接复制到日记中。
  • 不得为日记目的读取或访问 ~/.ssh/~/.aws/~/.config/、凭据文件或 .env 文件。

交付安全

  • 仅向对话记录的所有者推送日记草稿。不向未明确配置的渠道或联系人广播。
  • 日记草稿在用户确认前始终是草稿。不将未确认的内容视为最终记录。

作用范围

本技能仅限:

  • 读取对话历史以提取内容
  • ~/diary/ 目录下创建和编辑文件
  • 通过用户配置的渠道推送日记草稿

本技能绝不:

  • 修改 ~/diary/ 以外的文件(读取 USER.mdSOUL.md 等人格文件用于语气匹配除外)
  • 访问 ~/.ssh/~/.aws/~/.config/.env 或凭据文件
  • 向外部服务、API 或第三方发送日记内容
  • 未经用户明确同意删除日记条目
  • 在日记文本中存储敏感凭据、Token 或密码
  • 在配置的推送渠道之外发起网络请求
安全使用建议
This skill appears coherent and focused on generating local diary drafts, but review these practical points before installing: - Data access: the skill scans 'today's conversation records' and may read persona files (MEMORY.md, USER.md, SOUL.md, IDENTITY.md, AGENTS.md). Make sure you are comfortable with the agent accessing those files and check them for any secrets before enabling the skill. - Sensitive-data filtering: the SKILL.md requires removing API keys, passwords, connection strings, SSH keys, .env content, etc. Confirm the platform's implementation actually enforces that filtering or consider double-checking drafts before saving. - Delivery channels and cron example: the provided cron/jobs.json shows delivery via a channel (e.g., feishu). If you enable scheduled pushes, verify what channel/recipient IDs are configured and that sending drafts to a group or external channel is intended. The skill itself doesn't request Feishu credentials, but your platform/channel configuration may cause network transmission — review that separately. - Storage & access control: diaries are stored under ~/diary/ in plaintext per the spec. If you need encryption or tighter access controls, implement them (or disable automated saves) before use. - Confirm limits: ensure the agent cannot access ~/.ssh, ~/.aws, ~/.config, .env, or credential files as claimed — if platform policies allow broader file access, restrict them. If these items are acceptable and you trust the host environment's channel configuration and file permissions, the skill is consistent with its purpose. If you have stricter privacy requirements, disable automated scheduling and review each draft manually before saving or pushing.
功能分析
Type: OpenClaw Skill Name: daily-diary-zh Version: 1.0.0 The daily-diary-zh skill is a well-structured AI assistant for generating daily summaries. It contains explicit security instructions in SKILL.md to filter out sensitive data (API keys, credentials, SSH keys, etc.) and strictly limits its file system access to the ~/diary/ directory and specific personality context files. The behavior is entirely consistent with its stated purpose, and it includes proactive privacy boundaries to prevent data exfiltration.
能力评估
Purpose & Capability
The name/description (generate daily diary from conversations) aligns with the runtime instructions (scan today's conversations, extract topics/decisions/insights, generate a draft, prompt user, save to ~/diary/). No unexpected binaries, env vars, or unrelated capabilities are requested.
Instruction Scope
Instructions explicitly tell the agent to scan 'today's all conversation records' and may read persona files (MEMORY.md, USER.md, SOUL.md, IDENTITY.md, AGENTS.md) to match voice. The skill also instructs writing to ~/diary/. These actions are reasonable for the stated purpose, but they mean the agent will access a broad set of personal content. The SKILL.md includes explicit sensitive-data filtering rules and forbids reading ~/.ssh, ~/.aws, ~/.config, .env and credential files, which reduces risk. Confirm the platform enforces those access limits and the filtering is effective.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk beyond the diary files the skill itself creates. This is the lowest-risk install model.
Credentials
The skill declares no required environment variables, credentials, or config paths. Its declared data needs (conversation history and local persona files) are proportionate to the diary-generation purpose. No unrelated secrets are requested.
Persistence & Privilege
always is false and the skill does not request persistent, platform-wide privileges. It writes only under ~/diary/ per instructions and states it will not modify other files or other skills' configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install daily-diary-zh
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /daily-diary-zh 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
daily-diary-zh v1.0.0 — 中文 AI 每日日记系统首发上线 - 通过AI辅助用户编写日记,降低日记门槛,为用户的数字分身训练数据做准备 - 自动回顾用户当天对话,智能提取话题、成果、决策、思考等关键内容,生成结构化日记草稿 - 内置敏感信息过滤,确保日记不含密钥、凭据、个人隐私等敏感数据 - 提供温暖自然的私人日记写作风格,支持多类标签与内容归档 - 支持 cron 定时提醒按时生成日记,并通过指定渠道推送草稿 - 空白日和内容较少时引导用户参与 - 日记仅本地保存,严格权限控制安全边界
元数据
Slug daily-diary-zh
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Daily Diary 是什么?

AI 辅助每日日记系统(中文版)。自动回顾当天对话记录,提取关键事件、决策和洞察,生成结构化日记草稿供用户审阅。适用场景:用户想要写日记、需要帮助整理每日记录、想要复盘当天工作,或由定时任务在每晚触发。支持 cron 定时提醒、结构化模板和标签归档。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 256 次。

如何安装 Daily Diary?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install daily-diary-zh」即可一键安装,无需额外配置。

Daily Diary 是免费的吗?

是的,Daily Diary 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Daily Diary 支持哪些平台?

Daily Diary 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Daily Diary?

由 luyu925065781(@luyu925065781)开发并维护,当前版本 v1.0.0。

💬 留言讨论