← Back to Skills Marketplace
zelzaclaw

Doc Sysadmin

by zelzaclaw · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
499
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install doc-sysadmin
Description
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...
README (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"
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doc-sysadmin
  3. After installation, invoke the skill by name or use /doc-sysadmin
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial Ubuntu 24.04 system maintenance skill
Metadata
Slug doc-sysadmin
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 499 downloads so far.

How do I install Doc Sysadmin?

Run "/install doc-sysadmin" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Doc Sysadmin free?

Yes, Doc Sysadmin is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Doc Sysadmin support?

Doc Sysadmin is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Doc Sysadmin?

It is built and maintained by zelzaclaw (@zelzaclaw); the current version is v1.0.0.

💬 Comments