The System Maintenance Skill provides a complete, unified maintenance solution for OpenClaw systems. It includes real-time monitoring, automated cleanup, log management, and health reporting - all in a modular, easy-to-maintain architecture.
Key Benefits:
Core Value: Replaces fragmented maintenance scripts with a professional, unified system maintenance solution.
bash
bunx clawhub@latest install system-maintenance
bash
git clone https://github.com/jazzqi/openclaw-system-maintenance.git \
~/.openclaw/skills/system-maintenance
cd ~/.openclaw/skills/system-maintenance
chmod +x scripts/*.sh
bash
bash scripts/install-maintenance-system.sh
bash
# Check cron tasks
crontab -l | grep -i openclaw
# Test monitoring
bash scripts/real-time-monitor.sh --test
# Quick health check
bash scripts/daily-maintenance.sh --quick-check
FrequencyTaskDescriptionScriptEvery 5 minReal-time MonitoringGateway monitoring & auto-recoveryreal-time-monitor.shDaily 2:00 AMLog ManagementLog cleanup, rotation, compressionlog-management.shDaily 3:30 AMDaily MaintenanceComprehensive cleanup & health checksdaily-maintenance.shSunday 3:00 AMWeekly OptimizationDeep system analysis & reportingweekly-optimization.sh
text
system-maintenance/
├── 📄 entry.js # Skill entry point
├── 📄 package.json # NPM configuration
├── 📄 SKILL.md # This file
├── 🛠️ scripts/ # Core scripts
│ ├── weekly-optimization.sh # Weekly deep optimization
│ ├── real-time-monitor.sh # Real-time monitoring (5 min)
│ ├── log-management.sh # Log cleanup & rotation
│ ├── daily-maintenance.sh # Daily maintenance (3:30 AM)
│ ├── install-maintenance-system.sh # Installation tool
│ └── check-before-commit.sh # Pre-commit quality check
├── 📚 examples/ # Examples & templates
│ ├── setup-guide.md # Quick setup guide
│ ├── migration-guide.md # Safe migration guide
│ ├── final-status-template.md # Status report template
│ └── optimization-suggestions.md # Optimization suggestions
├── 📝 docs/ # Additional documentation
│ ├── FILE_SYSTEM_GOVERNANCE.md # FS Governance Standard
│ └── cross-platform-architecture.md
└── 📁 assets/ # Static resources
└── README.md
bash
# Test mode (no actual operations)
bash scripts/real-time-monitor.sh --test
# Force execution
bash scripts/real-time-monitor.sh --force
# View status
bash scripts/real-time-monitor.sh --status
bash
# Dry run (preview changes)
bash scripts/log-management.sh --dry-run
# Manual rotation
bash scripts/log-management.sh --rotate
# Cleanup only
bash scripts/log-management.sh --cleanup
bash
# Quick health check only
bash scripts/daily-maintenance.sh --quick-check
# Full maintenance cycle
bash scripts/daily-maintenance.sh --full
# Skip backup (emergency mode)
bash scripts/daily-maintenance.sh --no-backup
bash
# Generate report only (no optimization)
bash scripts/weekly-optimization.sh --report-only
# Analysis only (no changes)
bash scripts/weekly-optimization.sh --analyze-only
# Full optimization cycle
bash scripts/weekly-optimization.sh --optimize
VersionDateChanges1.3.22026-03-16Reorganized SKILL.md with progressive disclosure; cleaned up backup files1.3.12026-03-16Added FS Governance; improved error handling1.3.02026-03-12Archival version, initial ClawHub release
scripts/config.jsonreal-time-monitor.shlog-management.shbash
# Run all health checks in sequence
bash scripts/daily-maintenance.sh --quick-check
bash scripts/log-management.sh --status
bash scripts/real-time-monitor.sh --status
bash
# Force restore from latest backup
bash scripts/install-maintenance-system.sh --restore-latest
# Manual service restart
pkill -f openclaw-gateway && openclaw gateway start
bash
# Adjust monitoring frequency (edit config)
# Default: 5 minutes, can be set to 1-60 minutes
# Example: Set to 2 minutes for critical systems
Please read CONTRIBUTING.md before submitting pull requests.
MIT License - see LICENSE file for details.
Built with ❤️ for the OpenClaw community