Skip to content
Skillv1.0.0

system-info

系统信息查询技能。用于获取电脑硬件信息、系统状态、进程列表、磁盘空间等。当用户询问电脑配置、系统状态或性能信息时使用。

by rtgs2017(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from rtgs2017/nagaagent (skills/system-info/SKILL.md). Install upstream with npx skills add rtgs2017/nagaagent --skill system-info. Copyright stays with the author.

系统信息查询技能

本技能提供系统信息查询和状态监控能力。

可查询的信息

1. 硬件信息

  • CPU 型号和核心数
  • 内存容量和使用率
  • 磁盘空间和分区
  • 显卡信息

2. 系统状态

  • 操作系统版本
  • 系统运行时间
  • 当前用户
  • 网络状态

3. 进程监控

  • 运行中的进程
  • CPU 占用排行
  • 内存占用排行

查询命令

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

通用 Python 方法

import platform
import psutil

# 系统信息
platform.system()
platform.release()
platform.machine()

# 资源使用
psutil.cpu_percent()
psutil.virtual_memory()
psutil.disk_usage('/')

输出格式

## 系统信息报告

### 操作系统
- 系统: macOS 14.0
- 架构: arm64

### 硬件配置
- CPU: Apple M2 Pro (12核)
- 内存: 32GB (已用 60%)
- 磁盘: 500GB (剩余 200GB)

### 当前状态
- 运行时间: 5天 12小时
- CPU 负载: 15%
- 活跃进程: 256个

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/rtgs2017-nagaagent-system-info/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

rtgs2017-nagaagent-system-info.ocm.jsonjson
{
  "ocm": "1",
  "id": "rtgs2017-nagaagent-system-info",
  "kind": "skill",
  "name": "system-info",
  "description": "系统信息查询技能。用于获取电脑硬件信息、系统状态、进程列表、磁盘空间等。当用户询问电脑配置、系统状态或性能信息时使用。",
  "publisher": "rtgs2017",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "system",
      "hardware",
      "status",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "系统信息查询技能。用于获取电脑硬件信息、系统状态、进程列表、磁盘空间等。当用户询问电脑配置、系统状态或性能信息时使用。"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/rtgs2017/nagaagent",
      "path": "skills/system-info/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/rtgs2017/nagaagent/blob/HEAD/skills/system-info/SKILL.md",
      "key": "rtgs2017/nagaagent/skills/system-info/SKILL.md"
    }
  },
  "instructions": "# 系统信息查询技能\r\n\r\n本技能提供系统信息查询和状态监控能力。\r\n\r\n## 可查询的信息\r\n\r\n### 1. 硬件信息\r\n- CPU 型号和核心数\r\n- 内存容量和使用率\r\n- 磁盘空间和分区\r\n- 显卡信息\r\n\r\n### 2. 系统状态\r\n- 操作系统版本\r\n- 系统运行时间\r\n- 当前用户\r\n- 网络状态\r\n\r\n### 3. 进程监控\r\n- 运行中的进程\r\n- CPU 占用排行\r\n- 内存占用排行\r\n\r\n## 查询命令\r\n\r\n### macOS/Linux\r\n```bash\r\n# CPU 信息\r\nsysctl -n machdep.cpu.brand_string  # macOS\r\nlscpu  # Linux\r\n\r\n# 内存信息\r\nvm_stat  # macOS\r\nfree -h  # Linux\r\n\r\n# 磁盘空间\r\ndf -h\r\n\r\n# 系统信息\r\nuname -a\r\nsw_vers  # macOS\r\n```\r\n\r\n### 通用 Python 方法\r\n```python\r\nimport platform\r\nimport psutil\r\n\r\n# 系统信息\r\nplatform.system()\r\nplatform.release()\r\nplatform.machine()\r\n\r\n# 资源使用\r\npsutil.cpu_percent()\r\npsutil.virtual",
  "cost": {
    "context_tokens": 216
  }
}

Fetch it by URL: GET /api/v1/registry/rtgs2017-nagaagent-system-info/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.

system-info - Skill - OpenSmartRoute