Skip to content
Back to skills

Local System Info

ASecurity

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

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
devopspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill local-system-info --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Local System Info?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Local System Info
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-local-system-info/badge)](https://www.skillsdirectory.com/skills/modbender-local-system-info)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: local-system-info
description: Return system metrics (CPU, RAM, disk, processes) using psutil.
metadata:
  {
    "openclaw":
      {
        "emoji": "🖥️",
        "requires": { "bins": ["python3"], "pip": ["psutil"] },
        "install":
          [
            {
              "id": "psutil",
              "kind": "pip",
              "package": "psutil",
              "label": "Install psutil",
            },
          ],
        "version": "1.1.0",
      },
  }
---

# 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

Files in this skill

  • SKILL.md2.6 KB
  • sysinfo.py2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…