Xpersona
S

Skill Updater

CLAWHUB · Unverified

Local-modification-preserving clawhub skill updater. Saves changes as diff patch, applies to new versions, reports conflicts clearly. No forced overwrites. Skill: Skill Updater Owner: tempest-01 Summary: Local-modification-preserving clawhub skill updater. Saves changes as diff patch, applies to new versions, reports conflicts clearly. No forced overwrites. Tags: latest:1.1.1 Version history: v1.1.1 | 2026-03-31T10:20:15.713Z | user Fix TypeError: run() now accepts input param. Add diff/patch to requires.bins. SKILL.md English. v1.1.0 | 2026-03-31T10:09:59.864Z | user P

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17b1s82sp5yx5s2jyx4x8k4ws83vh7f:skill-auto-updater
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tempest-01-skill-auto-updater/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

123,396 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: skill-updater
description: Local-modification-preserving clawhub skill updater. Saves changes as diff patch, applies to new versions, reports conflicts clearly. No forced overwrites.
metadata:
  openclaw:
    requires:
      bins: [python3, clawhub, diff, patch]
      env: [OPENCLAW_SKILLS_DIR]  # default: /root/.openclaw/workspace/skills
    triggers: [skill更新, auto update, git sync]
---

# Skill-Updater

> Local-modification-preserving clawhub skill updater.

## What It Does

You modified a clawhub-installed skill → clawhub released a new version → Skill-Updater updates while **preserving your local changes**.

## How It Works

```
Step 1: Save modifications
  → Scans skill directory, generates unified diff patch
  → Backs up originals to .skill-updater/originals/

Step 2: clawhub update
  → clawhub update downloads new version files

Step 3: Try to merge
  → patch --dry-run attempts to apply changes to new version
  → Success: written with your changes preserved ✅
  → Fail: show diff, user decides manually
```

## File Structure

```
skill-dir/
├── .skill-updater/
│   ├── mod.patch       # unified diff of your changes
│   └── originals/       # snapshot of original files at install time
└── [skill files]
```

## CLI

```bash
# Dry-run: preview which skills have updates and conflicts
python3 git_update.py

# Apply updates
python3 git_update.py --apply

# Update specific skill
python3 git_update.py --apply --skill <slug>

# Show saved modifications
python3 git_update.py --show-patch

# Discard modifications (accept new version, drop your changes)
python3 git_update.py --discard --skill <slug>
```

## Conflict Handling

| Situation | Result |
|-----------|--------|
| Patch applies cleanly | New version + your changes preserved ✅ |
| Same area modified by both | Show diff, user decides |
| No local modifications | Direct clawhub update ✅ |
| Choose to discard | Delete patch, accept new version |

## Requirements

- Python 3.8+
- `clawhub` CLI
- `diff` (coreutils)
- `patch` (coreutils)

## Before Installing

1. **Dry-run first** — Always run `python3 git_update.py` without `--apply` first to preview
2. **Backup** — For important skills, manually back up your modifications before using `--discard`

README.md

# Skill-Updater

> 本地修改保护式 clawhub skill 更新器。

---

## 中文说明

### 解决问题

你修改了某个从 clawhub 安装的 skill,后来 clawhub 发布了新版本。直接执行 `clawhub update` 会**覆盖**你的本地修改。

Skill-Updater 在更新时**尝试保留你的修改**。如果无法自动合并,会报告冲突,由你决定如何处理。

### 核心功能

| 特性 | 说明 |
|------|------|
| **本地修改保护** | 修改被保存为 unified diff patch,不被 clawhub update 覆盖 |
| **Patch 合并** | clawhub 更新后,尝试将 patch 应用到新版文件 |
| **冲突可见** | 无法自动合并时,显示清晰的 diff 对比 |
| **无强制覆盖** | 任何时候都可以选择接受新版、丢弃修改 |

### 工作流程

```
Step 1: 修改 skill 文件
Step 2: 首次运行自动保存 patch
        (.skill-updater/originals/ + mod.patch)
Step 3: clawhub 发布新版
Step 4: python3 git_update.py --apply
        → clawhub update 下载新版
        → patch --dry-run 试探合并
        → 成功:写入新版 ✅
        → 失败:显示 diff,用户手动处理
```

### 冲突处理

| 情况 | 行为 |
|------|------|
| patch 成功应用 | 新版 + 修改均保留 ✅ |
| patch 失败(同一区域被双方修改) | 显示 diff,用户手动决策 |
| 无本地修改 | 直接 clawhub update ✅ |
| 选择丢弃修改 | 删除 patch,接受新版 |

### 文件结构

```
skill-dir/
├── .skill-updater/
│   ├── mod.patch       # 本地修改的 unified diff(增量,极小)
│   └── originals/       # 安装时的原始文件快照(用于 diff 对比)
└── [skill 文件]
```

### CLI 命令

```bash
# 预览(dry-run)
python3 git_update.py

# 实际更新
python3 git_update.py --apply

# 仅更新指定 skill
python3 git_update.py --apply --skill <slug>

# 查看已保存的修改
python3 git_update.py --show-patch

# 丢弃修改(接受新版)
python3 git_update.py --discard --skill <slug>

```


## English

### Problem Solved

You modified a clawhub-installed skill. Later, the author publishes a new version on clawhub. Running `clawhub update` directly **overwrites your local changes**.

Skill-Updater **tries to preserve your changes** during the update. If auto-merge fails, it reports the conflict for you to decide.

### Features

| Feature | Description |
|---------|-------------|
| **Local Mod Protection** | Changes saved as unified diff, not overwritten by clawhub update |
| **Patch Merge** | After clawhub update, applies saved patch to new version |
| **Conflict Visibility** | Shows clear diff when auto-merge fails |
| **No Forced Overwrite** | Always choose whether to keep or discard changes |

### Workflow

```
Step 1: You modify skill files
Step 2: First run saves patch automatically
        (.skill-updater/originals/ + mod.patch)
Step 3: New version released on clawhub
Step 4: python3 git_update.py --apply
        → clawhub update downloads new version
        → patch --dry-run attempts to merge
        → Success: written ✅
        → Fail: show diff, user decides
```

### Conflict Handling

| Scenario | Result |
|----------|--------|
| Patch applies cleanly | New version + modifications preserved ✅ |
| Same area modified by both | Show diff, manual decision |
| No local modifications | Direct clawhub update ✅ |
| Choose to discard | Delete patch, accept new version |

### CLI

```bash
# Dry-run
python3 git_update.py

# Apply all
python3 git_update.py --apply

# Specific skill
python3 git_update.py --apply --skill <slug>

# Show saved patch
python3 git_update.py --show-patch

# Discard modifications
python3 git_update.py --discard --skill

_meta.json

{
  "ownerId": "kn7dwysm8myqam50scahgw8z9h83vg1p",
  "slug": "skill-auto-updater",
  "version": "1.1.1",
  "publishedAt": 1774952415713
}

skill-card.md

## Description:

Skill Updater helps update ClawHub-installed skills while preserving local modifications as patch files and reporting merge conflicts for manual review.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tempest-01](https://clawhub.ai/user/tempest-01)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and skill maintainers use this skill to preview and apply updates to ClawHub-installed skills while attempting to preserve local edits. It is most useful when a locally modified skill has a newer upstream release and conflicts need to be surfaced before changes are accepted.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The update script can rewrite installed skills under OPENCLAW_SKILLS_DIR.

Mitigation: Install only where that write access is acceptable, back up locally edited skills first, and prefer targeting one skill at a time with --skill.

Risk: Dry-run and conflict-recovery behavior may not guarantee local changes are preserved.

Mitigation: Review dry-run output, inspect generated patches or conflict reports, and avoid --discard unless accepting the upstream version is intentional.

Risk: Patch application can fail when local edits overlap with a newer release.

Mitigation: Treat conflict reports as a manual review step and verify the updated skill before relying on it.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/tempest-01/skills/skill-auto-updater)
- [Publisher Profile](https://clawhub.ai/user/tempest-01)
- [README](artifact/README.md)
- [SKILL](artifact/SKILL.md)

## Skill Output:

**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown guidance with inline shell commands and status text]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create patch, backup, and conflict-report files under target skill directories when its update script is executed.]

## Skill Version(s):

1.1.1 (source: evidence.release.version and artifact/_meta.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Skill Updater and adjacent AI workflows.