/SKILL.md
# OpenClaw Unified Maintenance System Skill > **Skill Name**: system-maintenance > **Version**: 1.2.2 > **Created**: 2026-03-08 > **Updated**: 2026-03-08 > **Author**: Claw (OpenClaw AI Assistant) > **ClawHub ID**: k97bca5502xm85egs9gba5zkks82ekd0 > **GitHub**: https://github.com/jazzqi/openclaw-system-maintenance ## 📋 Skill Description The **System Maintenance Skill** provides a complete, unified maintenance solution for OpenClaw systems. It includes real-time monitoring, automa
npx skillsauth add jazzqi/openclaw-system-maintenance openclaw-system-maintenanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Skill Name: system-maintenance
Version: 1.2.2
Created: 2026-03-08
Updated: 2026-03-08
Author: Claw (OpenClaw AI Assistant)
ClawHub ID: k97bca5502xm85egs9gba5zkks82ekd0
GitHub: https://github.com/jazzqi/openclaw-system-maintenance
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.
This skill replaces fragmented maintenance scripts with a professional, unified system that reduces cron tasks by 50% while improving reliability and safety.
system-maintenance/
├── 📄 README.md # Main documentation (English)
├── 📄 SKILL.md # This skill documentation
├── 📄 SKILL.md.zh-CN.bak # Chinese documentation backup
├── 📄 package.json # NPM configuration (v1.2.2)
├── 📄 .gitignore # Git ignore rules
├── 📄 pre-commit-checklist.md # Pre-commit checklist guidelines
├── 📄 entry.js # Skill entry point
├── 🛠️ scripts/ # Core maintenance scripts
│ ├── weekly-optimization.sh # Weekly deep optimization
│ ├── real-time-monitor.sh # Real-time monitoring (every 5 min)
│ ├── log-management.sh # Log cleanup and 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 and 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
│ ├── architecture.md # System architecture
│ └── PUBLISH_GUIDE.md # Publication guide
└── 📁 backup-skill-docs/ # Documentation backups
├── SKILL.md.zh-CN.bak # Chinese documentation
└── SKILL.md.original # Original documentation
clawhub install system-maintenance
git clone https://github.com/jazzqi/openclaw-system-maintenance.git ~/.openclaw/skills/system-maintenance
cd ~/.openclaw/skills/system-maintenance
chmod +x scripts/*.sh
# Run the installation script (does everything automatically)
bash ~/.openclaw/skills/system-maintenance/scripts/install-maintenance-system.sh
# Verify installation
crontab -l | grep -i openclaw
# Should show 4 maintenance tasks
# Test real-time monitoring
bash ~/.openclaw/skills/system-maintenance/scripts/real-time-monitor.sh --test
# Check system health
bash ~/.openclaw/skills/system-maintenance/scripts/daily-maintenance.sh --quick-check
| Time | Task | Description | Script |
|------|------|-------------|--------|
| Every 5 min | Real-time Monitoring | Gateway process monitoring and auto-recovery | real-time-monitor.sh |
| Daily 2:00 AM | Log Management | Log cleanup, rotation, and compression | log-management.sh |
| Daily 3:30 AM | Daily Maintenance | Comprehensive cleanup and health checks | daily-maintenance.sh |
| Sunday 3:00 AM | Weekly Optimization | Deep system optimization and reporting | weekly-optimization.sh |
weekly-optimization.sh)real-time-monitor.sh)log-management.sh)daily-maintenance.sh)install-maintenance-system.sh)check-before-commit.sh)| Aspect | Old System | New System | Improvement | |--------|------------|------------|-------------| | Cron Tasks | 8 scattered tasks | 4 optimized tasks | ‑50% | | Architecture | Fragmented scripts | Unified maintenance system | +100% | | Monitoring | Basic status checks | Real‑time with auto‑recovery | +200% | | Reporting | No reports | Professional weekly reports | New feature | | Safety | Minimal backup | Complete backup + rollback | +300% | | Maintainability | Hard to update | Modular, easy to extend | +150% |
Detailed migration guide: examples/migration-guide.md
The skill includes a comprehensive pre-commit checking system:
# Manual check before commit
./scripts/check-before-commit.sh
# Automatic check (via Git hook)
git commit -m "Your commit message"
# Pre-commit hook runs automatically
| Version | Date | Key Changes | Status | |---------|------|-------------|--------| | v1.2.2 | 2026‑03‑08 | English SKILL.md translation, version bump | ✅ Current | | v1.2.1 | 2026‑03‑08 | Pre-commit automation tools, quality checks | 🔄 Superseded | | v1.2.0 | 2026‑03‑08 | Complete unified maintenance system | ✅ Released | | v1.1.0 | 2026‑03‑08 | Real‑time monitoring and log management | ✅ Released | | v1.0.0 | 2026‑03‑08 | Initial release with basic maintenance | ✅ Released |
# Install the skill
bash scripts/install-maintenance-system.sh
# Check system health
bash scripts/daily-maintenance.sh --health-check
# Generate weekly report
bash scripts/weekly-optimization.sh --generate-report
# Custom monitoring interval
*/10 * * * * ~/.openclaw/maintenance/scripts/real-time-monitor.sh
# Custom log retention (14 days instead of 7)
LOG_RETENTION_DAYS=14 ~/.openclaw/maintenance/scripts/log-management.sh
# Detailed weekly report with email
bash scripts/weekly-optimization.sh --detailed --email [email protected]
# Integrate with self-improving-agent
bash scripts/daily-maintenance.sh --update-learnings
# Combine with memory-core skill
bash scripts/weekly-optimization.sh --include-memory-analysis
# Check if Gateway is running
ps aux | grep openclaw-gateway
# Test connection
curl http://localhost:18789/
# Check crontab
crontab -l
# Test script manually
bash ~/.openclaw/maintenance/scripts/real-time-monitor.sh
# Make scripts executable
chmod +x ~/.openclaw/maintenance/scripts/*.sh
# Check ownership
ls -la ~/.openclaw/maintenance/scripts/
# Run scripts with debug output
bash -x ~/.openclaw/maintenance/scripts/real-time-monitor.sh
# Verbose logging
VERBOSE=1 bash scripts/daily-maintenance.sh
We welcome contributions! Here's how:
# Clone the repository
git clone https://github.com/jazzqi/openclaw-system-maintenance.git
# Make scripts executable
chmod +x scripts/*.sh
# Test installation
bash scripts/install-maintenance-system.sh --test
This project is licensed under the MIT License - see the LICENSE file for details.
The skill is designed with cross-platform compatibility in mind:
| Platform | Process Detection | Service Control | Scheduling | Log Management |
|----------|-------------------|-----------------|------------|----------------|
| macOS | ✅ ps aux \| grep | ✅ launchctl | ✅ crontab | ✅ /tmp/ |
| Linux | ✅ pgrep / ps | ✅ systemctl | ✅ crontab | ✅ /var/log/ |
| Windows | ⚠️ tasklist | ⚠️ sc / net | ⚠️ Task Scheduler | ⚠️ %TEMP% |
docs/linux-setup.md for platform-specific instructionsdocs/windows-setup.md for adaptation guidelinesCommunity contributions are welcome for adding support to new platforms:
docs/cross-platform-architecture.mdMade with ❤️ for the OpenClaw community
Keep your systems running smoothly and efficiently! 🚀
Note: Chinese documentation is available as backup: SKILL.md.zh-CN.bak
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
data-ai
Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
data-ai
OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
data-ai
OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.