grahama1970

system-headroom

0
0
# Install this skill:
npx skills add grahama1970/agent-skills --skill "system-headroom"

Install specific skill from multi-skill repository

# Description

>

# SKILL.md


name: system-headroom
description: >
Check system resources: CPU, memory, disk.
Warns when thresholds exceeded.
triggers:
- check system resources
- disk space
- memory usage
- am i running low
- system status
- check headroom
- how much disk
- how much memory


System Headroom

Quick system resource check with configurable thresholds.

Commands

# Check all resources with default thresholds
./scripts/check.sh

# Custom thresholds
./scripts/check.sh --disk 90 --mem 95

Output

Shows:

  • CPU load (uptime output)
  • Disk usage per mount (df -h)
  • Memory usage percentage
  • Warnings if thresholds exceeded

Exit Codes

  • 0: All resources within thresholds
  • 1: One or more warnings triggered

Environment Variables

Variable Default Description
DISK_THRESHOLD 85 Warn if disk usage exceeds %
MEM_THRESHOLD 90 Warn if memory usage exceeds %

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.