← ClaudeAtlas

remote-system-maintenancelisted

This skill should be used when performing maintenance or diagnostics on remote Linux systems. Triggers on "remote server", "Linux maintenance", "Ubuntu cleanup", "Debian", "disk space", "apt cleanup", "journal vacuum", "snap cleanup", "system diagnostics". Provides structured three-phase checklists with quantification.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# Remote System Maintenance ## Purpose Structured guidance for diagnosing and maintaining remote Linux systems through SSH/tmux sessions, with emphasis on Ubuntu/Debian platforms. ## Applicable Scenarios - System maintenance tasks - Disk space recovery - Package updates - Health diagnostics - Cleanup operations on remote servers ## Three-Phase Approach ### Phase 1: Initial Diagnostics Capture baseline system state: - Hostname and system identification - Resource utilization (disk, memory, CPU) - Process status and load - Zombie process detection ### Phase 2: System Log Review Examine system health indicators: - Recent error messages in system logs - Journal disk consumption analysis - Critical service status - Authentication and security events ### Phase 3: Package Assessment Identify maintenance opportunities: - Upgradable packages - Orphaned configurations - Unused dependencies - Package cache size ## Ubuntu/Debian Cleanup Sequence Execute these seven stages in order: 1. **Package Cache Refresh** - `apt update` to sync package lists 2. **System Upgrades** - `apt upgrade` for security and bug fixes 3. **Orphan Removal** - `apt autoremove` to clean unused dependencies 4. **Cache Purging** - `apt clean` to reclaim package cache space 5. **Journal Pruning** - `journalctl --vacuum-time=7d` to limit log retention 6. **Snap Revision Cleanup** - Remove disabled snap revisions (see below) 7. **Temporary Directory Assessment** - Review `/tmp` and `/var/tmp` for cleanup