safe-update
Update OpenClaw from source code. Supports custom project path and branch. Includes pulling latest branch, rebasing, building and installing, restarting service. Triggered when user asks to update OpenClaw, sync source, rebase branch, or rebuild.
Why use this skill?
Automate OpenClaw source updates with the safe-update skill. Features automated rebasing, dependency installation, service restarts, and configuration backups.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/hacksing/safe-updateWhat This Skill Does
The safe-update skill for OpenClaw is a powerful automation utility designed to manage the lifecycle of your local OpenClaw installation. It streamlines the complex process of synchronizing your local source code with the upstream repository, effectively automating the fetch, rebase, build, and deployment pipeline. By abstracting away the manual terminal commands, it ensures that your environment remains up-to-date while strictly adhering to safety protocols, such as automated configuration backups and pre-flight state analysis. This skill is indispensable for developers and power users who need to maintain parity with the latest upstream features or bug fixes without risking loss of their current local configuration or custom settings.
Installation
To install this skill, use the ClawHub command-line tool:
clawhub install openclaw/skills/skills/hacksing/safe-update
Ensure that you have the required system dependencies installed, specifically git, npm, and systemctl, before triggering the installation. The skill must have permission to access your local file system and manage system services to function correctly.
Use Cases
- Routine Maintenance: Quickly pulling the latest updates from the main branch to ensure your agent has the newest capabilities.
- Feature Testing: Switching to a specific development branch to test experimental features without manual checkout procedures.
- Environment Cleanup: Ensuring your local build is consistent with the latest source before reporting bugs or deploying production-level agents.
- Disaster Recovery: Creating snapshots of critical configuration files automatically before performing risky source code rebasing operations.
Example Prompts
- "OpenClaw, please update my installation to the latest version of the main branch."
- "Sync my local project with the upstream repository and rebuild the service."
- "Can you check if there are any updates available for my current branch and prepare to rebase if necessary?"
Tips & Limitations
- Backup Importance: Always ensure your
~/.openclaw/directory is covered by your regular backup strategy, despite the internal backup function. - Permission Requirements: Since this skill interacts with
npm -gandsystemctl, it may occasionally prompt for sudo privileges. Run your terminal with appropriate permissions if the update hangs. - Rebase Risks: Understand that the rebase strategy rewrite history; avoid using it if you have shared your local branch commits with other developers. Prefer 'merge' for simple routine updates.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-hacksing-safe-update": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
feishu-user
Feishu document operations (User Access Token version). Use user access token for authentication. When you need to read, create, write, or append Feishu documents.
social-writer
Social media copywriting and distillation skill. Transforms any news, dev logs, or external articles into high-engagement, opinionated tech posts with authentic voice.
social-reader
Social media content scraping and automation skill. Supports real-time single post reading, as well as scheduled batch patrol, LLM distillation, and review notifications.
safe-backup
Backup OpenClaw state directory and workspace. Includes excluding sensitive files, packaging for backup. Triggered when user asks to backup, export, or save state.
allstock-data
Stock market data query skill for China A-shares, Hong Kong, and US markets. Uses Tencent Finance HTTP API by default (lightweight, no install needed), with optional adata SDK for more comprehensive data. Supports real-time quotes, K-line history, order book analysis, and more.