process-manage

Community

Unified process management across macOS and Linux.

Authorlinanwx
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing and troubleshooting system processes can be tedious and error-prone across different platforms. This Skill provides a unified set of commands to list, locate, and monitor processes, making it easier to diagnose performance issues and ensure system health.

Core Features & Use Cases

  • List All Processes: exec: ps aux | head -30

  • Find by Name: exec: ps aux | grep -i "PROCESS_NAME" | grep -v grep

  • Find by PID: exec: ps -p PID -o pid,ppid,user,%cpu,%mem,start,command

  • Tree View (Linux): exec: ps auxf | head -40

  • Tree View (macOS): exec: pstree 2>/dev/null || ps -ef | head -30

  • Find by Port: exec: lsof -i :PORT_NUMBER

  • By User: exec: ps -u USERNAME -o pid,%cpu,%mem,command | head -20

  • Top CPU consumers: exec: ps aux --sort=-%cpu | head -11

  • Top memory consumers: exec: ps aux --sort=-%mem | head -11

  • System load: exec: uptime

  • One-shot top snapshot: exec: top -bn1 | head -20 2>/dev/null || top -l 1 | head -20

  • Kill by PID: exec: kill PID

  • Force kill: exec: kill -9 PID

  • Kill by name: exec: pkill "PROCESS_NAME"

  • Kill all by name: exec: pkill -f "PATTERN"

  • Kill by port: exec: lsof -ti :PORT_NUMBER | xargs kill -9 2>/dev/null && echo "Killed" || echo "No process on port PORT_NUMBER"

  • Memory & Swap: Linux: exec: free -h; macOS: exec: vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+(\w+):\s+(\d+)/ and printf("%-16s %6.1f MB\n", "$1:", $2 * $size / 1048576)'

  • Disk I/O: Linux: exec: iostat -xd 1 2 2>/dev/null | tail -20; macOS: exec: iostat -w 1 -c 2 2>/dev/null

  • Open Files: By process: exec: lsof -p PID | head -30; Open file count by process: exec: lsof | awk '{print $1}' | sort | uniq -c | sort -rn | head -15

  • Service Management (Linux systemd): Status: exec: systemctl status SERVICE_NAME; Start / stop / restart: exec: sudo systemctl start SERVICE_NAME exec: sudo systemctl stop SERVICE_NAME exec: sudo systemctl restart SERVICE_NAME; List running services: exec: systemctl list-units --type=service --state=running

  • Crontab (System Cron): exec: crontab -l 2>/dev/null || echo "No crontab for current user"

  • Notes: Cross-platform nuances and recommended practices.

Quick Start

Run the process-manage skill to list and monitor current system processes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: process-manage
Download link: https://github.com/linanwx/nagobot/archive/main.zip#process-manage

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.