王睿 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
累計下載
4479
星標
4
全站排名
#2,157
全站前 43% · 「運維安全」前 45%
平台累計安裝累計下載星標評論
ClawHub ↗14142733-
SkillHub ↗19644794—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文描述檢查 OpenClaw 與技能更新、獲取變更記錄並評估系統影響,再按風險級別跳過、警告或自動更新。

資料釋出於 2026-10-27

可以用來做什麼

  • 審閱待更新內容和系統影響

什麼時候用

  • 需要在更新前瞭解變更與風險處理方式時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

檢查可用更新和變更影響,但先不要應用更新

月度資料趨勢

累計下載4479
2577359946202026-03 · 累計下載 27182026-05 · 累計下載 35242026-07 · 累計下載 40702026-08 · 累計下載 41742026-09 · 累計下載 447926-0326-09
星標4
3442026-03 · 星標 32026-05 · 星標 32026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-094479—4
2026-084174+2.6%4
2026-074070—4
2026-053524—3
2026-032718—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),按月更新。口徑說明見資料方法。