← 返回 Skills 市场
renchzhao

auto-daily-summary

作者 RenchZhao · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
276
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install auto-daily-summary
功能描述
自动为所有OpenClaw Agent设置每日23:30的日记总结cron任务,自动检测Agent及时区,确保无重复且支持多平台运行。
使用说明 (SKILL.md)

Auto Daily Summary Skill

Overview

This skill automatically sets up daily summary cron jobs for all available OpenClaw agents. Each agent will be configured to automatically summarize their daily tasks and write them to their diary file at 23:30 every day.

Features

  • Automatic Agent Detection: Automatically discovers all available agents via openclaw agents list --json
  • Cross-Platform Compatibility: Python script works on Windows, Linux, and macOS
  • Automatic Timezone Detection: Detects system timezone instead of hardcoding
  • Idempotent Operation: Safe to run multiple times without creating duplicate cron jobs
  • Flexible Date Format: Uses YYYY-MM-DD.md placeholder format in messages
  • Proper Duplicate Detection: Uses openclaw cron list --json API to check existing jobs

Installation

  1. Clone or download this skill to your OpenClaw skills directory
  2. Ensure Python 3 is available on your system
  3. The skill is ready to use!

Usage

Run the setup script to configure daily summary cron jobs for all agents:

# Run the Python script directly
python3 /path/to/auto-daily-summary/scripts/setup_daily_summary_cron.py

# Or execute through OpenClaw
openclaw run -- python3 /path/to/auto-daily-summary/scripts/setup_daily_summary_cron.py

How It Works

  1. Agent Discovery: The script queries openclaw agents list --json to find all available agents and their workspace paths
  2. Timezone Detection: Automatically detects the system timezone using multiple fallback methods
  3. Duplicate Check: Uses openclaw cron list --json to identify existing daily summary jobs
  4. Cron Job Creation: For each agent without an existing job, creates a cron job that:
    • Runs daily at 23:30 in the detected timezone
    • Sends a message to the agent with instructions to summarize their daily tasks
    • Uses the YYYY-MM-DD.md placeholder format for the diary file path

Message Template

Each agent receives this message at 23:30 daily:

Please summarize today's completed but unrecorded tasks into your diary file [workspace]/memory/daily/YYYY-MM-DD.md. Replace YYYY-MM-DD with today's date. Check for any important missed tasks and ensure all complex multi-step tasks, cross-agent collaborations, and learning insights are fully documented.

File Structure

auto-daily-summary/
├── SKILL.md          # English skill documentation   
└── scripts/
    └── setup_daily_summary_cron.py  # Cross-platform setup script

Requirements

  • OpenClaw v2026.2.26 or later
  • Python 3.6+
  • Properly configured OpenClaw agents with workspace directories

Safety Notes

  • The script is idempotent and safe to run multiple times
  • Existing cron jobs are preserved and not duplicated
  • Only creates jobs for agents that don't already have daily summary configuration
  • Uses official OpenClaw CLI commands for all operations

Troubleshooting

If the script fails to detect agents or create cron jobs:

  1. Check OpenClaw Installation: Ensure openclaw command is available in PATH
  2. Verify Agent Configuration: Run openclaw agents list --json manually to confirm agents exist
  3. Check Permissions: Ensure the script has write permissions to create cron jobs
  4. Review Logs: The script provides detailed output for debugging

Contributing

This skill follows OpenClaw community standards and can be contributed to ClawdHub for others to benefit from automated daily summaries.

License

MIT License - Free to use, modify, and distribute.

安全使用建议
What to consider before installing/using this skill: - The script does what the description says (create daily 23:30 cron jobs for each agent) but the package metadata omits that it requires the 'openclaw' CLI and Python 3; ensure those are present and trusted on the host. - Security risk: the script builds shell commands by interpolating agent IDs and workspace paths and calls subprocess.run(..., shell=True). If an agent ID or workspace path contains malicious characters, that could allow arbitrary shell command execution. Only run this tool in environments where you trust the OpenClaw agent registry output. - Recommended mitigations before running: - Inspect the script yourself and, if possible, run it in a restricted test account or container first. - Replace or patch the script to call subprocess.run with a list of args (no shell=True) or safely escape arguments (e.g., shlex.quote) when composing the cron add command. - Ensure the OpenClaw CLI is the official binary and not a tampered executable; verify its install source and version. - Back up existing cron settings and consider a dry-run mode that prints the commands instead of executing them (you can modify the script to do this). - If you are not comfortable auditing or patching the script, consider asking the skill author to (1) update registry metadata to list required binaries, and (2) fix argument handling to avoid shell=True with interpolated untrusted values. Confidence note: the assessment is 'suspicious' rather than 'malicious' because the code's behavior aligns with its stated purpose, but there is a clear and avoidable security flaw and metadata omissions that warrant caution.
功能分析
Type: OpenClaw Skill Name: auto-daily-summary Version: 1.0.1 The skill automates the creation of daily summary cron jobs for OpenClaw agents but contains a shell injection vulnerability in `scripts/setup_daily_summary_cron.py`. The script uses `subprocess.run(shell=True)` to execute commands constructed with variables (like `agent_id` and `workspace_path`) fetched from the `openclaw` CLI, which could lead to arbitrary command execution if agent metadata is maliciously crafted. While this is a significant security flaw, the code lacks clear evidence of intentional malice, data exfiltration, or unauthorized persistence beyond its stated purpose.
能力评估
Purpose & Capability
The SKILL.md and the Python script clearly require the 'openclaw' CLI and Python 3, but the registry metadata lists no required binaries. Timedatectl is also used as a fallback on Linux. The core capability (creating cron jobs) matches the description, but the skill fails to declare needed runtime dependencies.
Instruction Scope
Instructions are narrow and consistent with the stated goal (discover agents, check existing cron jobs, add missing ones). However, the script composes shell commands (openclaw cron add) by interpolating agent IDs and workspace paths into a single shell string and then runs subprocess.run(..., shell=True). If agent IDs or workspace paths are maliciously crafted or contain unexpected characters, that can lead to command injection. The script does not read or transmit data to external endpoints beyond running OpenClaw CLI commands.
Install Mechanism
Instruction-only skill with no install spec or archive downloads; nothing is written to disk by an installer beyond the user placing the files. This is the lower-risk install model.
Credentials
The skill requests no credentials or secrets and only reads system timezone sources (e.g., /etc/timezone, TZ env, timedatectl). That access is proportionate to the stated task. However, metadata omission of required binaries (openclaw, python) is an inconsistency to address.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or global agent configuration beyond creating cron jobs for agents via the OpenClaw CLI, which is consistent with its purpose.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auto-daily-summary
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auto-daily-summary 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Removed the Chinese documentation file (SKILL_en.md), making English documentation primary. - Updated SKILL.md: Replaced detailed feature and usage sections with a concise, English-only overview. - Clarified installation, requirements, usage, and troubleshooting steps in a simplified format. - Reduced redundancy between feature explanations, file structure, and usage notes. - Now targets a broader, non-Chinese-speaking audience with clearer organization and instructions.
v1.0.0
# Changelog ## [1.0.0] - 2026-03-13 ### Added - **Auto Daily Summary Skill**: Automatically sets up daily summary cron jobs for all OpenClaw agents - **Cross-platform compatibility**: Python script works on Windows, Linux, and macOS - **Automatic timezone detection**: Detects system timezone instead of hardcoding - **Smart duplicate detection**: Uses `openclaw cron list --json` API to avoid creating duplicate jobs - **Generic date format**: Uses `YYYY-MM-DD.md` placeholder instead of hardcoded dates - **English documentation**: Added `SKILL_en.md` for international users - **Community standard compliance**: Follows ClawdHub skill structure with `scripts/` directory ### Features - Automatically detects all available OpenClaw agents via `openclaw agents list --json` - Creates daily cron jobs that run at 23:30 in the user's local timezone - Each agent receives a personalized message to summarize their daily tasks - Idempotent operation - safe to run multiple times without creating duplicates - Handles JSON parsing with Doctor message interference gracefully ### Usage ```bash python3 /path/to/auto-daily-summary/scripts/setup_daily_summary_cron.py ``` This skill helps OpenClaw users ensure that all their agents automatically summarize their daily work into diary files, preventing important tasks from being forgotten.
元数据
Slug auto-daily-summary
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

auto-daily-summary 是什么?

自动为所有OpenClaw Agent设置每日23:30的日记总结cron任务,自动检测Agent及时区,确保无重复且支持多平台运行。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 276 次。

如何安装 auto-daily-summary?

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

auto-daily-summary 是免费的吗?

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

auto-daily-summary 支持哪些平台?

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

谁开发了 auto-daily-summary?

由 RenchZhao(@renchzhao)开发并维护,当前版本 v1.0.1。

💬 留言讨论