首页龙虾技能列表 › Auto-Updater — 自动更新管理

🔄 Auto-Updater — 自动更新管理

v1.0.0

每日自动更新 Clawdbot 及所有已安装技能,通过 cron 定时运行,检查更新、应用更新并向用户发送变更摘要通知。

356· 71,400·1212 当前·1291 累计·💬 6
by @maximeprades·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/26
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
该技能的指令与其声明的目的一致(设置每日 cron 任务来更新 Clawdbot 和已安装技能);不请求额外凭证或安装任意代码,但自动应用更新存在运营风险(对注册表和权限的信任)。
评估建议
该技能内部连贯,执行其所声明的功能:创建脚本并添加每日 cron 任务来运行 'clawdbot' 和 'clawdhub' 更新命令,然后向您发送摘要消息。安装前请考虑:1) 自动更新隐式信任注册表和更新通道——如果注册表或更新的包是恶意的,您可能会自动安装它;考虑使用试运行('clawdhub update --all --dry-run')或将更新限制为特定技能。2) 全局包更新(npm/pnpm/bun)可能需要提升权限;避免以 root 身份运行 cron 任务。3) 脚本/日志放置在 ~/.clawdbot/——启用前请审查和备份。4) 确认 clawdbot 和 clawdhub 在本地存在且正常工作。5) 如需更严格控制,手动运行更新或每周运行,或配置 cron 任务通知您进行人工审批。...
详细分析 ▾
用途与能力
名称/描述与指令匹配:SKILL.md 解释创建运行 clawdbot 和 clawdhub 更新命令的 cron 任务。操作(npm/pnpm/bun 更新、clawdbot 更新、clawdhub update --all)与'自动更新'功能成比例。注意:该技能假设 clawdbot/clawdhub 和包管理器存在于系统上,即使必需二进制文件未在元数据中明确声明。
指令范围
指令狭窄聚焦于更新 Clawdbot 和技能,在 ~/.clawdbot/ 下创建辅助脚本,记录日志到 ~/.clawdbot/logs/,并添加 cron 任务。不指示读取无关文件或泄露数据。但运行时命令将执行网络操作并修改已安装软件;指南还建议在必要时使用 sudo/权限修复——因此如果环境允许,代理将能够执行特权操作。
安装机制
这是一个仅指令技能,无安装规范和代码文件——安装风险最小。它在运行时(用户主目录)写入辅助脚本和 cron 任务,这是此功能的预期行为。
凭证需求
未请求环境变量或凭证,这是适当的。重要安全考虑:该技能在运行 'clawdhub update --all' 时自动信任注册表/ClawdHub 提供的任何内容,除非用户另行配置,否则将在无交互审查的情况下应用更新。如果注册表、ClawdHub 或包更新通道被入侵,自动更新会增加攻击面。
持久化与权限
该技能不强制永久包含(always:false)且可由用户调用,但它确实创建了一个 cron 任务和辅助脚本,在用户账户下持久存在并每日运行。这种持久性对于自动更新器是预期的,但确实比一次性手动命令增加了影响范围——确保 cron 任务以最低权限运行而非 root。
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

🖥️ OSmacOS · Linux

版本

latestv1.0.02026/1/14

Automatically checks for and applies updates to Clawdbot and all installed skills once daily via cron. Sends the user a message summarizing what was updated and any issues encountered.

● 无害

安装命令 点击复制

官方npx clawhub@latest install auto-updater
镜像加速npx clawhub@latest install auto-updater --registry https://www.longxiaskill.com

技能文档

Keep your Clawdbot and skills up to date automatically with daily update checks.

What It Does

This skill sets up a daily cron job that:

  • Updates Clawdbot itself (via clawdbot doctor or package manager)
  • Updates all installed skills (via clawdhub update --all)
  • Messages you with a summary of what was updated

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."

Configuration Options

OptionDefaultDescription
Time4:00 AMWhen to run updates (use --cron to change)
TimezoneSystem defaultSet with --tz
DeliveryMain sessionWhere to send the update summary

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.

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

  • Verify cron is enabled: check cron.enabled in config
  • Confirm Gateway is running continuously
  • Check cron job exists: clawdbot cron list

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

Disabling Auto-Updates

Remove the cron job:

clawdbot cron remove "Daily Auto-Update"

Or disable temporarily in config:

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

Resources

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务