Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

auto-updater-pro自动更新程序专业版

Agent Skill

auto-updater-pro 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

19,554

周安装

823

GitHub Stars

2

下载量

6,847
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auto-updater-pro(自动更新程序专业版)
来源仓库:https://github.com/newolf20000/auto-updater-pro
安装命令:
openclaw skills install auto-updater-pro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install auto-updater-pro

简介

增强版自动更新程序提供详细的日志记录、错过的运行恢复和网关重启保护功能。

  • 适合对系统稳定性要求较高的 OpenClaw 生产环境使用。
  • 可在意外中断后自动补跑任务,保障关键流程不丢失进度。
  • 启用前应评估其对系统资源的影响并配置合适的执行间隔。
  • 建议先在小规模测试环境中验证行为再推广到正式场景。

SKILL.md

name
auto-updater-pro
description
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
metadata
{"version":"1.1.0","clawdbot":{"emoji":"🔄","os":["darwin","linux"]}}

Auto-Updater Pro

Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.

Version: 1.1.0 (Updated 2026-02-22)

What's New:

  • ✅ Detailed logging at each step (prevents state loss on restart)
  • ✅ Missed run recovery (auto-runs if Gateway was offline)
  • ✅ 30-second delay after updates (prevents interruption)
  • ✅ Email report support (less intrusive than chat messages)
  • ✅ Better error handling and retry logic

Note: This is an enhanced version of the original auto-updater skill with production-ready features.


What It Does

This skill sets up a daily cron job that:

  1. Updates Clawdbot itself (via clawdbot doctor or package manager)
  2. Updates all installed skills (via clawdhub update --all)
  3. Messages you with a summary of what was updated
  4. New: Logs every step to prevent state loss on Gateway restart
  5. New: Auto-recovers if the scheduled time was missed

Setup

Quick Start

Ask Clawdbot to set up the auto-updater:

Set up daily auto-updates for yourself and all your skills.

Or manually add the cron job:

clawdbot cron add \
  --name "Daily Auto-Update" \
  --cron "0 4 * * *" \
  --tz "America/Los_Angeles" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."

Recommended Configuration (v1.1.0+)

For production use, add these settings to your cron job:

{
  "schedule": {
    "expr": "0 4 * * *",
    "kind": "cron",
    "tz": "Asia/Shanghai"
  },
  "missedRunPolicy": "run-immediately",
  "payload": {
    "kind": "agentTurn",
    "message": "...",
    "timeoutSeconds": 600
  }
}

Key Settings:

  • missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled time
  • timeoutSeconds: 600 - Allow 10 minutes for updates to complete
  • tz: "Asia/Shanghai" - Set to your timezone

Configuration Options

OptionDefaultDescription
Time4:00 AMWhen to run updates (use --cron to change)
TimezoneSystem defaultSet with --tz
DeliveryMain sessionWhere to send the update summary
Timeout300sRecommended: 600s for npm updates
Missed RunNoneRecommended: run-immediately

How Updates Work

Clawdbot Updates

For npm/pnpm/bun installs:

npm update -g clawdbot@latest
# or: pnpm update -g clawdbot@latest
# or: bun update -g clawdbot@latest

For source installs (git checkout):

clawdbot update

Always run clawdbot doctor after updating to apply migrations.

Skill Updates

clawdhub update --all

This checks all installed skills against the registry and updates any with new versions available.


Update Summary Format

After updates complete, you'll receive a message like:

🔄 Daily Auto-Update Complete

**Clawdbot**: Updated to v2026.1.10 (was v2026.1.9)

**Skills Updated (3)**:
- prd: 2.0.3 → 2.0.4
- browser: 1.2.0 → 1.2.1  
- nano-banana-pro: 3.1.0 → 3.1.2

**Skills Already Current (5)**:
gemini, sag, things-mac, himalaya, peekaboo

No issues encountered.

Detailed Logging (v1.1.0+)

To prevent state loss during Gateway restarts, the update process logs every step:

Log File Location

~/.openclaw/workspace/memory/openclaw-update-YYYY-MM-DD.md

Log Format

# OpenClaw 更新日志 YYYY-MM-DD

## 更新前
- 开始时间:HH:mm:ss
- 当前版本:x.x.x
- 最新版本:x.x.x

## 更新中
- 更新开始:HH:mm:ss
- 更新命令:...
- 更新完成:HH:mm:ss
- 验证版本:x.x.x

## 更新后
- 状态:已是最新 / 已更新 / 更新失败
- 报告发送:成功 / 失败
- 完成时间:HH:mm:ss

## 更新内容
(从 CHANGELOG 或 npm 获取)

Six-Phase Update Process

Phase 1: Preparation

  • Record start time
  • Check current version
  • Write to log file immediately

Phase 2: Check for Updates

  • Check latest version (npm view)
  • Append to log file
  • Compare versions

Phase 3: Execute Update

  • Record update start
  • Run openclaw update run or npm install -g openclaw@latest
  • Immediately log completion
  • Verify new version

Phase 4: Persist State

  • Append full results to log
  • Wait 3 seconds for disk sync

Phase 5: Send Report

  • Send email/chat report
  • Log delivery status

Phase 6: Delay Restart (Critical!)

  • Wait 30 seconds before any Gateway restart
  • Ensures npm processes complete
  • Prevents state loss

Manual Commands

Check for updates without applying:

clawdhub update --all --dry-run

View current skill versions:

clawdhub list

Check Clawdbot version:

clawdbot --version

Troubleshooting

Updates Not Running

  1. Verify cron is enabled: check cron.enabled in config
  2. Confirm Gateway is running continuously
  3. Check cron job exists: clawdbot cron list
  4. Check if missed run policy is set: missedRunPolicy: "run-immediately"

Update Failures

If an update fails, the summary will include the error. Common fixes:

  • Permission errors: Ensure the Gateway user can write to skill directories
  • Network errors: Check internet connectivity
  • Package conflicts: Run clawdbot doctor to diagnose
  • Gateway restart interruption: Check log file for partial completion

Gateway Restart During Update

If Gateway restarts during update (common with npm installs):

  1. Check log file: ~/.openclaw/workspace/memory/openclaw-update-*.md
  2. Verify version: openclaw --version
  3. Manually send report if needed (log file has all info)

Disabling Auto-Updates

Remove the cron job:

clawdbot cron remove "Daily Auto-Update"

Or disable temporarily in config:

{
  "cron": {
    "enabled": false
  }
}

Best Practices

1. Schedule During Low Activity

Choose a time when you're unlikely to be using the system:

"expr": "0 4 * * *"  // 4:00 AM

2. Enable Missed Run Recovery

Prevents missing updates if Gateway is offline:

"missedRunPolicy": "run-immediately"

3. Use Email for Reports

Less intrusive than chat messages:

  • Configure email-163-com or similar skill
  • Send plain text reports
  • Include log file path

4. Log Everything

Always write to log file before sending reports:

  • Prevents state loss
  • Enables debugging
  • Provides audit trail

5. Wait After Updates

Add 30-second delay before any Gateway restart:

sleep 30

Resources


Version History

v1.1.0 (2026-02-22)

Improvements:

  • ✅ Added detailed logging at each step
  • ✅ Added missed run recovery policy
  • ✅ Added 30-second delay after updates
  • ✅ Added email report support
  • ✅ Improved error handling

Bug Fixes:

  • 🐛 Fixed state loss on Gateway restart
  • 🐛 Fixed missed scheduled runs
  • 🐛 Fixed report delivery failures

v1.0.0 (2026-01-13)

  • ✅ Initial release
  • ✅ Basic daily update check
  • ✅ Simple report format

Published: 2026-02-22 Maintainer: OpenClaw Team License: MIT

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.32%
按下载量换算5,842

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills