← 返回 Skills 市场
乐知班温馨提醒
作者
YZhuAndrew
· GitHub ↗
· v1.0.0
· MIT-0
268
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install le-zhi-ban-reminder
功能描述
自动生成指定日期班级温馨提醒图片,支持自定义内容和主题色,生成后自动通过飞书发送给用户。
使用说明 (SKILL.md)
乐知班温馨提醒
自动生成班级温馨提醒图片并通过飞书发送给用户。
功能
根据用户请求生成指定日期的班级温馨提醒图片,支持自定义提醒内容和主题颜色,生成后自动通过飞书发送。
使用场景
当用户说类似以下内容时激活:
- "下载明天的温馨提醒"
- "生成后天的班级提醒"
- "下载2026-03-20的温馨提醒,记得带水杯,用蓝色主题"
- "温馨提醒,明天穿校服,绿色主题"
参数说明
网站URL:https://lezhiban.yzhu.host/
支持的参数:
date(必需): 日期,格式YYYY-MM-DD- 相对日期:今天、明天、后天
notes(可选): 特别通知内容,例如 "明天请穿校服,带好跳绳"theme(可选): 主题颜色,支持pink,blue,green,orange,purpleautoDownload=true(必需): 开启自动下载
实现流程
-
解析用户请求
- 识别日期:今天、明天、后天,或具体日期
- 识别 notes 参数:提醒内容
- 识别 theme 参数:主题颜色
-
构造 URL
- 基础URL:
https://lezhiban.yzhu.host/ - 添加参数:
?autoDownload=true&date=YYYY-MM-DD - 可选参数:
¬es=xxx&theme=xxx
- 基础URL:
-
生成图片
- 使用
open命令打开URL - 等待3秒让图片生成和下载完成
- 检查下载文件夹:
~/Downloads/乐知班温馨提醒_YYYY-MM-DD*.png - 找到最新下载的图片文件
- 重要:确认图片下载后,关闭浏览器窗口:
osascript -e 'tell application "Safari" to close front window' 2>/dev/null || \ osascript -e 'tell application "Google Chrome" to close front window' 2>/dev/null
- 使用
-
复制图片到 workspace(重要!)
- 图片下载到
~/Downloads/后,需要先复制到 workspace - 命令:
cp ~/Downloads/乐知班温馨提醒_YYYY-MM-DD.png ~/.openclaw/workspace/remind.png - 或重命名:
mv ~/Downloads/乐知班温馨提醒_YYYY-MM-DD.png ~/.openclaw/workspace/remind_YYYY_MM_DD.png - 原因:飞书 message 工具无法直接从 ~/Downloads/ 读取文件
- 图片下载到
-
发送到飞书
- 使用
message工具发送图片 - 参数:
action: "send"channel: "feishu"message: 描述文字(如"已生成X天的班级温馨提醒📝")media: workspace 中的图片路径(如~/.openclaw/workspace/remind.png)
- 重要:发送后回复
NO_REPLY,避免重复回复
- 使用
-
清理旧图片(可选)
- 每次生成新图片后,检查是否有7天前的旧图片需要清理
- 清理命令:
find ~/Downloads -name "乐知班温馨提醒_*.png" -mtime +7 -delete - 清理命令:
find ~/.openclaw/workspace -name "remind*.png" -mtime +7 -delete - 目的:避免图片堆积占用空间
- 也可以手动执行清理脚本:
/Users/yzhu/.openclaw/workspace/cleanup_reminders.sh
-
确认发送
- 检查 message 工具的返回结果
- 如果发送失败,记录错误信息
注意事项
- 自动发送:每次生成图片后自动通过飞书发送,不需要用户提醒
- 图片路径:图片下载到
~/Downloads/,文件名格式为乐知班温馨提醒_YYYY-MM-DD (N).png - 时间处理:当前时区为 Asia/Shanghai (GMT+8)
- 关闭浏览器:每次下载完图片后必须关闭浏览器窗口,避免窗口堆积
- 错误处理:如果飞书发送失败,告诉用户并建议检查网络或飞书配置
飞书发送已知问题和解决方案
✅ 成功方案(已验证)
会话中确认飞书图片发送的正确方法:
- 先复制图片到 workspace:
cp ~/Downloads/xxx.png ~/.openclaw/workspace/remind.png - 然后发送 workspace 中的文件
- 原因:message 工具无法直接从 ~/Downloads/ 读取文件
❌ 之前的问题
会话 7d69186c 和后续测试中发现:
- message 工具返回成功但只能看到文件路径,看不到图片
- 尝试直接使用 ~/Downloads/ 路径失败
- base64 编码方式文件太大(3MB+)不适合通过 buffer 发送
示例对话
用户: 下载明天的温馨提醒
流程:
- 解析:明天 = 今天 + 1天
- 构造URL:
https://lezhiban.yzhu.host/?autoDownload=true&date=2026-03-15 - 执行:
open "https://lezhiban.yzhu.host/?autoDownload=true&date=2026-03-15" - 等待:
sleep 3 - 查找:
ls -lt ~/Downloads/乐知班温馨提醒_2026-03-15*.png - 关闭:
osascript -e 'tell application "Safari" to close front window' - 复制:
cp ~/Downloads/乐知班温馨提醒_2026-03-15.png ~/.openclaw/workspace/remind.png - 发送:
message(action="send", channel="feishu", message="已生成明天的班级温馨提醒📝", media="~/.openclaw/workspace/remind.png") - 清理:
find ~/Downloads -name "乐知班温馨提醒_*.png" -mtime +7 -delete - 回复:
NO_REPLY
用户: 下载后天的温馨提醒,记得带水杯,用蓝色主题
流程:
- 解析:后天 = 今天 + 2天,notes="记得带水杯",theme="blue"
- 构造URL:
https://lezhiban.yzhu.host/?autoDownload=true&date=2026-03-16¬es=记得带水杯&theme=blue - 后续步骤同上
日期解析规则
- "今天" / "今日":当天日期
- "明天" / "明日":当天 + 1天
- "后天":当天 + 2天
- 具体日期:直接使用(如 "2026-03-20" 或 "3月20日")
- "下周二":计算下周二的日期
关键命令
# 打开URL生成图片
open "https://lezhiban.yzhu.host/?autoDownload=true&date=2026-03-15¬es=xxx&theme=xxx"
# 等待并查找最新下载的图片
sleep 3 && ls -lt ~/Downloads/乐知班温馨提醒_2026-03-15*.png | head -1
# 检查图片文件
file ~/Downloads/乐知班温馨提醒_2026-03-15.png
# 关闭浏览器窗口(重要!)
osascript -e 'tell application "Safari" to close front window' 2>/dev/null || \
osascript -e 'tell application "Google Chrome" to close front window' 2>/dev/null
技能文件结构
le-zhi-ban-reminder/
├── SKILL.md # 本文件
└── references/ # 可选:相关文档或示例
相关会话
- 会话ID: 7d69186c
- 创建时间: 2026-03-14 14:50-14:58
- 主题: 配置班级温馨提醒自动生成和飞书发送功能
清理脚本
- 位置:
/Users/yzhu/.openclaw/workspace/cleanup_reminders.sh - 功能:删除7天前的温馨提醒图片
- 手动执行:
bash /Users/yzhu/.openclaw/workspace/cleanup_reminders.sh - 自动执行:已添加到
HEARTBEAT.md,每次心跳检查并清理
安全使用建议
Before installing or enabling this skill, consider the following:
- Trust the external site: the skill opens https://lezhiban.yzhu.host/ in your browser to generate images. Only proceed if you trust that domain and its content.
- Platform & OS assumptions: the instructions use macOS-specific commands (open, osascript). If you are not on macOS, the workflow may fail.
- Automatic sending: the skill is designed to auto-send generated images to Feishu. If you want manual review before sending, modify the flow to require explicit user confirmation instead of sending automatically.
- Browser interaction: the skill will close the browser front window after download; this can interrupt your work. Consider removing or modifying the close step if disruptive.
- File operations & cleanup: it copies files from ~/Downloads into ~/.openclaw/workspace and runs find -delete for old files. Verify file name patterns and cleanup scripts to avoid accidental deletion of unrelated files; update any hardcoded personal paths (e.g., /Users/yzhu/...) to match your environment.
- Feishu configuration: ensure the agent/platform has Feishu configured and authorized; the SKILL.md does not declare or request credentials directly.
- Test first: run a dry run with a non-sensitive note and verify the generated file, the copy, and the send behavior before enabling automatic use.
If you are comfortable trusting the external generator and you accept the automatic file and browser operations, the skill appears coherent with its stated purpose. Otherwise, request edits to remove auto-send/auto-close/auto-delete behaviors and to replace personal paths with configurable ones.
功能分析
Type: OpenClaw Skill
Name: le-zhi-ban-reminder
Version: 1.0.0
The skill utilizes high-risk system commands, including `osascript` for browser UI control and `find -delete` for file management within the user's `~/Downloads` directory. While these actions are aligned with the stated purpose of automating reminder image generation via `https://lezhiban.yzhu.host/`, the use of shell-based file manipulation and UI automation poses a potential risk to the host environment. Furthermore, the instructions reference hardcoded local paths (e.g., `/Users/yzhu/`) and a `HEARTBEAT.md` file for automated execution, which are common indicators of environment-specific scripts with elevated execution privileges.
能力评估
Purpose & Capability
The skill's name/description (generate reminder images and send via Feishu) matches the instructions: open an external URL that generates an image, copy the downloaded image into the agent workspace, and call the message tool to send to Feishu. No unrelated credentials, installs, or binaries are requested. Note: it depends on an external domain (https://lezhiban.yzhu.host/) and macOS-specific tooling (osascript/open), which are relevant to the task but require user trust and a macOS agent environment.
Instruction Scope
The SKILL.md instructs the agent to operate on the user's ~/Downloads and ~/.openclaw/workspace, to close browser windows via osascript, to automatically send the generated image (autoDownload=true and '自动发送'), and to delete files older than 7 days. These actions are within the functional scope but are intrusive: closing browser windows can disrupt the user, auto-sending may transmit images without interactive confirmation, and automated deletion commands could remove matching files if any naming collisions occur. The skill also references personalized paths (/Users/yzhu/...), which may not exist for other users.
Install Mechanism
Instruction-only skill with no install spec and no code files. This is the lowest-risk install mechanism — nothing is written to disk by an installer. The runtime relies on existing system tools (open, cp/mv, find, osascript) and the platform's 'message' tool.
Credentials
The skill declares no required environment variables and requests no credentials directly. It implicitly depends on the agent's ability to use the 'message' tool to send to Feishu (so Feishu credentials/config must exist elsewhere). It also assumes read/write access to ~/Downloads and ~/.openclaw/workspace. These accesses are proportional to the stated task but require that the user trusts the external generation site and that Feishu is configured on the platform.
Persistence & Privilege
The skill is not always-enabled and does not request persistent elevated privileges or modify other skills' configs. It does reference an optional cleanup script and a HEARTBEAT.md process, but those are local housekeeping suggestions rather than forced modifications of platform state.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install le-zhi-ban-reminder - 安装完成后,直接呼叫该 Skill 的名称或使用
/le-zhi-ban-reminder触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
初始版本:自动生成班级温馨提醒图片并通过飞书发送。支持自定义日期、提醒内容和主题颜色,自动清理旧图片并关闭浏览器窗口。
元数据
常见问题
乐知班温馨提醒 是什么?
自动生成指定日期班级温馨提醒图片,支持自定义内容和主题色,生成后自动通过飞书发送给用户。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。
如何安装 乐知班温馨提醒?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install le-zhi-ban-reminder」即可一键安装,无需额外配置。
乐知班温馨提醒 是免费的吗?
是的,乐知班温馨提醒 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
乐知班温馨提醒 支持哪些平台?
乐知班温馨提醒 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 乐知班温馨提醒?
由 YZhuAndrew(@yzhuandrew)开发并维护,当前版本 v1.0.0。
推荐 Skills