تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

iyeque-local-system-info

بواسطة iyeque

CLI Utilities
550التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط