Automated Linux server patching and Docker container updates. Use when the user asks to update, patch, or upgrade Linux servers, apply security updates, update Docker containers, check for system updates, or manage server maintenance across multiple hosts. Supports Ubuntu, Debian, RHEL, AlmaLinux, Rocky Linux, CentOS, Amazon Linux, and SUSE. Includes PatchMon integration for automatic host detection and intelligent Docker handling.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install linux-patcher或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install linux-patcher⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/linux-patcher/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: linux-patcher description: Automated Linux server patching and Docker container updates. Use when the user asks to update, patch, or upgrade Linux servers, apply security updates, update Docker containers, check for system updates, or manage server maintenance across multiple hosts. Supports Ubuntu, Debian, RHEL, AlmaLinux, Rocky Linux, CentOS, Amazon Linux, and SUSE. Includes PatchMon integration for automatic host detection and intelligent Docker handling. ---
Automate Linux server patching and Docker container updates across multiple hosts via SSH.
Fully Tested:
Supported but Untested:
Testing Recommendation: Always test untested distributions in a non-production environment first. The script will warn you when running on untested distributions.
This skill requires:
Read SETUP.md for complete security configuration guide.
Patch all hosts from PatchMon (automatic detection):
scripts/patch-auto.sh
Skip Docker updates (packages only):
scripts/patch-auto.sh --skip-docker
Preview changes (dry-run):
scripts/patch-auto.sh --dry-run
Single host - packages only:
scripts/patch-host-only.sh user@hostname
Single host - full update:
scripts/patch-host-full.sh user@hostname /path/to/docker/compose
Multiple hosts from config:
scripts/patch-multiple.sh config-file.conf
--skip-docker flagvisudo or /etc/sudoers.d/ filesConfigure PatchMon credentials for automatic host detection:
cp scripts/patchmon-credentials.example.conf ~/.patchmon-credentials.conf
nano ~/.patchmon-credentials.conf
Set your credentials:
PATCHMON_URL=https://patchmon.example.com
PATCHMON_USERNAME=your-username
PATCHMON_PASSWORD=your-password
Then simply run:
scripts/patch-auto.sh
The script will:
Run scripts directly with command-line arguments (no config file needed).
Create a config file based on scripts/patch-hosts-config.example.sh:
cp scripts/patch-hosts-config.example.sh my-servers.conf
nano my-servers.conf
Example config:
# Host definitions: hostname,ssh_user,docker_path
HOSTS=(
"webserver.example.com,ubuntu,/opt/docker"
"database.example.com,root,/home/admin/compose"
"monitor.example.com,docker,/srv/monitoring"
)
# Update mode: "host-only" or "full"
UPDATE_MODE="full"
# Dry run mode (set to "false" to apply changes)
DRY_RUN="true"
Then run:
scripts/patch-multiple.sh my-servers.conf
ssh command available)- Does NOT need to be on the OpenClaw host - Can be installed on any server accessible via HTTPS - Download: https://github.com/PatchMon/PatchMon
Install missing tools:
# Ubuntu/Debian
sudo apt install curl jq
# RHEL/CentOS/Rocky/Alma
sudo dnf install curl jq
# macOS
brew install curl jq
PatchMon is required to automatically detect which hosts need patching.
Important: PatchMon does NOT need to be installed on the same server as OpenClaw. Install PatchMon on a separate server (can be any server on your network), and OpenClaw will query it via API.
Download PatchMon:
What you need:
Architecture:
┌─────────────────┐ HTTPS API ┌─────────────────┐
│ OpenClaw Host │ ──────────────────> │ PatchMon Server │
│ (this machine) │ Query updates │ (separate host) │
└─────────────────┘ └─────────────────┘
│
│ Reports
▼
┌─────────────────┐
│ Target Hosts │
│ (with agents) │
└─────────────────┘
Quick Start:
cp scripts/patchmon-credentials.example.conf ~/.patchmon-credentials.conf
nano ~/.patchmon-credentials.conf # Set PatchMon server URL
chmod 600 ~/.patchmon-credentials.conf
Detailed setup: See references/patchmon-setup.md for complete installation guide.
Can I use this skill without PatchMon? Yes! You can use manual mode to target specific hosts without PatchMon. However, automatic detection of hosts needing updates requires PatchMon.
Required:
apt and docker commands)For full updates:
On each target host, create /etc/sudoers.d/patches:
# For Ubuntu/Debian systems
username ALL=(ALL) NOPASSWD: /usr/bin/apt, /usr/bin/docker
# For RHEL/CentOS systems
username ALL=(ALL) NOPASSWD: /usr/bin/yum, /usr/bin/docker, /usr/bin/dnf
Replace username with your SSH user. Test with sudo -l to verify.
...
安装 Linux Patcher 后,可以对 AI 说这些话来触发它
Help me get started with Linux Patcher
Explains what Linux Patcher does, walks through the setup, and runs a quick demo based on your current project
Use Linux Patcher to automated Linux server patching and Docker container updates
Invokes Linux Patcher with the right parameters and returns the result directly in the conversation
What can I do with Linux Patcher in my developer & devops workflow?
Lists the top use cases for Linux Patcher, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/linux-patcher/ 目录(个人级,所有项目可用),或 .claude/skills/linux-patcher/(项目级)。重启 AI 客户端后,用 /linux-patcher 主动调用,或让 AI 根据上下文自动发现并使用。
Linux Patcher 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Linux Patcher 可免费安装使用。请查阅仓库了解许可证信息。
Automated Linux server patching and Docker container updates. Use when the user asks to update, patch, or upgrade Linux servers, apply security updates, update Docker containers, check for system updates, or manage server maintenance across multiple hosts. Supports Ubuntu, Debian, RHEL, AlmaLinux, Rocky Linux, CentOS, Amazon Linux, and SUSE. Includes PatchMon integration for automatic host detection and intelligent Docker handling.
Automate my developer & devops tasks using Linux Patcher
Identifies repetitive steps in your workflow and sets up Linux Patcher to handle them automatically
Linux Patcher 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。