Overview
- Skill Key
- 2233admin/server-maintenance
- Author
- 2233admin
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/2233admin/server-maintenance
- Latest Commit SHA
- 4006573b76364aefc00238340a028c4a212d6e55
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Server Maintenance 技能。 若已安装,则直接安装 Server Maintenance 技能。
# Server Maintenance Skill
## 描述
自动化服务器维护工具。检查磁盘使用率、清理缓存、优化系统资源。支持多服务器批量操作。
## 触发词
- 服务器维护
- 清理磁盘
- 检查磁盘
- server maintenance
- disk cleanup
## 功能
### 1. 磁盘检查
- 检查磁盘使用率
- 识别大文件和目录
- 分析缓存占用
### 2. 自动清理
- npm 缓存清理
- Playwright 旧版本清理
- 临时文件清理
### 3. 系统优化
- Swap 使用检查
- 内存占用分析
- 进程资源监控
### 4. 多服务器支持
- 支持本地和远程服务器
- SSH 批量操作
- 统一报告输出
## 使用方法
### 单服务器检查
```bash
bash ~/.openclaw/skills/server-maintenance/check.sh
```
### 多服务器批量维护
```bash
bash ~/.openclaw/skills/server-maintenance/maintain-all.sh
```
### 定时任务
在 OpenClaw 中设置 cron:
```json
{
"schedule": "0 2 * * 0",
"task": "server-maintenance"
}
```
## 配置
服务器列表在 `servers.json`:
```json
{
"servers": [
{
"name": "硅谷",
"host": "localhost",
"type": "local"
},
{
"name": "中央",
"host": "43.163.225.27",
"type": "ssh"
},
{
"name": "东京",
"host": "43.167.192.145",
"type": "ssh"
}
]
}
```
## 输出示例
```
=== 服务器维护报告 ===
时间:2026-03-03 10:08
| 服务器 | 清理前 | 清理后 | 释放空间 |
|--------|--------|--------|----------|
| 硅谷 | 79% | 69% | 4.7GB |
| 中央 | 88% | 78% | 5.0GB |
| 东京 | 71% | 63% | 4.0GB |
总计释放:13.7GB
```
## 安全措施
- 只清理已知安全的缓存目录
- 不删除用户数据
- 操作前自动备份关键配置
- 支持 dry-run 模式
## 依赖
- bash
- ssh(远程服务器)
- du, df(磁盘工具)
- npm(缓存清理)
## 版本
v1.0.0 - 2026-03-03
# Server Maintenance Skill
自动化服务器维护工具,支持磁盘检查、缓存清理、资源优化。
## 快速开始
### 检查单个服务器
```bash
bash ~/.openclaw/skills/server-maintenance/check.sh localhost 硅谷
bash ~/.openclaw/skills/server-maintenance/check.sh 43.163.225.27 中央
```
### 清理单个服务器
```bash
bash ~/.openclaw/skills/server-maintenance/cleanup.sh localhost 硅谷
bash ~/.openclaw/skills/server-maintenance/cleanup.sh 43.163.225.27 中央
```
### 批量维护所有服务器
```bash
bash ~/.openclaw/skills/server-maintenance/maintain-all.sh
```
## 实战案例
2026-03-03 首次使用,清理三台服务器:
| 服务器 | 清理前 | 清理后 | 释放空间 |
|--------|--------|--------|----------|
| 硅谷 | 79% | 69% | 4.7GB |
| 中央 | 88% | 78% | 5.0GB |
| 东京 | 71% | 63% | 4.0GB |
**总计释放:13.7GB**
## 记忆蒸馏
这个 Skill 是从实际维护经验中蒸馏出来的:
1. **原始上下文**:17K tokens(完整对话历史)
2. **蒸馏后**:~2K tokens(核心步骤 + 脚本)
3. **Token 节省**:88%
### 蒸馏过程
1. 提取关键步骤(检查 → 清理 → 验证)
2. 固化为可执行脚本
3. 添加配置文件支持多服务器
4. 文档化使用方法
### 效果
- 未来维护不需要重新思考流程
- 直接调用脚本,节省 token
- 可复用、可扩展、可定时
## 配置
编辑 `servers.json` 添加更多服务器:
```json
{
"name": "新服务器",
"host": "1.2.3.4",
"type": "ssh",
"description": "描述"
}
```
## 定时任务
在 OpenClaw 中设置每周自动维护:
```bash
openclaw cron add "0 2 * * 0" "bash ~/.openclaw/skills/server-maintenance/maintain-all.sh"
```
## 版本历史
- v1.0.0 (2026-03-03): 初始版本,支持磁盘检查和缓存清理
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.