跳到正文
TakoAPI
返回技能列表

iyeque-local-system-info

由 iyeque 提供

CLI Utilities
550下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: which processes are using the most CPU right now?

智能体
  1. 1

    Call system_info with action=processes and limit=10

  2. 2

    Receive JSON array of top processes sorted by cpu_percent

  3. 3

    Extract pid, name, and cpu_percent fields

  4. 4

    Format results as a ranked list

输出

Top 10 processes by CPU usage with PID, name, and percentage

安装

clawhub install iyeque/iyeque-local-system-info

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接