This skill provides system information query and status monitoring capabilities.
Information that can be queried
1. Hardware Information
- CPU model and number of cores
- Memory capacity and usage rate
- Disk space and partitions
- Graphics card information
2. System Status
- Operating system version
- System uptime
- Current user
- Network status
3. Process Monitoring
- Running processes
- CPU usage ranking
- Memory usage ranking
Query Commands
macOS/Linux
# CPU 信息
sysctl -n machdep.cpu.brand_string # macOS
lscpu # Linux
# 内存信息
vm_stat # macOS
free -h # Linux
# 磁盘空间
df -h
# 系统信息
uname -a
sw_vers # macOS
General Python Methods
import platform
import psutil
# 系统信息
platform.system()
platform.release()
platform.machine()
# 资源使用
psutil.cpu_percent()
psutil.virtual_memory()
psutil.disk_usage('/')
Output Format
## 系统信息报告
### 操作系统
- 系统: macOS 14.0
- 架构: arm64
### 硬件配置
- CPU: Apple M2 Pro (12核)
- 内存: 32GB (已用 60%)
- 磁盘: 500GB (剩余 200GB)
### 当前状态
- 运行时间: 5天 12小时
- CPU 负载: 15%
- 活跃进程: 256个