remote-system-maintenance

Diagnose and maintain remote Linux servers via SSH with structured phases.

90|6|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/2389-research/claude-plugins --skill remote-system-maintenance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: remote-system-maintenance
Source: https://github.com/2389-research/claude-plugins/tree/main/remote-system-maintenance/skills
Command: npx skills add https://github.com/2389-research/claude-plugins --skill remote-system-maintenance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured guidance for diagnosing and maintaining remote Linux systems via SSH, enabling proactive health checks and reliable cleanup operations.

Core Features & Use Cases

  • Three-phase workflow: Initial diagnostics, log review, and package assessment to systematically identify issues and opportunities on remote servers.
  • Ubuntu/Debian focus: Tailored steps for common distributions, including apt-based upgrades, autoremove, cache cleanup, and journal pruning.
  • Use Case: You manage several Ubuntu servers and need a repeatable protocol to baseline performance, identify upgrades, and reclaim disk space with documented results.

Quick Start

  • Connect to the remote Linux server: ssh user@host
  • Open a maintenance tmux session: tmux new -s remote-maintenance
  • Phase 1 (Diagnostics): hostname; uname -a; df -h; free -m; top -b -n1 | head -n 20; ps aux --sort=-%mem | head -n 5
  • Phase 2 (Logs & Services): journalctl -p err -n 100; systemctl list-units --type=service --state=running
  • Phase 3 (Cleanup & Maintenance): sudo apt list --upgradable; sudo apt autoremove -y; sudo apt clean; sudo journalctl --vacuum-time=7d; snap list --all | awk '/disabled/{print $1, $3}'; sudo snap remove <package> --revision=<rev>; ls -ld /tmp /var/tmp

Frequently Asked Questions about remote-system-maintenance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform remote Linux server diagnostics over SSH?

To perform remote Linux server diagnostics via SSH, run a structured three-phase workflow: collect initial diagnostics, review system logs, and assess packages to identify issues and opportunities on the server.

What is the best way to clean up disk space on an Ubuntu server?

The best way to clean up disk space on an Ubuntu server is a seven-stage cleanup sequence using apt autoremove, apt clean, and journalctl vacuum-time to deterministically reclaim space and prune old logs.

How do I check system health and review error logs on a remote Debian server?

To check system health and review error logs on a remote Debian server, run diagnostics commands like df and free, then use journalctl to filter error logs and systemctl to list running services.

Can I use this structured maintenance workflow for non-Debian Linux distributions?

No, this structured maintenance workflow is tailored for Ubuntu and Debian environments, relying on apt-based commands and snap cleanup steps that may not directly apply to other Linux distributions.

How do I find and remove disabled snap packages to reclaim disk space?

To find and remove disabled snap packages and reclaim disk space, use snap list --all, filter disabled revisions with awk, and run snap remove targeting the specific package and revision.