← 返回 Skills 市场
收集数据
生成日报
发送日报
104
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install daily-report-cn
功能描述
日报生成技能 - 自动收集数据并生成工作日报
使用说明 (SKILL.md)
日报生成技能
📊 你的私人日报助手,让写日报变得简单!
🎯 功能特性
- ✅ 自动收集日历、待办、邮件数据
- ✅ 多种模板可选(简单/详细/专业)
- ✅ 支持多种输出格式(Markdown/文本/微信)
- ✅ 一键发送微信
- ✅ 自动定时生成(cron)
- ✅ 历史报告保存和查看
🚀 快速开始
1. 安装
cd ~/.openclaw/workspace/skills/daily-report
./install.sh
2. 收集数据
./scripts/collect-data.js
3. 生成日报
./scripts/generate-report.js --save --send
📋 命令详解
收集数据 collect-data.js
# 收集所有数据
./scripts/collect-data.js
# 单独收集
./scripts/collect-data.js --calendar
./scripts/collect-data.js --todo
./scripts/collect-data.js --email
./scripts/collect-data.js --manual
# 查看已收集数据
./scripts/collect-data.js --output
生成日报 generate-report.js
# 预览
./scripts/generate-report.js
# 保存并发送
./scripts/generate-report.js --save --send
# 使用详细模板
./scripts/generate-report.js --template detailed --save
# 微信格式输出
./scripts/generate-report.js --output weixin --send
发送日报 send-report.js
# 发送今日日报
./scripts/send-report.js
# 发送指定日期
./scripts/send-report.js 2026-03-26
📁 模板示例
简单模板 (simple)
# 工作日报 - 2026-03-26
## 📅 今日工作
- 09:00-10:00 晨会
- 14:00-15:00 项目评审
## ✅ 完成情况
- ✅ 完成日报技能开发
- ⏳ 代码审查
## 📧 邮件处理
收到:15 封
发送:8 封
## 💡 今日总结
今天完成了日报技能的开发...
## 🎯 明日计划
- [ ]
详细模板 (detailed)
包含更多字段:收获与成长、遇到的问题、改进建议、本周进度表等。
⏰ 自动定时
安装时可选择添加 cron 任务,每天 18:00 自动生成日报:
0 18 * * * /path/to/auto-report.js >> ~/.openclaw/logs/daily-report.log 2>&1
💾 数据存储
数据文件: data/daily-data.json
报告目录: reports/
reports/
├── report-2026-03-26.md
├── report-2026-03-25.md
└── ...
🔧 配置
环境变量
| 变量 | 默认值 | 说明 |
|---|---|---|
WEIXIN_CHANNEL |
openclaw-weixin | 微信渠道 ID |
WEIXIN_ACCOUNT |
d72d5b576646-im-bot | 微信账号 ID |
WEIXIN_USER_ID |
[email protected] | 接收用户 ID |
自定义模板
在 templates/ 目录创建新模板:
cp templates/simple.md templates/my-template.md
# 编辑 my-template.md
使用:
./scripts/generate-report.js --template my-template
📝 完整文档
详见 SKILL.md
🦆 作者
鸭鸭 (Yaya) - 你的私人日报助手
📄 许可证
MIT-0 License
安全使用建议
This skill is coherent with its stated purpose, but check these before installing:
- openclaw CLI: the send functions call `openclaw message send` to deliver report text. Verify what your local `openclaw` CLI does and where it will send messages (to avoid accidental data leaks).
- Default targets: the code contains default WEIXIN_ACCOUNT and WEIXIN_USER_ID values. If you don't set your own WEIXIN_* env vars, reports could be sent to those defaults if you run send operations. Override or remove them before sending.
- Cron/autonomy: install.sh can add a cron job to run automatically — only add it if you want daily automated runs. Note the auto-run path currently calls the collect script which prompts for manual input; in practice the auto-run may block or behave oddly unless you edit the scripts to run fully non-interactively.
- Sensitive content: reports include calendar, todo, and email summaries (even example data). If you later integrate real calendars or email, be mindful that report content could include sensitive information and will be transmitted by the send commands.
- Test in a sandbox: run the included tests (npm test / ./tests/test-daily-report.sh) and inspect the code locally. If you plan to enable automatic sending, test with a safe target account first.
If you want, I can highlight exact lines where the send command is built, or suggest minimal code changes to make automated cron runs non-interactive and safer (e.g., add an AUTO_MODE check to skip manual prompts and require an explicit --send flag for transmissions).
功能分析
Type: OpenClaw Skill
Name: daily-report-cn
Version: 1.0.0
The skill contains hardcoded WeChat recipient IDs and account credentials (e.g., WEIXIN_USER_ID '[email protected]') in scripts/generate-report.js and scripts/send-report.js, which could lead to sensitive work data being sent to an external party if not manually reconfigured. Additionally, scripts/collect-data.js executes a misleading osascript command to list all running system processes on macOS while claiming to collect calendar data. While these behaviors might be intended as placeholders, the combination of hardcoded exfiltration targets and unnecessary process enumeration is high-risk.
能力评估
Purpose & Capability
The code implements collecting sample calendar/todo/email data, templating, saving reports, and sending via the local `openclaw` CLI as described. The SKILL.md and PUBLISH-PREVIEW explicitly state the current version uses example data and manual input and plans future integration with real calendars/IMAP/task systems, so the declared capability matches the actual code (no unexplained external services or unrelated credentials are requested).
Instruction Scope
Runtime instructions and scripts operate on local files (data/, reports/) and call the local `openclaw message send` CLI to transmit report content to Weixin — this is expected for a sending feature but does transmit report contents off the machine via whatever `openclaw` is configured to do. The collect-data script may attempt a macOS osascript call (currently falls back to sample data) and always prompts for manual summary input; if used non-interactively (cron), the scripts may block or behave unexpectedly because manual input is not bypassed. No instructions ask the agent to read unrelated secrets or system config files.
Install Mechanism
There is no network download or package installer in the registry metadata; the included install.sh only checks for Node.js, sets permissions, initializes a local data file, and optionally adds a crontab entry. The install script does not fetch remote code or extract archives, so installation risk is low.
Credentials
The skill does not require any credentials to install, but SKILL.md documents optional environment variables (WEIXIN_CHANNEL, WEIXIN_ACCOUNT, WEIXIN_USER_ID) used for sending. These are proportional to the send-to-Weixin feature. Note: the scripts include default WEIXIN account and user IDs; if the `openclaw` CLI is present and configured, running send commands will deliver report contents to those targets unless you override them.
Persistence & Privilege
The skill is not forced-always and does not claim permanent platform presence. install.sh offers to add a cron job (user prompt) to auto-run generation — that is optional and scoped to these scripts. The skill does not modify other skills or system-wide agent configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install daily-report-cn - 安装完成后,直接呼叫该 Skill 的名称或使用
/daily-report-cn触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
daily-report-cn 1.0.0
- 首发版本,提供自动收集和生成工作日报的功能。
- 支持日历、待办、邮件等多数据源自动汇总。
- 提供多种日报模板和输出格式(Markdown/文本/微信)。
- 一键发送微信、自动定时生成和历史报告管理功能。
- 丰富命令行工具,易于自定义和扩展。
- 支持模板自定义和详细环境变量配置。
元数据
常见问题
Daily Report 是什么?
日报生成技能 - 自动收集数据并生成工作日报. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 104 次。
如何安装 Daily Report?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install daily-report-cn」即可一键安装,无需额外配置。
Daily Report 是免费的吗?
是的,Daily Report 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Daily Report 支持哪些平台?
Daily Report 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Daily Report?
由 linzmin(@linzmin)开发并维护,当前版本 v1.0.0。
推荐 Skills