用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/modbender/skill-library-mcp --skill automation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | automation |
| description | Task automation specialist. Workflow optimization and scheduled tasks. |
Automate repetitive tasks and optimize workflows using OpenClaw cron, shell scripts, and system tools.
Identify the task: Ask what the user wants automated — frequency, trigger, input/output.
Choose the right tool:
| Task Type | Tool | Example |
|---|---|---|
| Periodic checks | OpenClaw cron | Email check every 30 min |
| File processing | Shell + cron | Compress logs nightly |
| API polling | curl + jq + cron | Price alerts |
| Web scraping | Puppeteer / fetch | Competitor monitoring |
| Data pipeline | Shell pipeline | CSV → JSON → API |
| Event-driven | Webhooks / inotifywait | File change triggers |
Implement with OpenClaw cron (preferred for agent tasks):
# Example: System event every 30 minutes
openclaw cron add --name "task-name" \
--schedule "*/30 * * * *" \
--payload '{"kind":"systemEvent","text":"Check X notifications"}'
Implement with system cron (for shell scripts):
# Edit crontab
crontab -e
# Add entry: every day at 2 AM
0 2 * * * /path/to/backup.sh >> /var/log/backup.log 2>&1
Implement with systemd timers (for services):
# /etc/systemd/system/task.timer
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
#!/bin/bash
MAX_RETRIES=3
DELAY=5
for i in $(seq 1 $MAX_RETRIES); do
if your_command; then break; fi
echo "Retry $i/$MAX_RETRIES in ${DELAY}s..."
sleep $DELAY
DELAY=$((DELAY * 2))
done
inotifywait -m -e modify,create /path/to/watch | while read dir action file; do
echo "File $file was $action"
# trigger processing
done
# Use lock files to prevent concurrent runs
LOCKFILE="/tmp/mytask.lock"
if [ -f "$LOCKFILE" ]; then echo "Already running"; exit 0; fi
trap "rm -f $LOCKFILE" EXIT
touch "$LOCKFILE"
# ... your task here
set -euo pipefail
fetch_data | transform_json | upload_result \
|| { echo "Pipeline failed at stage $?"; notify_admin; exit 1; }
| Expression | Meaning |
|---|---|
*/5 * * * * | Every 5 minutes |
0 */2 * * * | Every 2 hours |
0 9 * * 1-5 | Weekdays at 9 AM |
0 2 * * * | Daily at 2 AM |
0 0 * * 0 | Weekly on Sunday midnight |
0 0 1 * * | Monthly on the 1st |
~/.automation/logs/cron or systemd (pre-installed on Linux)inotifywait (inotify-tools), jq, curlBloom Mission Discovery — find missions matched to your taste, submit content, and track rewards. Powered by Bloom Protocol.
DESCRIPTION of what this skill does. Include specific trigger keywords and scenarios. Use when: scenario1, scenario2, scenario3.
First-time setup for the Durable Agents stack (Mastra + Trigger.dev). Run once before using the main skill.
基于 SOC 职业分类