iyeque-local-system-info

CLI Utilities
v1.1.0
Benign

Return system metrics (CPU, RAM, disk, processes) using psutil.

550 downloads550 installsby @iyeque

Setup & Installation

Install command

clawhub install iyeque/iyeque-local-system-info

If the CLI is not installed:

Install command

npx clawhub@latest install iyeque/iyeque-local-system-info

Or install with OpenClaw CLI:

Install command

openclaw skills install iyeque/iyeque-local-system-info

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/iyeque/iyeque-local-system-info

What This Skill Does

Exposes CPU, RAM, disk, and process metrics from the local machine via psutil. Supports targeted queries for individual resource types or a combined summary. Works on Linux, macOS, Windows, and WSL.

Provides structured JSON output directly usable by agents without parsing free-form shell output.

When to Use It

  • Check memory usage before running a memory-intensive build
  • Identify which processes are consuming the most CPU
  • Monitor disk space on a development machine
  • Get load averages during a performance investigation
  • Pull a system snapshot for a diagnostic report
View original SKILL.md file
# Local System Info Skill

Monitor local system resources including CPU, memory, disk usage, and running processes.

## Tool API

### system_info
Retrieve system metrics.

- **Parameters:**
  - `action` (string, required): One of `summary`, `cpu`, `memory`, `disk`, `processes`.
  - `limit` (integer, optional): Number of processes to list (default: 20). Only used with `action=processes`.

**Usage:**

```bash
# Get full system summary
uv run --with psutil skills/local-system-info/sysinfo.py summary

# CPU metrics only
uv run --with psutil skills/local-system-info/sysinfo.py cpu

# Memory metrics only
uv run --with psutil skills/local-system-info/sysinfo.py memory

# Disk usage
uv run --with psutil skills/local-system-info/sysinfo.py disk

# List top processes by CPU usage
uv run --with psutil skills/local-system-info/sysinfo.py processes --limit 10
```

## Output Format

### summary
```json
{
  "cpu": {
    "cpu_percent": 15.2,
    "cpu_count": 8,
    "load_avg": [0.5, 0.3, 0.2]
  },
  "memory": {
    "total": 17179869184,
    "available": 8589934592,
    "percent": 50.0,
    "swap_percent": 5.2
  },
  "disk": {
    "total": 500000000000,
    "used": 250000000000,
    "free": 250000000000,
    "percent": 50.0
  }
}
```

### processes
```json
[
  {
    "pid": 1234,
    "name": "python3",
    "username": "user",
    "cpu_percent": 5.2,
    "memory_percent": 2.1
  },
  ...
]
```

## Metrics Explained

- **cpu_percent:** Current CPU utilization (0-100%)
- **cpu_count:** Number of logical CPU cores
- **load_avg:** System load average (1, 5, 15 min) normalized by CPU count
- **memory.total/available:** RAM in bytes
- **memory.percent:** RAM usage percentage
- **disk.percent:** Root filesystem usage percentage
- **processes:** Top N processes sorted by CPU usage

## Requirements

- **psutil:** Cross-platform system monitoring library
- **Python 3.6+:** For f-string support and typing

## Platform Support

Works on Linux, macOS, Windows, and WSL. Some metrics may vary by platform:
- `load_avg`: Not available on Windows
- Process information depth varies by OS

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Check memory usage before running a memory-intensive build

AGENT
  1. 1Check memory usage before running a memory-intensive build
  2. 2Identify which processes are consuming the most CPU
  3. 3Monitor disk space on a development machine
  4. 4Get load averages during a performance investigation
  5. 5Pull a system snapshot for a diagnostic report
OUTPUT
Return system metrics (CPU, RAM, disk, processes) using psutil.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedFeb 26, 2026