🦀 ClawHub
Auto
by @openlang-cn
Helps automate repetitive tasks with scripts, scheduled jobs, and simple workflows. Use when the user wants to script an action, run something on a schedule...
TERMINAL
clawhub install auto📖 About This Skill
name: auto description: Helps automate repetitive tasks with scripts, scheduled jobs, and simple workflows. Use when the user wants to script an action, run something on a schedule (cron, Task Scheduler), automate builds or deploys, or reduce manual steps in a workflow.
Auto(自动化)
本 Skill 帮助把重复性操作做成脚本或定时任务:写小脚本、配置定时执行、以及简单的自动化流程(如构建、备份、发布前检查)。
何时使用
当用户提到或需要:
脚本自动化
echo,失败时用非零退出码或 set -e(Bash)便于调用方判断。按用户当前 OS 和已有环境给出对应示例(如 Windows 用 PowerShell,Linux 用 Bash)。
定时执行
Windows
schtasks /create /tn "任务名" /tr "powershell -File C:\path\to\script.ps1" /sc daily /st 09:00(参数依需求改)。Linux / macOS
crontab -e,一行一条。格式:分 时 日 月 周 命令。0 9 * * * /path/to/script.sh
- 每 5 分钟:*/5 * * * * /path/to/script.sh
chmod +x),必要时在 crontab 里设 PATH 或使用绝对路径。根据用户说的“多久跑一次”和系统类型,给出具体 cron 或 schtasks 示例。