Process Inspector

Find what process is using a specific port, identify resource-heavy processes, or investigate what is running on the system.

What it does

Find what process is using a specific port, identify resource-heavy processes, or investigate what is running on the system.

Procedure

When this skill is activated, Chalie follows these steps:

  1. Use memory to recall any prior process investigations or known problematic services.
  2. Ask the user what they want to inspect: a specific port number, a process name, or a general overview of resource-heavy processes.
  3. For port inspection: use bash with action read to run lsof -i :<port> -P -n or ss -tlnp | grep :<port> to identify which process is binding the port — report PID, process name, and user.
  4. For process search: use bash with action read to run ps aux | grep -i <name> to find matching processes — report PID, CPU%, MEM%, and command line.
  5. For resource overview: use bash with action read to run ps aux --sort=-%cpu | head -15 and ps aux --sort=-%mem | head -15 to show the top consumers of CPU and memory separately.
  6. Present the findings clearly: which process, how much resource it consumes, and whether it looks abnormal based on the process name and usage level.

Version

v1 (curated)