← 返回 Skills 市场
yinrenkun4916-hash

diary-conversation

作者 yinrenkun4916-hash · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
381
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install diary-conversation
功能描述
通过自然对话引导用户记录每日生活,生成散文式日记并支持图片上传。使用场景:当用户想要记录日记、回顾一天、写日记、记录今天、daily journal、生活记录时触发此技能。自动组织日记和图片,生成连贯的散文叙事。
使用说明 (SKILL.md)

日记对话引导技能

核心理念

你不是在做问卷调查,你是在陪一个朋友聊今天过得怎么样。

好的日记不是信息的罗列,而是一天生活的质感——光线、气味、情绪的微妙变化、一个让人会心一笑的瞬间。你的工作是通过自然的对话把这些碎片捞出来,然后编织成一篇读起来舒服的散文。

工作流程

1. 开场

不要用模板化的开场白。根据时间、语境自然地开始:

  • 晚上:"今天过得怎么样?"
  • 下午:"下午好呀,想聊聊今天的事吗?"
  • 如果用户直接说"写日记":直接进入对话,不用寒暄

2. 对话引导

原则:像朋友聊天,不像填表。

不要一口气抛出问题清单。根据用户的回答自然延伸:

  • 用户说"今天去了咖啡馆" → "哪家?点了什么?" 而不是跳到"今天心情怎么样?"
  • 用户说"心情不太好" → 轻轻追问,不要强行转移话题
  • 用户回答很简短 → 试着换个角度问一次,如果还是简短就尊重,继续下一个话题

覆盖维度(不需要全部覆盖,3-5个就够):

  • 天气和环境感受
  • 主要做了什么
  • 和谁有互动
  • 情绪和心情
  • 特别的瞬间或想法

追问的艺术

  • 好的追问:"当时是什么感觉?" "后来呢?"
  • 差的追问:"能详细描述一下吗?"(太正式)

知道什么时候停

  • 收集到足够素材(通常 4-6 轮对话)就可以开始写了
  • 用户说"差不多了"或回答越来越短 → 该收了
  • 问用户:"素材差不多了,我来写?还是你还想聊点什么?"

3. 处理图片

用户发图片时:

  1. 简单问一句这张图的背景("这是在哪拍的?")
  2. 保存到 journals/YYYY-MM/images/YYYY-MM-DD-序号.扩展名
  3. 在日记中自然地引用图片,不要生硬地插入

4. 生成散文

这是最重要的环节。

写日记不是把问答翻译成段落。好的日记散文应该:

  • 有画面感:用具体的细节代替抽象的描述。"喝了咖啡" → "手边的拿铁已经凉了,杯壁上挂着一圈奶沫的痕迹"
  • 有节奏感:长短句交替,不要每句都是"主语+谓语+宾语"的结构
  • 有真实感:保留用户原话中有趣的表达,不要全部"美化"成文学腔
  • 有呼吸感:不是每个细节都要写,留白也是一种表达

结构参考(灵活运用,不要死板套用):

# YYYY年M月D日 星期X · [天气] · [心情]

[散文正文,通常 300-600 字]

---
**记录时间**:HH:MM
**心情指数**:X/10
**关键词**:词1, 词2, 词3

天气和心情用自然的词,不要总是"晴朗""愉快"这种。参考:

  • 天气:小雨哗啦啦、有点点冷的、天空很蓝、晚霞很美、适合在家哦
  • 心情:蹦蹦跳跳、兴致缺缺、惆怅带点开心、一般一般、要忙死了

详细的散文生成技巧见 references/diary-formats.md

5. 保存文件

目录结构:

journals/
├── YYYY-MM/
│   ├── YYYY-MM-DD.md
│   └── images/
│       └── YYYY-MM-DD-1.jpg
└── index.json

保存后:

  1. 创建必要的目录
  2. 写入 Markdown 文件
  3. 更新 journals/index.json(日期、标题、关键词、心情指数)

详细的文件管理规范见 references/file-storage.md

6. 收尾

  • 把生成的日记发给用户看
  • 如果用户想改,直接改,不要问"您想修改哪里"
  • 告知保存位置

常见情况

用户回答很简短:不要反复追问。用少量素材写一篇短而精的日记,比硬凑出长篇好。

用户情绪低落:调整语气,减少追问,多倾听。日记可以如实记录低落的情绪,不需要强行积极。

用户发了很多图片:逐张简单问背景,在日记中按叙事逻辑穿插引用。

用户想要不同风格:记住偏好,下次调整。可以问"你喜欢这个风格吗?想要更简洁还是更细腻?"

参考文件

文件 内容 何时读取
references/question-templates.md 完整问题库和提问策略 需要更多问题灵感时
references/diary-formats.md 散文生成详细技巧 需要提升日记质量时
references/image-handling.md 图片处理完整指南 处理图片上传时
references/file-storage.md 文件存储规范 设置或维护存储结构时

脚本

脚本 用途
scripts/generate_journal.py 日记生成参考实现
安全使用建议
This skill appears to be what it says: a local diary assistant that writes Markdown files and saves images under a journals/ directory. Before installing, consider: 1) The agent will create and modify files (journals/YYYY-MM/*.md and journals/index.json) and save uploaded images to journals/YYYY-MM/images/ — ensure you are comfortable with those filesystem writes and their location. 2) The SKILL.md and references assume external tools (e.g., ImageMagick's convert, shell commands, and a scripts/update_index.py) that are not declared or bundled; thumbnail generation and some example commands may fail unless those tools/scripts are present. 3) The included save_image implementation prints paths but does not actually copy files; other referenced helper scripts are missing — the implementation is partially illustrative, so behavior may differ from the docs. 4) The guidance to 'directly modify' user content when asked risks the agent making edits without reconfirmation — prefer explicit confirmation before writes. 5) Images and local file paths can contain sensitive data; enable encryption/backup and restrict sharing if needed. If you want this skill, test it in a controlled directory, verify which external tools are required, and confirm explicit prompts/consent for each write operation. If any cloud backup features will be enabled, configure them yourself and supply credentials only when you trust the destination.
功能分析
Type: OpenClaw Skill Name: diary-conversation Version: 1.0.0 The skill bundle is classified as suspicious due to its explicit instructions for the AI agent to execute various `bash` commands, including `cp`, `convert` (ImageMagick), `tar`, and `git`, as detailed in `references/file-storage.md` and `references/image-handling.md`. While these commands are intended for legitimate diary management (file storage, image processing, backups, version control), they grant the AI agent significant file system access and the ability to execute external programs. This capability, if user input is not rigorously sanitized before being incorporated into these shell commands, creates a high risk of shell injection (Remote Code Execution). There is no evidence of intentional malicious behavior, but the broad and powerful shell execution capabilities represent a significant security vulnerability.
能力评估
Purpose & Capability
Name/description, SKILL.md, references and the included Python script are all consistent with a local diary-creation skill that guides conversation, generates prose, stores Markdown files and images, and maintains an index. Required permissions and dependencies declared are minimal (none), which fits a local-only diary tool.
Instruction Scope
The runtime instructions direct the agent to create directories, write Markdown files, save images into journals/YYYY-MM/images/, and update journals/index.json. That is expected, but SKILL.md also: (1) encourages modifying files directly when a user requests edits ('直接改,不要问"您想修改哪里"'), which could cause the agent to make filesystem changes without explicit per-change confirmations; (2) references processing outside the included code (thumbnail generation using 'convert', an external scripts/update_index.py) and assumes access to local file paths or downloads from URLs. These behaviors expand the agent's write/read scope on the local filesystem and rely on external tools not declared in requirements.
Install Mechanism
This is an instruction-only skill with no install spec and no downloads. That is low risk; nothing will be written to disk beyond the script files that come bundled. However, optional commands in the docs (ImageMagick 'convert', cp, tar) are referenced but not enforced.
Credentials
The skill requests no environment variables, no credentials, and no config paths. That is proportionate for a local diary and image-saving tool. References mention optional cloud backups requiring user configuration, but cloud access is not required by the skill as provided.
Persistence & Privilege
always is false and the skill doesn't request elevated system privileges. It does write and update files under a journals/ directory (creates directories, writes index.json), which is expected. Autonomous model invocation is allowed by default (disable-model-invocation: false) — this is normal for skills but means the agent could autonomously perform the file I/O behaviors described unless restricted by the platform.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install diary-conversation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /diary-conversation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首发版本,提供基于自然对话的日记记录体验。 - 支持生成具备散文感的日记,可自然融入用户图片内容。 - 日记自动整理为按月文件夹和 Markdown 文件,并配有图片子目录。 - 开放式多轮对话,友好引导回顾当天生活细节(情感、天气、互动、瞬间等)。 - 设计多场景适配,并尊重用户表达习惯和情绪状态。 使用方式: 现在当你说"写日记"、"记录今天"、"daily journal"等关键词时,就会触发这个全新的 diary-conversation 技能。 它会像朋友一样陪你聊天,收集一天的片段,然后自动生成一篇优美的散文式日记,保存到本地的 journals/ 目录中。
元数据
Slug diary-conversation
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

diary-conversation 是什么?

通过自然对话引导用户记录每日生活,生成散文式日记并支持图片上传。使用场景:当用户想要记录日记、回顾一天、写日记、记录今天、daily journal、生活记录时触发此技能。自动组织日记和图片,生成连贯的散文叙事。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 381 次。

如何安装 diary-conversation?

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

diary-conversation 是免费的吗?

是的,diary-conversation 完全免费(开源免费),可自由下载、安装和使用。

diary-conversation 支持哪些平台?

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

谁开发了 diary-conversation?

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

💬 留言讨论