王睿 Ray

Smart Auto Updater

运维安全v1.0.0
作者:王睿 Ray更新于 2026-05-18smart-auto-updater@clawhub_ruiwang20010702/smart-auto-updater
监控告警服务器运维

据 AlphaMoat 统计,截至 2026-09,Smart Auto Updater 累计下载 4,479 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 2,157 位,在「运维安全」分类(264 个)中排名第 117 位。

累计安装
196
累计下载
4,479
星标
4
全站排名
#2,157
全站前 43% · 「运维安全」前 45%
平台累计安装累计下载星标评论
ClawHub ↗1414,2733-
SkillHub ↗1964,4794—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文描述检查 OpenClaw 与技能更新、获取变更记录并评估系统影响,再按风险级别跳过、警告或自动更新。

资料发布于 2026-10-27

可以用来做什么

  • 审阅待更新内容和系统影响

什么时候用

  • 需要在更新前了解变更与风险处理方式时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查可用更新和变更影响,但先不要应用更新

月度数据趋势

累计下载4,479
2,5773,5994,6202026-03 · 累计下载 2,7182026-05 · 累计下载 3,5242026-07 · 累计下载 4,0702026-08 · 累计下载 4,1742026-09 · 累计下载 4,47926-0326-09
星标4
3442026-03 · 星标 32026-05 · 星标 32026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-094,479—4
2026-084,174+2.6%4
2026-074,070—4
2026-053,524—3
2026-032,718—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.1 KB · ClawHub v1.0.0
---
name: smart-auto-updater
description: Smart auto-updater with AI-powered impact assessment. Checks updates, analyzes changes, evaluates system impact, and decides whether to auto-update or just report. Perfect for hands-off maintenance with safety guarantees.
---

# Smart Auto-Updater

AI-powered auto-updater that intelligently decides whether to update based on impact assessment. Safe, intelligent, and configurable.

## What it does
展开全部(共 201 行)

### 1. Check Phase
- Checks for OpenClaw updates
- Checks for skill updates via ClawHub
- Fetches changelog and diff

### 2. AI Analysis Phase
- Analyzes changes using LLM
- Evaluates system impact (架构/性能/兼容性)
- Classifies risk level (HIGH/MEDIUM/LOW)

### 3. Decision Phase

| Risk Level | Action |
|------------|--------|
| **HIGH** | Skip update, send detailed report |
| **MEDIUM** | Skip update, send warning + report |
| **LOW** | Auto-update, send summary |

### 4. Report Phase
- Generates readable update report
- Includes risk assessment
- Provides upgrade recommendations

## Quick Start

### Basic usage
```bash
# Run smart update check
openclaw sessions spawn \
  --agentId smart-auto-updater \
  --message "Run smart update check"
```

### With custom parameters
```bash
openclaw sessions spawn \
  --agentId smart-auto-updater \
  --message "Check updates with custom settings: auto-update LOW risk, report MEDIUM risk"
```

## Configuration

### Environment Variables

```bash
# AI Model (optional, defaults to configured model)
export SMART_UPDATER_MODEL="minimax-portal/MiniMax-M2.1"

# Auto-update threshold (default: LOW)
# Options: NONE (report only), LOW, MEDIUM
export SMART_UPDATER_AUTO_UPDATE="LOW"

# Risk tolerance (default: MEDIUM)
# HIGH: Only auto-update LOW risk
# MEDIUM: Auto-update LOW + MEDIUM risk
# LOW: Auto-update all
export SMART_UPDATER_RISK_TOLERANCE="MEDIUM"

# Report level (default: detailed)
# Options: brief, detailed, full
export SMART_UPDATER_REPORT_LEVEL="detailed"
```

## Report Format

### High Risk Report
```
🔴 Smart Auto-Updater Report

Update Available: v1.2.3 → v1.3.0

⚠️ Risk Level: HIGH

📋 Changes Summary:
- Breaking API changes detected
- Database migration required
- 3 files modified

🏗️ Impact Assessment:
- Architecture: MAJOR changes to core components
- Performance: Potential impact on startup time
- Compatibility: Breaks backward compatibility

🚫 Decision: SKIPPED

💡 Recommendations:
1. Review changelog manually
2. Test in staging environment
3. Schedule maintenance window

🗓️ Next Check: 24 hours
```

### Low Risk Auto-Update
```
🟢 Smart Auto-Updater Report

Updated: v1.2.3 → v1.2.4

✅ Risk Level: LOW

📋 Changes:
- Bug fixes (2)
- Performance improvements (1)

🏗️ Impact Assessment:
- Architecture: No changes
- Performance: Minor improvement
- Compatibility: Fully compatible

✅ Decision: AUTO-UPDATED

📊 Summary:
- OpenClaw: v1.2.3 → v1.2.4
- Skills updated: 2
- Skills unchanged: 15
- Errors: none

⏱️ Next Check: 24 hours
```

## Architecture

```
┌──────────────────┐
│  Trigger (Cron)  │
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  Check Updates    │ ← clawhub update --dry-run
└────────┬─────────┘
         │
         ▼
┌──────────────────┐
│  AI Analysis     │ ← Analyze changes, assess risk
└────────┬─────────┘
         │
    ┌────┴────┐
    │         │
    ▼         ▼
┌───────┐  ┌───────┐
│ HIGH  │  │ MEDIUM│
│ Skip  │  │ Skip  │
└───┬───┘  └───┬───┘
    │          │
    ▼          ▼
┌───────┐  ┌───────┐
│ LOW   │  │ Report│
│ Update│  │ Only  │
└───┬───┘  └───────┘
    │          │
    └────┬─────┘
         │
         ▼
┌──────────────────┐
│  Generate Report  │ ← Send summary
└──────────────────┘
```

## Safety Features

1. **Dry Run First** - Always check before acting
2. **Risk Classification** - AI-powered impact assessment
3. **Configurable Thresholds** - Set your own risk tolerance
4. **Detailed Logging** - Every decision is logged
5. **Manual Override** - Always can review before updating

## Troubleshooting

### Updates keep being skipped
- Check risk tolerance setting
- Verify AI model is available
- Review changelog manually

### False positives (too many HIGH risk)
- Lower risk tolerance
- Check AI model prompts
- Review specific change patterns

### Reports not being delivered
- Verify delivery channel configuration
- Check gateway status
- Review session configuration

## References
- `references/risk-assessment.md` → AI risk assessment methodology
- `references/report-templates.md` → Report format examples
- `references/integration.md` → Integration with cron/jobs

「运维安全」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。