← 返回
效率工具 中文

Local System Info (Iyeque)

Return system metrics (CPU, RAM, disk, processes) using psutil.
使用 psutil 返回系统指标(CPU、内存、磁盘、进程)。
iyeque
效率工具 clawhub v1.1.0 1 版本 99835.3 Key: 无需
★ 0
Stars
📥 1,212
下载
💾 13
安装
1
版本
#latest

概述

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:

# 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

{
  "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

[
  {
    "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

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-29 04:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Audio Processing (Iyeque)

iyeque
音频摄取、分析、转换与生成(转录、语音合成、语音活动检测、特征提取)
★ 0 📥 404
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,192
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,783