跳到正文
TakoAPI
返回技能列表

safe-update

由 hacksing 提供

Coding Agents & IDEs
385下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Update OpenClaw from source code.

描述

该技能的功能

Automates updating OpenClaw from source by pulling the latest branch, building, and reinstalling globally. Analyzes the current git state before acting and asks for confirmation before making changes. Backs up config files automatically before each update.

Handles the full update sequence, including git strategy recommendation, config backup, build, and service reinstall, rather than requiring manual steps each time.

何时使用

  • Updating OpenClaw after upstream bug fixes land
  • Switching to a feature branch and rebuilding
  • Previewing what an update would do before committing
  • Recovering from a failed update by checking logs
  • Keeping a self-hosted OpenClaw instance in sync with upstream

示例工作流

输入

User asks: update OpenClaw to the latest main branch

智能体
  1. 1

    Check current branch for uncommitted changes and compare with upstream

  2. 2

    Recommend merge or rebase strategy based on local state

  3. 3

    Wait for user confirmation before proceeding

  4. 4

    Pull upstream changes, build with npm run build, install globally with npm i -g .

  5. 5

    Reinstall the systemd service and prompt user to confirm gateway restart

输出

OpenClaw updated to latest version; config backed up; user prompted to restart gateway

安装

clawhub install hacksing/safe-update

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接