Best use case
Server Maintenance Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. ## 描述
## 描述
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "Server Maintenance Skill" skill to help with this workflow task. Context: ## 描述
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/server-maintenance/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Server Maintenance Skill Compares
| Feature / Agent | Server Maintenance Skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
## 描述
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Marketing
Discover AI agents for marketing workflows, from SEO and content production to campaign research, outreach, and analytics.
AI Agents for Startups
Explore AI agent skills for startup validation, product research, growth experiments, documentation, and fast execution with small teams.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
SKILL.md Source
# 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-03Related Skills
agentic-mcp-server-builder
Scaffold MCP server projects and baseline tool contract checks. Use for defining tool schemas, generating starter server layouts, and validating MCP-ready structure.
ipfs-server
Full IPFS node operations — install, configure, pin content, publish IPNS, manage peers, and run gateway services
server-audit
远程服务器安全巡检和环境报告工具。 通过 SSH 免密登录远程主机,全面检查系统信息、运行服务、开放端口、 Web 服务器配置、数据库配置、安全设置(SSH/防火墙/SELinux)、可疑进程和定时任务, 生成结构化的巡检报告。Use when 用户需要检查服务器安全、排查服务器环境、 了解服务器上运行了什么服务、生成巡检报告、或提及"巡检"、"安全检查"、"服务器检查"。
observer-effect-probe
Helps detect skills that behave differently when they sense they are being monitored — catching the class of evasion where conditional activation logic specifically targets attestation and sandbox environments.
mcp-server-builder
MCP Server Builder
ai-system-maintenance
系统健康检查和维护,自动检测并修复常见问题
plexctl — Plex Media Server Control
> Standalone CLI for controlling Plex Media Server and clients via the Plex API
mac-mini-server
Set up OpenClaw on Mac Mini as always-on AI server — hardware recommendations, macOS config, Docker Desktop, launchd auto-start, Tailscale remote access, and cost comparison vs VPS. Use when deploying OpenClaw on Mac Mini for 24/7 personal AI.
equipment-maintenance-log
Track lab equipment calibration dates and send maintenance reminders
mcp-server-chart
Auto-generated skill for mcp-server-chart tools via OneKey Gateway.
homestruk-maintenance-triage
Triage tenant maintenance requests by severity, assign priority, identify the right contractor type, estimate costs, and generate work orders. Use when a tenant reports a maintenance issue, when reviewing open work orders, or when assessing property condition. Follows Massachusetts habitability requirements (105 CMR 410).
DomainKits MCP Server
Domain intelligence tools through MCP-compatible clients.