auto-daily-summary
by @renchzhao
自动为所有OpenClaw Agent设置每日23:30的日记总结cron任务,自动检测Agent及时区,确保无重复且支持多平台运行。
clawhub install auto-daily-summary📖 About This Skill
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
openclaw agents list --jsonYYYY-MM-DD.md placeholder format in messagesopenclaw cron list --json API to check existing jobsInstallation
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.pyOr 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 queriesopenclaw 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 pathMessage 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
Safety Notes
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.💡 Examples
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.pyOr execute through OpenClaw
openclaw run -- python3 /path/to/auto-daily-summary/scripts/setup_daily_summary_cron.py
📋 Tips & Best Practices
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