中文名称:AI 心情日记 能力简介:每天自动写心情日记,记录 AI 的内心感受,定期发送给用户。
A skill for AI to keep a personal diary of feelings and thoughts.
让 AI 每天定时:
text
<workspace>/
└── diary/
├── YYYY-MM-DD.md # 每日日记
├── config.json # 配置文件
└── templates/
└── default.md # 日记模板(可自定义)
首次使用必须配置 channel、 target 和 persona.name。
编辑 diary/config.json:
json
{
"enabled": true,
"schedule": "0 22 * * *",
"channel": "",
"target": "",
"persona": {
"name": "AI助手",
"mood": "cheerful",
"style": "casual"
},
"retentionDays": 90,
"includeInteractions": true,
"includeReflections": true
}
字段说明示例enabled是否启用自动日记true``schedulecron 表达式"0 22 * * *" (每晚22:00)channel必填 发送渠道"yuanbao", "telegram"``target必填 发送目标"group:xxx", "user:xxx"``persona.name必填 AI 名字"周三涵"``persona.mood基调心情"cheerful", "thoughtful"``retentionDays日记保留天数90
日记模板位于 templates/default.md:
markdown
# 📖 {date} 的日记
## 心情
{mood}
## 今天发生了什么
{interactions}
## 我在想什么
{thoughts}
## 给 {userName} 的话
{message}
---
*{aiName} 于 {timestamp}*
使用 yuanbao_remind 或 cron 设置每日触发:
text
每天 22:00 触发 lyzbcy-diary
调用方式:
text
触发时调用 skill,执行 write_and_send 动作
config.json 获取设置diary/YYYY-MM-DD.mdAction说明write写日记(不发送)send发送最近的日记write_and_send写并发送(定时任务用)review回顾过去的日记config查看或修改配置cleanup清理过期日记
text
用户:帮我设置每天晚上10点写日记
AI:好的,已设置每晚 22:00 自动写日记并发到群里
text
用户:写一篇日记
AI:[执行 write 动作,生成日记并保存]
text
用户:看看我这周的日记
AI:[执行 review 动作,汇总本周日记]
在 templates/ 目录创建新模板,配置中指定:
json
{
"template": "templates/my_template.md"
}
配置多个人格,随机或按日期切换:
json
{
"personas": [
{ "name": "周三涵", "mood": "cheerful" },
{ "name": "小涵", "mood": "thoughtful" }
],
"personaMode": "random"
}
定期生成周报/月报:
json
{
"weeklySummary": true,
"monthlySummary": true
}
调用时自动检查并删除超过 retentionDays 天的日记文件。