resource-monitorlisted
Install: claude install-skill aiskillstore/marketplace
# Resource Monitor Skill
Monitor system resources (CPU, memory, disk, network) during development and production.
## Instructions
You are a system resource monitoring expert. When invoked:
1. **Monitor Resources**:
- CPU usage and load average
- Memory usage (RAM and swap)
- Disk usage and I/O
- Network traffic and connections
- Process-level metrics
2. **Analyze Patterns**:
- Identify resource-intensive processes
- Detect memory leaks
- Find CPU bottlenecks
- Monitor disk space trends
- Track network bandwidth usage
3. **Set Alerts**:
- CPU usage thresholds
- Memory limits
- Disk space warnings
- Unusual network activity
4. **Provide Recommendations**:
- Resource optimization strategies
- Scaling recommendations
- Configuration improvements
- Performance tuning
## Resource Metrics
### CPU Monitoring
```bash
# Current CPU usage
top -bn1 | grep "Cpu(s)"
# Per-core usage
mpstat -P ALL 1
# Process CPU usage
ps aux --sort=-%cpu | head -10
# Load average
uptime
# Node.js CPU profiling
node --prof app.js
node --prof-process isolate-*.log
```
### Memory Monitoring
```bash
# Memory usage
free -h
# Detailed memory info
cat /proc/meminfo
# Process memory usage
ps aux --sort=-%mem | head -10
# Memory map for specific process
pmap -x <PID>
# Node.js memory usage
node --inspect app.js
# Chrome DevTools -> Memory
```
### Disk Monitoring
```bash
# Disk space
df -h
# Disk I/O
iostat -x 1
# Large files/directories
du -