← 返回 Skills 市场
zelzaclaw

Doc Sysadmin

作者 zelzaclaw · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
499
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install doc-sysadmin
功能描述
Especialista TI Ubuntu 24.04. Cuida do sistema host - espaço em disco, RAM, lentidão, limpeza periódica. Use when: (1) verificação de saúde do sistema, (2) l...
使用说明 (SKILL.md)

Doc - Sysadmin Ubuntu 24.04

Você é Doc. Especialista em manutenção de sistemas Ubuntu 24.04. Sua casa é este computador - cuide dela como se fosse sua.

Responsabilidades

1. Health Check Diário

# Espaço em disco
df -h / | awk 'NR==2 {print $5}' | tr -d '%'

# Uso de RAM
free -m | awk 'NR==2{printf "%.0f", $3*100/$2}'

# Load average
uptime | awk -F'load average:' '{print $2}'

# Processos zombie
ps aux | awk '$8=="Z" {print $0}' | wc -l

2. Limpeza Segura

APENAS o que pode apagar:

  • Lixeira: ~/.local/share/Trash/*
  • Arquivos .tmp: /tmp/*.tmp (não usados +7 dias)
  • Cache apt: /var/cache/apt/archives/*.deb
  • Logs antigos: /var/log/*.gz (rotação automática)

NUNCA apague sem confirmação:

  • Arquivos de projeto
  • Downloads
  • Documentos
  • Configurações

3. Otimização RAM

# Sync e drop caches (seguro)
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches

# Verificar swap usage
free -h | grep Swap

4. Resolver Lentidão

# Top processos por CPU
ps aux --sort=-%cpu | head -10

# Top processos por MEM
ps aux --sort=-%mem | head -10

# I/O wait
iostat -x 1 3

Comandos Prontos

Full Check

#!/bin/bash
echo "=== DISK USAGE ==="
df -h
echo "=== MEMORY ==="
free -h
echo "=== TOP CPU ==="
ps aux --sort=-%cpu | head -5
echo "=== SYSTEMD FAILED ==="
systemctl --failed
echo "=== ZOMBIE PROCS ==="
ps aux | awk '$8=="Z" {print $2}'

Cleanup Seguro

#!/bin/bash
echo "Limpando lixeira..."
rm -rf ~/.local/share/Trash/files/* 2>/dev/null
rm -rf ~/.local/share/Trash/info/* 2>/dev/null

echo "Limpando /tmp antigos..."
find /tmp -type f -atime +7 -delete 2>/dev/null

echo "Limpando cache apt..."
sudo apt-get autoclean

echo "Done."

Regras

  1. elevated: true - Pode usar sudo quando necessário
  2. Sempre peça confirmação antes de apagar qualquer coisa fora da lixeira/.tmp
  3. Relatório claro - Mostre antes/depois dos números
  4. Proativo - Alerte quando disco \x3C 10% ou RAM > 90%
  5. Não invente - Se não sabe o comando, diga "preciso pesquisar"
安全使用建议
This skill is generally coherent with being a local Ubuntu sysadmin helper, but it contains a dangerous mismatch: the documentation says to always ask confirmation and only delete certain items (e.g., old /tmp files), yet scripts/cleanup.sh force-deletes /tmp/* and /var/tmp/* and runs apt autoremove without prompting. Before installing or running this skill: - Do not run the cleanup script on production machines without review. Inspect and test it in a disposable VM first. - Modify the script to honor the documented rules: only delete /tmp files older than N days (use find -type f -atime +7), avoid unconditional rm -rf /var/tmp/*, and require interactive confirmation before destructive steps. - Remove or require sudo for commands that need root and avoid relying on implicit root execution; add explicit prompts and dry-run modes. - Be aware that clearing /tmp or dropping caches can disrupt running services (remove sockets, temp state). Back up important data and ensure scheduled automation won't run the script unattended. If you want to proceed, ask the author to reconcile the SKILL.md rules with the script, add confirmations/dry-run flags, and document exactly what will be removed and under what conditions.
功能分析
Type: OpenClaw Skill Name: doc-sysadmin Version: 1.0.0 The skill bundle is designed for Ubuntu system administration and maintenance, including cleanup tasks, and is granted `elevated: true` permissions. While the `SKILL.md` instructions emphasize safe cleanup practices (e.g., deleting only temporary files older than 7 days), the `scripts/cleanup.sh` file contains an overly aggressive command `rm -rf /tmp/* /var/tmp/*`. This command deviates from the stated safety guidelines and can lead to system instability or data loss by indiscriminately deleting all contents of `/tmp` and `/var/tmp`, including files actively used by running applications. This constitutes a significant vulnerability, classifying the skill as suspicious rather than benign or malicious.
能力评估
Purpose & Capability
Name and description (Ubuntu sysadmin: health checks, disk/RAM cleanup, performance) match the commands and script provided. The actions (df, free, apt clean, journalctl vacuum, drop caches) are appropriate for this purpose. However, the SKILL.md describes conservative deletion rules (only trash, .tmp older than 7 days, apt cache .deb, gz logs) while the included script is more aggressive and deletes /tmp/* and /var/tmp/* unconditionally.
Instruction Scope
SKILL.md requires 'Sempre peça confirmação' before deleting anything outside trash/.tmp, and explicitly limits what may be deleted. The provided scripts/cleanup.sh contradicts that: it runs rm -rf /tmp/* /var/tmp/* and apt autoremove/autoclean without user confirmation. The script also vacuums journal logs and drops caches automatically. These are destructive operations if run without confirmation and exceed the conservative scope described in the prose.
Install Mechanism
No install spec; the skill is instruction-only with a small included script. Nothing is downloaded from external URLs or installed during skill installation. This is low risk from an install-mechanism perspective.
Credentials
The skill requests no environment variables or credentials, which is appropriate for a local sysadmin helper. There is no evidence of attempts to exfiltrate secrets or require unrelated credentials.
Persistence & Privilege
The skill metadata sets elevated: true (allowed to use sudo), which is reasonable for system maintenance. Combined with the included script that performs unconditional deletions and apt operations, this grants the skill the ability to make system-wide changes without the confirmation policy the SKILL.md claims. The skill is not marked always:true, and there is no install-time persistence, but the elevated capability plus inconsistent deletion behavior is a notable risk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install doc-sysadmin
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /doc-sysadmin 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial Ubuntu 24.04 system maintenance skill
元数据
Slug doc-sysadmin
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Doc Sysadmin 是什么?

Especialista TI Ubuntu 24.04. Cuida do sistema host - espaço em disco, RAM, lentidão, limpeza periódica. Use when: (1) verificação de saúde do sistema, (2) l... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 499 次。

如何安装 Doc Sysadmin?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install doc-sysadmin」即可一键安装,无需额外配置。

Doc Sysadmin 是免费的吗?

是的,Doc Sysadmin 完全免费(开源免费),可自由下载、安装和使用。

Doc Sysadmin 支持哪些平台?

Doc Sysadmin 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Doc Sysadmin?

由 zelzaclaw(@zelzaclaw)开发并维护,当前版本 v1.0.0。

💬 留言讨论